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.
Files changed (96) hide show
  1. hyperpocket/auth/activeloop/token_handler.py +4 -0
  2. hyperpocket/auth/adobe/token_handler.py +4 -0
  3. hyperpocket/auth/affinity/token_handler.py +4 -0
  4. hyperpocket/auth/agentql/token_handler.py +4 -0
  5. hyperpocket/auth/ahrefs/token_handler.py +4 -0
  6. hyperpocket/auth/airtable/token_handler.py +4 -0
  7. hyperpocket/auth/alchemy/token_handler.py +4 -0
  8. hyperpocket/auth/altoviz/token_handler.py +4 -0
  9. hyperpocket/auth/bamboohr/token_handler.py +4 -0
  10. hyperpocket/auth/bitwarden/token_handler.py +4 -0
  11. hyperpocket/auth/brevo/README.md +1 -1
  12. hyperpocket/auth/brevo/token_handler.py +4 -0
  13. hyperpocket/auth/brex/token_handler.py +4 -0
  14. hyperpocket/auth/cal/token_handler.py +4 -0
  15. hyperpocket/auth/canvas/token_handler.py +4 -0
  16. hyperpocket/auth/clickup/token_handler.py +4 -0
  17. hyperpocket/auth/cloudflare/token_handler.py +4 -0
  18. hyperpocket/auth/dailybot/token_handler.py +4 -0
  19. hyperpocket/auth/datadog/token_handler.py +4 -0
  20. hyperpocket/auth/discordbot/README.md +0 -1
  21. hyperpocket/auth/discordbot/token_handler.py +4 -0
  22. hyperpocket/auth/elevenlabs/token_handler.py +4 -0
  23. hyperpocket/auth/exa/token_handler.py +4 -0
  24. hyperpocket/auth/facebook/oauth2_handler.py +4 -0
  25. hyperpocket/auth/finage/token_handler.py +4 -0
  26. hyperpocket/auth/happyrobot/token_handler.py +4 -0
  27. hyperpocket/auth/heygen/token_handler.py +4 -0
  28. hyperpocket/auth/klaviyo/token_handler.py +4 -0
  29. hyperpocket/auth/lever/token_handler.py +4 -0
  30. hyperpocket/auth/lever_sandbox/token_handler.py +4 -0
  31. hyperpocket/auth/listennotes/token_handler.py +4 -0
  32. hyperpocket/auth/mem0/token_handler.py +4 -0
  33. hyperpocket/auth/microsoft_clarity/token_handler.py +4 -0
  34. hyperpocket/auth/neon/token_handler.py +4 -0
  35. hyperpocket/auth/ngrok/token_handler.py +4 -0
  36. hyperpocket/auth/oncehub/token_handler.py +4 -0
  37. hyperpocket/auth/pagerduty/token_handler.py +4 -0
  38. hyperpocket/auth/pandadoc/token_handler.py +4 -0
  39. hyperpocket/auth/pipedrive/token_handler.py +4 -0
  40. hyperpocket/auth/posthog/token_handler.py +4 -0
  41. hyperpocket/auth/provider.py +1 -0
  42. hyperpocket/auth/ravenseotools/token_handler.py +4 -0
  43. hyperpocket/auth/semantic_scholar/token_handler.py +4 -0
  44. hyperpocket/auth/sendgrid/token_handler.py +4 -0
  45. hyperpocket/auth/stripe/token_handler.py +4 -0
  46. hyperpocket/auth/supabase/token_handler.py +4 -0
  47. hyperpocket/auth/tavily/token_handler.py +4 -0
  48. hyperpocket/auth/timekit/token_handler.py +4 -0
  49. hyperpocket/auth/trello/token_handler.py +4 -0
  50. hyperpocket/auth/wandb/token_handler.py +4 -0
  51. hyperpocket/auth/weaviate/context.py +12 -0
  52. hyperpocket/auth/weaviate/token_context.py +11 -0
  53. hyperpocket/auth/weaviate/token_handler.py +68 -0
  54. hyperpocket/auth/weaviate/token_schema.py +7 -0
  55. hyperpocket/auth/workiom/token_handler.py +4 -0
  56. hyperpocket/auth/zinc/token_handler.py +4 -0
  57. hyperpocket/cli/eject.py +2 -7
  58. hyperpocket/cli/pull.py +2 -7
  59. hyperpocket/config/settings.py +2 -1
  60. hyperpocket/pocket_core.py +41 -68
  61. hyperpocket/pocket_main.py +37 -16
  62. hyperpocket/repository/__init__.py +3 -4
  63. hyperpocket/repository/repository.py +6 -41
  64. hyperpocket/repository/tool_reference.py +28 -0
  65. hyperpocket/server/auth/weaviate.py +27 -0
  66. hyperpocket/server/server.py +127 -61
  67. hyperpocket/session/in_memory.py +13 -3
  68. hyperpocket/tool/__init__.py +0 -3
  69. hyperpocket/tool/dock/__init__.py +3 -0
  70. hyperpocket/tool/dock/dock.py +34 -0
  71. hyperpocket/tool/function/__init__.py +1 -1
  72. hyperpocket/tool/function/tool.py +62 -32
  73. hyperpocket/tool/tool.py +1 -9
  74. hyperpocket/tool_like.py +2 -1
  75. hyperpocket/util/generate_slug.py +4 -0
  76. hyperpocket/util/json_schema_to_model.py +5 -1
  77. {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/METADATA +4 -1
  78. {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/RECORD +81 -87
  79. hyperpocket/cli/sync.py +0 -17
  80. hyperpocket/repository/lock.py +0 -240
  81. hyperpocket/repository/lockfile.py +0 -62
  82. hyperpocket/server/tool/__init__.py +0 -10
  83. hyperpocket/server/tool/dto/script.py +0 -33
  84. hyperpocket/server/tool/wasm.py +0 -46
  85. hyperpocket/tool/wasm/README.md +0 -166
  86. hyperpocket/tool/wasm/__init__.py +0 -3
  87. hyperpocket/tool/wasm/browser.py +0 -63
  88. hyperpocket/tool/wasm/invoker.py +0 -41
  89. hyperpocket/tool/wasm/script.py +0 -134
  90. hyperpocket/tool/wasm/templates/__init__.py +0 -35
  91. hyperpocket/tool/wasm/templates/node.py +0 -87
  92. hyperpocket/tool/wasm/templates/python.py +0 -93
  93. hyperpocket/tool/wasm/tool.py +0 -163
  94. /hyperpocket/{server/tool/dto → auth/weaviate}/__init__.py +0 -0
  95. {hyperpocket-0.3.7.dist-info → hyperpocket-0.4.1.dist-info}/WHEEL +0 -0
  96. {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()
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Supported Authentication Types
4
4
 
5
- - OAuth2
5
+ - Token
6
6
 
7
7
  ## Additional Resources
8
8
 
@@ -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()
@@ -2,7 +2,6 @@
2
2
 
3
3
  ## Supported Authentication Types
4
4
 
5
- - OAuth2
6
5
  - Token
7
6
 
8
7
  ## How to Create a Token
@@ -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()
@@ -31,6 +31,10 @@ class FacebookOAuth2AuthHandler(AuthHandlerInterface):
31
31
  def provider_default() -> bool:
32
32
  return True
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 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()
@@ -72,6 +72,7 @@ class AuthProvider(Enum):
72
72
  APITOKEN = "apitoken"
73
73
  ZINC = "zinc"
74
74
  SEMANTIC_SCHOLAR = "semantic_scholar"
75
+ WEAVIATE = "weaviate"
75
76
 
76
77
  @classmethod
77
78
  def get_auth_provider(cls, auth_provider_name: str) -> "AuthProvider":
@@ -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
+ )