@structured-id/proto 0.6.0 → 0.8.0
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/CHANGELOG.md +14 -0
- package/dist/generated/google/protobuf/descriptor.d.ts +61 -0
- package/dist/generated/google/protobuf/descriptor.js +72 -1
- package/dist/generated/google/protobuf/descriptor.js.map +1 -1
- package/dist/generated/google/protobuf/struct.d.ts +3 -3
- package/dist/generated/google/protobuf/struct.js +3 -3
- package/dist/generated/google/protobuf/struct.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +68 -0
- package/dist/generated/sid/v1/authn/auth.js +120 -3
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.d.ts +25 -19
- package/dist/generated/sid/v1/authn/issuer.js +24 -30
- package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +143 -10
- package/dist/generated/sid/v1/authz/authz.js +206 -30
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/common/errors.d.ts +7 -0
- package/dist/generated/sid/v1/common/errors.js +7 -0
- package/dist/generated/sid/v1/common/errors.js.map +1 -1
- package/dist/generated/sid/v1/ui/public_settings.d.ts +9 -0
- package/dist/generated/sid/v1/ui/public_settings.js +9 -1
- package/dist/generated/sid/v1/ui/public_settings.js.map +1 -1
- package/package.json +4 -4
|
@@ -199,7 +199,8 @@ export interface IssuerHandleRequest {
|
|
|
199
199
|
/**
|
|
200
200
|
* OpenID Provider / Authorization Server metadata of one issuer. JSON member
|
|
201
201
|
* names are the registered metadata names (OIDC Discovery 1.0 §3, RFC 8414 §2);
|
|
202
|
-
* every endpoint is under the issuer URL.
|
|
202
|
+
* every endpoint is under the issuer URL. An endpoint the issuer does not
|
|
203
|
+
* serve is absent from the document, never an empty string.
|
|
203
204
|
*
|
|
204
205
|
* @generated from protobuf message sid.v1.authn.ProviderMetadata
|
|
205
206
|
*/
|
|
@@ -224,11 +225,12 @@ export interface ProviderMetadata {
|
|
|
224
225
|
*/
|
|
225
226
|
tokenEndpoint: string;
|
|
226
227
|
/**
|
|
227
|
-
* UserInfo endpoint (OIDC Core 1.0 §5.3)
|
|
228
|
+
* UserInfo endpoint (OIDC Core 1.0 §5.3); absent when the issuer serves
|
|
229
|
+
* none (OIDC Discovery 1.0 §3: RECOMMENDED).
|
|
228
230
|
*
|
|
229
|
-
* @generated from protobuf field: string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"]
|
|
231
|
+
* @generated from protobuf field: optional string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"]
|
|
230
232
|
*/
|
|
231
|
-
userinfoEndpoint
|
|
233
|
+
userinfoEndpoint?: string;
|
|
232
234
|
/**
|
|
233
235
|
* The issuer's JSON Web Key Set (RFC 7517 §5).
|
|
234
236
|
*
|
|
@@ -236,29 +238,33 @@ export interface ProviderMetadata {
|
|
|
236
238
|
*/
|
|
237
239
|
jwksUri: string;
|
|
238
240
|
/**
|
|
239
|
-
* RP-Initiated Logout endpoint (OIDC RP-Initiated Logout 1.0 §2.1)
|
|
241
|
+
* RP-Initiated Logout endpoint (OIDC RP-Initiated Logout 1.0 §2.1); absent
|
|
242
|
+
* when the issuer serves none.
|
|
240
243
|
*
|
|
241
|
-
* @generated from protobuf field: string end_session_endpoint = 6 [json_name = "end_session_endpoint"]
|
|
244
|
+
* @generated from protobuf field: optional string end_session_endpoint = 6 [json_name = "end_session_endpoint"]
|
|
242
245
|
*/
|
|
243
|
-
endSessionEndpoint
|
|
246
|
+
endSessionEndpoint?: string;
|
|
244
247
|
/**
|
|
245
|
-
* Token introspection endpoint (RFC 7662 §2, RFC 8414 §2)
|
|
248
|
+
* Token introspection endpoint (RFC 7662 §2, RFC 8414 §2); absent when the
|
|
249
|
+
* issuer serves none.
|
|
246
250
|
*
|
|
247
|
-
* @generated from protobuf field: string introspection_endpoint = 7 [json_name = "introspection_endpoint"]
|
|
251
|
+
* @generated from protobuf field: optional string introspection_endpoint = 7 [json_name = "introspection_endpoint"]
|
|
248
252
|
*/
|
|
249
|
-
introspectionEndpoint
|
|
253
|
+
introspectionEndpoint?: string;
|
|
250
254
|
/**
|
|
251
|
-
* Token revocation endpoint (RFC 7009 §2, RFC 8414 §2)
|
|
255
|
+
* Token revocation endpoint (RFC 7009 §2, RFC 8414 §2); absent when the
|
|
256
|
+
* issuer serves none.
|
|
252
257
|
*
|
|
253
|
-
* @generated from protobuf field: string revocation_endpoint = 8 [json_name = "revocation_endpoint"]
|
|
258
|
+
* @generated from protobuf field: optional string revocation_endpoint = 8 [json_name = "revocation_endpoint"]
|
|
254
259
|
*/
|
|
255
|
-
revocationEndpoint
|
|
260
|
+
revocationEndpoint?: string;
|
|
256
261
|
/**
|
|
257
|
-
* Device authorization endpoint (RFC 8628 §4)
|
|
262
|
+
* Device authorization endpoint (RFC 8628 §4); absent when the issuer
|
|
263
|
+
* serves none.
|
|
258
264
|
*
|
|
259
|
-
* @generated from protobuf field: string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"]
|
|
265
|
+
* @generated from protobuf field: optional string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"]
|
|
260
266
|
*/
|
|
261
|
-
deviceAuthorizationEndpoint
|
|
267
|
+
deviceAuthorizationEndpoint?: string;
|
|
262
268
|
/**
|
|
263
269
|
* Supported `response_type` values; only the authorization code flow.
|
|
264
270
|
*
|
|
@@ -330,11 +336,11 @@ export interface ProviderMetadata {
|
|
|
330
336
|
authorizationResponseIssParameterSupported: boolean;
|
|
331
337
|
/**
|
|
332
338
|
* Dynamic client registration endpoint (RFC 7591 §3, OIDC Discovery 1.0 §3,
|
|
333
|
-
* RFC 8414 §2).
|
|
339
|
+
* RFC 8414 §2); absent when the issuer accepts no dynamic registration.
|
|
334
340
|
*
|
|
335
|
-
* @generated from protobuf field: string registration_endpoint = 21 [json_name = "registration_endpoint"]
|
|
341
|
+
* @generated from protobuf field: optional string registration_endpoint = 21 [json_name = "registration_endpoint"]
|
|
336
342
|
*/
|
|
337
|
-
registrationEndpoint
|
|
343
|
+
registrationEndpoint?: string;
|
|
338
344
|
/**
|
|
339
345
|
* JWS algorithms a `private_key_jwt` client may sign its token endpoint
|
|
340
346
|
* assertion with (RFC 8414 §2: present whenever that method is listed in
|
|
@@ -372,12 +372,12 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
372
372
|
{ no: 1, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
373
373
|
{ no: 2, name: "authorization_endpoint", kind: "scalar", jsonName: "authorization_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
374
374
|
{ no: 3, name: "token_endpoint", kind: "scalar", jsonName: "token_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
375
|
-
{ no: 4, name: "userinfo_endpoint", kind: "scalar", jsonName: "userinfo_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
375
|
+
{ no: 4, name: "userinfo_endpoint", kind: "scalar", jsonName: "userinfo_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
376
376
|
{ no: 5, name: "jwks_uri", kind: "scalar", jsonName: "jwks_uri", T: 9 /*ScalarType.STRING*/ },
|
|
377
|
-
{ no: 6, name: "end_session_endpoint", kind: "scalar", jsonName: "end_session_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
378
|
-
{ no: 7, name: "introspection_endpoint", kind: "scalar", jsonName: "introspection_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
379
|
-
{ no: 8, name: "revocation_endpoint", kind: "scalar", jsonName: "revocation_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
380
|
-
{ no: 9, name: "device_authorization_endpoint", kind: "scalar", jsonName: "device_authorization_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
377
|
+
{ no: 6, name: "end_session_endpoint", kind: "scalar", jsonName: "end_session_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
378
|
+
{ no: 7, name: "introspection_endpoint", kind: "scalar", jsonName: "introspection_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
379
|
+
{ no: 8, name: "revocation_endpoint", kind: "scalar", jsonName: "revocation_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
380
|
+
{ no: 9, name: "device_authorization_endpoint", kind: "scalar", jsonName: "device_authorization_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
381
381
|
{ no: 10, name: "response_types_supported", kind: "scalar", jsonName: "response_types_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
382
382
|
{ no: 11, name: "grant_types_supported", kind: "scalar", jsonName: "grant_types_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
383
383
|
{ no: 12, name: "subject_types_supported", kind: "scalar", jsonName: "subject_types_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -389,7 +389,7 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
389
389
|
{ no: 18, name: "backchannel_logout_supported", kind: "scalar", jsonName: "backchannel_logout_supported", T: 8 /*ScalarType.BOOL*/ },
|
|
390
390
|
{ no: 19, name: "backchannel_logout_session_supported", kind: "scalar", jsonName: "backchannel_logout_session_supported", T: 8 /*ScalarType.BOOL*/ },
|
|
391
391
|
{ no: 20, name: "authorization_response_iss_parameter_supported", kind: "scalar", jsonName: "authorization_response_iss_parameter_supported", T: 8 /*ScalarType.BOOL*/ },
|
|
392
|
-
{ no: 21, name: "registration_endpoint", kind: "scalar", jsonName: "registration_endpoint", T: 9 /*ScalarType.STRING*/ },
|
|
392
|
+
{ no: 21, name: "registration_endpoint", kind: "scalar", jsonName: "registration_endpoint", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
393
393
|
{ no: 22, name: "token_endpoint_auth_signing_alg_values_supported", kind: "scalar", jsonName: "token_endpoint_auth_signing_alg_values_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
394
394
|
{ no: 23, name: "revocation_endpoint_auth_methods_supported", kind: "scalar", jsonName: "revocation_endpoint_auth_methods_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
395
395
|
{ no: 24, name: "revocation_endpoint_auth_signing_alg_values_supported", kind: "scalar", jsonName: "revocation_endpoint_auth_signing_alg_values_supported", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -402,12 +402,7 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
402
402
|
message.issuer = "";
|
|
403
403
|
message.authorizationEndpoint = "";
|
|
404
404
|
message.tokenEndpoint = "";
|
|
405
|
-
message.userinfoEndpoint = "";
|
|
406
405
|
message.jwksUri = "";
|
|
407
|
-
message.endSessionEndpoint = "";
|
|
408
|
-
message.introspectionEndpoint = "";
|
|
409
|
-
message.revocationEndpoint = "";
|
|
410
|
-
message.deviceAuthorizationEndpoint = "";
|
|
411
406
|
message.responseTypesSupported = [];
|
|
412
407
|
message.grantTypesSupported = [];
|
|
413
408
|
message.subjectTypesSupported = [];
|
|
@@ -419,7 +414,6 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
419
414
|
message.backchannelLogoutSupported = false;
|
|
420
415
|
message.backchannelLogoutSessionSupported = false;
|
|
421
416
|
message.authorizationResponseIssParameterSupported = false;
|
|
422
|
-
message.registrationEndpoint = "";
|
|
423
417
|
message.tokenEndpointAuthSigningAlgValuesSupported = [];
|
|
424
418
|
message.revocationEndpointAuthMethodsSupported = [];
|
|
425
419
|
message.revocationEndpointAuthSigningAlgValuesSupported = [];
|
|
@@ -443,22 +437,22 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
443
437
|
case /* string token_endpoint = 3 [json_name = "token_endpoint"] */ 3:
|
|
444
438
|
message.tokenEndpoint = reader.string();
|
|
445
439
|
break;
|
|
446
|
-
case /* string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"] */ 4:
|
|
440
|
+
case /* optional string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"] */ 4:
|
|
447
441
|
message.userinfoEndpoint = reader.string();
|
|
448
442
|
break;
|
|
449
443
|
case /* string jwks_uri = 5 [json_name = "jwks_uri"] */ 5:
|
|
450
444
|
message.jwksUri = reader.string();
|
|
451
445
|
break;
|
|
452
|
-
case /* string end_session_endpoint = 6 [json_name = "end_session_endpoint"] */ 6:
|
|
446
|
+
case /* optional string end_session_endpoint = 6 [json_name = "end_session_endpoint"] */ 6:
|
|
453
447
|
message.endSessionEndpoint = reader.string();
|
|
454
448
|
break;
|
|
455
|
-
case /* string introspection_endpoint = 7 [json_name = "introspection_endpoint"] */ 7:
|
|
449
|
+
case /* optional string introspection_endpoint = 7 [json_name = "introspection_endpoint"] */ 7:
|
|
456
450
|
message.introspectionEndpoint = reader.string();
|
|
457
451
|
break;
|
|
458
|
-
case /* string revocation_endpoint = 8 [json_name = "revocation_endpoint"] */ 8:
|
|
452
|
+
case /* optional string revocation_endpoint = 8 [json_name = "revocation_endpoint"] */ 8:
|
|
459
453
|
message.revocationEndpoint = reader.string();
|
|
460
454
|
break;
|
|
461
|
-
case /* string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"] */ 9:
|
|
455
|
+
case /* optional string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"] */ 9:
|
|
462
456
|
message.deviceAuthorizationEndpoint = reader.string();
|
|
463
457
|
break;
|
|
464
458
|
case /* repeated string response_types_supported = 10 [json_name = "response_types_supported"] */ 10:
|
|
@@ -494,7 +488,7 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
494
488
|
case /* bool authorization_response_iss_parameter_supported = 20 [json_name = "authorization_response_iss_parameter_supported"] */ 20:
|
|
495
489
|
message.authorizationResponseIssParameterSupported = reader.bool();
|
|
496
490
|
break;
|
|
497
|
-
case /* string registration_endpoint = 21 [json_name = "registration_endpoint"] */ 21:
|
|
491
|
+
case /* optional string registration_endpoint = 21 [json_name = "registration_endpoint"] */ 21:
|
|
498
492
|
message.registrationEndpoint = reader.string();
|
|
499
493
|
break;
|
|
500
494
|
case /* repeated string token_endpoint_auth_signing_alg_values_supported = 22 [json_name = "token_endpoint_auth_signing_alg_values_supported"] */ 22:
|
|
@@ -533,23 +527,23 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
533
527
|
/* string token_endpoint = 3 [json_name = "token_endpoint"]; */
|
|
534
528
|
if (message.tokenEndpoint !== "")
|
|
535
529
|
writer.tag(3, WireType.LengthDelimited).string(message.tokenEndpoint);
|
|
536
|
-
/* string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"]; */
|
|
537
|
-
if (message.userinfoEndpoint !==
|
|
530
|
+
/* optional string userinfo_endpoint = 4 [json_name = "userinfo_endpoint"]; */
|
|
531
|
+
if (message.userinfoEndpoint !== undefined)
|
|
538
532
|
writer.tag(4, WireType.LengthDelimited).string(message.userinfoEndpoint);
|
|
539
533
|
/* string jwks_uri = 5 [json_name = "jwks_uri"]; */
|
|
540
534
|
if (message.jwksUri !== "")
|
|
541
535
|
writer.tag(5, WireType.LengthDelimited).string(message.jwksUri);
|
|
542
|
-
/* string end_session_endpoint = 6 [json_name = "end_session_endpoint"]; */
|
|
543
|
-
if (message.endSessionEndpoint !==
|
|
536
|
+
/* optional string end_session_endpoint = 6 [json_name = "end_session_endpoint"]; */
|
|
537
|
+
if (message.endSessionEndpoint !== undefined)
|
|
544
538
|
writer.tag(6, WireType.LengthDelimited).string(message.endSessionEndpoint);
|
|
545
|
-
/* string introspection_endpoint = 7 [json_name = "introspection_endpoint"]; */
|
|
546
|
-
if (message.introspectionEndpoint !==
|
|
539
|
+
/* optional string introspection_endpoint = 7 [json_name = "introspection_endpoint"]; */
|
|
540
|
+
if (message.introspectionEndpoint !== undefined)
|
|
547
541
|
writer.tag(7, WireType.LengthDelimited).string(message.introspectionEndpoint);
|
|
548
|
-
/* string revocation_endpoint = 8 [json_name = "revocation_endpoint"]; */
|
|
549
|
-
if (message.revocationEndpoint !==
|
|
542
|
+
/* optional string revocation_endpoint = 8 [json_name = "revocation_endpoint"]; */
|
|
543
|
+
if (message.revocationEndpoint !== undefined)
|
|
550
544
|
writer.tag(8, WireType.LengthDelimited).string(message.revocationEndpoint);
|
|
551
|
-
/* string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"]; */
|
|
552
|
-
if (message.deviceAuthorizationEndpoint !==
|
|
545
|
+
/* optional string device_authorization_endpoint = 9 [json_name = "device_authorization_endpoint"]; */
|
|
546
|
+
if (message.deviceAuthorizationEndpoint !== undefined)
|
|
553
547
|
writer.tag(9, WireType.LengthDelimited).string(message.deviceAuthorizationEndpoint);
|
|
554
548
|
/* repeated string response_types_supported = 10 [json_name = "response_types_supported"]; */
|
|
555
549
|
for (let i = 0; i < message.responseTypesSupported.length; i++)
|
|
@@ -584,8 +578,8 @@ class ProviderMetadata$Type extends MessageType {
|
|
|
584
578
|
/* bool authorization_response_iss_parameter_supported = 20 [json_name = "authorization_response_iss_parameter_supported"]; */
|
|
585
579
|
if (message.authorizationResponseIssParameterSupported !== false)
|
|
586
580
|
writer.tag(20, WireType.Varint).bool(message.authorizationResponseIssParameterSupported);
|
|
587
|
-
/* string registration_endpoint = 21 [json_name = "registration_endpoint"]; */
|
|
588
|
-
if (message.registrationEndpoint !==
|
|
581
|
+
/* optional string registration_endpoint = 21 [json_name = "registration_endpoint"]; */
|
|
582
|
+
if (message.registrationEndpoint !== undefined)
|
|
589
583
|
writer.tag(21, WireType.LengthDelimited).string(message.registrationEndpoint);
|
|
590
584
|
/* repeated string token_endpoint_auth_signing_alg_values_supported = 22 [json_name = "token_endpoint_auth_signing_alg_values_supported"]; */
|
|
591
585
|
for (let i = 0; i < message.tokenEndpointAuthSigningAlgValuesSupported.length; i++)
|