@spine-event-engine/proto 2.0.0-snapshot.26 → 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.
- package/README.md +18 -0
- package/REFERENCE.md +13 -1
- package/dist/generated/proto-module.d.ts +6 -1
- package/dist/generated/proto-module.d.ts.map +1 -1
- package/dist/generated/proto-module.js +88 -58
- package/dist/generated/proto-module.js.map +1 -1
- package/dist/generated/spine/auth/authenticated_principal_pb.d.ts +61 -0
- package/dist/generated/spine/auth/authenticated_principal_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/authenticated_principal_pb.js +24 -0
- package/dist/generated/spine/auth/authenticated_principal_pb.js.map +1 -0
- package/dist/generated/spine/auth/oidc_flow_pb.d.ts +139 -0
- package/dist/generated/spine/auth/oidc_flow_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/oidc_flow_pb.js +26 -0
- package/dist/generated/spine/auth/oidc_flow_pb.js.map +1 -0
- package/dist/generated/spine/auth/opaque_session_pb.d.ts +53 -0
- package/dist/generated/spine/auth/opaque_session_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/opaque_session_pb.js +20 -0
- package/dist/generated/spine/auth/opaque_session_pb.js.map +1 -0
- package/dist/generated/spine/auth/token_revocation_pb.d.ts +58 -0
- package/dist/generated/spine/auth/token_revocation_pb.d.ts.map +1 -0
- package/dist/generated/spine/auth/token_revocation_pb.js +19 -0
- package/dist/generated/spine/auth/token_revocation_pb.js.map +1 -0
- package/dist/generated/spine/server/tenant/tenant_pb.d.ts +41 -0
- package/dist/generated/spine/server/tenant/tenant_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/tenant/tenant_pb.js +20 -0
- package/dist/generated/spine/server/tenant/tenant_pb.js.map +1 -0
- package/dist/src/auth/index.d.ts +4 -0
- package/dist/src/auth/index.d.ts.map +1 -1
- package/dist/src/auth/index.js +4 -0
- package/dist/src/auth/index.js.map +1 -1
- package/dist/src/index.d.ts +10 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/.spine-proto-generation.json +1 -1
- package/generated/proto-module.ts +88 -58
- package/generated/spine/auth/authenticated_principal_pb.ts +76 -0
- package/generated/spine/auth/oidc_flow_pb.ts +171 -0
- package/generated/spine/auth/opaque_session_pb.ts +71 -0
- package/generated/spine/auth/token_revocation_pb.ts +76 -0
- package/generated/spine/server/tenant/tenant_pb.ts +57 -0
- package/package.json +1 -1
- package/proto/spine/auth/authenticated_principal.proto +36 -0
- package/proto/spine/auth/oidc_flow.proto +77 -0
- package/proto/spine/auth/opaque_session.proto +38 -0
- package/proto/spine/auth/token_revocation.proto +40 -0
- package/proto/spine/server/tenant/tenant.proto +31 -0
- package/proto/spine-sources.json +26 -6
- package/spine-proto-manifest.json +12 -2
|
@@ -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,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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "spine/options.proto";
|
|
19
|
+
|
|
20
|
+
option java_multiple_files = true;
|
|
21
|
+
option (type_url_prefix) = "type.spine.io";
|
|
22
|
+
|
|
23
|
+
// A complete authenticated identity used by application session and grant records.
|
|
24
|
+
message AuthenticatedPrincipal {
|
|
25
|
+
// The application principal identifier.
|
|
26
|
+
string id = 1;
|
|
27
|
+
|
|
28
|
+
// Optional claims; an empty present message differs from absent claims.
|
|
29
|
+
PrincipalAttributes attributes = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Application-defined string claims with explicit message presence.
|
|
33
|
+
message PrincipalAttributes {
|
|
34
|
+
// Claim names and their values.
|
|
35
|
+
map<string, string> values = 1;
|
|
36
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/auth/authenticated_principal.proto";
|
|
20
|
+
import "spine/options.proto";
|
|
21
|
+
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option (type_url_prefix) = "type.spine.io";
|
|
24
|
+
|
|
25
|
+
// One flow-qualified authorization-code transaction, consumed before provider exchange.
|
|
26
|
+
message OidcLoginTransaction {
|
|
27
|
+
// SHA-256 lookup digest bound to the flow and browser state.
|
|
28
|
+
string lookup_digest = 1;
|
|
29
|
+
|
|
30
|
+
// Application-selected identity of the login flow.
|
|
31
|
+
string flow_id = 2;
|
|
32
|
+
|
|
33
|
+
// Trusted issuer selected when the flow was started.
|
|
34
|
+
string provider_issuer = 3;
|
|
35
|
+
|
|
36
|
+
// OAuth client configured for the provider exchange.
|
|
37
|
+
string client_id = 4;
|
|
38
|
+
|
|
39
|
+
// Exact registered callback URI, including static query parameters.
|
|
40
|
+
string callback_uri = 5;
|
|
41
|
+
|
|
42
|
+
// Random nonce expected in the verified ID token.
|
|
43
|
+
string nonce = 6;
|
|
44
|
+
|
|
45
|
+
// Provider PKCE verifier retained only until callback consumption.
|
|
46
|
+
string provider_code_verifier = 7;
|
|
47
|
+
|
|
48
|
+
// Browser PKCE challenge required before application-session issuance.
|
|
49
|
+
string browser_code_challenge = 8;
|
|
50
|
+
|
|
51
|
+
// Application redirect selected from the flow allowlist.
|
|
52
|
+
string post_login_redirect = 9;
|
|
53
|
+
|
|
54
|
+
// Exact deadline for accepting the callback.
|
|
55
|
+
google.protobuf.Timestamp when_expires = 10;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// One flow-qualified application grant, consumed before session issuance.
|
|
59
|
+
message OidcLoginGrant {
|
|
60
|
+
// SHA-256 lookup digest bound to the flow and random grant.
|
|
61
|
+
string lookup_digest = 1;
|
|
62
|
+
|
|
63
|
+
// Application-selected identity of the login flow.
|
|
64
|
+
string flow_id = 2;
|
|
65
|
+
|
|
66
|
+
// Complete mapped principal with optional attributes presence.
|
|
67
|
+
AuthenticatedPrincipal principal = 3;
|
|
68
|
+
|
|
69
|
+
// Browser PKCE challenge copied from the consumed transaction.
|
|
70
|
+
string browser_code_challenge = 4;
|
|
71
|
+
|
|
72
|
+
// Allowlisted application redirect from the consumed transaction.
|
|
73
|
+
string post_login_redirect = 5;
|
|
74
|
+
|
|
75
|
+
// Exact deadline for exchanging the application grant.
|
|
76
|
+
google.protobuf.Timestamp when_expires = 6;
|
|
77
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/auth/authenticated_principal.proto";
|
|
20
|
+
import "spine/options.proto";
|
|
21
|
+
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option (type_url_prefix) = "type.spine.io";
|
|
24
|
+
|
|
25
|
+
// Durable state behind one stable opaque-session reference.
|
|
26
|
+
message OpaqueSessionRecord {
|
|
27
|
+
// Stable random session reference used as the storage slot identifier.
|
|
28
|
+
string id = 1;
|
|
29
|
+
|
|
30
|
+
// Random credential generation changed by each successful rotation.
|
|
31
|
+
string generation = 2;
|
|
32
|
+
|
|
33
|
+
// Complete authenticated principal, including optional claims presence.
|
|
34
|
+
AuthenticatedPrincipal principal = 3;
|
|
35
|
+
|
|
36
|
+
// Exact authoritative application deadline.
|
|
37
|
+
google.protobuf.Timestamp when_expires = 4;
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.auth;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/options.proto";
|
|
20
|
+
|
|
21
|
+
option java_multiple_files = true;
|
|
22
|
+
option (type_url_prefix) = "type.spine.io";
|
|
23
|
+
|
|
24
|
+
// One scoped signed-token revocation retained through its last acceptance instant.
|
|
25
|
+
message TokenRevocation {
|
|
26
|
+
// SHA-256 storage identity of the issuer, audience and token ID tuple.
|
|
27
|
+
string id = 1;
|
|
28
|
+
|
|
29
|
+
// Exact issuing service identity used to scope the token ID.
|
|
30
|
+
string issuer = 2;
|
|
31
|
+
|
|
32
|
+
// Exact intended recipient identity used to scope the token ID.
|
|
33
|
+
string audience = 3;
|
|
34
|
+
|
|
35
|
+
// Token identifier retained for immediate revocation.
|
|
36
|
+
string token_id = 4;
|
|
37
|
+
|
|
38
|
+
// Inclusive last instant at which the token may still be accepted.
|
|
39
|
+
google.protobuf.Timestamp when_expires = 5;
|
|
40
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
syntax = "proto3";
|
|
15
|
+
|
|
16
|
+
package spine.server.tenant;
|
|
17
|
+
|
|
18
|
+
import "google/protobuf/timestamp.proto";
|
|
19
|
+
import "spine/core/tenant_id.proto";
|
|
20
|
+
import "spine/options.proto";
|
|
21
|
+
|
|
22
|
+
option (type_url_prefix) = "type.spine.io";
|
|
23
|
+
|
|
24
|
+
// A tenant registered in the application directory.
|
|
25
|
+
message Tenant {
|
|
26
|
+
// Complete application tenant identity.
|
|
27
|
+
spine.core.TenantId id = 1 [(required) = true];
|
|
28
|
+
|
|
29
|
+
// The time of the first successful registration.
|
|
30
|
+
google.protobuf.Timestamp when_created = 2 [(required) = true];
|
|
31
|
+
}
|
package/proto/spine-sources.json
CHANGED
|
@@ -427,12 +427,8 @@
|
|
|
427
427
|
],
|
|
428
428
|
"ownedSources": [
|
|
429
429
|
{
|
|
430
|
-
"localPath": "packages/proto/proto/spine/
|
|
431
|
-
"sha256": "
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"localPath": "packages/proto/proto/spine/server/agent/acceptance_receipt.proto",
|
|
435
|
-
"sha256": "daa0f8e724849523cb539b9b6a7503aa8eab0de3f23d926d1aa9d117bd44f007"
|
|
430
|
+
"localPath": "packages/proto/proto/spine/auth/authenticated_principal.proto",
|
|
431
|
+
"sha256": "09a4c8d755293fd522e1ff4c8305d49ef6bdb681e0de6a4e1bf311db1c9412db"
|
|
436
432
|
},
|
|
437
433
|
{
|
|
438
434
|
"localPath": "packages/proto/proto/spine/auth/authenticated_subscription.proto",
|
|
@@ -442,6 +438,22 @@
|
|
|
442
438
|
"localPath": "packages/proto/proto/spine/auth/authentication_service.proto",
|
|
443
439
|
"sha256": "dcd178e057a13d4d044ac9fb1ba487b5a27203b0686191d5955ee928852822d7"
|
|
444
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"localPath": "packages/proto/proto/spine/auth/oidc_flow.proto",
|
|
443
|
+
"sha256": "30f35a0b3cc4f3e84b91af49b632ad71067e54ac34b618cfdaca0c6ab509c07a"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"localPath": "packages/proto/proto/spine/auth/opaque_session.proto",
|
|
447
|
+
"sha256": "04aa832423e9595cdaa73e0689276803ff749e56d4a8d963f30729fa8780dfe6"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"localPath": "packages/proto/proto/spine/auth/token_revocation.proto",
|
|
451
|
+
"sha256": "a13278fd19469a5e3cd542edf29ba7015570d4dc03e176ab2a365485b4e9982c"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"localPath": "packages/proto/proto/spine/client/app_query.proto",
|
|
455
|
+
"sha256": "b5b334232dc724f7de606e6655aefde7856a8be1e9742311aa3c23a3ae206140"
|
|
456
|
+
},
|
|
445
457
|
{
|
|
446
458
|
"localPath": "packages/proto/proto/spine/client/subscription_record.proto",
|
|
447
459
|
"sha256": "614caf2608bf3fc36a419f887305ae6b7b1cfad657800b5bc3a5d886d396bd86"
|
|
@@ -450,6 +462,10 @@
|
|
|
450
462
|
"localPath": "packages/proto/proto/spine/deployment/node_discovery.proto",
|
|
451
463
|
"sha256": "7c300d215a1757c17b7bd1a89cebb4825df28a58fcc119f2aa6d5535d7520073"
|
|
452
464
|
},
|
|
465
|
+
{
|
|
466
|
+
"localPath": "packages/proto/proto/spine/server/agent/acceptance_receipt.proto",
|
|
467
|
+
"sha256": "daa0f8e724849523cb539b9b6a7503aa8eab0de3f23d926d1aa9d117bd44f007"
|
|
468
|
+
},
|
|
453
469
|
{
|
|
454
470
|
"localPath": "packages/proto/proto/spine/server/agent/history_record.proto",
|
|
455
471
|
"sha256": "24ed282bc0cd901a3b38748ea7b516e972a87b2a7f69db99a2b094458d48e38a"
|
|
@@ -458,6 +474,10 @@
|
|
|
458
474
|
"localPath": "packages/proto/proto/spine/server/agent/model_preferences_record.proto",
|
|
459
475
|
"sha256": "33b7f805be70c5435b6d2f7ef558e0fab5dfed34a699ce87734f3c9b2b6f00d5"
|
|
460
476
|
},
|
|
477
|
+
{
|
|
478
|
+
"localPath": "packages/proto/proto/spine/server/tenant/tenant.proto",
|
|
479
|
+
"sha256": "f6d2785fd6dbeed03d40fcef4aec294e82df3557bac3d7e63c75d6344847462a"
|
|
480
|
+
},
|
|
461
481
|
{
|
|
462
482
|
"localPath": "packages/proto/proto/spine/ts/agent/content.proto",
|
|
463
483
|
"sha256": "f4242677c02f546724dbffe9dabb93bdf8d5a63f8d3357e91fab3765e41e058a"
|