openxiangda-contracts 2.16.2 → 2.17.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/dist/native-compiler/compiler.d.ts +1 -0
- package/dist/native-compiler/compiler.d.ts.map +1 -1
- package/dist/native-compiler/compiler.js +336 -2
- package/dist/native-compiler/compiler.js.map +1 -1
- package/dist/native-compiler/index.cjs +5 -5
- package/dist/native-compiler/index.js +5 -5
- package/dist/native.d.ts +134 -0
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js.map +1 -1
- package/dist/schemas.d.ts +631 -11
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +146 -0
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -14803,6 +14803,106 @@ export declare const configurationBundleSchema: {
|
|
|
14803
14803
|
};
|
|
14804
14804
|
};
|
|
14805
14805
|
};
|
|
14806
|
+
readonly browser: {
|
|
14807
|
+
readonly type: "object";
|
|
14808
|
+
readonly additionalProperties: false;
|
|
14809
|
+
readonly required: readonly ["exposure", "behavior", "idempotency", "subject"];
|
|
14810
|
+
readonly properties: {
|
|
14811
|
+
readonly exposure: {
|
|
14812
|
+
readonly const: "authenticated";
|
|
14813
|
+
};
|
|
14814
|
+
readonly behavior: {
|
|
14815
|
+
readonly enum: readonly ["read", "controlled"];
|
|
14816
|
+
};
|
|
14817
|
+
readonly idempotency: {
|
|
14818
|
+
readonly enum: readonly ["none", "required"];
|
|
14819
|
+
};
|
|
14820
|
+
readonly subject: {
|
|
14821
|
+
readonly type: "object";
|
|
14822
|
+
readonly additionalProperties: false;
|
|
14823
|
+
readonly required: readonly ["resourceCode", "inputField"];
|
|
14824
|
+
readonly properties: {
|
|
14825
|
+
readonly resourceCode: {
|
|
14826
|
+
readonly type: "string";
|
|
14827
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
14828
|
+
};
|
|
14829
|
+
readonly inputField: {
|
|
14830
|
+
readonly type: "string";
|
|
14831
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14832
|
+
};
|
|
14833
|
+
};
|
|
14834
|
+
};
|
|
14835
|
+
readonly refreshTargets: {
|
|
14836
|
+
readonly type: "array";
|
|
14837
|
+
readonly maxItems: 16;
|
|
14838
|
+
readonly items: {
|
|
14839
|
+
readonly type: "object";
|
|
14840
|
+
readonly additionalProperties: false;
|
|
14841
|
+
readonly required: readonly ["kind", "code"];
|
|
14842
|
+
readonly properties: {
|
|
14843
|
+
readonly kind: {
|
|
14844
|
+
readonly const: "subject-surface";
|
|
14845
|
+
};
|
|
14846
|
+
readonly code: {
|
|
14847
|
+
readonly type: "string";
|
|
14848
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
14849
|
+
readonly maxLength: 128;
|
|
14850
|
+
};
|
|
14851
|
+
};
|
|
14852
|
+
};
|
|
14853
|
+
};
|
|
14854
|
+
readonly fileIntent: {
|
|
14855
|
+
readonly type: "object";
|
|
14856
|
+
readonly additionalProperties: false;
|
|
14857
|
+
readonly required: readonly ["recordResourceCode", "recordIdInputField", "relationField", "fileNameField", "contentTypeField", "sizeField", "purposes", "maxTtlSeconds", "maxBytes"];
|
|
14858
|
+
readonly properties: {
|
|
14859
|
+
readonly recordResourceCode: {
|
|
14860
|
+
readonly type: "string";
|
|
14861
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
14862
|
+
};
|
|
14863
|
+
readonly recordIdInputField: {
|
|
14864
|
+
readonly type: "string";
|
|
14865
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14866
|
+
};
|
|
14867
|
+
readonly relationField: {
|
|
14868
|
+
readonly type: "string";
|
|
14869
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14870
|
+
};
|
|
14871
|
+
readonly fileNameField: {
|
|
14872
|
+
readonly type: "string";
|
|
14873
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14874
|
+
};
|
|
14875
|
+
readonly contentTypeField: {
|
|
14876
|
+
readonly type: "string";
|
|
14877
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14878
|
+
};
|
|
14879
|
+
readonly sizeField: {
|
|
14880
|
+
readonly type: "string";
|
|
14881
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
14882
|
+
};
|
|
14883
|
+
readonly purposes: {
|
|
14884
|
+
readonly type: "array";
|
|
14885
|
+
readonly minItems: 1;
|
|
14886
|
+
readonly maxItems: 2;
|
|
14887
|
+
readonly uniqueItems: true;
|
|
14888
|
+
readonly items: {
|
|
14889
|
+
readonly enum: readonly ["preview", "download"];
|
|
14890
|
+
};
|
|
14891
|
+
};
|
|
14892
|
+
readonly maxTtlSeconds: {
|
|
14893
|
+
readonly type: "integer";
|
|
14894
|
+
readonly minimum: 1;
|
|
14895
|
+
readonly maximum: 300;
|
|
14896
|
+
};
|
|
14897
|
+
readonly maxBytes: {
|
|
14898
|
+
readonly type: "integer";
|
|
14899
|
+
readonly minimum: 1;
|
|
14900
|
+
readonly maximum: 104857600;
|
|
14901
|
+
};
|
|
14902
|
+
};
|
|
14903
|
+
};
|
|
14904
|
+
};
|
|
14905
|
+
};
|
|
14806
14906
|
readonly ai: {
|
|
14807
14907
|
readonly type: "object";
|
|
14808
14908
|
readonly additionalProperties: false;
|
|
@@ -14865,6 +14965,111 @@ export declare const configurationBundleSchema: {
|
|
|
14865
14965
|
readonly $ref: "openxiangda.data-resource/v2";
|
|
14866
14966
|
};
|
|
14867
14967
|
};
|
|
14968
|
+
readonly subjectReadSurfaces: {
|
|
14969
|
+
readonly type: "array";
|
|
14970
|
+
readonly maxItems: 50;
|
|
14971
|
+
readonly items: {
|
|
14972
|
+
readonly type: "object";
|
|
14973
|
+
readonly additionalProperties: false;
|
|
14974
|
+
readonly required: readonly ["code", "name", "capability", "subject", "relations"];
|
|
14975
|
+
readonly properties: {
|
|
14976
|
+
readonly code: {
|
|
14977
|
+
readonly type: "string";
|
|
14978
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
14979
|
+
readonly maxLength: 128;
|
|
14980
|
+
};
|
|
14981
|
+
readonly name: {
|
|
14982
|
+
readonly type: "string";
|
|
14983
|
+
readonly minLength: 1;
|
|
14984
|
+
};
|
|
14985
|
+
readonly capability: {
|
|
14986
|
+
readonly type: "string";
|
|
14987
|
+
readonly pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._*-]+$";
|
|
14988
|
+
readonly maxLength: 255;
|
|
14989
|
+
};
|
|
14990
|
+
readonly subject: {
|
|
14991
|
+
readonly type: "object";
|
|
14992
|
+
readonly additionalProperties: false;
|
|
14993
|
+
readonly required: readonly ["resourceCode", "fields"];
|
|
14994
|
+
readonly properties: {
|
|
14995
|
+
readonly resourceCode: {
|
|
14996
|
+
readonly type: "string";
|
|
14997
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
14998
|
+
};
|
|
14999
|
+
readonly fields: {
|
|
15000
|
+
readonly type: "array";
|
|
15001
|
+
readonly minItems: 1;
|
|
15002
|
+
readonly maxItems: 100;
|
|
15003
|
+
readonly uniqueItems: true;
|
|
15004
|
+
readonly items: {
|
|
15005
|
+
readonly type: "string";
|
|
15006
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
15007
|
+
};
|
|
15008
|
+
};
|
|
15009
|
+
};
|
|
15010
|
+
};
|
|
15011
|
+
readonly relations: {
|
|
15012
|
+
readonly type: "array";
|
|
15013
|
+
readonly minItems: 1;
|
|
15014
|
+
readonly maxItems: 8;
|
|
15015
|
+
readonly items: {
|
|
15016
|
+
readonly type: "object";
|
|
15017
|
+
readonly additionalProperties: false;
|
|
15018
|
+
readonly required: readonly ["code", "resourceCode", "foreignKeyField", "fields", "limit"];
|
|
15019
|
+
readonly properties: {
|
|
15020
|
+
readonly code: {
|
|
15021
|
+
readonly type: "string";
|
|
15022
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
15023
|
+
readonly maxLength: 128;
|
|
15024
|
+
};
|
|
15025
|
+
readonly resourceCode: {
|
|
15026
|
+
readonly type: "string";
|
|
15027
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
15028
|
+
};
|
|
15029
|
+
readonly foreignKeyField: {
|
|
15030
|
+
readonly type: "string";
|
|
15031
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
15032
|
+
};
|
|
15033
|
+
readonly fields: {
|
|
15034
|
+
readonly type: "array";
|
|
15035
|
+
readonly minItems: 1;
|
|
15036
|
+
readonly maxItems: 100;
|
|
15037
|
+
readonly uniqueItems: true;
|
|
15038
|
+
readonly items: {
|
|
15039
|
+
readonly type: "string";
|
|
15040
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
15041
|
+
};
|
|
15042
|
+
};
|
|
15043
|
+
readonly order: {
|
|
15044
|
+
readonly type: "array";
|
|
15045
|
+
readonly maxItems: 10;
|
|
15046
|
+
readonly items: {
|
|
15047
|
+
readonly type: "object";
|
|
15048
|
+
readonly additionalProperties: false;
|
|
15049
|
+
readonly required: readonly ["field", "direction"];
|
|
15050
|
+
readonly properties: {
|
|
15051
|
+
readonly field: {
|
|
15052
|
+
readonly type: "string";
|
|
15053
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
15054
|
+
readonly maxLength: 128;
|
|
15055
|
+
};
|
|
15056
|
+
readonly direction: {
|
|
15057
|
+
readonly enum: readonly ["asc", "desc"];
|
|
15058
|
+
};
|
|
15059
|
+
};
|
|
15060
|
+
};
|
|
15061
|
+
};
|
|
15062
|
+
readonly limit: {
|
|
15063
|
+
readonly type: "integer";
|
|
15064
|
+
readonly minimum: 1;
|
|
15065
|
+
readonly maximum: 100;
|
|
15066
|
+
};
|
|
15067
|
+
};
|
|
15068
|
+
};
|
|
15069
|
+
};
|
|
15070
|
+
};
|
|
15071
|
+
};
|
|
15072
|
+
};
|
|
14868
15073
|
readonly resourceDetailRoutes: {
|
|
14869
15074
|
readonly type: "array";
|
|
14870
15075
|
readonly maxItems: 100;
|
|
@@ -16080,6 +16285,111 @@ export declare const contractBundleSchema: {
|
|
|
16080
16285
|
readonly type: "object";
|
|
16081
16286
|
};
|
|
16082
16287
|
};
|
|
16288
|
+
readonly subjectReadSurfaces: {
|
|
16289
|
+
readonly type: "array";
|
|
16290
|
+
readonly maxItems: 50;
|
|
16291
|
+
readonly items: {
|
|
16292
|
+
readonly type: "object";
|
|
16293
|
+
readonly additionalProperties: false;
|
|
16294
|
+
readonly required: readonly ["code", "name", "capability", "subject", "relations"];
|
|
16295
|
+
readonly properties: {
|
|
16296
|
+
readonly code: {
|
|
16297
|
+
readonly type: "string";
|
|
16298
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
16299
|
+
readonly maxLength: 128;
|
|
16300
|
+
};
|
|
16301
|
+
readonly name: {
|
|
16302
|
+
readonly type: "string";
|
|
16303
|
+
readonly minLength: 1;
|
|
16304
|
+
};
|
|
16305
|
+
readonly capability: {
|
|
16306
|
+
readonly type: "string";
|
|
16307
|
+
readonly pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._*-]+$";
|
|
16308
|
+
readonly maxLength: 255;
|
|
16309
|
+
};
|
|
16310
|
+
readonly subject: {
|
|
16311
|
+
readonly type: "object";
|
|
16312
|
+
readonly additionalProperties: false;
|
|
16313
|
+
readonly required: readonly ["resourceCode", "fields"];
|
|
16314
|
+
readonly properties: {
|
|
16315
|
+
readonly resourceCode: {
|
|
16316
|
+
readonly type: "string";
|
|
16317
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
16318
|
+
};
|
|
16319
|
+
readonly fields: {
|
|
16320
|
+
readonly type: "array";
|
|
16321
|
+
readonly minItems: 1;
|
|
16322
|
+
readonly maxItems: 100;
|
|
16323
|
+
readonly uniqueItems: true;
|
|
16324
|
+
readonly items: {
|
|
16325
|
+
readonly type: "string";
|
|
16326
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
16327
|
+
};
|
|
16328
|
+
};
|
|
16329
|
+
};
|
|
16330
|
+
};
|
|
16331
|
+
readonly relations: {
|
|
16332
|
+
readonly type: "array";
|
|
16333
|
+
readonly minItems: 1;
|
|
16334
|
+
readonly maxItems: 8;
|
|
16335
|
+
readonly items: {
|
|
16336
|
+
readonly type: "object";
|
|
16337
|
+
readonly additionalProperties: false;
|
|
16338
|
+
readonly required: readonly ["code", "resourceCode", "foreignKeyField", "fields", "limit"];
|
|
16339
|
+
readonly properties: {
|
|
16340
|
+
readonly code: {
|
|
16341
|
+
readonly type: "string";
|
|
16342
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
16343
|
+
readonly maxLength: 128;
|
|
16344
|
+
};
|
|
16345
|
+
readonly resourceCode: {
|
|
16346
|
+
readonly type: "string";
|
|
16347
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
16348
|
+
};
|
|
16349
|
+
readonly foreignKeyField: {
|
|
16350
|
+
readonly type: "string";
|
|
16351
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
16352
|
+
};
|
|
16353
|
+
readonly fields: {
|
|
16354
|
+
readonly type: "array";
|
|
16355
|
+
readonly minItems: 1;
|
|
16356
|
+
readonly maxItems: 100;
|
|
16357
|
+
readonly uniqueItems: true;
|
|
16358
|
+
readonly items: {
|
|
16359
|
+
readonly type: "string";
|
|
16360
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
16361
|
+
};
|
|
16362
|
+
};
|
|
16363
|
+
readonly order: {
|
|
16364
|
+
readonly type: "array";
|
|
16365
|
+
readonly maxItems: 10;
|
|
16366
|
+
readonly items: {
|
|
16367
|
+
readonly type: "object";
|
|
16368
|
+
readonly additionalProperties: false;
|
|
16369
|
+
readonly required: readonly ["field", "direction"];
|
|
16370
|
+
readonly properties: {
|
|
16371
|
+
readonly field: {
|
|
16372
|
+
readonly type: "string";
|
|
16373
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
16374
|
+
readonly maxLength: 128;
|
|
16375
|
+
};
|
|
16376
|
+
readonly direction: {
|
|
16377
|
+
readonly enum: readonly ["asc", "desc"];
|
|
16378
|
+
};
|
|
16379
|
+
};
|
|
16380
|
+
};
|
|
16381
|
+
};
|
|
16382
|
+
readonly limit: {
|
|
16383
|
+
readonly type: "integer";
|
|
16384
|
+
readonly minimum: 1;
|
|
16385
|
+
readonly maximum: 100;
|
|
16386
|
+
};
|
|
16387
|
+
};
|
|
16388
|
+
};
|
|
16389
|
+
};
|
|
16390
|
+
};
|
|
16391
|
+
};
|
|
16392
|
+
};
|
|
16083
16393
|
readonly capabilities: {
|
|
16084
16394
|
readonly type: "array";
|
|
16085
16395
|
readonly maxItems: 2000;
|
|
@@ -32227,32 +32537,132 @@ export declare const contractSchemas: {
|
|
|
32227
32537
|
};
|
|
32228
32538
|
};
|
|
32229
32539
|
};
|
|
32230
|
-
readonly notification: {
|
|
32540
|
+
readonly notification: {
|
|
32541
|
+
readonly type: "object";
|
|
32542
|
+
readonly additionalProperties: false;
|
|
32543
|
+
readonly required: readonly ["mode"];
|
|
32544
|
+
readonly properties: {
|
|
32545
|
+
readonly mode: {
|
|
32546
|
+
readonly const: "business-standard";
|
|
32547
|
+
};
|
|
32548
|
+
};
|
|
32549
|
+
};
|
|
32550
|
+
readonly workflow: {
|
|
32551
|
+
readonly type: "object";
|
|
32552
|
+
readonly additionalProperties: false;
|
|
32553
|
+
readonly required: readonly ["codes"];
|
|
32554
|
+
readonly properties: {
|
|
32555
|
+
readonly codes: {
|
|
32556
|
+
readonly type: "array";
|
|
32557
|
+
readonly minItems: 1;
|
|
32558
|
+
readonly maxItems: 16;
|
|
32559
|
+
readonly uniqueItems: true;
|
|
32560
|
+
readonly items: {
|
|
32561
|
+
readonly type: "string";
|
|
32562
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32563
|
+
readonly maxLength: 128;
|
|
32564
|
+
};
|
|
32565
|
+
};
|
|
32566
|
+
};
|
|
32567
|
+
};
|
|
32568
|
+
};
|
|
32569
|
+
};
|
|
32570
|
+
readonly browser: {
|
|
32571
|
+
readonly type: "object";
|
|
32572
|
+
readonly additionalProperties: false;
|
|
32573
|
+
readonly required: readonly ["exposure", "behavior", "idempotency", "subject"];
|
|
32574
|
+
readonly properties: {
|
|
32575
|
+
readonly exposure: {
|
|
32576
|
+
readonly const: "authenticated";
|
|
32577
|
+
};
|
|
32578
|
+
readonly behavior: {
|
|
32579
|
+
readonly enum: readonly ["read", "controlled"];
|
|
32580
|
+
};
|
|
32581
|
+
readonly idempotency: {
|
|
32582
|
+
readonly enum: readonly ["none", "required"];
|
|
32583
|
+
};
|
|
32584
|
+
readonly subject: {
|
|
32231
32585
|
readonly type: "object";
|
|
32232
32586
|
readonly additionalProperties: false;
|
|
32233
|
-
readonly required: readonly ["
|
|
32587
|
+
readonly required: readonly ["resourceCode", "inputField"];
|
|
32234
32588
|
readonly properties: {
|
|
32235
|
-
readonly
|
|
32236
|
-
readonly
|
|
32589
|
+
readonly resourceCode: {
|
|
32590
|
+
readonly type: "string";
|
|
32591
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
32592
|
+
};
|
|
32593
|
+
readonly inputField: {
|
|
32594
|
+
readonly type: "string";
|
|
32595
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32237
32596
|
};
|
|
32238
32597
|
};
|
|
32239
32598
|
};
|
|
32240
|
-
readonly
|
|
32599
|
+
readonly refreshTargets: {
|
|
32600
|
+
readonly type: "array";
|
|
32601
|
+
readonly maxItems: 16;
|
|
32602
|
+
readonly items: {
|
|
32603
|
+
readonly type: "object";
|
|
32604
|
+
readonly additionalProperties: false;
|
|
32605
|
+
readonly required: readonly ["kind", "code"];
|
|
32606
|
+
readonly properties: {
|
|
32607
|
+
readonly kind: {
|
|
32608
|
+
readonly const: "subject-surface";
|
|
32609
|
+
};
|
|
32610
|
+
readonly code: {
|
|
32611
|
+
readonly type: "string";
|
|
32612
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32613
|
+
readonly maxLength: 128;
|
|
32614
|
+
};
|
|
32615
|
+
};
|
|
32616
|
+
};
|
|
32617
|
+
};
|
|
32618
|
+
readonly fileIntent: {
|
|
32241
32619
|
readonly type: "object";
|
|
32242
32620
|
readonly additionalProperties: false;
|
|
32243
|
-
readonly required: readonly ["
|
|
32621
|
+
readonly required: readonly ["recordResourceCode", "recordIdInputField", "relationField", "fileNameField", "contentTypeField", "sizeField", "purposes", "maxTtlSeconds", "maxBytes"];
|
|
32244
32622
|
readonly properties: {
|
|
32245
|
-
readonly
|
|
32623
|
+
readonly recordResourceCode: {
|
|
32624
|
+
readonly type: "string";
|
|
32625
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
32626
|
+
};
|
|
32627
|
+
readonly recordIdInputField: {
|
|
32628
|
+
readonly type: "string";
|
|
32629
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32630
|
+
};
|
|
32631
|
+
readonly relationField: {
|
|
32632
|
+
readonly type: "string";
|
|
32633
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32634
|
+
};
|
|
32635
|
+
readonly fileNameField: {
|
|
32636
|
+
readonly type: "string";
|
|
32637
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32638
|
+
};
|
|
32639
|
+
readonly contentTypeField: {
|
|
32640
|
+
readonly type: "string";
|
|
32641
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32642
|
+
};
|
|
32643
|
+
readonly sizeField: {
|
|
32644
|
+
readonly type: "string";
|
|
32645
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32646
|
+
};
|
|
32647
|
+
readonly purposes: {
|
|
32246
32648
|
readonly type: "array";
|
|
32247
32649
|
readonly minItems: 1;
|
|
32248
|
-
readonly maxItems:
|
|
32650
|
+
readonly maxItems: 2;
|
|
32249
32651
|
readonly uniqueItems: true;
|
|
32250
32652
|
readonly items: {
|
|
32251
|
-
readonly
|
|
32252
|
-
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32253
|
-
readonly maxLength: 128;
|
|
32653
|
+
readonly enum: readonly ["preview", "download"];
|
|
32254
32654
|
};
|
|
32255
32655
|
};
|
|
32656
|
+
readonly maxTtlSeconds: {
|
|
32657
|
+
readonly type: "integer";
|
|
32658
|
+
readonly minimum: 1;
|
|
32659
|
+
readonly maximum: 300;
|
|
32660
|
+
};
|
|
32661
|
+
readonly maxBytes: {
|
|
32662
|
+
readonly type: "integer";
|
|
32663
|
+
readonly minimum: 1;
|
|
32664
|
+
readonly maximum: 104857600;
|
|
32665
|
+
};
|
|
32256
32666
|
};
|
|
32257
32667
|
};
|
|
32258
32668
|
};
|
|
@@ -32319,6 +32729,111 @@ export declare const contractSchemas: {
|
|
|
32319
32729
|
readonly $ref: "openxiangda.data-resource/v2";
|
|
32320
32730
|
};
|
|
32321
32731
|
};
|
|
32732
|
+
readonly subjectReadSurfaces: {
|
|
32733
|
+
readonly type: "array";
|
|
32734
|
+
readonly maxItems: 50;
|
|
32735
|
+
readonly items: {
|
|
32736
|
+
readonly type: "object";
|
|
32737
|
+
readonly additionalProperties: false;
|
|
32738
|
+
readonly required: readonly ["code", "name", "capability", "subject", "relations"];
|
|
32739
|
+
readonly properties: {
|
|
32740
|
+
readonly code: {
|
|
32741
|
+
readonly type: "string";
|
|
32742
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32743
|
+
readonly maxLength: 128;
|
|
32744
|
+
};
|
|
32745
|
+
readonly name: {
|
|
32746
|
+
readonly type: "string";
|
|
32747
|
+
readonly minLength: 1;
|
|
32748
|
+
};
|
|
32749
|
+
readonly capability: {
|
|
32750
|
+
readonly type: "string";
|
|
32751
|
+
readonly pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._*-]+$";
|
|
32752
|
+
readonly maxLength: 255;
|
|
32753
|
+
};
|
|
32754
|
+
readonly subject: {
|
|
32755
|
+
readonly type: "object";
|
|
32756
|
+
readonly additionalProperties: false;
|
|
32757
|
+
readonly required: readonly ["resourceCode", "fields"];
|
|
32758
|
+
readonly properties: {
|
|
32759
|
+
readonly resourceCode: {
|
|
32760
|
+
readonly type: "string";
|
|
32761
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
32762
|
+
};
|
|
32763
|
+
readonly fields: {
|
|
32764
|
+
readonly type: "array";
|
|
32765
|
+
readonly minItems: 1;
|
|
32766
|
+
readonly maxItems: 100;
|
|
32767
|
+
readonly uniqueItems: true;
|
|
32768
|
+
readonly items: {
|
|
32769
|
+
readonly type: "string";
|
|
32770
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32771
|
+
};
|
|
32772
|
+
};
|
|
32773
|
+
};
|
|
32774
|
+
};
|
|
32775
|
+
readonly relations: {
|
|
32776
|
+
readonly type: "array";
|
|
32777
|
+
readonly minItems: 1;
|
|
32778
|
+
readonly maxItems: 8;
|
|
32779
|
+
readonly items: {
|
|
32780
|
+
readonly type: "object";
|
|
32781
|
+
readonly additionalProperties: false;
|
|
32782
|
+
readonly required: readonly ["code", "resourceCode", "foreignKeyField", "fields", "limit"];
|
|
32783
|
+
readonly properties: {
|
|
32784
|
+
readonly code: {
|
|
32785
|
+
readonly type: "string";
|
|
32786
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32787
|
+
readonly maxLength: 128;
|
|
32788
|
+
};
|
|
32789
|
+
readonly resourceCode: {
|
|
32790
|
+
readonly type: "string";
|
|
32791
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
32792
|
+
};
|
|
32793
|
+
readonly foreignKeyField: {
|
|
32794
|
+
readonly type: "string";
|
|
32795
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32796
|
+
};
|
|
32797
|
+
readonly fields: {
|
|
32798
|
+
readonly type: "array";
|
|
32799
|
+
readonly minItems: 1;
|
|
32800
|
+
readonly maxItems: 100;
|
|
32801
|
+
readonly uniqueItems: true;
|
|
32802
|
+
readonly items: {
|
|
32803
|
+
readonly type: "string";
|
|
32804
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
32805
|
+
};
|
|
32806
|
+
};
|
|
32807
|
+
readonly order: {
|
|
32808
|
+
readonly type: "array";
|
|
32809
|
+
readonly maxItems: 10;
|
|
32810
|
+
readonly items: {
|
|
32811
|
+
readonly type: "object";
|
|
32812
|
+
readonly additionalProperties: false;
|
|
32813
|
+
readonly required: readonly ["field", "direction"];
|
|
32814
|
+
readonly properties: {
|
|
32815
|
+
readonly field: {
|
|
32816
|
+
readonly type: "string";
|
|
32817
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
32818
|
+
readonly maxLength: 128;
|
|
32819
|
+
};
|
|
32820
|
+
readonly direction: {
|
|
32821
|
+
readonly enum: readonly ["asc", "desc"];
|
|
32822
|
+
};
|
|
32823
|
+
};
|
|
32824
|
+
};
|
|
32825
|
+
};
|
|
32826
|
+
readonly limit: {
|
|
32827
|
+
readonly type: "integer";
|
|
32828
|
+
readonly minimum: 1;
|
|
32829
|
+
readonly maximum: 100;
|
|
32830
|
+
};
|
|
32831
|
+
};
|
|
32832
|
+
};
|
|
32833
|
+
};
|
|
32834
|
+
};
|
|
32835
|
+
};
|
|
32836
|
+
};
|
|
32322
32837
|
readonly resourceDetailRoutes: {
|
|
32323
32838
|
readonly type: "array";
|
|
32324
32839
|
readonly maxItems: 100;
|
|
@@ -33534,6 +34049,111 @@ export declare const contractSchemas: {
|
|
|
33534
34049
|
readonly type: "object";
|
|
33535
34050
|
};
|
|
33536
34051
|
};
|
|
34052
|
+
readonly subjectReadSurfaces: {
|
|
34053
|
+
readonly type: "array";
|
|
34054
|
+
readonly maxItems: 50;
|
|
34055
|
+
readonly items: {
|
|
34056
|
+
readonly type: "object";
|
|
34057
|
+
readonly additionalProperties: false;
|
|
34058
|
+
readonly required: readonly ["code", "name", "capability", "subject", "relations"];
|
|
34059
|
+
readonly properties: {
|
|
34060
|
+
readonly code: {
|
|
34061
|
+
readonly type: "string";
|
|
34062
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
34063
|
+
readonly maxLength: 128;
|
|
34064
|
+
};
|
|
34065
|
+
readonly name: {
|
|
34066
|
+
readonly type: "string";
|
|
34067
|
+
readonly minLength: 1;
|
|
34068
|
+
};
|
|
34069
|
+
readonly capability: {
|
|
34070
|
+
readonly type: "string";
|
|
34071
|
+
readonly pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._*-]+$";
|
|
34072
|
+
readonly maxLength: 255;
|
|
34073
|
+
};
|
|
34074
|
+
readonly subject: {
|
|
34075
|
+
readonly type: "object";
|
|
34076
|
+
readonly additionalProperties: false;
|
|
34077
|
+
readonly required: readonly ["resourceCode", "fields"];
|
|
34078
|
+
readonly properties: {
|
|
34079
|
+
readonly resourceCode: {
|
|
34080
|
+
readonly type: "string";
|
|
34081
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
34082
|
+
};
|
|
34083
|
+
readonly fields: {
|
|
34084
|
+
readonly type: "array";
|
|
34085
|
+
readonly minItems: 1;
|
|
34086
|
+
readonly maxItems: 100;
|
|
34087
|
+
readonly uniqueItems: true;
|
|
34088
|
+
readonly items: {
|
|
34089
|
+
readonly type: "string";
|
|
34090
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
34091
|
+
};
|
|
34092
|
+
};
|
|
34093
|
+
};
|
|
34094
|
+
};
|
|
34095
|
+
readonly relations: {
|
|
34096
|
+
readonly type: "array";
|
|
34097
|
+
readonly minItems: 1;
|
|
34098
|
+
readonly maxItems: 8;
|
|
34099
|
+
readonly items: {
|
|
34100
|
+
readonly type: "object";
|
|
34101
|
+
readonly additionalProperties: false;
|
|
34102
|
+
readonly required: readonly ["code", "resourceCode", "foreignKeyField", "fields", "limit"];
|
|
34103
|
+
readonly properties: {
|
|
34104
|
+
readonly code: {
|
|
34105
|
+
readonly type: "string";
|
|
34106
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
34107
|
+
readonly maxLength: 128;
|
|
34108
|
+
};
|
|
34109
|
+
readonly resourceCode: {
|
|
34110
|
+
readonly type: "string";
|
|
34111
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
|
|
34112
|
+
};
|
|
34113
|
+
readonly foreignKeyField: {
|
|
34114
|
+
readonly type: "string";
|
|
34115
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
34116
|
+
};
|
|
34117
|
+
readonly fields: {
|
|
34118
|
+
readonly type: "array";
|
|
34119
|
+
readonly minItems: 1;
|
|
34120
|
+
readonly maxItems: 100;
|
|
34121
|
+
readonly uniqueItems: true;
|
|
34122
|
+
readonly items: {
|
|
34123
|
+
readonly type: "string";
|
|
34124
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
|
|
34125
|
+
};
|
|
34126
|
+
};
|
|
34127
|
+
readonly order: {
|
|
34128
|
+
readonly type: "array";
|
|
34129
|
+
readonly maxItems: 10;
|
|
34130
|
+
readonly items: {
|
|
34131
|
+
readonly type: "object";
|
|
34132
|
+
readonly additionalProperties: false;
|
|
34133
|
+
readonly required: readonly ["field", "direction"];
|
|
34134
|
+
readonly properties: {
|
|
34135
|
+
readonly field: {
|
|
34136
|
+
readonly type: "string";
|
|
34137
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
|
|
34138
|
+
readonly maxLength: 128;
|
|
34139
|
+
};
|
|
34140
|
+
readonly direction: {
|
|
34141
|
+
readonly enum: readonly ["asc", "desc"];
|
|
34142
|
+
};
|
|
34143
|
+
};
|
|
34144
|
+
};
|
|
34145
|
+
};
|
|
34146
|
+
readonly limit: {
|
|
34147
|
+
readonly type: "integer";
|
|
34148
|
+
readonly minimum: 1;
|
|
34149
|
+
readonly maximum: 100;
|
|
34150
|
+
};
|
|
34151
|
+
};
|
|
34152
|
+
};
|
|
34153
|
+
};
|
|
34154
|
+
};
|
|
34155
|
+
};
|
|
34156
|
+
};
|
|
33537
34157
|
readonly capabilities: {
|
|
33538
34158
|
readonly type: "array";
|
|
33539
34159
|
readonly maxItems: 2000;
|