@spine-event-engine/proto 2.0.0-snapshot.25 → 2.0.0-snapshot.28

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 (83) hide show
  1. package/README.md +18 -0
  2. package/REFERENCE.md +13 -1
  3. package/dist/generated/proto-module.d.ts +7 -1
  4. package/dist/generated/proto-module.d.ts.map +1 -1
  5. package/dist/generated/proto-module.js +93 -57
  6. package/dist/generated/proto-module.js.map +1 -1
  7. package/dist/generated/spine/auth/authenticated_principal_pb.d.ts +61 -0
  8. package/dist/generated/spine/auth/authenticated_principal_pb.d.ts.map +1 -0
  9. package/dist/generated/spine/auth/authenticated_principal_pb.js +24 -0
  10. package/dist/generated/spine/auth/authenticated_principal_pb.js.map +1 -0
  11. package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts +7 -0
  12. package/dist/generated/spine/auth/authenticated_subscription_pb.d.ts.map +1 -1
  13. package/dist/generated/spine/auth/authenticated_subscription_pb.js +2 -1
  14. package/dist/generated/spine/auth/authenticated_subscription_pb.js.map +1 -1
  15. package/dist/generated/spine/auth/oidc_flow_pb.d.ts +139 -0
  16. package/dist/generated/spine/auth/oidc_flow_pb.d.ts.map +1 -0
  17. package/dist/generated/spine/auth/oidc_flow_pb.js +26 -0
  18. package/dist/generated/spine/auth/oidc_flow_pb.js.map +1 -0
  19. package/dist/generated/spine/auth/opaque_session_pb.d.ts +53 -0
  20. package/dist/generated/spine/auth/opaque_session_pb.d.ts.map +1 -0
  21. package/dist/generated/spine/auth/opaque_session_pb.js +20 -0
  22. package/dist/generated/spine/auth/opaque_session_pb.js.map +1 -0
  23. package/dist/generated/spine/auth/token_revocation_pb.d.ts +58 -0
  24. package/dist/generated/spine/auth/token_revocation_pb.d.ts.map +1 -0
  25. package/dist/generated/spine/auth/token_revocation_pb.js +19 -0
  26. package/dist/generated/spine/auth/token_revocation_pb.js.map +1 -0
  27. package/dist/generated/spine/client/app_query_pb.d.ts +75 -0
  28. package/dist/generated/spine/client/app_query_pb.d.ts.map +1 -0
  29. package/dist/generated/spine/client/app_query_pb.js +28 -0
  30. package/dist/generated/spine/client/app_query_pb.js.map +1 -0
  31. package/dist/generated/spine/client/filters_pb.d.ts.map +1 -1
  32. package/dist/generated/spine/client/filters_pb.js +1 -1
  33. package/dist/generated/spine/client/filters_pb.js.map +1 -1
  34. package/dist/generated/spine/client/query_service_pb.d.ts +11 -0
  35. package/dist/generated/spine/client/query_service_pb.d.ts.map +1 -1
  36. package/dist/generated/spine/client/query_service_pb.js +2 -1
  37. package/dist/generated/spine/client/query_service_pb.js.map +1 -1
  38. package/dist/generated/spine/client/subscription_record_pb.d.ts +46 -1
  39. package/dist/generated/spine/client/subscription_record_pb.d.ts.map +1 -1
  40. package/dist/generated/spine/client/subscription_record_pb.js +9 -3
  41. package/dist/generated/spine/client/subscription_record_pb.js.map +1 -1
  42. package/dist/generated/spine/server/tenant/tenant_pb.d.ts +41 -0
  43. package/dist/generated/spine/server/tenant/tenant_pb.d.ts.map +1 -0
  44. package/dist/generated/spine/server/tenant/tenant_pb.js +20 -0
  45. package/dist/generated/spine/server/tenant/tenant_pb.js.map +1 -0
  46. package/dist/src/auth/index.d.ts +4 -0
  47. package/dist/src/auth/index.d.ts.map +1 -1
  48. package/dist/src/auth/index.js +4 -0
  49. package/dist/src/auth/index.js.map +1 -1
  50. package/dist/src/client/index.d.ts +1 -0
  51. package/dist/src/client/index.d.ts.map +1 -1
  52. package/dist/src/client/index.js +1 -0
  53. package/dist/src/client/index.js.map +1 -1
  54. package/dist/src/index.d.ts +10 -1
  55. package/dist/src/index.d.ts.map +1 -1
  56. package/dist/src/index.js +9 -0
  57. package/dist/src/index.js.map +1 -1
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/generated/.spine-proto-generation.json +1 -1
  60. package/generated/proto-module.ts +93 -57
  61. package/generated/spine/auth/authenticated_principal_pb.ts +76 -0
  62. package/generated/spine/auth/authenticated_subscription_pb.ts +10 -1
  63. package/generated/spine/auth/oidc_flow_pb.ts +171 -0
  64. package/generated/spine/auth/opaque_session_pb.ts +71 -0
  65. package/generated/spine/auth/token_revocation_pb.ts +76 -0
  66. package/generated/spine/client/app_query_pb.ts +98 -0
  67. package/generated/spine/client/filters_pb.ts +1 -1
  68. package/generated/spine/client/query_service_pb.ts +13 -1
  69. package/generated/spine/client/subscription_record_pb.ts +50 -4
  70. package/generated/spine/server/tenant/tenant_pb.ts +57 -0
  71. package/package.json +1 -1
  72. package/proto/spine/auth/authenticated_principal.proto +36 -0
  73. package/proto/spine/auth/authenticated_subscription.proto +16 -7
  74. package/proto/spine/auth/oidc_flow.proto +77 -0
  75. package/proto/spine/auth/opaque_session.proto +38 -0
  76. package/proto/spine/auth/token_revocation.proto +40 -0
  77. package/proto/spine/client/app_query.proto +55 -0
  78. package/proto/spine/client/filters.proto +1 -1
  79. package/proto/spine/client/query_service.proto +4 -0
  80. package/proto/spine/client/subscription_record.proto +37 -17
  81. package/proto/spine/server/tenant/tenant.proto +31 -0
  82. package/proto/spine-sources.json +38 -6
  83. package/spine-proto-manifest.json +14 -2
@@ -15,6 +15,8 @@ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
15
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
16
  import type { Subscription, SubscriptionId } from "../client/subscription_pb.js";
17
17
  import { file_spine_client_subscription } from "../client/subscription_pb.js";
18
+ import type { SubscriptionReaderBinding } from "../client/subscription_record_pb.js";
19
+ import { file_spine_client_subscription_record } from "../client/subscription_record_pb.js";
18
20
  import { file_spine_options } from "../options_pb.js";
19
21
  import type { Message } from "@bufbuild/protobuf";
20
22
 
@@ -23,7 +25,7 @@ import type { Message } from "@bufbuild/protobuf";
23
25
  * Generated from Proto: spine/auth/authenticated_subscription.proto.
24
26
  */
25
27
  export const file_spine_auth_authenticated_subscription: GenFile = /*@__PURE__*/
26
- fileDesc("CitzcGluZS9hdXRoL2F1dGhlbnRpY2F0ZWRfc3Vic2NyaXB0aW9uLnByb3RvEgpzcGluZS5hdXRoIsoBCiBHYXRld2F5QXV0aGVudGljYXRlZFN1YnNjcmlwdGlvbhIyCgJpZBgBIAEoCzIcLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25JZEIIoIUkAeiFJAESOgoMc3Vic2NyaXB0aW9uGAIgASgLMhouc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbkIIoIUkAeiFJAESNgoMd2hlbl9leHBpcmVzGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIEoIUkAUITUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_google_protobuf_timestamp, file_spine_client_subscription, file_spine_options]);
28
+ fileDesc("CitzcGluZS9hdXRoL2F1dGhlbnRpY2F0ZWRfc3Vic2NyaXB0aW9uLnByb3RvEgpzcGluZS5hdXRoIoMCCiBHYXRld2F5QXV0aGVudGljYXRlZFN1YnNjcmlwdGlvbhIyCgJpZBgBIAEoCzIcLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25JZEIIoIUkAeiFJAESOgoMc3Vic2NyaXB0aW9uGAIgASgLMhouc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbkIIoIUkAeiFJAESNgoMd2hlbl9leHBpcmVzGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIEoIUkARI3CgZyZWFkZXIYBCABKAsyJy5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uUmVhZGVyQmluZGluZ0ITUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_google_protobuf_timestamp, file_spine_client_subscription, file_spine_client_subscription_record, file_spine_options]);
27
29
 
28
30
  /**
29
31
  * A subscription accepted through an authenticated Gateway request.
@@ -52,6 +54,13 @@ export type GatewayAuthenticatedSubscription = Message<"spine.auth.GatewayAuthen
52
54
  * @generated from field: google.protobuf.Timestamp when_expires = 3;
53
55
  */
54
56
  whenExpires?: Timestamp | undefined;
57
+
58
+ /**
59
+ * Verified reader identity required to reuse this subscription.
60
+ *
61
+ * @generated from field: spine.client.SubscriptionReaderBinding reader = 4;
62
+ */
63
+ reader?: SubscriptionReaderBinding | undefined;
55
64
  };
56
65
 
57
66
  /**
@@ -0,0 +1,171 @@
1
+ /*
2
+ * Generated by Spine TypeScript. Do not edit manually.
3
+ * Source Proto: spine/auth/oidc_flow.proto
4
+ */
5
+
6
+
7
+
8
+ // @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
9
+ // @generated from file spine/auth/oidc_flow.proto (package spine.auth, syntax proto3)
10
+ /* eslint-disable */
11
+
12
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
+ import type { AuthenticatedPrincipal } from "./authenticated_principal_pb.js";
17
+ import { file_spine_auth_authenticated_principal } from "./authenticated_principal_pb.js";
18
+ import { file_spine_options } from "../options_pb.js";
19
+ import type { Message } from "@bufbuild/protobuf";
20
+
21
+ /**
22
+ * Describes the file spine/auth/oidc_flow.proto.
23
+ * Generated from Proto: spine/auth/oidc_flow.proto.
24
+ */
25
+ export const file_spine_auth_oidc_flow: GenFile = /*@__PURE__*/
26
+ fileDesc("ChpzcGluZS9hdXRoL29pZGNfZmxvdy5wcm90bxIKc3BpbmUuYXV0aCKeAgoUT2lkY0xvZ2luVHJhbnNhY3Rpb24SFQoNbG9va3VwX2RpZ2VzdBgBIAEoCRIPCgdmbG93X2lkGAIgASgJEhcKD3Byb3ZpZGVyX2lzc3VlchgDIAEoCRIRCgljbGllbnRfaWQYBCABKAkSFAoMY2FsbGJhY2tfdXJpGAUgASgJEg0KBW5vbmNlGAYgASgJEh4KFnByb3ZpZGVyX2NvZGVfdmVyaWZpZXIYByABKAkSHgoWYnJvd3Nlcl9jb2RlX2NoYWxsZW5nZRgIIAEoCRIbChNwb3N0X2xvZ2luX3JlZGlyZWN0GAkgASgJEjAKDHdoZW5fZXhwaXJlcxgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi3gEKDk9pZGNMb2dpbkdyYW50EhUKDWxvb2t1cF9kaWdlc3QYASABKAkSDwoHZmxvd19pZBgCIAEoCRI1CglwcmluY2lwYWwYAyABKAsyIi5zcGluZS5hdXRoLkF1dGhlbnRpY2F0ZWRQcmluY2lwYWwSHgoWYnJvd3Nlcl9jb2RlX2NoYWxsZW5nZRgEIAEoCRIbChNwb3N0X2xvZ2luX3JlZGlyZWN0GAUgASgJEjAKDHdoZW5fZXhwaXJlcxgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCE1ABqo0kDXR5cGUuc3BpbmUuaW9iBnByb3RvMw", [file_google_protobuf_timestamp, file_spine_auth_authenticated_principal, file_spine_options]);
27
+
28
+ /**
29
+ * One flow-qualified authorization-code transaction, consumed before provider exchange.
30
+ *
31
+ * @generated from message spine.auth.OidcLoginTransaction
32
+ * Generated from Proto: spine/auth/oidc_flow.proto.
33
+ */
34
+ export type OidcLoginTransaction = Message<"spine.auth.OidcLoginTransaction"> & {
35
+ /**
36
+ * SHA-256 lookup digest bound to the flow and browser state.
37
+ *
38
+ * @generated from field: string lookup_digest = 1;
39
+ */
40
+ lookupDigest: string;
41
+
42
+ /**
43
+ * Application-selected identity of the login flow.
44
+ *
45
+ * @generated from field: string flow_id = 2;
46
+ */
47
+ flowId: string;
48
+
49
+ /**
50
+ * Trusted issuer selected when the flow was started.
51
+ *
52
+ * @generated from field: string provider_issuer = 3;
53
+ */
54
+ providerIssuer: string;
55
+
56
+ /**
57
+ * OAuth client configured for the provider exchange.
58
+ *
59
+ * @generated from field: string client_id = 4;
60
+ */
61
+ clientId: string;
62
+
63
+ /**
64
+ * Exact registered callback URI, including static query parameters.
65
+ *
66
+ * @generated from field: string callback_uri = 5;
67
+ */
68
+ callbackUri: string;
69
+
70
+ /**
71
+ * Random nonce expected in the verified ID token.
72
+ *
73
+ * @generated from field: string nonce = 6;
74
+ */
75
+ nonce: string;
76
+
77
+ /**
78
+ * Provider PKCE verifier retained only until callback consumption.
79
+ *
80
+ * @generated from field: string provider_code_verifier = 7;
81
+ */
82
+ providerCodeVerifier: string;
83
+
84
+ /**
85
+ * Browser PKCE challenge required before application-session issuance.
86
+ *
87
+ * @generated from field: string browser_code_challenge = 8;
88
+ */
89
+ browserCodeChallenge: string;
90
+
91
+ /**
92
+ * Application redirect selected from the flow allowlist.
93
+ *
94
+ * @generated from field: string post_login_redirect = 9;
95
+ */
96
+ postLoginRedirect: string;
97
+
98
+ /**
99
+ * Exact deadline for accepting the callback.
100
+ *
101
+ * @generated from field: google.protobuf.Timestamp when_expires = 10;
102
+ */
103
+ whenExpires?: Timestamp | undefined;
104
+ };
105
+
106
+ /**
107
+ * Describes the message spine.auth.OidcLoginTransaction.
108
+ * Use `create(OidcLoginTransactionSchema)` to create a new message.
109
+ * Generated from Proto: spine/auth/oidc_flow.proto.
110
+ */
111
+ export const OidcLoginTransactionSchema: GenMessage<OidcLoginTransaction> = /*@__PURE__*/
112
+ messageDesc(file_spine_auth_oidc_flow, 0);
113
+
114
+ /**
115
+ * One flow-qualified application grant, consumed before session issuance.
116
+ *
117
+ * @generated from message spine.auth.OidcLoginGrant
118
+ * Generated from Proto: spine/auth/oidc_flow.proto.
119
+ */
120
+ export type OidcLoginGrant = Message<"spine.auth.OidcLoginGrant"> & {
121
+ /**
122
+ * SHA-256 lookup digest bound to the flow and random grant.
123
+ *
124
+ * @generated from field: string lookup_digest = 1;
125
+ */
126
+ lookupDigest: string;
127
+
128
+ /**
129
+ * Application-selected identity of the login flow.
130
+ *
131
+ * @generated from field: string flow_id = 2;
132
+ */
133
+ flowId: string;
134
+
135
+ /**
136
+ * Complete mapped principal with optional attributes presence.
137
+ *
138
+ * @generated from field: spine.auth.AuthenticatedPrincipal principal = 3;
139
+ */
140
+ principal?: AuthenticatedPrincipal | undefined;
141
+
142
+ /**
143
+ * Browser PKCE challenge copied from the consumed transaction.
144
+ *
145
+ * @generated from field: string browser_code_challenge = 4;
146
+ */
147
+ browserCodeChallenge: string;
148
+
149
+ /**
150
+ * Allowlisted application redirect from the consumed transaction.
151
+ *
152
+ * @generated from field: string post_login_redirect = 5;
153
+ */
154
+ postLoginRedirect: string;
155
+
156
+ /**
157
+ * Exact deadline for exchanging the application grant.
158
+ *
159
+ * @generated from field: google.protobuf.Timestamp when_expires = 6;
160
+ */
161
+ whenExpires?: Timestamp | undefined;
162
+ };
163
+
164
+ /**
165
+ * Describes the message spine.auth.OidcLoginGrant.
166
+ * Use `create(OidcLoginGrantSchema)` to create a new message.
167
+ * Generated from Proto: spine/auth/oidc_flow.proto.
168
+ */
169
+ export const OidcLoginGrantSchema: GenMessage<OidcLoginGrant> = /*@__PURE__*/
170
+ messageDesc(file_spine_auth_oidc_flow, 1);
171
+
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Generated by Spine TypeScript. Do not edit manually.
3
+ * Source Proto: spine/auth/opaque_session.proto
4
+ */
5
+
6
+
7
+
8
+ // @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
9
+ // @generated from file spine/auth/opaque_session.proto (package spine.auth, syntax proto3)
10
+ /* eslint-disable */
11
+
12
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
+ import type { AuthenticatedPrincipal } from "./authenticated_principal_pb.js";
17
+ import { file_spine_auth_authenticated_principal } from "./authenticated_principal_pb.js";
18
+ import { file_spine_options } from "../options_pb.js";
19
+ import type { Message } from "@bufbuild/protobuf";
20
+
21
+ /**
22
+ * Describes the file spine/auth/opaque_session.proto.
23
+ * Generated from Proto: spine/auth/opaque_session.proto.
24
+ */
25
+ export const file_spine_auth_opaque_session: GenFile = /*@__PURE__*/
26
+ fileDesc("Ch9zcGluZS9hdXRoL29wYXF1ZV9zZXNzaW9uLnByb3RvEgpzcGluZS5hdXRoIp4BChNPcGFxdWVTZXNzaW9uUmVjb3JkEgoKAmlkGAEgASgJEhIKCmdlbmVyYXRpb24YAiABKAkSNQoJcHJpbmNpcGFsGAMgASgLMiIuc3BpbmUuYXV0aC5BdXRoZW50aWNhdGVkUHJpbmNpcGFsEjAKDHdoZW5fZXhwaXJlcxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCE1ABqo0kDXR5cGUuc3BpbmUuaW9iBnByb3RvMw", [file_google_protobuf_timestamp, file_spine_auth_authenticated_principal, file_spine_options]);
27
+
28
+ /**
29
+ * Durable state behind one stable opaque-session reference.
30
+ *
31
+ * @generated from message spine.auth.OpaqueSessionRecord
32
+ * Generated from Proto: spine/auth/opaque_session.proto.
33
+ */
34
+ export type OpaqueSessionRecord = Message<"spine.auth.OpaqueSessionRecord"> & {
35
+ /**
36
+ * Stable random session reference used as the storage slot identifier.
37
+ *
38
+ * @generated from field: string id = 1;
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * Random credential generation changed by each successful rotation.
44
+ *
45
+ * @generated from field: string generation = 2;
46
+ */
47
+ generation: string;
48
+
49
+ /**
50
+ * Complete authenticated principal, including optional claims presence.
51
+ *
52
+ * @generated from field: spine.auth.AuthenticatedPrincipal principal = 3;
53
+ */
54
+ principal?: AuthenticatedPrincipal | undefined;
55
+
56
+ /**
57
+ * Exact authoritative application deadline.
58
+ *
59
+ * @generated from field: google.protobuf.Timestamp when_expires = 4;
60
+ */
61
+ whenExpires?: Timestamp | undefined;
62
+ };
63
+
64
+ /**
65
+ * Describes the message spine.auth.OpaqueSessionRecord.
66
+ * Use `create(OpaqueSessionRecordSchema)` to create a new message.
67
+ * Generated from Proto: spine/auth/opaque_session.proto.
68
+ */
69
+ export const OpaqueSessionRecordSchema: GenMessage<OpaqueSessionRecord> = /*@__PURE__*/
70
+ messageDesc(file_spine_auth_opaque_session, 0);
71
+
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Generated by Spine TypeScript. Do not edit manually.
3
+ * Source Proto: spine/auth/token_revocation.proto
4
+ */
5
+
6
+
7
+
8
+ // @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
9
+ // @generated from file spine/auth/token_revocation.proto (package spine.auth, syntax proto3)
10
+ /* eslint-disable */
11
+
12
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
+ import { file_spine_options } from "../options_pb.js";
17
+ import type { Message } from "@bufbuild/protobuf";
18
+
19
+ /**
20
+ * Describes the file spine/auth/token_revocation.proto.
21
+ * Generated from Proto: spine/auth/token_revocation.proto.
22
+ */
23
+ export const file_spine_auth_token_revocation: GenFile = /*@__PURE__*/
24
+ fileDesc("CiFzcGluZS9hdXRoL3Rva2VuX3Jldm9jYXRpb24ucHJvdG8SCnNwaW5lLmF1dGgigwEKD1Rva2VuUmV2b2NhdGlvbhIKCgJpZBgBIAEoCRIOCgZpc3N1ZXIYAiABKAkSEAoIYXVkaWVuY2UYAyABKAkSEAoIdG9rZW5faWQYBCABKAkSMAoMd2hlbl9leHBpcmVzGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEITUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_google_protobuf_timestamp, file_spine_options]);
25
+
26
+ /**
27
+ * One scoped signed-token revocation retained through its last acceptance instant.
28
+ *
29
+ * @generated from message spine.auth.TokenRevocation
30
+ * Generated from Proto: spine/auth/token_revocation.proto.
31
+ */
32
+ export type TokenRevocation = Message<"spine.auth.TokenRevocation"> & {
33
+ /**
34
+ * SHA-256 storage identity of the issuer, audience and token ID tuple.
35
+ *
36
+ * @generated from field: string id = 1;
37
+ */
38
+ id: string;
39
+
40
+ /**
41
+ * Exact issuing service identity used to scope the token ID.
42
+ *
43
+ * @generated from field: string issuer = 2;
44
+ */
45
+ issuer: string;
46
+
47
+ /**
48
+ * Exact intended recipient identity used to scope the token ID.
49
+ *
50
+ * @generated from field: string audience = 3;
51
+ */
52
+ audience: string;
53
+
54
+ /**
55
+ * Token identifier retained for immediate revocation.
56
+ *
57
+ * @generated from field: string token_id = 4;
58
+ */
59
+ tokenId: string;
60
+
61
+ /**
62
+ * Inclusive last instant at which the token may still be accepted.
63
+ *
64
+ * @generated from field: google.protobuf.Timestamp when_expires = 5;
65
+ */
66
+ whenExpires?: Timestamp | undefined;
67
+ };
68
+
69
+ /**
70
+ * Describes the message spine.auth.TokenRevocation.
71
+ * Use `create(TokenRevocationSchema)` to create a new message.
72
+ * Generated from Proto: spine/auth/token_revocation.proto.
73
+ */
74
+ export const TokenRevocationSchema: GenMessage<TokenRevocation> = /*@__PURE__*/
75
+ messageDesc(file_spine_auth_token_revocation, 0);
76
+
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Generated by Spine TypeScript. Do not edit manually.
3
+ * Source Proto: spine/client/app_query.proto
4
+ */
5
+
6
+
7
+
8
+ // @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
9
+ // @generated from file spine/client/app_query.proto (package spine.client, syntax proto3)
10
+ /* eslint-disable */
11
+
12
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
+ import type { Any } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
16
+ import type { QueryId } from "./query_pb.js";
17
+ import { file_spine_client_query } from "./query_pb.js";
18
+ import type { ActorContext } from "../core/actor_context_pb.js";
19
+ import { file_spine_core_actor_context } from "../core/actor_context_pb.js";
20
+ import type { Response } from "../core/response_pb.js";
21
+ import { file_spine_core_response } from "../core/response_pb.js";
22
+ import { file_spine_options } from "../options_pb.js";
23
+ import type { Message } from "@bufbuild/protobuf";
24
+
25
+ /**
26
+ * Describes the file spine/client/app_query.proto.
27
+ * Generated from Proto: spine/client/app_query.proto.
28
+ */
29
+ export const file_spine_client_app_query: GenFile = /*@__PURE__*/
30
+ fileDesc("ChxzcGluZS9jbGllbnQvYXBwX3F1ZXJ5LnByb3RvEgxzcGluZS5jbGllbnQimQEKCEFwcFF1ZXJ5EisKAmlkGAEgASgLMhUuc3BpbmUuY2xpZW50LlF1ZXJ5SWRCCKCFJAHohSQBEisKB21lc3NhZ2UYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55QgSghSQBEjMKB2NvbnRleHQYAyABKAsyGC5zcGluZS5jb3JlLkFjdG9yQ29udGV4dEIIoIUkAeiFJAEiZwoQQXBwUXVlcnlSZXNwb25zZRIsCghyZXNwb25zZRgBIAEoCzIULnNwaW5lLmNvcmUuUmVzcG9uc2VCBKCFJAESJQoHbWVzc2FnZRgCIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCMwoPaW8uc3BpbmUuY2xpZW50Qg1BcHBRdWVyeVByb3RvUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_google_protobuf_any, file_spine_client_query, file_spine_core_actor_context, file_spine_core_response, file_spine_options]);
31
+
32
+ /**
33
+ * One application-defined read request.
34
+ *
35
+ * @generated from message spine.client.AppQuery
36
+ * Generated from Proto: spine/client/app_query.proto.
37
+ */
38
+ export type AppQuery = Message<"spine.client.AppQuery"> & {
39
+ /**
40
+ * Identifies this read request for response correlation.
41
+ *
42
+ * @generated from field: spine.client.QueryId id = 1;
43
+ */
44
+ id?: QueryId | undefined;
45
+
46
+ /**
47
+ * Carries the application-defined Query message.
48
+ *
49
+ * @generated from field: google.protobuf.Any message = 2;
50
+ */
51
+ message?: Any | undefined;
52
+
53
+ /**
54
+ * Records the actor and time admitted for this request.
55
+ *
56
+ * @generated from field: spine.core.ActorContext context = 3;
57
+ */
58
+ context?: ActorContext | undefined;
59
+ };
60
+
61
+ /**
62
+ * Describes the message spine.client.AppQuery.
63
+ * Use `create(AppQuerySchema)` to create a new message.
64
+ * Generated from Proto: spine/client/app_query.proto.
65
+ */
66
+ export const AppQuerySchema: GenMessage<AppQuery> = /*@__PURE__*/
67
+ messageDesc(file_spine_client_app_query, 0);
68
+
69
+ /**
70
+ * The transport response for an application-defined read.
71
+ *
72
+ * @generated from message spine.client.AppQueryResponse
73
+ * Generated from Proto: spine/client/app_query.proto.
74
+ */
75
+ export type AppQueryResponse = Message<"spine.client.AppQueryResponse"> & {
76
+ /**
77
+ * Reports whether the application read completed or failed.
78
+ *
79
+ * @generated from field: spine.core.Response response = 1;
80
+ */
81
+ response?: Response | undefined;
82
+
83
+ /**
84
+ * Contains the paired application Response after a successful read.
85
+ *
86
+ * @generated from field: repeated google.protobuf.Any message = 2;
87
+ */
88
+ message: Any[];
89
+ };
90
+
91
+ /**
92
+ * Describes the message spine.client.AppQueryResponse.
93
+ * Use `create(AppQueryResponseSchema)` to create a new message.
94
+ * Generated from Proto: spine/client/app_query.proto.
95
+ */
96
+ export const AppQueryResponseSchema: GenMessage<AppQueryResponse> = /*@__PURE__*/
97
+ messageDesc(file_spine_client_app_query, 1);
98
+
@@ -23,7 +23,7 @@ import type { Message } from "@bufbuild/protobuf";
23
23
  * Generated from Proto: spine/client/filters.proto.
24
24
  */
25
25
  export const file_spine_client_filters: GenFile = /*@__PURE__*/
26
- fileDesc("ChpzcGluZS9jbGllbnQvZmlsdGVycy5wcm90bxIMc3BpbmUuY2xpZW50IpEBCgZUYXJnZXQSEgoEdHlwZRgBIAEoCUIEoIUkARIVCgtpbmNsdWRlX2FsbBgCIAEoCEgAEjQKB2ZpbHRlcnMYAyABKAsyGy5zcGluZS5jbGllbnQuVGFyZ2V0RmlsdGVyc0IE6IUkAUgAOhHaiyQNCgtUYXJnZXRNaXhpbkITCgljcml0ZXJpb24SBqKKJAIIASKLAQoNVGFyZ2V0RmlsdGVycxIvCglpZF9maWx0ZXIYASABKAsyFi5zcGluZS5jbGllbnQuSWRGaWx0ZXJCBOiFJAESMwoGZmlsdGVyGAIgAygLMh0uc3BpbmUuY2xpZW50LkNvbXBvc2l0ZUZpbHRlckIE6IUkAToU8ookEGlkX2ZpbHRlcnxmaWx0ZXIioQIKD0NvbXBvc2l0ZUZpbHRlchIqCgZmaWx0ZXIYASADKAsyFC5zcGluZS5jbGllbnQuRmlsdGVyQgTohSQBEkcKCG9wZXJhdG9yGAIgASgOMi8uc3BpbmUuY2xpZW50LkNvbXBvc2l0ZUZpbHRlci5Db21wb3NpdGVPcGVyYXRvckIEoIUkARI9ChBjb21wb3NpdGVfZmlsdGVyGAMgAygLMh0uc3BpbmUuY2xpZW50LkNvbXBvc2l0ZUZpbHRlckIE6IUkASI+ChFDb21wb3NpdGVPcGVyYXRvchIUChBDQ0ZfQ09fVU5ERUZJTkVEEAASBwoDQUxMEAESCgoGRUlUSEVSEAI6GtqLJBYKFENvbXBvc2l0ZUZpbHRlck1peGluIqICCgZGaWx0ZXISLwoKZmllbGRfcGF0aBgBIAEoCzIVLnNwaW5lLmJhc2UuRmllbGRQYXRoQgSghSQBEikKBXZhbHVlGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUIEoIUkARI1CghvcGVyYXRvchgDIAEoDjIdLnNwaW5lLmNsaWVudC5GaWx0ZXIuT3BlcmF0b3JCBKCFJAEicgoIT3BlcmF0b3ISEQoNQ0ZPX1VOREVGSU5FRBAAEgkKBUVRVUFMEAESEAoMR1JFQVRFUl9USEFOEAISDQoJTEVTU19USEFOEAQSFAoQR1JFQVRFUl9PUl9FUVVBTBAFEhEKDUxFU1NfT1JfRVFVQUwQBjoR2oskDQoLRmlsdGVyTWl4aW4iNgoISWRGaWx0ZXISKgoCaWQYASADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QgighSQB6IUkAUIyCg9pby5zcGluZS5jbGllbnRCDEZpbHRlcnNQcm90b1ABqo0kDXR5cGUuc3BpbmUuaW9iBnByb3RvMw", [file_spine_options, file_google_protobuf_any, file_spine_base_field_path]);
26
+ fileDesc("ChpzcGluZS9jbGllbnQvZmlsdGVycy5wcm90bxIMc3BpbmUuY2xpZW50IpEBCgZUYXJnZXQSEgoEdHlwZRgBIAEoCUIEoIUkARIVCgtpbmNsdWRlX2FsbBgCIAEoCEgAEjQKB2ZpbHRlcnMYAyABKAsyGy5zcGluZS5jbGllbnQuVGFyZ2V0RmlsdGVyc0IE6IUkAUgAOhHaiyQNCgtUYXJnZXRNaXhpbkITCgljcml0ZXJpb24SBqKKJAIIASKNAQoNVGFyZ2V0RmlsdGVycxIvCglpZF9maWx0ZXIYASABKAsyFi5zcGluZS5jbGllbnQuSWRGaWx0ZXJCBOiFJAESMwoGZmlsdGVyGAIgAygLMh0uc3BpbmUuY2xpZW50LkNvbXBvc2l0ZUZpbHRlckIE6IUkAToWoowkEgoQaWRfZmlsdGVyfGZpbHRlciKhAgoPQ29tcG9zaXRlRmlsdGVyEioKBmZpbHRlchgBIAMoCzIULnNwaW5lLmNsaWVudC5GaWx0ZXJCBOiFJAESRwoIb3BlcmF0b3IYAiABKA4yLy5zcGluZS5jbGllbnQuQ29tcG9zaXRlRmlsdGVyLkNvbXBvc2l0ZU9wZXJhdG9yQgSghSQBEj0KEGNvbXBvc2l0ZV9maWx0ZXIYAyADKAsyHS5zcGluZS5jbGllbnQuQ29tcG9zaXRlRmlsdGVyQgTohSQBIj4KEUNvbXBvc2l0ZU9wZXJhdG9yEhQKEENDRl9DT19VTkRFRklORUQQABIHCgNBTEwQARIKCgZFSVRIRVIQAjoa2oskFgoUQ29tcG9zaXRlRmlsdGVyTWl4aW4iogIKBkZpbHRlchIvCgpmaWVsZF9wYXRoGAEgASgLMhUuc3BpbmUuYmFzZS5GaWVsZFBhdGhCBKCFJAESKQoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55QgSghSQBEjUKCG9wZXJhdG9yGAMgASgOMh0uc3BpbmUuY2xpZW50LkZpbHRlci5PcGVyYXRvckIEoIUkASJyCghPcGVyYXRvchIRCg1DRk9fVU5ERUZJTkVEEAASCQoFRVFVQUwQARIQCgxHUkVBVEVSX1RIQU4QAhINCglMRVNTX1RIQU4QBBIUChBHUkVBVEVSX09SX0VRVUFMEAUSEQoNTEVTU19PUl9FUVVBTBAGOhHaiyQNCgtGaWx0ZXJNaXhpbiI2CghJZEZpbHRlchIqCgJpZBgBIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCCKCFJAHohSQBQjIKD2lvLnNwaW5lLmNsaWVudEIMRmlsdGVyc1Byb3RvUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_spine_options, file_google_protobuf_any, file_spine_base_field_path]);
27
27
 
28
28
  /**
29
29
  * Defines the target type and filters.
@@ -14,6 +14,8 @@ import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
14
14
  import { file_spine_options } from "../options_pb.js";
15
15
  import type { QueryResponseSchema, QuerySchema } from "./query_pb.js";
16
16
  import { file_spine_client_query } from "./query_pb.js";
17
+ import type { AppQueryResponseSchema, AppQuerySchema } from "./app_query_pb.js";
18
+ import { file_spine_client_app_query } from "./app_query_pb.js";
17
19
  import { file_google_protobuf_type } from "@bufbuild/protobuf/wkt";
18
20
 
19
21
  /**
@@ -21,7 +23,7 @@ import { file_google_protobuf_type } from "@bufbuild/protobuf/wkt";
21
23
  * Generated from Proto: spine/client/query_service.proto.
22
24
  */
23
25
  export const file_spine_client_query_service: GenFile = /*@__PURE__*/
24
- fileDesc("CiBzcGluZS9jbGllbnQvcXVlcnlfc2VydmljZS5wcm90bxIMc3BpbmUuY2xpZW50MkgKDFF1ZXJ5U2VydmljZRI4CgRSZWFkEhMuc3BpbmUuY2xpZW50LlF1ZXJ5Ghsuc3BpbmUuY2xpZW50LlF1ZXJ5UmVzcG9uc2VCPAoUaW8uc3BpbmUuY2xpZW50LmdycGNCEVF1ZXJ5U2VydmljZVByb3RvUAGqjSQNdHlwZS5zcGluZS5pb2IGcHJvdG8z", [file_spine_options, file_spine_client_query, file_google_protobuf_type]);
26
+ fileDesc("CiBzcGluZS9jbGllbnQvcXVlcnlfc2VydmljZS5wcm90bxIMc3BpbmUuY2xpZW50MosBCgxRdWVyeVNlcnZpY2USOAoEUmVhZBITLnNwaW5lLmNsaWVudC5RdWVyeRobLnNwaW5lLmNsaWVudC5RdWVyeVJlc3BvbnNlEkEKB0V4ZWN1dGUSFi5zcGluZS5jbGllbnQuQXBwUXVlcnkaHi5zcGluZS5jbGllbnQuQXBwUXVlcnlSZXNwb25zZUI8ChRpby5zcGluZS5jbGllbnQuZ3JwY0IRUXVlcnlTZXJ2aWNlUHJvdG9QAaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_spine_options, file_spine_client_query, file_spine_client_app_query, file_google_protobuf_type]);
25
27
 
26
28
  /**
27
29
  * A service for querying the read-side from clients.
@@ -40,6 +42,16 @@ export const QueryService: GenService<{
40
42
  input: typeof QuerySchema;
41
43
  output: typeof QueryResponseSchema;
42
44
  },
45
+ /**
46
+ * Executes an application-defined Query and returns its paired Response.
47
+ *
48
+ * @generated from rpc spine.client.QueryService.Execute
49
+ */
50
+ execute: {
51
+ methodKind: "unary";
52
+ input: typeof AppQuerySchema;
53
+ output: typeof AppQueryResponseSchema;
54
+ },
43
55
  }> = /*@__PURE__*/
44
56
  serviceDesc(file_spine_client_query_service, 0);
45
57
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
13
  import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
- import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
14
+ import type { Empty, Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_empty, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
16
  import type { Subscription, SubscriptionId } from "./subscription_pb.js";
17
17
  import { file_spine_client_subscription } from "./subscription_pb.js";
18
18
  import { file_spine_options } from "../options_pb.js";
@@ -23,7 +23,46 @@ import type { Message } from "@bufbuild/protobuf";
23
23
  * Generated from Proto: spine/client/subscription_record.proto.
24
24
  */
25
25
  export const file_spine_client_subscription_record: GenFile = /*@__PURE__*/
26
- fileDesc("CiZzcGluZS9jbGllbnQvc3Vic2NyaXB0aW9uX3JlY29yZC5wcm90bxIMc3BpbmUuY2xpZW50IrECChJTdWJzY3JpcHRpb25SZWNvcmQSMgoCaWQYASABKAsyHC5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uSWRCCKCFJAHohSQBEjoKDHN1YnNjcmlwdGlvbhgCIAEoCzIaLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25CCKCFJAHohSQBEjYKBnN0YXR1cxgDIAEoDjIgLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25TdGF0dXNCBKCFJAESNgoMd2hlbl9jcmVhdGVkGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIEoIUkARI7Chd3aGVuX2FjdGl2YXRpb25fZXhwaXJlcxgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAqQQoSU3Vic2NyaXB0aW9uU3RhdHVzEhIKDlNTX1VOU1BFQ0lGSUVEEAASCwoHUEVORElORxABEgoKBkFDVElWRRACQhNQAaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_google_protobuf_timestamp, file_spine_client_subscription, file_spine_options]);
26
+ fileDesc("CiZzcGluZS9jbGllbnQvc3Vic2NyaXB0aW9uX3JlY29yZC5wcm90bxIMc3BpbmUuY2xpZW50ImwKGVN1YnNjcmlwdGlvblJlYWRlckJpbmRpbmcSFgoMcHJpbmNpcGFsX2lkGAEgASgJSAASKwoJYW5vbnltb3VzGAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABCCgoIaWRlbnRpdHki6gIKElN1YnNjcmlwdGlvblJlY29yZBIyCgJpZBgBIAEoCzIcLnNwaW5lLmNsaWVudC5TdWJzY3JpcHRpb25JZEIIoIUkAeiFJAESOgoMc3Vic2NyaXB0aW9uGAIgASgLMhouc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvbkIIoIUkAeiFJAESNgoGc3RhdHVzGAMgASgOMiAuc3BpbmUuY2xpZW50LlN1YnNjcmlwdGlvblN0YXR1c0IEoIUkARI2Cgx3aGVuX2NyZWF0ZWQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgSghSQBEjsKF3doZW5fYWN0aXZhdGlvbl9leHBpcmVzGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI3CgZyZWFkZXIYBiABKAsyJy5zcGluZS5jbGllbnQuU3Vic2NyaXB0aW9uUmVhZGVyQmluZGluZypBChJTdWJzY3JpcHRpb25TdGF0dXMSEgoOU1NfVU5TUEVDSUZJRUQQABILCgdQRU5ESU5HEAESCgoGQUNUSVZFEAJCE1ABqo0kDXR5cGUuc3BpbmUuaW9iBnByb3RvMw", [file_google_protobuf_empty, file_google_protobuf_timestamp, file_spine_client_subscription, file_spine_options]);
27
+
28
+ /**
29
+ * Stable verified reader identity retained with a subscription definition.
30
+ *
31
+ * @generated from message spine.client.SubscriptionReaderBinding
32
+ * Generated from Proto: spine/client/subscription_record.proto.
33
+ */
34
+ export type SubscriptionReaderBinding = Message<"spine.client.SubscriptionReaderBinding"> & {
35
+ /**
36
+ * Exactly one admitted reader identity; absence cannot establish reader access.
37
+ *
38
+ * @generated from oneof spine.client.SubscriptionReaderBinding.identity
39
+ */
40
+ identity: {
41
+ /**
42
+ * Application-authenticated principal ID, never ActorContext or provider credentials.
43
+ *
44
+ * @generated from field: string principal_id = 1;
45
+ */
46
+ value: string;
47
+ case: "principalId";
48
+ } | {
49
+ /**
50
+ * Explicit admission without a principal or provider authority facts.
51
+ *
52
+ * @generated from field: google.protobuf.Empty anonymous = 2;
53
+ */
54
+ value: Empty;
55
+ case: "anonymous";
56
+ } | { case: undefined; value?: undefined };
57
+ };
58
+
59
+ /**
60
+ * Describes the message spine.client.SubscriptionReaderBinding.
61
+ * Use `create(SubscriptionReaderBindingSchema)` to create a new message.
62
+ * Generated from Proto: spine/client/subscription_record.proto.
63
+ */
64
+ export const SubscriptionReaderBindingSchema: GenMessage<SubscriptionReaderBinding> = /*@__PURE__*/
65
+ messageDesc(file_spine_client_subscription_record, 0);
27
66
 
28
67
  /**
29
68
  * A stored definition of one subscription.
@@ -66,6 +105,13 @@ export type SubscriptionRecord = Message<"spine.client.SubscriptionRecord"> & {
66
105
  * @generated from field: google.protobuf.Timestamp when_activation_expires = 5;
67
106
  */
68
107
  whenActivationExpires?: Timestamp | undefined;
108
+
109
+ /**
110
+ * Stable reader identity admitted when this definition was created.
111
+ *
112
+ * @generated from field: spine.client.SubscriptionReaderBinding reader = 6;
113
+ */
114
+ reader?: SubscriptionReaderBinding | undefined;
69
115
  };
70
116
 
71
117
  /**
@@ -74,7 +120,7 @@ export type SubscriptionRecord = Message<"spine.client.SubscriptionRecord"> & {
74
120
  * Generated from Proto: spine/client/subscription_record.proto.
75
121
  */
76
122
  export const SubscriptionRecordSchema: GenMessage<SubscriptionRecord> = /*@__PURE__*/
77
- messageDesc(file_spine_client_subscription_record, 0);
123
+ messageDesc(file_spine_client_subscription_record, 1);
78
124
 
79
125
  /**
80
126
  * A lifecycle status of a stored subscription.
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Generated by Spine TypeScript. Do not edit manually.
3
+ * Source Proto: spine/server/tenant/tenant.proto
4
+ */
5
+
6
+
7
+
8
+ // @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
9
+ // @generated from file spine/server/tenant/tenant.proto (package spine.server.tenant, syntax proto3)
10
+ /* eslint-disable */
11
+
12
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
13
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
14
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
+ import type { TenantId } from "../../core/tenant_id_pb.js";
17
+ import { file_spine_core_tenant_id } from "../../core/tenant_id_pb.js";
18
+ import { file_spine_options } from "../../options_pb.js";
19
+ import type { Message } from "@bufbuild/protobuf";
20
+
21
+ /**
22
+ * Describes the file spine/server/tenant/tenant.proto.
23
+ * Generated from Proto: spine/server/tenant/tenant.proto.
24
+ */
25
+ export const file_spine_server_tenant_tenant: GenFile = /*@__PURE__*/
26
+ fileDesc("CiBzcGluZS9zZXJ2ZXIvdGVuYW50L3RlbmFudC5wcm90bxITc3BpbmUuc2VydmVyLnRlbmFudCJoCgZUZW5hbnQSJgoCaWQYASABKAsyFC5zcGluZS5jb3JlLlRlbmFudElkQgSghSQBEjYKDHdoZW5fY3JlYXRlZBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBKCFJAFCEaqNJA10eXBlLnNwaW5lLmlvYgZwcm90bzM", [file_google_protobuf_timestamp, file_spine_core_tenant_id, file_spine_options]);
27
+
28
+ /**
29
+ * A tenant registered in the application directory.
30
+ *
31
+ * @generated from message spine.server.tenant.Tenant
32
+ * Generated from Proto: spine/server/tenant/tenant.proto.
33
+ */
34
+ export type Tenant = Message<"spine.server.tenant.Tenant"> & {
35
+ /**
36
+ * Complete application tenant identity.
37
+ *
38
+ * @generated from field: spine.core.TenantId id = 1;
39
+ */
40
+ id?: TenantId | undefined;
41
+
42
+ /**
43
+ * The time of the first successful registration.
44
+ *
45
+ * @generated from field: google.protobuf.Timestamp when_created = 2;
46
+ */
47
+ whenCreated?: Timestamp | undefined;
48
+ };
49
+
50
+ /**
51
+ * Describes the message spine.server.tenant.Tenant.
52
+ * Use `create(TenantSchema)` to create a new message.
53
+ * Generated from Proto: spine/server/tenant/tenant.proto.
54
+ */
55
+ export const TenantSchema: GenMessage<Tenant> = /*@__PURE__*/
56
+ messageDesc(file_spine_server_tenant_tenant, 0);
57
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spine-event-engine/proto",
3
- "version": "2.0.0-snapshot.25",
3
+ "version": "2.0.0-snapshot.28",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {