weave-python 0.28.1__py3-none-any.whl → 0.30.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +194 -98
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
  3. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
  4. weave/weaveapi/auth/v1/session_pb2.py +14 -6
  5. weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
  6. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
  7. weave/weaveapi/auth/v1/usage_pb2.py +18 -14
  8. weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
  9. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
  10. weave/weaveapi/auth/v1/user_pb2.py +60 -18
  11. weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
  12. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
  13. weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
  14. weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
  15. weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
  16. weave/weaveapi/generate/v1/generate_pb2.py +32 -6
  17. weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
  18. weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
  19. weave/weaveapi/generate/v1/service_pb2.py +52 -22
  20. weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
  21. weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
  22. weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
  23. weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
  24. weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
  25. weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
  26. weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
  27. weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
  28. weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
  29. weave/weaveapi/llmx/v1/model_pb2.py +56 -20
  30. weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
  31. weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
  32. weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
  33. weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
  34. weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
  35. weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
  36. weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
  37. weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
  38. weave/weaveapi/llmx/v1/service_pb2.py +228 -90
  39. weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
  40. weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
  41. weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
  42. weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
  43. weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
  44. weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
  45. weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
  46. weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
  47. weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
  48. weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
  49. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
  50. weave/weaveapi/payment/v1/service_pb2.py +264 -98
  51. weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
  52. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
  53. weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
  54. weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
  55. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
  56. weave/weaveapi/storage/v1/auth_pb2.py +6 -6
  57. weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
  58. weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
  59. weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
  60. weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
  61. weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
  62. weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
  63. weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
  64. weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
  65. weave/weaveapi/storage/v1/service_pb2.py +96 -36
  66. weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
  67. weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
  68. weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
  69. weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
  70. weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
  71. weave/weaveapi/storage/v1/storage_pb2.py +20 -6
  72. weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
  73. weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
  74. weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
  75. weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
  76. weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
  77. weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
  78. weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
  79. weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
  80. weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
  81. weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
  82. weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
  83. weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
  84. weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
  85. weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
  86. weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
  87. weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
  88. weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
  89. weave/weavesql/llmxdb/capabilities.py +487 -0
  90. weave/weavesql/llmxdb/changes.py +297 -0
  91. weave/weavesql/llmxdb/models.py +594 -0
  92. weave/weavesql/llmxdb/providers.py +348 -0
  93. weave/weavesql/llmxdb/scraper_runs.py +287 -0
  94. weave/weavesql/llmxdb/search.py +721 -0
  95. weave/weavesql/weavedb/dataset.py +75 -0
  96. weave/weavesql/weavedb/models.py +135 -0
  97. weave/weavesql/weavedb/relationships.py +72 -0
  98. weave/weavesql/weavedb/storage.py +113 -0
  99. weave/weavesql/weavedb/synthesizer.py +107 -0
  100. weave_python-0.30.3.dist-info/METADATA +52 -0
  101. weave_python-0.30.3.dist-info/RECORD +131 -0
  102. {weave_python-0.28.1.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
  103. weave_python-0.30.3.dist-info/licenses/LICENSE +120 -0
  104. weave_python-0.28.1.dist-info/METADATA +0 -6
  105. weave_python-0.28.1.dist-info/RECORD +0 -119
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: weaveapi/auth/v1/session.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.33.5
6
6
  """Generated protocol buffer code."""
7
7
 
8
8
  from google.protobuf import descriptor as _descriptor
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
12
12
  from google.protobuf.internal import builder as _builder
13
13
 
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/auth/v1/session.proto"
15
+ _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/auth/v1/session.proto"
16
16
  )
17
17
  # @@protoc_insertion_point(imports)
18
18
 
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
20
20
 
21
21
 
22
22
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
23
- b'\n\x1eweaveapi/auth/v1/session.proto\x12\x10weaveapi.auth.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\xc6\x03\n\x07Session\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12\x19\n\x08token_id\x18\x03 \x01(\tR\x07tokenId\x12\x1d\n\nip_address\x18\x04 \x01(\tR\tipAddress\x12\x1d\n\nuser_agent\x18\x05 \x01(\tR\tuserAgent\x12\x1a\n\x08location\x18\x06 \x01(\tR\x08location\x12\x1f\n\x0b\x64\x65vice_type\x18\x07 \x01(\tR\ndeviceType\x12\x1b\n\tis_active\x18\x08 \x01(\x08R\x08isActive\x12\x39\n\nexpires_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x44\n\x10last_activity_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0elastActivityAt\x12#\n\rrequest_count\x18\x0b \x01(\x05R\x0crequestCount\x12\x39\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAtB\xbc\x01\n\x14\x63om.weaveapi.auth.v1B\x0cSessionProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1b\x06proto3'
23
+ b'\n\x1eweaveapi/auth/v1/session.proto\x12\x10weaveapi.auth.v1\x1a!google/protobuf/go_features.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd2\x03\n\x07Session\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12\x19\n\x08token_id\x18\x03 \x01(\tR\x07tokenId\x12\x1d\n\nip_address\x18\x04 \x01(\tR\tipAddress\x12\x1d\n\nuser_agent\x18\x05 \x01(\tR\tuserAgent\x12\x1a\n\x08location\x18\x06 \x01(\tR\x08location\x12\x1f\n\x0b\x64\x65vice_type\x18\x07 \x01(\tR\ndeviceType\x12\x1b\n\tis_active\x18\x08 \x01(\x08R\x08isActive\x12=\n\nexpires_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\texpiresAt\x12H\n\x10last_activity_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\x0elastActivityAt\x12#\n\rrequest_count\x18\x0b \x01(\x05R\x0crequestCount\x12=\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tcreatedAtB\xc4\x01\n\x14\x63om.weaveapi.auth.v1B\x0cSessionProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
24
24
  )
25
25
 
26
26
  _globals = globals()
@@ -32,7 +32,15 @@ if not _descriptor._USE_C_DESCRIPTORS:
32
32
  _globals["DESCRIPTOR"]._loaded_options = None
33
33
  _globals[
34
34
  "DESCRIPTOR"
35
- ]._serialized_options = b"\n\024com.weaveapi.auth.v1B\014SessionProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1"
36
- _globals["_SESSION"]._serialized_start = 86
37
- _globals["_SESSION"]._serialized_end = 540
35
+ ]._serialized_options = b"\n\024com.weaveapi.auth.v1B\014SessionProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1\222\003\005\322>\002\020\003"
36
+ _globals["_SESSION"].fields_by_name["expires_at"]._loaded_options = None
37
+ _globals["_SESSION"].fields_by_name["expires_at"]._serialized_options = b"(\001"
38
+ _globals["_SESSION"].fields_by_name["last_activity_at"]._loaded_options = None
39
+ _globals["_SESSION"].fields_by_name[
40
+ "last_activity_at"
41
+ ]._serialized_options = b"(\001"
42
+ _globals["_SESSION"].fields_by_name["created_at"]._loaded_options = None
43
+ _globals["_SESSION"].fields_by_name["created_at"]._serialized_options = b"(\001"
44
+ _globals["_SESSION"]._serialized_start = 121
45
+ _globals["_SESSION"]._serialized_end = 587
38
46
  # @@protoc_insertion_point(module_scope)
@@ -3,109 +3,129 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import google.protobuf.descriptor
8
- import google.protobuf.message
9
- import google.protobuf.timestamp_pb2
10
- import typing
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
9
+ import builtins as _builtins
10
+ import sys
11
+ import typing as _typing
11
12
 
12
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
13
+ if sys.version_info >= (3, 10):
14
+ from typing import TypeAlias as _TypeAlias
15
+ else:
16
+ from typing_extensions import TypeAlias as _TypeAlias
13
17
 
14
- @typing.final
15
- class Session(google.protobuf.message.Message):
16
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
18
+ DESCRIPTOR: _descriptor.FileDescriptor
17
19
 
18
- ID_FIELD_NUMBER: builtins.int
19
- USER_ID_FIELD_NUMBER: builtins.int
20
- TOKEN_ID_FIELD_NUMBER: builtins.int
21
- IP_ADDRESS_FIELD_NUMBER: builtins.int
22
- USER_AGENT_FIELD_NUMBER: builtins.int
23
- LOCATION_FIELD_NUMBER: builtins.int
24
- DEVICE_TYPE_FIELD_NUMBER: builtins.int
25
- IS_ACTIVE_FIELD_NUMBER: builtins.int
26
- EXPIRES_AT_FIELD_NUMBER: builtins.int
27
- LAST_ACTIVITY_AT_FIELD_NUMBER: builtins.int
28
- REQUEST_COUNT_FIELD_NUMBER: builtins.int
29
- CREATED_AT_FIELD_NUMBER: builtins.int
30
- id: builtins.str
31
- user_id: builtins.str
32
- token_id: builtins.str
20
+ @_typing.final
21
+ class Session(_message.Message):
22
+ DESCRIPTOR: _descriptor.Descriptor
23
+
24
+ ID_FIELD_NUMBER: _builtins.int
25
+ USER_ID_FIELD_NUMBER: _builtins.int
26
+ TOKEN_ID_FIELD_NUMBER: _builtins.int
27
+ IP_ADDRESS_FIELD_NUMBER: _builtins.int
28
+ USER_AGENT_FIELD_NUMBER: _builtins.int
29
+ LOCATION_FIELD_NUMBER: _builtins.int
30
+ DEVICE_TYPE_FIELD_NUMBER: _builtins.int
31
+ IS_ACTIVE_FIELD_NUMBER: _builtins.int
32
+ EXPIRES_AT_FIELD_NUMBER: _builtins.int
33
+ LAST_ACTIVITY_AT_FIELD_NUMBER: _builtins.int
34
+ REQUEST_COUNT_FIELD_NUMBER: _builtins.int
35
+ CREATED_AT_FIELD_NUMBER: _builtins.int
36
+ id: _builtins.str
37
+ user_id: _builtins.str
38
+ token_id: _builtins.str
33
39
  """JWT token ID"""
34
- ip_address: builtins.str
40
+ ip_address: _builtins.str
35
41
  """Session details"""
36
- user_agent: builtins.str
37
- location: builtins.str
42
+ user_agent: _builtins.str
43
+ location: _builtins.str
38
44
  """Geo-location if available"""
39
- device_type: builtins.str
45
+ device_type: _builtins.str
40
46
  """desktop, mobile, tablet"""
41
- is_active: builtins.bool
47
+ is_active: _builtins.bool
42
48
  """Status"""
43
- request_count: builtins.int
44
- @property
45
- def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
46
- @property
47
- def last_activity_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
49
+ request_count: _builtins.int
50
+ @_builtins.property
51
+ def expires_at(self) -> _timestamp_pb2.Timestamp: ...
52
+ @_builtins.property
53
+ def last_activity_at(self) -> _timestamp_pb2.Timestamp:
48
54
  """Activity"""
49
55
 
50
- @property
51
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
56
+ @_builtins.property
57
+ def created_at(self) -> _timestamp_pb2.Timestamp:
52
58
  """Metadata"""
53
59
 
54
60
  def __init__(
55
61
  self,
56
62
  *,
57
- id: builtins.str = ...,
58
- user_id: builtins.str = ...,
59
- token_id: builtins.str = ...,
60
- ip_address: builtins.str = ...,
61
- user_agent: builtins.str = ...,
62
- location: builtins.str = ...,
63
- device_type: builtins.str = ...,
64
- is_active: builtins.bool = ...,
65
- expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
66
- last_activity_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
67
- request_count: builtins.int = ...,
68
- created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
69
- ) -> None: ...
70
- def HasField(
71
- self,
72
- field_name: typing.Literal[
73
- "created_at",
74
- b"created_at",
75
- "expires_at",
76
- b"expires_at",
77
- "last_activity_at",
78
- b"last_activity_at",
79
- ],
80
- ) -> builtins.bool: ...
81
- def ClearField(
82
- self,
83
- field_name: typing.Literal[
84
- "created_at",
85
- b"created_at",
86
- "device_type",
87
- b"device_type",
88
- "expires_at",
89
- b"expires_at",
90
- "id",
91
- b"id",
92
- "ip_address",
93
- b"ip_address",
94
- "is_active",
95
- b"is_active",
96
- "last_activity_at",
97
- b"last_activity_at",
98
- "location",
99
- b"location",
100
- "request_count",
101
- b"request_count",
102
- "token_id",
103
- b"token_id",
104
- "user_agent",
105
- b"user_agent",
106
- "user_id",
107
- b"user_id",
108
- ],
63
+ id: _builtins.str | None = ...,
64
+ user_id: _builtins.str | None = ...,
65
+ token_id: _builtins.str | None = ...,
66
+ ip_address: _builtins.str | None = ...,
67
+ user_agent: _builtins.str | None = ...,
68
+ location: _builtins.str | None = ...,
69
+ device_type: _builtins.str | None = ...,
70
+ is_active: _builtins.bool | None = ...,
71
+ expires_at: _timestamp_pb2.Timestamp | None = ...,
72
+ last_activity_at: _timestamp_pb2.Timestamp | None = ...,
73
+ request_count: _builtins.int | None = ...,
74
+ created_at: _timestamp_pb2.Timestamp | None = ...,
109
75
  ) -> None: ...
76
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
77
+ "created_at",
78
+ b"created_at",
79
+ "device_type",
80
+ b"device_type",
81
+ "expires_at",
82
+ b"expires_at",
83
+ "id",
84
+ b"id",
85
+ "ip_address",
86
+ b"ip_address",
87
+ "is_active",
88
+ b"is_active",
89
+ "last_activity_at",
90
+ b"last_activity_at",
91
+ "location",
92
+ b"location",
93
+ "request_count",
94
+ b"request_count",
95
+ "token_id",
96
+ b"token_id",
97
+ "user_agent",
98
+ b"user_agent",
99
+ "user_id",
100
+ b"user_id",
101
+ ] # noqa: Y015
102
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
103
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
104
+ "created_at",
105
+ b"created_at",
106
+ "device_type",
107
+ b"device_type",
108
+ "expires_at",
109
+ b"expires_at",
110
+ "id",
111
+ b"id",
112
+ "ip_address",
113
+ b"ip_address",
114
+ "is_active",
115
+ b"is_active",
116
+ "last_activity_at",
117
+ b"last_activity_at",
118
+ "location",
119
+ b"location",
120
+ "request_count",
121
+ b"request_count",
122
+ "token_id",
123
+ b"token_id",
124
+ "user_agent",
125
+ b"user_agent",
126
+ "user_id",
127
+ b"user_id",
128
+ ] # noqa: Y015
129
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
110
130
 
111
- global___Session = Session
131
+ Global___Session: _TypeAlias = Session # noqa: Y015
@@ -3,18 +3,19 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ import abc as _abc_1
9
+ import grpc as _grpc
10
+ import typing as _typing
11
11
 
12
- _T = typing.TypeVar("_T")
12
+ _T = _typing.TypeVar("_T")
13
13
 
14
14
  class _MaybeAsyncIterator(
15
- collections.abc.AsyncIterator[_T],
16
- collections.abc.Iterator[_T],
17
- metaclass=abc.ABCMeta,
15
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
18
16
  ): ...
19
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
20
18
  ...
19
+
20
+ GRPC_GENERATED_VERSION: str
21
+ GRPC_VERSION: str
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: weaveapi/auth/v1/usage.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.33.5
6
6
  """Generated protocol buffer code."""
7
7
 
8
8
  from google.protobuf import descriptor as _descriptor
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
12
12
  from google.protobuf.internal import builder as _builder
13
13
 
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/auth/v1/usage.proto"
15
+ _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/auth/v1/usage.proto"
16
16
  )
17
17
  # @@protoc_insertion_point(imports)
18
18
 
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
20
20
 
21
21
 
22
22
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
23
- b'\n\x1cweaveapi/auth/v1/usage.proto\x12\x10weaveapi.auth.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\xac\x08\n\nUsageStats\x12\x16\n\x06period\x18\x01 \x01(\tR\x06period\x12\x39\n\nstart_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartDate\x12\x35\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndDate\x12%\n\x0etotal_requests\x18\x04 \x01(\x03R\rtotalRequests\x12/\n\x13successful_requests\x18\x05 \x01(\x03R\x12successfulRequests\x12\'\n\x0f\x66\x61iled_requests\x18\x06 \x01(\x03R\x0e\x66\x61iledRequests\x12\x32\n\x15rate_limited_requests\x18\x07 \x01(\x03R\x13rateLimitedRequests\x12\x66\n\x14requests_by_endpoint\x18\x08 \x03(\x0b\x32\x34.weaveapi.auth.v1.UsageStats.RequestsByEndpointEntryR\x12requestsByEndpoint\x12W\n\x0frequests_by_day\x18\t \x03(\x0b\x32/.weaveapi.auth.v1.UsageStats.RequestsByDayEntryR\rrequestsByDay\x12\x61\n\x13requests_by_api_key\x18\n \x03(\x0b\x32\x32.weaveapi.auth.v1.UsageStats.RequestsByApiKeyEntryR\x10requestsByApiKey\x12/\n\x14\x61vg_response_time_ms\x18\x0b \x01(\x01R\x11\x61vgResponseTimeMs\x12/\n\x14p95_response_time_ms\x18\x0c \x01(\x01R\x11p95ResponseTimeMs\x12/\n\x14p99_response_time_ms\x18\r \x01(\x01R\x11p99ResponseTimeMs\x12(\n\x10total_bytes_sent\x18\x0e \x01(\x03R\x0etotalBytesSent\x12\x30\n\x14total_bytes_received\x18\x0f \x01(\x03R\x12totalBytesReceived\x1a\x45\n\x17RequestsByEndpointEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a@\n\x12RequestsByDayEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a\x43\n\x15RequestsByApiKeyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01"\xcc\x02\n\x0bUsageLimits\x12\x12\n\x04tier\x18\x01 \x01(\tR\x04tier\x12*\n\x11requests_per_hour\x18\x02 \x01(\x03R\x0frequestsPerHour\x12(\n\x10requests_per_day\x18\x03 \x01(\x03R\x0erequestsPerDay\x12,\n\x12requests_per_month\x18\x04 \x01(\x03R\x10requestsPerMonth\x12(\n\x10\x61pi_keys_allowed\x18\x05 \x01(\x05R\x0e\x61piKeysAllowed\x12/\n\x13\x63oncurrent_requests\x18\x06 \x01(\x05R\x12\x63oncurrentRequests\x12%\n\x0ewebhook_access\x18\x07 \x01(\x08R\rwebhookAccess\x12#\n\rexport_access\x18\x08 \x01(\x08R\x0c\x65xportAccessB\xba\x01\n\x14\x63om.weaveapi.auth.v1B\nUsageProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1b\x06proto3'
23
+ b'\n\x1cweaveapi/auth/v1/usage.proto\x12\x10weaveapi.auth.v1\x1a!google/protobuf/go_features.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xb4\x08\n\nUsageStats\x12\x16\n\x06period\x18\x01 \x01(\tR\x06period\x12=\n\nstart_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\tstartDate\x12\x39\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02(\x01R\x07\x65ndDate\x12%\n\x0etotal_requests\x18\x04 \x01(\x03R\rtotalRequests\x12/\n\x13successful_requests\x18\x05 \x01(\x03R\x12successfulRequests\x12\'\n\x0f\x66\x61iled_requests\x18\x06 \x01(\x03R\x0e\x66\x61iledRequests\x12\x32\n\x15rate_limited_requests\x18\x07 \x01(\x03R\x13rateLimitedRequests\x12\x66\n\x14requests_by_endpoint\x18\x08 \x03(\x0b\x32\x34.weaveapi.auth.v1.UsageStats.RequestsByEndpointEntryR\x12requestsByEndpoint\x12W\n\x0frequests_by_day\x18\t \x03(\x0b\x32/.weaveapi.auth.v1.UsageStats.RequestsByDayEntryR\rrequestsByDay\x12\x61\n\x13requests_by_api_key\x18\n \x03(\x0b\x32\x32.weaveapi.auth.v1.UsageStats.RequestsByApiKeyEntryR\x10requestsByApiKey\x12/\n\x14\x61vg_response_time_ms\x18\x0b \x01(\x01R\x11\x61vgResponseTimeMs\x12/\n\x14p95_response_time_ms\x18\x0c \x01(\x01R\x11p95ResponseTimeMs\x12/\n\x14p99_response_time_ms\x18\r \x01(\x01R\x11p99ResponseTimeMs\x12(\n\x10total_bytes_sent\x18\x0e \x01(\x03R\x0etotalBytesSent\x12\x30\n\x14total_bytes_received\x18\x0f \x01(\x03R\x12totalBytesReceived\x1a\x45\n\x17RequestsByEndpointEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a@\n\x12RequestsByDayEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01\x1a\x43\n\x15RequestsByApiKeyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value:\x02\x38\x01"\xcc\x02\n\x0bUsageLimits\x12\x12\n\x04tier\x18\x01 \x01(\tR\x04tier\x12*\n\x11requests_per_hour\x18\x02 \x01(\x03R\x0frequestsPerHour\x12(\n\x10requests_per_day\x18\x03 \x01(\x03R\x0erequestsPerDay\x12,\n\x12requests_per_month\x18\x04 \x01(\x03R\x10requestsPerMonth\x12(\n\x10\x61pi_keys_allowed\x18\x05 \x01(\x05R\x0e\x61piKeysAllowed\x12/\n\x13\x63oncurrent_requests\x18\x06 \x01(\x05R\x12\x63oncurrentRequests\x12%\n\x0ewebhook_access\x18\x07 \x01(\x08R\rwebhookAccess\x12#\n\rexport_access\x18\x08 \x01(\x08R\x0c\x65xportAccessB\xc2\x01\n\x14\x63om.weaveapi.auth.v1B\nUsageProtoP\x01Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\xa2\x02\x03WAX\xaa\x02\x10Weaveapi.Auth.V1\xca\x02\x10Weaveapi\\Auth\\V1\xe2\x02\x1cWeaveapi\\Auth\\V1\\GPBMetadata\xea\x02\x12Weaveapi::Auth::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
24
24
  )
25
25
 
26
26
  _globals = globals()
@@ -32,21 +32,25 @@ if not _descriptor._USE_C_DESCRIPTORS:
32
32
  _globals["DESCRIPTOR"]._loaded_options = None
33
33
  _globals[
34
34
  "DESCRIPTOR"
35
- ]._serialized_options = b"\n\024com.weaveapi.auth.v1B\nUsageProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1"
35
+ ]._serialized_options = b"\n\024com.weaveapi.auth.v1B\nUsageProtoP\001Z4github.com/weave-labs/weave-go/weaveapi/auth/v1;auth\242\002\003WAX\252\002\020Weaveapi.Auth.V1\312\002\020Weaveapi\\Auth\\V1\342\002\034Weaveapi\\Auth\\V1\\GPBMetadata\352\002\022Weaveapi::Auth::V1\222\003\005\322>\002\020\003"
36
36
  _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._loaded_options = None
37
37
  _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_options = b"8\001"
38
38
  _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._loaded_options = None
39
39
  _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_options = b"8\001"
40
40
  _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._loaded_options = None
41
41
  _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_options = b"8\001"
42
- _globals["_USAGESTATS"]._serialized_start = 84
43
- _globals["_USAGESTATS"]._serialized_end = 1152
44
- _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_start = 948
45
- _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_end = 1017
46
- _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_start = 1019
47
- _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_end = 1083
48
- _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_start = 1085
49
- _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_end = 1152
50
- _globals["_USAGELIMITS"]._serialized_start = 1155
51
- _globals["_USAGELIMITS"]._serialized_end = 1487
42
+ _globals["_USAGESTATS"].fields_by_name["start_date"]._loaded_options = None
43
+ _globals["_USAGESTATS"].fields_by_name["start_date"]._serialized_options = b"(\001"
44
+ _globals["_USAGESTATS"].fields_by_name["end_date"]._loaded_options = None
45
+ _globals["_USAGESTATS"].fields_by_name["end_date"]._serialized_options = b"(\001"
46
+ _globals["_USAGESTATS"]._serialized_start = 119
47
+ _globals["_USAGESTATS"]._serialized_end = 1195
48
+ _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_start = 991
49
+ _globals["_USAGESTATS_REQUESTSBYENDPOINTENTRY"]._serialized_end = 1060
50
+ _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_start = 1062
51
+ _globals["_USAGESTATS_REQUESTSBYDAYENTRY"]._serialized_end = 1126
52
+ _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_start = 1128
53
+ _globals["_USAGESTATS_REQUESTSBYAPIKEYENTRY"]._serialized_end = 1195
54
+ _globals["_USAGELIMITS"]._serialized_start = 1198
55
+ _globals["_USAGELIMITS"]._serialized_end = 1530
52
56
  # @@protoc_insertion_point(module_scope)