openxiangda-contracts 2.0.0-alpha.14 → 2.0.0-alpha.16

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/dist/schemas.d.ts CHANGED
@@ -431,6 +431,321 @@ export declare const nativePrincipalSchema: {
431
431
  };
432
432
  };
433
433
  };
434
+ export declare const gatewayAssertionJwksSchema: {
435
+ readonly $id: "openxiangda.gateway-assertion-jwks/v2";
436
+ readonly type: "object";
437
+ readonly additionalProperties: false;
438
+ readonly required: readonly ["schemaVersion", "keys"];
439
+ readonly properties: {
440
+ readonly schemaVersion: {
441
+ readonly const: "openxiangda.gateway-assertion-jwks/v2";
442
+ };
443
+ readonly keys: {
444
+ readonly type: "array";
445
+ readonly minItems: 1;
446
+ readonly maxItems: 3;
447
+ readonly items: {
448
+ readonly type: "object";
449
+ readonly additionalProperties: false;
450
+ readonly required: readonly ["kty", "crv", "x", "use", "alg", "kid"];
451
+ readonly properties: {
452
+ readonly kty: {
453
+ readonly const: "OKP";
454
+ };
455
+ readonly crv: {
456
+ readonly const: "Ed25519";
457
+ };
458
+ readonly x: {
459
+ readonly type: "string";
460
+ readonly minLength: 1;
461
+ };
462
+ readonly use: {
463
+ readonly const: "sig";
464
+ };
465
+ readonly alg: {
466
+ readonly const: "EdDSA";
467
+ };
468
+ readonly kid: {
469
+ readonly type: "string";
470
+ readonly minLength: 1;
471
+ readonly maxLength: 128;
472
+ readonly pattern: "^[A-Za-z0-9._-]+$";
473
+ };
474
+ };
475
+ };
476
+ };
477
+ };
478
+ };
479
+ export declare const gatewayInvocationPrincipalSchema: {
480
+ readonly $id: "openxiangda.gateway-invocation-principal/v2";
481
+ readonly type: "object";
482
+ readonly additionalProperties: false;
483
+ readonly required: readonly ["schemaVersion", "target", "principal", "roleSession", "invocationTokenId"];
484
+ readonly properties: {
485
+ readonly schemaVersion: {
486
+ readonly const: "openxiangda.gateway-invocation-principal/v2";
487
+ };
488
+ readonly target: {
489
+ readonly type: "object";
490
+ readonly additionalProperties: false;
491
+ readonly required: readonly ["tenantId", "appCode", "environmentId", "environmentKey", "appVersionId", "deploymentRunId", "headRevision", "backendRevisionId"];
492
+ readonly properties: {
493
+ readonly tenantId: {
494
+ readonly type: "string";
495
+ readonly minLength: 1;
496
+ };
497
+ readonly appCode: {
498
+ readonly type: "string";
499
+ readonly minLength: 1;
500
+ };
501
+ readonly environmentId: {
502
+ readonly type: "string";
503
+ readonly minLength: 1;
504
+ };
505
+ readonly environmentKey: {
506
+ readonly enum: readonly ["local", "preproduction", "production"];
507
+ };
508
+ readonly appVersionId: {
509
+ readonly type: "string";
510
+ readonly minLength: 1;
511
+ };
512
+ readonly deploymentRunId: {
513
+ readonly type: "string";
514
+ readonly minLength: 1;
515
+ };
516
+ readonly headRevision: {
517
+ readonly type: "integer";
518
+ readonly minimum: 1;
519
+ };
520
+ readonly backendRevisionId: {
521
+ readonly type: "string";
522
+ readonly minLength: 1;
523
+ };
524
+ };
525
+ };
526
+ readonly principal: {
527
+ readonly anyOf: readonly [{
528
+ readonly $ref: "openxiangda.native-principal/v2";
529
+ }, {
530
+ readonly type: "object";
531
+ readonly additionalProperties: false;
532
+ readonly required: readonly ["principalType", "clientRecordId", "clientId", "credentialVersion", "tenantId", "appCode", "environmentId", "environmentKey", "appVersionId", "deploymentRunId", "headRevision", "scopes", "rateLimitPerMinute", "tokenId"];
533
+ readonly properties: {
534
+ readonly principalType: {
535
+ readonly const: "application";
536
+ };
537
+ readonly clientRecordId: {
538
+ readonly type: "string";
539
+ readonly minLength: 1;
540
+ };
541
+ readonly clientId: {
542
+ readonly type: "string";
543
+ readonly minLength: 1;
544
+ };
545
+ readonly credentialVersion: {
546
+ readonly type: "integer";
547
+ readonly minimum: 1;
548
+ };
549
+ readonly runtimeContract: {
550
+ readonly const: "native-2";
551
+ };
552
+ readonly runtimeCredentialId: {
553
+ readonly type: "string";
554
+ readonly minLength: 1;
555
+ };
556
+ readonly tenantId: {
557
+ readonly type: "string";
558
+ readonly minLength: 1;
559
+ };
560
+ readonly appCode: {
561
+ readonly type: "string";
562
+ readonly minLength: 1;
563
+ };
564
+ readonly environmentId: {
565
+ readonly type: "string";
566
+ readonly minLength: 1;
567
+ };
568
+ readonly environmentKey: {
569
+ readonly enum: readonly ["local", "preproduction", "production"];
570
+ };
571
+ readonly appVersionId: {
572
+ readonly type: "string";
573
+ readonly minLength: 1;
574
+ };
575
+ readonly deploymentRunId: {
576
+ readonly type: "string";
577
+ readonly minLength: 1;
578
+ };
579
+ readonly headRevision: {
580
+ readonly type: "integer";
581
+ readonly minimum: 1;
582
+ };
583
+ readonly scopes: {
584
+ readonly type: "array";
585
+ readonly maxItems: 2000;
586
+ readonly uniqueItems: true;
587
+ readonly items: {
588
+ readonly type: "string";
589
+ readonly minLength: 1;
590
+ };
591
+ };
592
+ readonly rateLimitPerMinute: {
593
+ readonly type: "integer";
594
+ readonly minimum: 1;
595
+ };
596
+ readonly tokenId: {
597
+ readonly type: "string";
598
+ readonly minLength: 1;
599
+ };
600
+ readonly issuedAt: {
601
+ readonly type: "integer";
602
+ readonly minimum: 0;
603
+ };
604
+ readonly expiresAt: {
605
+ readonly type: "integer";
606
+ readonly minimum: 0;
607
+ };
608
+ };
609
+ }];
610
+ };
611
+ readonly roleSession: {
612
+ readonly anyOf: readonly [{
613
+ readonly $ref: "openxiangda.native-role-session/v2";
614
+ }, {
615
+ readonly type: "null";
616
+ }];
617
+ };
618
+ readonly invocationTokenId: {
619
+ readonly type: "string";
620
+ readonly minLength: 1;
621
+ };
622
+ };
623
+ };
624
+ export declare const runtimeLeaseResultSchema: {
625
+ readonly $id: "openxiangda.runtime-lease-result/v2";
626
+ readonly type: "object";
627
+ readonly additionalProperties: false;
628
+ readonly required: readonly ["schemaVersion", "granted", "released", "leaseToken", "expiresAt", "retryAfterMs", "target"];
629
+ readonly properties: {
630
+ readonly schemaVersion: {
631
+ readonly const: "openxiangda.runtime-lease-result/v2";
632
+ };
633
+ readonly granted: {
634
+ readonly type: "boolean";
635
+ };
636
+ readonly released: {
637
+ readonly type: "boolean";
638
+ };
639
+ readonly leaseToken: {
640
+ readonly anyOf: readonly [{
641
+ readonly type: "string";
642
+ readonly minLength: 1;
643
+ }, {
644
+ readonly type: "null";
645
+ }];
646
+ };
647
+ readonly expiresAt: {
648
+ readonly anyOf: readonly [{
649
+ readonly type: "string";
650
+ readonly format: "date-time";
651
+ }, {
652
+ readonly type: "null";
653
+ }];
654
+ };
655
+ readonly retryAfterMs: {
656
+ readonly type: "integer";
657
+ readonly minimum: 0;
658
+ readonly maximum: 20000;
659
+ };
660
+ readonly target: {
661
+ readonly type: "object";
662
+ readonly additionalProperties: false;
663
+ readonly required: readonly ["environmentId", "appVersionId", "deploymentRunId", "headRevision"];
664
+ readonly properties: {
665
+ readonly environmentId: {
666
+ readonly type: "string";
667
+ readonly minLength: 1;
668
+ };
669
+ readonly appVersionId: {
670
+ readonly type: "string";
671
+ readonly minLength: 1;
672
+ };
673
+ readonly deploymentRunId: {
674
+ readonly type: "string";
675
+ readonly minLength: 1;
676
+ };
677
+ readonly headRevision: {
678
+ readonly type: "integer";
679
+ readonly minimum: 1;
680
+ };
681
+ };
682
+ };
683
+ };
684
+ };
685
+ export declare const runtimeSecretValuesSchema: {
686
+ readonly $id: "openxiangda.runtime-secret-values/v2";
687
+ readonly type: "object";
688
+ readonly additionalProperties: false;
689
+ readonly required: readonly ["schemaVersion", "items", "target"];
690
+ readonly properties: {
691
+ readonly schemaVersion: {
692
+ readonly const: "openxiangda.runtime-secret-values/v2";
693
+ };
694
+ readonly items: {
695
+ readonly type: "array";
696
+ readonly maxItems: 64;
697
+ readonly items: {
698
+ readonly type: "object";
699
+ readonly additionalProperties: false;
700
+ readonly required: readonly ["name", "env", "value", "version", "revision"];
701
+ readonly properties: {
702
+ readonly name: {
703
+ readonly type: "string";
704
+ readonly minLength: 1;
705
+ };
706
+ readonly env: {
707
+ readonly type: "string";
708
+ readonly pattern: "^[A-Z][A-Z0-9_]{0,127}$";
709
+ };
710
+ readonly value: {
711
+ readonly type: "string";
712
+ };
713
+ readonly version: {
714
+ readonly type: "integer";
715
+ readonly minimum: 1;
716
+ };
717
+ readonly revision: {
718
+ readonly type: "integer";
719
+ readonly minimum: 1;
720
+ };
721
+ };
722
+ };
723
+ };
724
+ readonly target: {
725
+ readonly type: "object";
726
+ readonly additionalProperties: false;
727
+ readonly required: readonly ["environmentId", "appVersionId", "deploymentRunId", "headRevision"];
728
+ readonly properties: {
729
+ readonly environmentId: {
730
+ readonly type: "string";
731
+ readonly minLength: 1;
732
+ };
733
+ readonly appVersionId: {
734
+ readonly type: "string";
735
+ readonly minLength: 1;
736
+ };
737
+ readonly deploymentRunId: {
738
+ readonly type: "string";
739
+ readonly minLength: 1;
740
+ };
741
+ readonly headRevision: {
742
+ readonly type: "integer";
743
+ readonly minimum: 1;
744
+ };
745
+ };
746
+ };
747
+ };
748
+ };
434
749
  export declare const subjectProfileSchema: {
435
750
  readonly $id: "openxiangda.subject-profile/v2";
436
751
  readonly type: "object";
@@ -5780,6 +6095,321 @@ export declare const contractSchemas: {
5780
6095
  };
5781
6096
  };
5782
6097
  };
6098
+ readonly gatewayAssertionJwks: {
6099
+ readonly $id: "openxiangda.gateway-assertion-jwks/v2";
6100
+ readonly type: "object";
6101
+ readonly additionalProperties: false;
6102
+ readonly required: readonly ["schemaVersion", "keys"];
6103
+ readonly properties: {
6104
+ readonly schemaVersion: {
6105
+ readonly const: "openxiangda.gateway-assertion-jwks/v2";
6106
+ };
6107
+ readonly keys: {
6108
+ readonly type: "array";
6109
+ readonly minItems: 1;
6110
+ readonly maxItems: 3;
6111
+ readonly items: {
6112
+ readonly type: "object";
6113
+ readonly additionalProperties: false;
6114
+ readonly required: readonly ["kty", "crv", "x", "use", "alg", "kid"];
6115
+ readonly properties: {
6116
+ readonly kty: {
6117
+ readonly const: "OKP";
6118
+ };
6119
+ readonly crv: {
6120
+ readonly const: "Ed25519";
6121
+ };
6122
+ readonly x: {
6123
+ readonly type: "string";
6124
+ readonly minLength: 1;
6125
+ };
6126
+ readonly use: {
6127
+ readonly const: "sig";
6128
+ };
6129
+ readonly alg: {
6130
+ readonly const: "EdDSA";
6131
+ };
6132
+ readonly kid: {
6133
+ readonly type: "string";
6134
+ readonly minLength: 1;
6135
+ readonly maxLength: 128;
6136
+ readonly pattern: "^[A-Za-z0-9._-]+$";
6137
+ };
6138
+ };
6139
+ };
6140
+ };
6141
+ };
6142
+ };
6143
+ readonly gatewayInvocationPrincipal: {
6144
+ readonly $id: "openxiangda.gateway-invocation-principal/v2";
6145
+ readonly type: "object";
6146
+ readonly additionalProperties: false;
6147
+ readonly required: readonly ["schemaVersion", "target", "principal", "roleSession", "invocationTokenId"];
6148
+ readonly properties: {
6149
+ readonly schemaVersion: {
6150
+ readonly const: "openxiangda.gateway-invocation-principal/v2";
6151
+ };
6152
+ readonly target: {
6153
+ readonly type: "object";
6154
+ readonly additionalProperties: false;
6155
+ readonly required: readonly ["tenantId", "appCode", "environmentId", "environmentKey", "appVersionId", "deploymentRunId", "headRevision", "backendRevisionId"];
6156
+ readonly properties: {
6157
+ readonly tenantId: {
6158
+ readonly type: "string";
6159
+ readonly minLength: 1;
6160
+ };
6161
+ readonly appCode: {
6162
+ readonly type: "string";
6163
+ readonly minLength: 1;
6164
+ };
6165
+ readonly environmentId: {
6166
+ readonly type: "string";
6167
+ readonly minLength: 1;
6168
+ };
6169
+ readonly environmentKey: {
6170
+ readonly enum: readonly ["local", "preproduction", "production"];
6171
+ };
6172
+ readonly appVersionId: {
6173
+ readonly type: "string";
6174
+ readonly minLength: 1;
6175
+ };
6176
+ readonly deploymentRunId: {
6177
+ readonly type: "string";
6178
+ readonly minLength: 1;
6179
+ };
6180
+ readonly headRevision: {
6181
+ readonly type: "integer";
6182
+ readonly minimum: 1;
6183
+ };
6184
+ readonly backendRevisionId: {
6185
+ readonly type: "string";
6186
+ readonly minLength: 1;
6187
+ };
6188
+ };
6189
+ };
6190
+ readonly principal: {
6191
+ readonly anyOf: readonly [{
6192
+ readonly $ref: "openxiangda.native-principal/v2";
6193
+ }, {
6194
+ readonly type: "object";
6195
+ readonly additionalProperties: false;
6196
+ readonly required: readonly ["principalType", "clientRecordId", "clientId", "credentialVersion", "tenantId", "appCode", "environmentId", "environmentKey", "appVersionId", "deploymentRunId", "headRevision", "scopes", "rateLimitPerMinute", "tokenId"];
6197
+ readonly properties: {
6198
+ readonly principalType: {
6199
+ readonly const: "application";
6200
+ };
6201
+ readonly clientRecordId: {
6202
+ readonly type: "string";
6203
+ readonly minLength: 1;
6204
+ };
6205
+ readonly clientId: {
6206
+ readonly type: "string";
6207
+ readonly minLength: 1;
6208
+ };
6209
+ readonly credentialVersion: {
6210
+ readonly type: "integer";
6211
+ readonly minimum: 1;
6212
+ };
6213
+ readonly runtimeContract: {
6214
+ readonly const: "native-2";
6215
+ };
6216
+ readonly runtimeCredentialId: {
6217
+ readonly type: "string";
6218
+ readonly minLength: 1;
6219
+ };
6220
+ readonly tenantId: {
6221
+ readonly type: "string";
6222
+ readonly minLength: 1;
6223
+ };
6224
+ readonly appCode: {
6225
+ readonly type: "string";
6226
+ readonly minLength: 1;
6227
+ };
6228
+ readonly environmentId: {
6229
+ readonly type: "string";
6230
+ readonly minLength: 1;
6231
+ };
6232
+ readonly environmentKey: {
6233
+ readonly enum: readonly ["local", "preproduction", "production"];
6234
+ };
6235
+ readonly appVersionId: {
6236
+ readonly type: "string";
6237
+ readonly minLength: 1;
6238
+ };
6239
+ readonly deploymentRunId: {
6240
+ readonly type: "string";
6241
+ readonly minLength: 1;
6242
+ };
6243
+ readonly headRevision: {
6244
+ readonly type: "integer";
6245
+ readonly minimum: 1;
6246
+ };
6247
+ readonly scopes: {
6248
+ readonly type: "array";
6249
+ readonly maxItems: 2000;
6250
+ readonly uniqueItems: true;
6251
+ readonly items: {
6252
+ readonly type: "string";
6253
+ readonly minLength: 1;
6254
+ };
6255
+ };
6256
+ readonly rateLimitPerMinute: {
6257
+ readonly type: "integer";
6258
+ readonly minimum: 1;
6259
+ };
6260
+ readonly tokenId: {
6261
+ readonly type: "string";
6262
+ readonly minLength: 1;
6263
+ };
6264
+ readonly issuedAt: {
6265
+ readonly type: "integer";
6266
+ readonly minimum: 0;
6267
+ };
6268
+ readonly expiresAt: {
6269
+ readonly type: "integer";
6270
+ readonly minimum: 0;
6271
+ };
6272
+ };
6273
+ }];
6274
+ };
6275
+ readonly roleSession: {
6276
+ readonly anyOf: readonly [{
6277
+ readonly $ref: "openxiangda.native-role-session/v2";
6278
+ }, {
6279
+ readonly type: "null";
6280
+ }];
6281
+ };
6282
+ readonly invocationTokenId: {
6283
+ readonly type: "string";
6284
+ readonly minLength: 1;
6285
+ };
6286
+ };
6287
+ };
6288
+ readonly runtimeLeaseResult: {
6289
+ readonly $id: "openxiangda.runtime-lease-result/v2";
6290
+ readonly type: "object";
6291
+ readonly additionalProperties: false;
6292
+ readonly required: readonly ["schemaVersion", "granted", "released", "leaseToken", "expiresAt", "retryAfterMs", "target"];
6293
+ readonly properties: {
6294
+ readonly schemaVersion: {
6295
+ readonly const: "openxiangda.runtime-lease-result/v2";
6296
+ };
6297
+ readonly granted: {
6298
+ readonly type: "boolean";
6299
+ };
6300
+ readonly released: {
6301
+ readonly type: "boolean";
6302
+ };
6303
+ readonly leaseToken: {
6304
+ readonly anyOf: readonly [{
6305
+ readonly type: "string";
6306
+ readonly minLength: 1;
6307
+ }, {
6308
+ readonly type: "null";
6309
+ }];
6310
+ };
6311
+ readonly expiresAt: {
6312
+ readonly anyOf: readonly [{
6313
+ readonly type: "string";
6314
+ readonly format: "date-time";
6315
+ }, {
6316
+ readonly type: "null";
6317
+ }];
6318
+ };
6319
+ readonly retryAfterMs: {
6320
+ readonly type: "integer";
6321
+ readonly minimum: 0;
6322
+ readonly maximum: 20000;
6323
+ };
6324
+ readonly target: {
6325
+ readonly type: "object";
6326
+ readonly additionalProperties: false;
6327
+ readonly required: readonly ["environmentId", "appVersionId", "deploymentRunId", "headRevision"];
6328
+ readonly properties: {
6329
+ readonly environmentId: {
6330
+ readonly type: "string";
6331
+ readonly minLength: 1;
6332
+ };
6333
+ readonly appVersionId: {
6334
+ readonly type: "string";
6335
+ readonly minLength: 1;
6336
+ };
6337
+ readonly deploymentRunId: {
6338
+ readonly type: "string";
6339
+ readonly minLength: 1;
6340
+ };
6341
+ readonly headRevision: {
6342
+ readonly type: "integer";
6343
+ readonly minimum: 1;
6344
+ };
6345
+ };
6346
+ };
6347
+ };
6348
+ };
6349
+ readonly runtimeSecretValues: {
6350
+ readonly $id: "openxiangda.runtime-secret-values/v2";
6351
+ readonly type: "object";
6352
+ readonly additionalProperties: false;
6353
+ readonly required: readonly ["schemaVersion", "items", "target"];
6354
+ readonly properties: {
6355
+ readonly schemaVersion: {
6356
+ readonly const: "openxiangda.runtime-secret-values/v2";
6357
+ };
6358
+ readonly items: {
6359
+ readonly type: "array";
6360
+ readonly maxItems: 64;
6361
+ readonly items: {
6362
+ readonly type: "object";
6363
+ readonly additionalProperties: false;
6364
+ readonly required: readonly ["name", "env", "value", "version", "revision"];
6365
+ readonly properties: {
6366
+ readonly name: {
6367
+ readonly type: "string";
6368
+ readonly minLength: 1;
6369
+ };
6370
+ readonly env: {
6371
+ readonly type: "string";
6372
+ readonly pattern: "^[A-Z][A-Z0-9_]{0,127}$";
6373
+ };
6374
+ readonly value: {
6375
+ readonly type: "string";
6376
+ };
6377
+ readonly version: {
6378
+ readonly type: "integer";
6379
+ readonly minimum: 1;
6380
+ };
6381
+ readonly revision: {
6382
+ readonly type: "integer";
6383
+ readonly minimum: 1;
6384
+ };
6385
+ };
6386
+ };
6387
+ };
6388
+ readonly target: {
6389
+ readonly type: "object";
6390
+ readonly additionalProperties: false;
6391
+ readonly required: readonly ["environmentId", "appVersionId", "deploymentRunId", "headRevision"];
6392
+ readonly properties: {
6393
+ readonly environmentId: {
6394
+ readonly type: "string";
6395
+ readonly minLength: 1;
6396
+ };
6397
+ readonly appVersionId: {
6398
+ readonly type: "string";
6399
+ readonly minLength: 1;
6400
+ };
6401
+ readonly deploymentRunId: {
6402
+ readonly type: "string";
6403
+ readonly minLength: 1;
6404
+ };
6405
+ readonly headRevision: {
6406
+ readonly type: "integer";
6407
+ readonly minimum: 1;
6408
+ };
6409
+ };
6410
+ };
6411
+ };
6412
+ };
5783
6413
  readonly subjectProfile: {
5784
6414
  readonly $id: "openxiangda.subject-profile/v2";
5785
6415
  readonly type: "object";