hyperpocket 0.3.7__py3-none-any.whl → 0.4.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- hyperpocket/auth/activeloop/token_handler.py +4 -0
- hyperpocket/auth/adobe/token_handler.py +4 -0
- hyperpocket/auth/affinity/token_handler.py +4 -0
- hyperpocket/auth/agentql/token_handler.py +4 -0
- hyperpocket/auth/ahrefs/token_handler.py +4 -0
- hyperpocket/auth/airtable/token_handler.py +4 -0
- hyperpocket/auth/alchemy/token_handler.py +4 -0
- hyperpocket/auth/altoviz/token_handler.py +4 -0
- hyperpocket/auth/bamboohr/token_handler.py +4 -0
- hyperpocket/auth/bitwarden/token_handler.py +4 -0
- hyperpocket/auth/brevo/README.md +1 -1
- hyperpocket/auth/brevo/token_handler.py +4 -0
- hyperpocket/auth/brex/token_handler.py +4 -0
- hyperpocket/auth/cal/token_handler.py +4 -0
- hyperpocket/auth/canvas/token_handler.py +4 -0
- hyperpocket/auth/clickup/token_handler.py +4 -0
- hyperpocket/auth/cloudflare/token_handler.py +4 -0
- hyperpocket/auth/dailybot/token_handler.py +4 -0
- hyperpocket/auth/datadog/token_handler.py +4 -0
- hyperpocket/auth/discordbot/README.md +0 -1
- hyperpocket/auth/discordbot/token_handler.py +4 -0
- hyperpocket/auth/elevenlabs/token_handler.py +4 -0
- hyperpocket/auth/exa/token_handler.py +4 -0
- hyperpocket/auth/facebook/oauth2_handler.py +4 -0
- hyperpocket/auth/finage/token_handler.py +4 -0
- hyperpocket/auth/happyrobot/token_handler.py +4 -0
- hyperpocket/auth/heygen/token_handler.py +4 -0
- hyperpocket/auth/klaviyo/token_handler.py +4 -0
- hyperpocket/auth/lever/token_handler.py +4 -0
- hyperpocket/auth/lever_sandbox/token_handler.py +4 -0
- hyperpocket/auth/listennotes/token_handler.py +4 -0
- hyperpocket/auth/mem0/token_handler.py +4 -0
- hyperpocket/auth/microsoft_clarity/token_handler.py +4 -0
- hyperpocket/auth/neon/token_handler.py +4 -0
- hyperpocket/auth/ngrok/token_handler.py +4 -0
- hyperpocket/auth/oncehub/token_handler.py +4 -0
- hyperpocket/auth/pagerduty/token_handler.py +4 -0
- hyperpocket/auth/pandadoc/token_handler.py +4 -0
- hyperpocket/auth/pipedrive/token_handler.py +4 -0
- hyperpocket/auth/posthog/token_handler.py +4 -0
- hyperpocket/auth/provider.py +1 -0
- hyperpocket/auth/ravenseotools/token_handler.py +4 -0
- hyperpocket/auth/semantic_scholar/token_handler.py +4 -0
- hyperpocket/auth/sendgrid/token_handler.py +4 -0
- hyperpocket/auth/stripe/token_handler.py +4 -0
- hyperpocket/auth/supabase/token_handler.py +4 -0
- hyperpocket/auth/tavily/token_handler.py +4 -0
- hyperpocket/auth/timekit/token_handler.py +4 -0
- hyperpocket/auth/trello/token_handler.py +4 -0
- hyperpocket/auth/wandb/token_handler.py +4 -0
- hyperpocket/auth/weaviate/context.py +12 -0
- hyperpocket/auth/weaviate/token_context.py +11 -0
- hyperpocket/auth/weaviate/token_handler.py +68 -0
- hyperpocket/auth/weaviate/token_schema.py +7 -0
- hyperpocket/auth/workiom/token_handler.py +4 -0
- hyperpocket/auth/zinc/token_handler.py +4 -0
- hyperpocket/cli/eject.py +2 -7
- hyperpocket/cli/pull.py +2 -7
- hyperpocket/config/settings.py +2 -1
- hyperpocket/pocket_core.py +41 -68
- hyperpocket/pocket_main.py +37 -16
- hyperpocket/repository/__init__.py +3 -4
- hyperpocket/repository/repository.py +6 -41
- hyperpocket/repository/tool_reference.py +28 -0
- hyperpocket/server/auth/weaviate.py +27 -0
- hyperpocket/server/server.py +127 -61
- hyperpocket/session/in_memory.py +13 -3
- hyperpocket/tool/__init__.py +0 -3
- hyperpocket/tool/dock/__init__.py +3 -0
- hyperpocket/tool/dock/dock.py +34 -0
- hyperpocket/tool/function/__init__.py +1 -1
- hyperpocket/tool/function/tool.py +62 -32
- hyperpocket/tool/tool.py +1 -9
- hyperpocket/tool_like.py +2 -1
- hyperpocket/util/generate_slug.py +4 -0
- hyperpocket/util/json_schema_to_model.py +5 -1
- {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/METADATA +4 -1
- {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/RECORD +81 -87
- hyperpocket/cli/sync.py +0 -17
- hyperpocket/repository/lock.py +0 -240
- hyperpocket/repository/lockfile.py +0 -62
- hyperpocket/server/tool/__init__.py +0 -10
- hyperpocket/server/tool/dto/script.py +0 -33
- hyperpocket/server/tool/wasm.py +0 -46
- hyperpocket/tool/wasm/README.md +0 -166
- hyperpocket/tool/wasm/__init__.py +0 -3
- hyperpocket/tool/wasm/browser.py +0 -63
- hyperpocket/tool/wasm/invoker.py +0 -41
- hyperpocket/tool/wasm/script.py +0 -134
- hyperpocket/tool/wasm/templates/__init__.py +0 -35
- hyperpocket/tool/wasm/templates/node.py +0 -87
- hyperpocket/tool/wasm/templates/python.py +0 -93
- hyperpocket/tool/wasm/tool.py +0 -163
- /hyperpocket/{server/tool/dto → auth/weaviate}/__init__.py +0 -0
- {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/WHEEL +0 -0
- {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/entry_points.txt +0 -0
@@ -29,6 +29,10 @@ class ActiveloopTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.ACTIVELOOP
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class AdobeTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.ADOBE
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class AffinityTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.AFFINITY
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class AgentqlTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.AGENTQL
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class AhrefsTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.AHREFS
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class AirtableTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.AIRTABLE
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class AlchemyTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.ALCHEMY
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class AltovizTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.ALTOVIZ
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class BamboohrTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.BAMBOOHR
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class BitwardenTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.BITWARDEN
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
hyperpocket/auth/brevo/README.md
CHANGED
@@ -26,6 +26,10 @@ class BrevoTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.BREVO
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -26,6 +26,10 @@ class BrexTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.BREX
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -24,6 +24,10 @@ class CalTokenAuthHandler(AuthHandlerInterface):
|
|
24
24
|
def provider() -> AuthProvider:
|
25
25
|
return AuthProvider.CAL
|
26
26
|
|
27
|
+
@staticmethod
|
28
|
+
def provider_default() -> bool:
|
29
|
+
return True
|
30
|
+
|
27
31
|
@staticmethod
|
28
32
|
def recommended_scopes() -> set[str]:
|
29
33
|
return set()
|
@@ -26,6 +26,10 @@ class CanvasTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.CANVAS
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class ClickupTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.CLICKUP
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class CloudflareTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.CLOUDFLARE
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class DailybotTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.DAILYBOT
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class DatadogTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.DATADOG
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class DiscordbotTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.DISCORDBOT
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class ElevenlabsTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.ELEVENLABS
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -24,6 +24,10 @@ class ExaTokenAuthHandler(AuthHandlerInterface):
|
|
24
24
|
def provider() -> AuthProvider:
|
25
25
|
return AuthProvider.EXA
|
26
26
|
|
27
|
+
@staticmethod
|
28
|
+
def provider_default() -> bool:
|
29
|
+
return True
|
30
|
+
|
27
31
|
@staticmethod
|
28
32
|
def recommended_scopes() -> set[str]:
|
29
33
|
return set()
|
@@ -26,6 +26,10 @@ class FinageTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.FINAGE
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class HappyrobotTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.HAPPYROBOT
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class HeygenTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.HEYGEN
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class KlaviyoTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.KLAVIYO
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class LeverTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.LEVER
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class LeverSandboxTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.LEVER_SANDBOX
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class ListennotesTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.LISTENNOTES
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class Mem0TokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.MEM0
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -31,6 +31,10 @@ class MicrosoftClarityTokenAuthHandler(AuthHandlerInterface):
|
|
31
31
|
def provider() -> AuthProvider:
|
32
32
|
return AuthProvider.MICROSOFT_CLARITY
|
33
33
|
|
34
|
+
@staticmethod
|
35
|
+
def provider_default() -> bool:
|
36
|
+
return True
|
37
|
+
|
34
38
|
@staticmethod
|
35
39
|
def recommended_scopes() -> set[str]:
|
36
40
|
return set()
|
@@ -26,6 +26,10 @@ class NeonTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.NEON
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -26,6 +26,10 @@ class NgrokTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.NGROK
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class OncehubTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.ONCEHUB
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class PagerdutyTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.PAGERDUTY
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class PandadocTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.PANDADOC
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class PipedriveTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.PIPEDRIVE
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -29,6 +29,10 @@ class PosthogTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.POSTHOG
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
hyperpocket/auth/provider.py
CHANGED
@@ -29,6 +29,10 @@ class RavenseotoolsTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.RAVENSEOTOOLS
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -21,6 +21,10 @@ class SemanticScholarTokenAuthHandler(AuthHandlerInterface):
|
|
21
21
|
def provider() -> AuthProvider:
|
22
22
|
return AuthProvider.SEMANTIC_SCHOLAR
|
23
23
|
|
24
|
+
@staticmethod
|
25
|
+
def provider_default() -> bool:
|
26
|
+
return True
|
27
|
+
|
24
28
|
@staticmethod
|
25
29
|
def recommended_scopes() -> set[str]:
|
26
30
|
return set()
|
@@ -29,6 +29,10 @@ class SendgridTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.SENDGRID
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class StripeTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.STRIPE
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class SupabaseTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.SUPABASE
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class TavilyTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.TAVILY
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -29,6 +29,10 @@ class TimekitTokenAuthHandler(AuthHandlerInterface):
|
|
29
29
|
def provider() -> AuthProvider:
|
30
30
|
return AuthProvider.TIMEKIT
|
31
31
|
|
32
|
+
@staticmethod
|
33
|
+
def provider_default() -> bool:
|
34
|
+
return True
|
35
|
+
|
32
36
|
@staticmethod
|
33
37
|
def recommended_scopes() -> set[str]:
|
34
38
|
return set()
|
@@ -26,6 +26,10 @@ class TrelloTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.TRELLO
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -26,6 +26,10 @@ class WandbTokenAuthHandler(AuthHandlerInterface):
|
|
26
26
|
def provider() -> AuthProvider:
|
27
27
|
return AuthProvider.WANDB
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
def provider_default() -> bool:
|
31
|
+
return True
|
32
|
+
|
29
33
|
@staticmethod
|
30
34
|
def recommended_scopes() -> set[str]:
|
31
35
|
return set()
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
from hyperpocket.auth.context import AuthContext
|
3
|
+
class WeaviateAuthContext(AuthContext):
|
4
|
+
_ACCESS_TOKEN_KEY: str = "WEAVIATE_TOKEN"
|
5
|
+
def to_dict(self) -> dict[str, str]:
|
6
|
+
return {
|
7
|
+
self._ACCESS_TOKEN_KEY: self.access_token,
|
8
|
+
}
|
9
|
+
def to_profiled_dict(self, profile: str) -> dict[str, str]:
|
10
|
+
return {
|
11
|
+
f"{profile.upper()}_{self._ACCESS_TOKEN_KEY}": self.access_token,
|
12
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from hyperpocket.auth.weaviate.context import WeaviateAuthContext
|
2
|
+
from hyperpocket.auth.weaviate.token_schema import WeaviateTokenResponse
|
3
|
+
class WeaviateTokenAuthContext(WeaviateAuthContext):
|
4
|
+
@classmethod
|
5
|
+
def from_weaviate_token_response(cls, response: WeaviateTokenResponse):
|
6
|
+
description = f'Weaviate Token Context logged in'
|
7
|
+
return cls(
|
8
|
+
access_token=response.access_token,
|
9
|
+
description=description,
|
10
|
+
expires_at=None
|
11
|
+
)
|