') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); [SDK release] Generated SDK code based on data-link 0.3.15-sdk.6 API changes by github-actions[bot] · Pull Request #10 · databox/databox-python · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,8 +3,8 @@ Push API resources Open API documentation

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.3.15-sdk.5
- Package version: 2.2.3
- API version: 0.3.15-sdk.6
- Package version: 2.3.0
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,8 +3,8 @@ Push API resources Open API documentation

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.3.15-sdk.5
- Package version: 2.2.3
- API version: 0.3.15-sdk.6
- Package version: 2.3.0
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down
4 changes: 2 additions & 2 deletions src/databox/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,14 +7,14 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "2.2.3"
__version__ = "2.3.0"

# import apis into sdk package
from databox.api.default_api import DefaultApi
Expand Down
2 changes: 1 addition & 1 deletion src/databox/api/default_api.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
4 changes: 2 additions & 2 deletions src/databox/api_client.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand DownExpand Up@@ -88,7 +88,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.2.3/python'
self.user_agent = 'OpenAPI-Generator/2.3.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
6 changes: 3 additions & 3 deletions src/databox/configuration.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand DownExpand Up@@ -393,8 +393,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.3.15-sdk.5\n"\
"SDK Package Version: 2.2.3".\
"Version of the API: 0.3.15-sdk.6\n"\
"SDK Package Version: 2.3.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion src/databox/exceptions.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/models/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/models/api_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/models/push_data.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/models/push_data_attribute.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/models/state.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/databox/rest.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/pyproject.toml
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "databox"
version = "2.2.3"
version = "2.3.0"
description = "Static OpenAPI document of Push API resource"
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
license = "NoLicense"
Expand Down
4 changes: 2 additions & 2 deletions src/setup.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand All@@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "databox-api"
VERSION = "2.2.3"
VERSION = "2.3.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_api_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_default_api.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_push_data.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_push_data_attribute.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_state.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@

Push API resources Open API documentation

The version of the OpenAPI document: 0.3.15-sdk.5
The version of the OpenAPI document: 0.3.15-sdk.6
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down