openxiangda-contracts 2.0.0-alpha.76 → 2.0.0-alpha.78

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
@@ -11153,6 +11153,41 @@ export declare const workflowSurfaceSchema: {
11153
11153
  readonly type: "null";
11154
11154
  }];
11155
11155
  };
11156
+ readonly initiator: {
11157
+ readonly type: "object";
11158
+ readonly additionalProperties: false;
11159
+ readonly required: readonly ["userId", "displayName", "avatarUrl", "departmentDisplayName"];
11160
+ readonly properties: {
11161
+ readonly userId: {
11162
+ readonly anyOf: readonly [{
11163
+ readonly type: "string";
11164
+ readonly minLength: 1;
11165
+ }, {
11166
+ readonly type: "null";
11167
+ }];
11168
+ };
11169
+ readonly displayName: {
11170
+ readonly type: "string";
11171
+ readonly minLength: 1;
11172
+ };
11173
+ readonly avatarUrl: {
11174
+ readonly anyOf: readonly [{
11175
+ readonly type: "string";
11176
+ readonly minLength: 1;
11177
+ }, {
11178
+ readonly type: "null";
11179
+ }];
11180
+ };
11181
+ readonly departmentDisplayName: {
11182
+ readonly anyOf: readonly [{
11183
+ readonly type: "string";
11184
+ readonly minLength: 1;
11185
+ }, {
11186
+ readonly type: "null";
11187
+ }];
11188
+ };
11189
+ };
11190
+ };
11156
11191
  };
11157
11192
  };
11158
11193
  };
@@ -11171,186 +11206,672 @@ export declare const workflowSurfaceSchema: {
11171
11206
  };
11172
11207
  };
11173
11208
  };
11174
- export declare const workflowCommandInputSchema: {
11175
- readonly $id: "openxiangda.workflow-command-input/v2";
11176
- readonly type: "object";
11177
- readonly additionalProperties: false;
11178
- readonly required: readonly ["commandToken", "idempotencyKey"];
11179
- readonly properties: {
11180
- readonly commandToken: {
11181
- readonly type: "string";
11182
- readonly pattern: "^[A-Za-z0-9_-]{43}$";
11183
- };
11184
- readonly idempotencyKey: {
11185
- readonly type: "string";
11186
- readonly minLength: 1;
11187
- readonly maxLength: 255;
11188
- };
11189
- readonly input: {
11190
- readonly type: "object";
11191
- readonly maxProperties: 200;
11192
- };
11193
- };
11194
- };
11195
- export declare const workflowLaunchSurfaceSchema: {
11196
- readonly $id: "openxiangda.workflow-launch-surface/v2";
11209
+ export declare const workflowDetailSurfaceSchema: {
11210
+ readonly $id: "openxiangda.workflow-detail-surface/v2";
11197
11211
  readonly type: "object";
11198
11212
  readonly additionalProperties: false;
11199
- readonly required: readonly ["schemaVersion", "protocolVersion", "surfaceRevision", "engineVersion", "appCode", "environmentKey", "environmentId", "workflowCode", "title", "launchMode", "processOperationCode", "subject", "inputSchema", "head", "paths", "commit"];
11213
+ readonly required: readonly ["schemaVersion", "protocolVersion", "detailRevision", "instanceSequence", "timelineRevision", "surface", "timeline", "currentStatus", "nodes", "handlingRecords", "operations", "navigationContext"];
11200
11214
  readonly properties: {
11201
11215
  readonly schemaVersion: {
11202
- readonly const: "openxiangda.workflow-launch-surface/v2";
11216
+ readonly const: "openxiangda.workflow-detail-surface/v2";
11203
11217
  };
11204
11218
  readonly protocolVersion: {
11205
- readonly const: "workflow_launch_surface_v2";
11219
+ readonly const: "workflow_detail_surface_v2";
11206
11220
  };
11207
- readonly surfaceRevision: {
11221
+ readonly detailRevision: {
11208
11222
  readonly type: "string";
11209
11223
  readonly pattern: "^[0-9a-f]{64}$";
11210
11224
  };
11211
- readonly engineVersion: {
11212
- readonly const: "2.0";
11213
- };
11214
- readonly appCode: {
11215
- readonly type: "string";
11216
- readonly minLength: 1;
11217
- };
11218
- readonly environmentKey: {
11219
- readonly enum: readonly ["preproduction", "production"];
11220
- };
11221
- readonly environmentId: {
11222
- readonly type: "string";
11223
- readonly minLength: 1;
11224
- };
11225
- readonly workflowCode: {
11226
- readonly type: "string";
11227
- readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
11228
- readonly maxLength: 128;
11229
- };
11230
- readonly title: {
11231
- readonly type: "string";
11232
- readonly minLength: 1;
11233
- };
11234
- readonly launchMode: {
11235
- readonly enum: readonly ["standalone", "hidden-handoff"];
11225
+ readonly instanceSequence: {
11226
+ readonly type: "integer";
11227
+ readonly minimum: 0;
11236
11228
  };
11237
- readonly processOperationCode: {
11229
+ readonly timelineRevision: {
11238
11230
  readonly type: "string";
11239
- readonly pattern: "^openxiangda\\.workflow\\.[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*\\.submit$";
11240
- readonly maxLength: 255;
11231
+ readonly pattern: "^[0-9a-f]{64}$";
11241
11232
  };
11242
- readonly subject: {
11233
+ readonly surface: {
11234
+ readonly $id: "openxiangda.workflow-surface/v2";
11243
11235
  readonly type: "object";
11244
11236
  readonly additionalProperties: false;
11245
- readonly required: readonly ["resourceCode", "factProjection", "summaryFields"];
11237
+ readonly required: readonly ["schemaVersion", "protocolVersion", "surfaceRevision", "engineVersion", "commandToken", "commandTokenExpiresAt", "instanceSequence", "detailNavigation", "navigationTarget", "instance", "task", "presentation", "fieldPolicy", "operations", "extensions"];
11246
11238
  readonly properties: {
11247
- readonly resourceCode: {
11248
- readonly type: "string";
11249
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
11239
+ readonly schemaVersion: {
11240
+ readonly const: "openxiangda.workflow-surface/v2";
11250
11241
  };
11251
- readonly factProjection: {
11252
- readonly type: "object";
11253
- readonly minProperties: 1;
11254
- readonly maxProperties: 64;
11255
- readonly propertyNames: {
11256
- readonly type: "string";
11257
- readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,127}$";
11258
- };
11259
- readonly additionalProperties: {
11260
- readonly type: "string";
11261
- readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
11262
- };
11242
+ readonly protocolVersion: {
11243
+ readonly const: "workflow_surface_v2";
11263
11244
  };
11264
- readonly summaryFields: {
11265
- readonly type: "array";
11266
- readonly maxItems: 16;
11267
- readonly uniqueItems: true;
11268
- readonly items: {
11269
- readonly type: "string";
11270
- readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
11271
- };
11245
+ readonly surfaceRevision: {
11246
+ readonly type: "string";
11247
+ readonly pattern: "^[0-9a-f]{64}$";
11272
11248
  };
11273
- };
11274
- };
11275
- readonly inputSchema: {
11276
- readonly type: "object";
11277
- };
11278
- readonly head: {
11279
- readonly type: "object";
11280
- readonly additionalProperties: false;
11281
- readonly required: readonly ["workflowRevision", "definitionVersion", "bindingVersion", "nativeRevision", "contractRevisionId"];
11282
- readonly properties: {
11283
- readonly workflowRevision: {
11284
- readonly type: "integer";
11285
- readonly minimum: 1;
11249
+ readonly engineVersion: {
11250
+ readonly const: "2.0";
11286
11251
  };
11287
- readonly definitionVersion: {
11288
- readonly type: "integer";
11289
- readonly minimum: 1;
11252
+ readonly commandToken: {
11253
+ readonly anyOf: readonly [{
11254
+ readonly type: "string";
11255
+ readonly pattern: "^[A-Za-z0-9_-]{43}$";
11256
+ }, {
11257
+ readonly type: "null";
11258
+ }];
11290
11259
  };
11291
- readonly bindingVersion: {
11292
- readonly type: "integer";
11293
- readonly minimum: 1;
11260
+ readonly commandTokenExpiresAt: {
11261
+ readonly anyOf: readonly [{
11262
+ readonly type: "string";
11263
+ readonly format: "date-time";
11264
+ }, {
11265
+ readonly type: "null";
11266
+ }];
11294
11267
  };
11295
- readonly nativeRevision: {
11268
+ readonly instanceSequence: {
11296
11269
  readonly type: "integer";
11297
- readonly minimum: 1;
11298
- };
11299
- readonly contractRevisionId: {
11300
- readonly type: "string";
11301
- readonly minLength: 1;
11302
- };
11303
- };
11304
- };
11305
- readonly paths: {
11306
- readonly type: "object";
11307
- readonly additionalProperties: false;
11308
- readonly required: readonly ["desktop", "mobile"];
11309
- readonly properties: {
11310
- readonly desktop: {
11311
- readonly type: "string";
11312
- readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11313
- readonly maxLength: 512;
11270
+ readonly minimum: 0;
11314
11271
  };
11315
- readonly mobile: {
11316
- readonly type: "string";
11317
- readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11318
- readonly maxLength: 512;
11272
+ readonly detailNavigation: {
11273
+ readonly type: "object";
11274
+ readonly additionalProperties: false;
11275
+ readonly required: readonly ["custom", "desktopPath", "mobilePath"];
11276
+ readonly properties: {
11277
+ readonly custom: {
11278
+ readonly type: "boolean";
11279
+ };
11280
+ readonly desktopPath: {
11281
+ readonly type: "string";
11282
+ readonly minLength: 1;
11283
+ readonly maxLength: 512;
11284
+ };
11285
+ readonly mobilePath: {
11286
+ readonly type: "string";
11287
+ readonly minLength: 1;
11288
+ readonly maxLength: 512;
11289
+ };
11290
+ };
11319
11291
  };
11320
- };
11321
- };
11322
- readonly commit: {
11323
- readonly type: "object";
11324
- readonly additionalProperties: false;
11325
- readonly required: readonly ["method", "href", "idempotencyRequired"];
11326
- readonly properties: {
11327
- readonly method: {
11328
- readonly const: "POST";
11292
+ readonly navigationTarget: {
11293
+ readonly anyOf: readonly [{
11294
+ readonly type: "object";
11295
+ readonly additionalProperties: false;
11296
+ readonly required: readonly ["kind", "appCode", "environmentKey", "resourceCode", "recordId", "desktopPath", "mobilePath"];
11297
+ readonly properties: {
11298
+ readonly kind: {
11299
+ readonly const: "resource_record";
11300
+ };
11301
+ readonly appCode: {
11302
+ readonly type: "string";
11303
+ readonly minLength: 1;
11304
+ };
11305
+ readonly environmentKey: {
11306
+ readonly enum: readonly ["preproduction", "production"];
11307
+ };
11308
+ readonly resourceCode: {
11309
+ readonly type: "string";
11310
+ readonly minLength: 1;
11311
+ };
11312
+ readonly recordId: {
11313
+ readonly type: "string";
11314
+ readonly minLength: 1;
11315
+ };
11316
+ readonly desktopPath: {
11317
+ readonly type: "string";
11318
+ readonly minLength: 1;
11319
+ };
11320
+ readonly mobilePath: {
11321
+ readonly type: "string";
11322
+ readonly minLength: 1;
11323
+ };
11324
+ };
11325
+ }, {
11326
+ readonly type: "null";
11327
+ }];
11329
11328
  };
11330
- readonly href: {
11331
- readonly type: "string";
11332
- readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11333
- readonly maxLength: 512;
11329
+ readonly instance: {
11330
+ readonly type: "object";
11334
11331
  };
11335
- readonly idempotencyRequired: {
11336
- readonly const: true;
11332
+ readonly task: {
11333
+ readonly anyOf: readonly [{
11334
+ readonly type: "object";
11335
+ }, {
11336
+ readonly type: "null";
11337
+ }];
11337
11338
  };
11338
- };
11339
- };
11340
- };
11341
- };
11342
- export declare const workflowDelegationSchema: {
11343
- readonly $id: "openxiangda.workflow-delegation/v2";
11344
- readonly type: "object";
11345
- readonly additionalProperties: false;
11346
- readonly required: readonly ["schemaVersion", "id", "appCode", "environmentKey", "workflowCode", "delegatorUserId", "delegateUserId", "delegatorRoleSubjectKey", "delegateRoleSubjectKey", "validFrom", "validTo", "status", "reason", "createdBy", "createdAt", "revokedAt"];
11347
- readonly properties: {
11348
- readonly schemaVersion: {
11349
- readonly const: "openxiangda.workflow-delegation/v2";
11350
- };
11351
- readonly id: {
11352
- readonly type: "string";
11353
- readonly minLength: 1;
11339
+ readonly presentation: {
11340
+ readonly type: "object";
11341
+ readonly required: readonly ["businessData", "businessDetail", "summary"];
11342
+ readonly properties: {
11343
+ readonly businessData: {
11344
+ readonly $id: "openxiangda.workflow-business-data/v1";
11345
+ readonly type: "object";
11346
+ readonly additionalProperties: false;
11347
+ readonly required: readonly ["status", "resourceCode", "recordId", "requestedRevision", "sourceRevision", "fields", "projectionDigest"];
11348
+ readonly properties: {
11349
+ readonly status: {
11350
+ readonly enum: readonly ["none", "fresh", "stale", "missing", "unavailable"];
11351
+ };
11352
+ readonly resourceCode: {
11353
+ readonly anyOf: readonly [{
11354
+ readonly type: "string";
11355
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
11356
+ }, {
11357
+ readonly type: "null";
11358
+ }];
11359
+ };
11360
+ readonly recordId: {
11361
+ readonly anyOf: readonly [{
11362
+ readonly type: "string";
11363
+ readonly minLength: 1;
11364
+ }, {
11365
+ readonly type: "null";
11366
+ }];
11367
+ };
11368
+ readonly requestedRevision: {
11369
+ readonly anyOf: readonly [{
11370
+ readonly type: "integer";
11371
+ readonly minimum: 1;
11372
+ }, {
11373
+ readonly type: "null";
11374
+ }];
11375
+ };
11376
+ readonly sourceRevision: {
11377
+ readonly anyOf: readonly [{
11378
+ readonly type: "integer";
11379
+ readonly minimum: 1;
11380
+ }, {
11381
+ readonly type: "null";
11382
+ }];
11383
+ };
11384
+ readonly fields: {
11385
+ readonly type: "object";
11386
+ readonly maxProperties: 16;
11387
+ readonly additionalProperties: true;
11388
+ };
11389
+ readonly projectionDigest: {
11390
+ readonly anyOf: readonly [{
11391
+ readonly type: "string";
11392
+ readonly pattern: "^[0-9a-f]{64}$";
11393
+ }, {
11394
+ readonly type: "null";
11395
+ }];
11396
+ };
11397
+ };
11398
+ readonly "x-openxiangda-max-bytes": 8192;
11399
+ readonly "x-openxiangda-text-long-max-bytes": 2048;
11400
+ };
11401
+ readonly businessDetail: {
11402
+ readonly $id: "openxiangda.workflow-business-detail/v1";
11403
+ readonly type: "object";
11404
+ readonly additionalProperties: false;
11405
+ readonly required: readonly ["status", "resourceCode", "resourceName", "recordId", "requestedRevision", "sourceRevision", "surface", "record", "subtables", "projectionDigest"];
11406
+ readonly properties: {
11407
+ readonly status: {
11408
+ readonly enum: readonly ["ready", "stale", "missing", "forbidden", "unavailable"];
11409
+ };
11410
+ readonly resourceCode: {
11411
+ readonly anyOf: readonly [{
11412
+ readonly type: "string";
11413
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
11414
+ }, {
11415
+ readonly type: "null";
11416
+ }];
11417
+ };
11418
+ readonly resourceName: {
11419
+ readonly anyOf: readonly [{
11420
+ readonly type: "string";
11421
+ readonly minLength: 1;
11422
+ }, {
11423
+ readonly type: "null";
11424
+ }];
11425
+ };
11426
+ readonly recordId: {
11427
+ readonly anyOf: readonly [{
11428
+ readonly type: "string";
11429
+ readonly minLength: 1;
11430
+ }, {
11431
+ readonly type: "null";
11432
+ }];
11433
+ };
11434
+ readonly requestedRevision: {
11435
+ readonly anyOf: readonly [{
11436
+ readonly type: "integer";
11437
+ readonly minimum: 1;
11438
+ }, {
11439
+ readonly type: "null";
11440
+ }];
11441
+ };
11442
+ readonly sourceRevision: {
11443
+ readonly anyOf: readonly [{
11444
+ readonly type: "integer";
11445
+ readonly minimum: 1;
11446
+ }, {
11447
+ readonly type: "null";
11448
+ }];
11449
+ };
11450
+ readonly surface: {
11451
+ readonly anyOf: readonly [{
11452
+ readonly type: "object";
11453
+ }, {
11454
+ readonly type: "null";
11455
+ }];
11456
+ };
11457
+ readonly record: {
11458
+ readonly type: "object";
11459
+ readonly maxProperties: number;
11460
+ readonly additionalProperties: true;
11461
+ };
11462
+ readonly subtables: {
11463
+ readonly type: "object";
11464
+ readonly maxProperties: 200;
11465
+ readonly additionalProperties: {
11466
+ readonly type: "object";
11467
+ readonly additionalProperties: false;
11468
+ readonly required: readonly ["resourceCode", "surface", "rows", "total"];
11469
+ readonly properties: {
11470
+ readonly resourceCode: {
11471
+ readonly type: "string";
11472
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
11473
+ };
11474
+ readonly surface: {
11475
+ readonly type: "object";
11476
+ };
11477
+ readonly rows: {
11478
+ readonly type: "array";
11479
+ readonly maxItems: 200;
11480
+ readonly items: {
11481
+ readonly type: "object";
11482
+ readonly maxProperties: number;
11483
+ };
11484
+ };
11485
+ readonly total: {
11486
+ readonly type: "integer";
11487
+ readonly minimum: 0;
11488
+ readonly maximum: 200;
11489
+ };
11490
+ };
11491
+ };
11492
+ };
11493
+ readonly projectionDigest: {
11494
+ readonly anyOf: readonly [{
11495
+ readonly type: "string";
11496
+ readonly pattern: "^[0-9a-f]{64}$";
11497
+ }, {
11498
+ readonly type: "null";
11499
+ }];
11500
+ };
11501
+ readonly errorCode: {
11502
+ readonly type: "string";
11503
+ readonly minLength: 1;
11504
+ readonly maxLength: 128;
11505
+ };
11506
+ };
11507
+ readonly "x-openxiangda-max-bytes": number;
11508
+ };
11509
+ readonly summary: {
11510
+ readonly type: "object";
11511
+ readonly additionalProperties: false;
11512
+ readonly required: readonly ["title", "initiatorDisplayName", "departmentDisplayName", "submittedAt", "businessNumber"];
11513
+ readonly properties: {
11514
+ readonly title: {
11515
+ readonly type: "string";
11516
+ readonly minLength: 1;
11517
+ };
11518
+ readonly initiatorDisplayName: {
11519
+ readonly type: "string";
11520
+ readonly minLength: 1;
11521
+ };
11522
+ readonly departmentDisplayName: {
11523
+ readonly anyOf: readonly [{
11524
+ readonly type: "string";
11525
+ readonly minLength: 1;
11526
+ }, {
11527
+ readonly type: "null";
11528
+ }];
11529
+ };
11530
+ readonly submittedAt: {
11531
+ readonly type: "string";
11532
+ readonly format: "date-time";
11533
+ };
11534
+ readonly businessNumber: {
11535
+ readonly anyOf: readonly [{
11536
+ readonly type: "string";
11537
+ readonly minLength: 1;
11538
+ }, {
11539
+ readonly type: "null";
11540
+ }];
11541
+ };
11542
+ readonly initiator: {
11543
+ readonly type: "object";
11544
+ readonly additionalProperties: false;
11545
+ readonly required: readonly ["userId", "displayName", "avatarUrl", "departmentDisplayName"];
11546
+ readonly properties: {
11547
+ readonly userId: {
11548
+ readonly anyOf: readonly [{
11549
+ readonly type: "string";
11550
+ readonly minLength: 1;
11551
+ }, {
11552
+ readonly type: "null";
11553
+ }];
11554
+ };
11555
+ readonly displayName: {
11556
+ readonly type: "string";
11557
+ readonly minLength: 1;
11558
+ };
11559
+ readonly avatarUrl: {
11560
+ readonly anyOf: readonly [{
11561
+ readonly type: "string";
11562
+ readonly minLength: 1;
11563
+ }, {
11564
+ readonly type: "null";
11565
+ }];
11566
+ };
11567
+ readonly departmentDisplayName: {
11568
+ readonly anyOf: readonly [{
11569
+ readonly type: "string";
11570
+ readonly minLength: 1;
11571
+ }, {
11572
+ readonly type: "null";
11573
+ }];
11574
+ };
11575
+ };
11576
+ };
11577
+ };
11578
+ };
11579
+ };
11580
+ };
11581
+ readonly fieldPolicy: {
11582
+ readonly type: "object";
11583
+ };
11584
+ readonly operations: {
11585
+ readonly type: "array";
11586
+ readonly items: {
11587
+ readonly type: "object";
11588
+ };
11589
+ };
11590
+ readonly extensions: {
11591
+ readonly type: "object";
11592
+ };
11593
+ };
11594
+ };
11595
+ readonly timeline: {
11596
+ readonly type: "object";
11597
+ readonly required: readonly ["engineVersion", "instanceId", "instanceSequence", "timelineRevision", "flow", "items", "display"];
11598
+ readonly properties: {
11599
+ readonly engineVersion: {
11600
+ readonly const: "2.0";
11601
+ };
11602
+ readonly instanceId: {
11603
+ readonly type: "string";
11604
+ readonly minLength: 1;
11605
+ };
11606
+ readonly instanceSequence: {
11607
+ readonly type: "integer";
11608
+ readonly minimum: 0;
11609
+ };
11610
+ readonly timelineRevision: {
11611
+ readonly type: "string";
11612
+ readonly pattern: "^[0-9a-f]{64}$";
11613
+ };
11614
+ readonly flow: {
11615
+ readonly type: "array";
11616
+ readonly items: {
11617
+ readonly type: "object";
11618
+ };
11619
+ };
11620
+ readonly items: {
11621
+ readonly type: "array";
11622
+ readonly items: {
11623
+ readonly type: "object";
11624
+ };
11625
+ };
11626
+ readonly display: {
11627
+ readonly type: "object";
11628
+ readonly additionalProperties: false;
11629
+ readonly required: readonly ["entries"];
11630
+ readonly properties: {
11631
+ readonly entries: {
11632
+ readonly type: "array";
11633
+ readonly items: {
11634
+ readonly type: "object";
11635
+ };
11636
+ };
11637
+ };
11638
+ };
11639
+ };
11640
+ };
11641
+ readonly currentStatus: {
11642
+ readonly type: "object";
11643
+ readonly additionalProperties: false;
11644
+ readonly required: readonly ["code", "label", "tone"];
11645
+ readonly properties: {
11646
+ readonly code: {
11647
+ readonly type: "string";
11648
+ readonly minLength: 1;
11649
+ };
11650
+ readonly label: {
11651
+ readonly type: "string";
11652
+ readonly minLength: 1;
11653
+ };
11654
+ readonly tone: {
11655
+ readonly type: "string";
11656
+ readonly minLength: 1;
11657
+ };
11658
+ };
11659
+ };
11660
+ readonly nodes: {
11661
+ readonly type: "array";
11662
+ readonly items: {
11663
+ readonly type: "object";
11664
+ };
11665
+ };
11666
+ readonly handlingRecords: {
11667
+ readonly type: "array";
11668
+ readonly items: {
11669
+ readonly type: "object";
11670
+ };
11671
+ };
11672
+ readonly operations: {
11673
+ readonly type: "array";
11674
+ readonly items: {
11675
+ readonly type: "object";
11676
+ };
11677
+ };
11678
+ readonly navigationContext: {
11679
+ readonly type: "object";
11680
+ readonly additionalProperties: false;
11681
+ readonly required: readonly ["desktopReturnPath", "mobileReturnPath"];
11682
+ readonly properties: {
11683
+ readonly desktopReturnPath: {
11684
+ readonly type: "string";
11685
+ readonly minLength: 1;
11686
+ };
11687
+ readonly mobileReturnPath: {
11688
+ readonly type: "string";
11689
+ readonly minLength: 1;
11690
+ };
11691
+ };
11692
+ };
11693
+ };
11694
+ };
11695
+ export declare const workflowCommandInputSchema: {
11696
+ readonly $id: "openxiangda.workflow-command-input/v2";
11697
+ readonly type: "object";
11698
+ readonly additionalProperties: false;
11699
+ readonly required: readonly ["commandToken", "idempotencyKey"];
11700
+ readonly properties: {
11701
+ readonly commandToken: {
11702
+ readonly type: "string";
11703
+ readonly pattern: "^[A-Za-z0-9_-]{43}$";
11704
+ };
11705
+ readonly idempotencyKey: {
11706
+ readonly type: "string";
11707
+ readonly minLength: 1;
11708
+ readonly maxLength: 255;
11709
+ };
11710
+ readonly input: {
11711
+ readonly type: "object";
11712
+ readonly maxProperties: 200;
11713
+ };
11714
+ };
11715
+ };
11716
+ export declare const workflowLaunchSurfaceSchema: {
11717
+ readonly $id: "openxiangda.workflow-launch-surface/v2";
11718
+ readonly type: "object";
11719
+ readonly additionalProperties: false;
11720
+ readonly required: readonly ["schemaVersion", "protocolVersion", "surfaceRevision", "engineVersion", "appCode", "environmentKey", "environmentId", "workflowCode", "title", "launchMode", "processOperationCode", "subject", "inputSchema", "head", "paths", "commit"];
11721
+ readonly properties: {
11722
+ readonly schemaVersion: {
11723
+ readonly const: "openxiangda.workflow-launch-surface/v2";
11724
+ };
11725
+ readonly protocolVersion: {
11726
+ readonly const: "workflow_launch_surface_v2";
11727
+ };
11728
+ readonly surfaceRevision: {
11729
+ readonly type: "string";
11730
+ readonly pattern: "^[0-9a-f]{64}$";
11731
+ };
11732
+ readonly engineVersion: {
11733
+ readonly const: "2.0";
11734
+ };
11735
+ readonly appCode: {
11736
+ readonly type: "string";
11737
+ readonly minLength: 1;
11738
+ };
11739
+ readonly environmentKey: {
11740
+ readonly enum: readonly ["preproduction", "production"];
11741
+ };
11742
+ readonly environmentId: {
11743
+ readonly type: "string";
11744
+ readonly minLength: 1;
11745
+ };
11746
+ readonly workflowCode: {
11747
+ readonly type: "string";
11748
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
11749
+ readonly maxLength: 128;
11750
+ };
11751
+ readonly title: {
11752
+ readonly type: "string";
11753
+ readonly minLength: 1;
11754
+ };
11755
+ readonly launchMode: {
11756
+ readonly enum: readonly ["standalone", "hidden-handoff"];
11757
+ };
11758
+ readonly processOperationCode: {
11759
+ readonly type: "string";
11760
+ readonly pattern: "^openxiangda\\.workflow\\.[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*\\.submit$";
11761
+ readonly maxLength: 255;
11762
+ };
11763
+ readonly subject: {
11764
+ readonly type: "object";
11765
+ readonly additionalProperties: false;
11766
+ readonly required: readonly ["resourceCode", "factProjection", "summaryFields"];
11767
+ readonly properties: {
11768
+ readonly resourceCode: {
11769
+ readonly type: "string";
11770
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
11771
+ };
11772
+ readonly factProjection: {
11773
+ readonly type: "object";
11774
+ readonly minProperties: 1;
11775
+ readonly maxProperties: 64;
11776
+ readonly propertyNames: {
11777
+ readonly type: "string";
11778
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,127}$";
11779
+ };
11780
+ readonly additionalProperties: {
11781
+ readonly type: "string";
11782
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
11783
+ };
11784
+ };
11785
+ readonly summaryFields: {
11786
+ readonly type: "array";
11787
+ readonly maxItems: 16;
11788
+ readonly uniqueItems: true;
11789
+ readonly items: {
11790
+ readonly type: "string";
11791
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
11792
+ };
11793
+ };
11794
+ };
11795
+ };
11796
+ readonly inputSchema: {
11797
+ readonly type: "object";
11798
+ };
11799
+ readonly head: {
11800
+ readonly type: "object";
11801
+ readonly additionalProperties: false;
11802
+ readonly required: readonly ["workflowRevision", "definitionVersion", "bindingVersion", "nativeRevision", "contractRevisionId"];
11803
+ readonly properties: {
11804
+ readonly workflowRevision: {
11805
+ readonly type: "integer";
11806
+ readonly minimum: 1;
11807
+ };
11808
+ readonly definitionVersion: {
11809
+ readonly type: "integer";
11810
+ readonly minimum: 1;
11811
+ };
11812
+ readonly bindingVersion: {
11813
+ readonly type: "integer";
11814
+ readonly minimum: 1;
11815
+ };
11816
+ readonly nativeRevision: {
11817
+ readonly type: "integer";
11818
+ readonly minimum: 1;
11819
+ };
11820
+ readonly contractRevisionId: {
11821
+ readonly type: "string";
11822
+ readonly minLength: 1;
11823
+ };
11824
+ };
11825
+ };
11826
+ readonly paths: {
11827
+ readonly type: "object";
11828
+ readonly additionalProperties: false;
11829
+ readonly required: readonly ["desktop", "mobile"];
11830
+ readonly properties: {
11831
+ readonly desktop: {
11832
+ readonly type: "string";
11833
+ readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11834
+ readonly maxLength: 512;
11835
+ };
11836
+ readonly mobile: {
11837
+ readonly type: "string";
11838
+ readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11839
+ readonly maxLength: 512;
11840
+ };
11841
+ };
11842
+ };
11843
+ readonly commit: {
11844
+ readonly type: "object";
11845
+ readonly additionalProperties: false;
11846
+ readonly required: readonly ["method", "href", "idempotencyRequired"];
11847
+ readonly properties: {
11848
+ readonly method: {
11849
+ readonly const: "POST";
11850
+ };
11851
+ readonly href: {
11852
+ readonly type: "string";
11853
+ readonly pattern: "^/(?!/)(?!.*\\.\\.)(?:[A-Za-z0-9_:.{}-]+/?)*$";
11854
+ readonly maxLength: 512;
11855
+ };
11856
+ readonly idempotencyRequired: {
11857
+ readonly const: true;
11858
+ };
11859
+ };
11860
+ };
11861
+ };
11862
+ };
11863
+ export declare const workflowDelegationSchema: {
11864
+ readonly $id: "openxiangda.workflow-delegation/v2";
11865
+ readonly type: "object";
11866
+ readonly additionalProperties: false;
11867
+ readonly required: readonly ["schemaVersion", "id", "appCode", "environmentKey", "workflowCode", "delegatorUserId", "delegateUserId", "delegatorRoleSubjectKey", "delegateRoleSubjectKey", "validFrom", "validTo", "status", "reason", "createdBy", "createdAt", "revokedAt"];
11868
+ readonly properties: {
11869
+ readonly schemaVersion: {
11870
+ readonly const: "openxiangda.workflow-delegation/v2";
11871
+ };
11872
+ readonly id: {
11873
+ readonly type: "string";
11874
+ readonly minLength: 1;
11354
11875
  };
11355
11876
  readonly appCode: {
11356
11877
  readonly type: "string";
@@ -22772,24 +23293,128 @@ export declare const contractSchemas: {
22772
23293
  readonly "x-openxiangda-max-bytes": 8192;
22773
23294
  readonly "x-openxiangda-text-long-max-bytes": 2048;
22774
23295
  };
22775
- readonly businessDetail: {
22776
- readonly $id: "openxiangda.workflow-business-detail/v1";
23296
+ readonly businessDetail: {
23297
+ readonly $id: "openxiangda.workflow-business-detail/v1";
23298
+ readonly type: "object";
23299
+ readonly additionalProperties: false;
23300
+ readonly required: readonly ["status", "resourceCode", "resourceName", "recordId", "requestedRevision", "sourceRevision", "surface", "record", "subtables", "projectionDigest"];
23301
+ readonly properties: {
23302
+ readonly status: {
23303
+ readonly enum: readonly ["ready", "stale", "missing", "forbidden", "unavailable"];
23304
+ };
23305
+ readonly resourceCode: {
23306
+ readonly anyOf: readonly [{
23307
+ readonly type: "string";
23308
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
23309
+ }, {
23310
+ readonly type: "null";
23311
+ }];
23312
+ };
23313
+ readonly resourceName: {
23314
+ readonly anyOf: readonly [{
23315
+ readonly type: "string";
23316
+ readonly minLength: 1;
23317
+ }, {
23318
+ readonly type: "null";
23319
+ }];
23320
+ };
23321
+ readonly recordId: {
23322
+ readonly anyOf: readonly [{
23323
+ readonly type: "string";
23324
+ readonly minLength: 1;
23325
+ }, {
23326
+ readonly type: "null";
23327
+ }];
23328
+ };
23329
+ readonly requestedRevision: {
23330
+ readonly anyOf: readonly [{
23331
+ readonly type: "integer";
23332
+ readonly minimum: 1;
23333
+ }, {
23334
+ readonly type: "null";
23335
+ }];
23336
+ };
23337
+ readonly sourceRevision: {
23338
+ readonly anyOf: readonly [{
23339
+ readonly type: "integer";
23340
+ readonly minimum: 1;
23341
+ }, {
23342
+ readonly type: "null";
23343
+ }];
23344
+ };
23345
+ readonly surface: {
23346
+ readonly anyOf: readonly [{
23347
+ readonly type: "object";
23348
+ }, {
23349
+ readonly type: "null";
23350
+ }];
23351
+ };
23352
+ readonly record: {
23353
+ readonly type: "object";
23354
+ readonly maxProperties: number;
23355
+ readonly additionalProperties: true;
23356
+ };
23357
+ readonly subtables: {
23358
+ readonly type: "object";
23359
+ readonly maxProperties: 200;
23360
+ readonly additionalProperties: {
23361
+ readonly type: "object";
23362
+ readonly additionalProperties: false;
23363
+ readonly required: readonly ["resourceCode", "surface", "rows", "total"];
23364
+ readonly properties: {
23365
+ readonly resourceCode: {
23366
+ readonly type: "string";
23367
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
23368
+ };
23369
+ readonly surface: {
23370
+ readonly type: "object";
23371
+ };
23372
+ readonly rows: {
23373
+ readonly type: "array";
23374
+ readonly maxItems: 200;
23375
+ readonly items: {
23376
+ readonly type: "object";
23377
+ readonly maxProperties: number;
23378
+ };
23379
+ };
23380
+ readonly total: {
23381
+ readonly type: "integer";
23382
+ readonly minimum: 0;
23383
+ readonly maximum: 200;
23384
+ };
23385
+ };
23386
+ };
23387
+ };
23388
+ readonly projectionDigest: {
23389
+ readonly anyOf: readonly [{
23390
+ readonly type: "string";
23391
+ readonly pattern: "^[0-9a-f]{64}$";
23392
+ }, {
23393
+ readonly type: "null";
23394
+ }];
23395
+ };
23396
+ readonly errorCode: {
23397
+ readonly type: "string";
23398
+ readonly minLength: 1;
23399
+ readonly maxLength: 128;
23400
+ };
23401
+ };
23402
+ readonly "x-openxiangda-max-bytes": number;
23403
+ };
23404
+ readonly summary: {
22777
23405
  readonly type: "object";
22778
23406
  readonly additionalProperties: false;
22779
- readonly required: readonly ["status", "resourceCode", "resourceName", "recordId", "requestedRevision", "sourceRevision", "surface", "record", "subtables", "projectionDigest"];
23407
+ readonly required: readonly ["title", "initiatorDisplayName", "departmentDisplayName", "submittedAt", "businessNumber"];
22780
23408
  readonly properties: {
22781
- readonly status: {
22782
- readonly enum: readonly ["ready", "stale", "missing", "forbidden", "unavailable"];
23409
+ readonly title: {
23410
+ readonly type: "string";
23411
+ readonly minLength: 1;
22783
23412
  };
22784
- readonly resourceCode: {
22785
- readonly anyOf: readonly [{
22786
- readonly type: "string";
22787
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
22788
- }, {
22789
- readonly type: "null";
22790
- }];
23413
+ readonly initiatorDisplayName: {
23414
+ readonly type: "string";
23415
+ readonly minLength: 1;
22791
23416
  };
22792
- readonly resourceName: {
23417
+ readonly departmentDisplayName: {
22793
23418
  readonly anyOf: readonly [{
22794
23419
  readonly type: "string";
22795
23420
  readonly minLength: 1;
@@ -22797,7 +23422,11 @@ export declare const contractSchemas: {
22797
23422
  readonly type: "null";
22798
23423
  }];
22799
23424
  };
22800
- readonly recordId: {
23425
+ readonly submittedAt: {
23426
+ readonly type: "string";
23427
+ readonly format: "date-time";
23428
+ };
23429
+ readonly businessNumber: {
22801
23430
  readonly anyOf: readonly [{
22802
23431
  readonly type: "string";
22803
23432
  readonly minLength: 1;
@@ -22805,120 +23434,521 @@ export declare const contractSchemas: {
22805
23434
  readonly type: "null";
22806
23435
  }];
22807
23436
  };
22808
- readonly requestedRevision: {
22809
- readonly anyOf: readonly [{
22810
- readonly type: "integer";
22811
- readonly minimum: 1;
22812
- }, {
22813
- readonly type: "null";
22814
- }];
23437
+ readonly initiator: {
23438
+ readonly type: "object";
23439
+ readonly additionalProperties: false;
23440
+ readonly required: readonly ["userId", "displayName", "avatarUrl", "departmentDisplayName"];
23441
+ readonly properties: {
23442
+ readonly userId: {
23443
+ readonly anyOf: readonly [{
23444
+ readonly type: "string";
23445
+ readonly minLength: 1;
23446
+ }, {
23447
+ readonly type: "null";
23448
+ }];
23449
+ };
23450
+ readonly displayName: {
23451
+ readonly type: "string";
23452
+ readonly minLength: 1;
23453
+ };
23454
+ readonly avatarUrl: {
23455
+ readonly anyOf: readonly [{
23456
+ readonly type: "string";
23457
+ readonly minLength: 1;
23458
+ }, {
23459
+ readonly type: "null";
23460
+ }];
23461
+ };
23462
+ readonly departmentDisplayName: {
23463
+ readonly anyOf: readonly [{
23464
+ readonly type: "string";
23465
+ readonly minLength: 1;
23466
+ }, {
23467
+ readonly type: "null";
23468
+ }];
23469
+ };
23470
+ };
22815
23471
  };
22816
- readonly sourceRevision: {
22817
- readonly anyOf: readonly [{
22818
- readonly type: "integer";
22819
- readonly minimum: 1;
22820
- }, {
22821
- readonly type: "null";
22822
- }];
23472
+ };
23473
+ };
23474
+ };
23475
+ };
23476
+ readonly fieldPolicy: {
23477
+ readonly type: "object";
23478
+ };
23479
+ readonly operations: {
23480
+ readonly type: "array";
23481
+ readonly items: {
23482
+ readonly type: "object";
23483
+ };
23484
+ };
23485
+ readonly extensions: {
23486
+ readonly type: "object";
23487
+ };
23488
+ };
23489
+ };
23490
+ readonly workflowDetailSurface: {
23491
+ readonly $id: "openxiangda.workflow-detail-surface/v2";
23492
+ readonly type: "object";
23493
+ readonly additionalProperties: false;
23494
+ readonly required: readonly ["schemaVersion", "protocolVersion", "detailRevision", "instanceSequence", "timelineRevision", "surface", "timeline", "currentStatus", "nodes", "handlingRecords", "operations", "navigationContext"];
23495
+ readonly properties: {
23496
+ readonly schemaVersion: {
23497
+ readonly const: "openxiangda.workflow-detail-surface/v2";
23498
+ };
23499
+ readonly protocolVersion: {
23500
+ readonly const: "workflow_detail_surface_v2";
23501
+ };
23502
+ readonly detailRevision: {
23503
+ readonly type: "string";
23504
+ readonly pattern: "^[0-9a-f]{64}$";
23505
+ };
23506
+ readonly instanceSequence: {
23507
+ readonly type: "integer";
23508
+ readonly minimum: 0;
23509
+ };
23510
+ readonly timelineRevision: {
23511
+ readonly type: "string";
23512
+ readonly pattern: "^[0-9a-f]{64}$";
23513
+ };
23514
+ readonly surface: {
23515
+ readonly $id: "openxiangda.workflow-surface/v2";
23516
+ readonly type: "object";
23517
+ readonly additionalProperties: false;
23518
+ readonly required: readonly ["schemaVersion", "protocolVersion", "surfaceRevision", "engineVersion", "commandToken", "commandTokenExpiresAt", "instanceSequence", "detailNavigation", "navigationTarget", "instance", "task", "presentation", "fieldPolicy", "operations", "extensions"];
23519
+ readonly properties: {
23520
+ readonly schemaVersion: {
23521
+ readonly const: "openxiangda.workflow-surface/v2";
23522
+ };
23523
+ readonly protocolVersion: {
23524
+ readonly const: "workflow_surface_v2";
23525
+ };
23526
+ readonly surfaceRevision: {
23527
+ readonly type: "string";
23528
+ readonly pattern: "^[0-9a-f]{64}$";
23529
+ };
23530
+ readonly engineVersion: {
23531
+ readonly const: "2.0";
23532
+ };
23533
+ readonly commandToken: {
23534
+ readonly anyOf: readonly [{
23535
+ readonly type: "string";
23536
+ readonly pattern: "^[A-Za-z0-9_-]{43}$";
23537
+ }, {
23538
+ readonly type: "null";
23539
+ }];
23540
+ };
23541
+ readonly commandTokenExpiresAt: {
23542
+ readonly anyOf: readonly [{
23543
+ readonly type: "string";
23544
+ readonly format: "date-time";
23545
+ }, {
23546
+ readonly type: "null";
23547
+ }];
23548
+ };
23549
+ readonly instanceSequence: {
23550
+ readonly type: "integer";
23551
+ readonly minimum: 0;
23552
+ };
23553
+ readonly detailNavigation: {
23554
+ readonly type: "object";
23555
+ readonly additionalProperties: false;
23556
+ readonly required: readonly ["custom", "desktopPath", "mobilePath"];
23557
+ readonly properties: {
23558
+ readonly custom: {
23559
+ readonly type: "boolean";
22823
23560
  };
22824
- readonly surface: {
22825
- readonly anyOf: readonly [{
22826
- readonly type: "object";
22827
- }, {
22828
- readonly type: "null";
22829
- }];
23561
+ readonly desktopPath: {
23562
+ readonly type: "string";
23563
+ readonly minLength: 1;
23564
+ readonly maxLength: 512;
22830
23565
  };
22831
- readonly record: {
23566
+ readonly mobilePath: {
23567
+ readonly type: "string";
23568
+ readonly minLength: 1;
23569
+ readonly maxLength: 512;
23570
+ };
23571
+ };
23572
+ };
23573
+ readonly navigationTarget: {
23574
+ readonly anyOf: readonly [{
23575
+ readonly type: "object";
23576
+ readonly additionalProperties: false;
23577
+ readonly required: readonly ["kind", "appCode", "environmentKey", "resourceCode", "recordId", "desktopPath", "mobilePath"];
23578
+ readonly properties: {
23579
+ readonly kind: {
23580
+ readonly const: "resource_record";
23581
+ };
23582
+ readonly appCode: {
23583
+ readonly type: "string";
23584
+ readonly minLength: 1;
23585
+ };
23586
+ readonly environmentKey: {
23587
+ readonly enum: readonly ["preproduction", "production"];
23588
+ };
23589
+ readonly resourceCode: {
23590
+ readonly type: "string";
23591
+ readonly minLength: 1;
23592
+ };
23593
+ readonly recordId: {
23594
+ readonly type: "string";
23595
+ readonly minLength: 1;
23596
+ };
23597
+ readonly desktopPath: {
23598
+ readonly type: "string";
23599
+ readonly minLength: 1;
23600
+ };
23601
+ readonly mobilePath: {
23602
+ readonly type: "string";
23603
+ readonly minLength: 1;
23604
+ };
23605
+ };
23606
+ }, {
23607
+ readonly type: "null";
23608
+ }];
23609
+ };
23610
+ readonly instance: {
23611
+ readonly type: "object";
23612
+ };
23613
+ readonly task: {
23614
+ readonly anyOf: readonly [{
23615
+ readonly type: "object";
23616
+ }, {
23617
+ readonly type: "null";
23618
+ }];
23619
+ };
23620
+ readonly presentation: {
23621
+ readonly type: "object";
23622
+ readonly required: readonly ["businessData", "businessDetail", "summary"];
23623
+ readonly properties: {
23624
+ readonly businessData: {
23625
+ readonly $id: "openxiangda.workflow-business-data/v1";
22832
23626
  readonly type: "object";
22833
- readonly maxProperties: number;
22834
- readonly additionalProperties: true;
23627
+ readonly additionalProperties: false;
23628
+ readonly required: readonly ["status", "resourceCode", "recordId", "requestedRevision", "sourceRevision", "fields", "projectionDigest"];
23629
+ readonly properties: {
23630
+ readonly status: {
23631
+ readonly enum: readonly ["none", "fresh", "stale", "missing", "unavailable"];
23632
+ };
23633
+ readonly resourceCode: {
23634
+ readonly anyOf: readonly [{
23635
+ readonly type: "string";
23636
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
23637
+ }, {
23638
+ readonly type: "null";
23639
+ }];
23640
+ };
23641
+ readonly recordId: {
23642
+ readonly anyOf: readonly [{
23643
+ readonly type: "string";
23644
+ readonly minLength: 1;
23645
+ }, {
23646
+ readonly type: "null";
23647
+ }];
23648
+ };
23649
+ readonly requestedRevision: {
23650
+ readonly anyOf: readonly [{
23651
+ readonly type: "integer";
23652
+ readonly minimum: 1;
23653
+ }, {
23654
+ readonly type: "null";
23655
+ }];
23656
+ };
23657
+ readonly sourceRevision: {
23658
+ readonly anyOf: readonly [{
23659
+ readonly type: "integer";
23660
+ readonly minimum: 1;
23661
+ }, {
23662
+ readonly type: "null";
23663
+ }];
23664
+ };
23665
+ readonly fields: {
23666
+ readonly type: "object";
23667
+ readonly maxProperties: 16;
23668
+ readonly additionalProperties: true;
23669
+ };
23670
+ readonly projectionDigest: {
23671
+ readonly anyOf: readonly [{
23672
+ readonly type: "string";
23673
+ readonly pattern: "^[0-9a-f]{64}$";
23674
+ }, {
23675
+ readonly type: "null";
23676
+ }];
23677
+ };
23678
+ };
23679
+ readonly "x-openxiangda-max-bytes": 8192;
23680
+ readonly "x-openxiangda-text-long-max-bytes": 2048;
22835
23681
  };
22836
- readonly subtables: {
23682
+ readonly businessDetail: {
23683
+ readonly $id: "openxiangda.workflow-business-detail/v1";
22837
23684
  readonly type: "object";
22838
- readonly maxProperties: 200;
22839
- readonly additionalProperties: {
22840
- readonly type: "object";
22841
- readonly additionalProperties: false;
22842
- readonly required: readonly ["resourceCode", "surface", "rows", "total"];
22843
- readonly properties: {
22844
- readonly resourceCode: {
23685
+ readonly additionalProperties: false;
23686
+ readonly required: readonly ["status", "resourceCode", "resourceName", "recordId", "requestedRevision", "sourceRevision", "surface", "record", "subtables", "projectionDigest"];
23687
+ readonly properties: {
23688
+ readonly status: {
23689
+ readonly enum: readonly ["ready", "stale", "missing", "forbidden", "unavailable"];
23690
+ };
23691
+ readonly resourceCode: {
23692
+ readonly anyOf: readonly [{
22845
23693
  readonly type: "string";
22846
23694
  readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
22847
- };
22848
- readonly surface: {
23695
+ }, {
23696
+ readonly type: "null";
23697
+ }];
23698
+ };
23699
+ readonly resourceName: {
23700
+ readonly anyOf: readonly [{
23701
+ readonly type: "string";
23702
+ readonly minLength: 1;
23703
+ }, {
23704
+ readonly type: "null";
23705
+ }];
23706
+ };
23707
+ readonly recordId: {
23708
+ readonly anyOf: readonly [{
23709
+ readonly type: "string";
23710
+ readonly minLength: 1;
23711
+ }, {
23712
+ readonly type: "null";
23713
+ }];
23714
+ };
23715
+ readonly requestedRevision: {
23716
+ readonly anyOf: readonly [{
23717
+ readonly type: "integer";
23718
+ readonly minimum: 1;
23719
+ }, {
23720
+ readonly type: "null";
23721
+ }];
23722
+ };
23723
+ readonly sourceRevision: {
23724
+ readonly anyOf: readonly [{
23725
+ readonly type: "integer";
23726
+ readonly minimum: 1;
23727
+ }, {
23728
+ readonly type: "null";
23729
+ }];
23730
+ };
23731
+ readonly surface: {
23732
+ readonly anyOf: readonly [{
22849
23733
  readonly type: "object";
22850
- };
22851
- readonly rows: {
22852
- readonly type: "array";
22853
- readonly maxItems: 200;
22854
- readonly items: {
22855
- readonly type: "object";
22856
- readonly maxProperties: number;
23734
+ }, {
23735
+ readonly type: "null";
23736
+ }];
23737
+ };
23738
+ readonly record: {
23739
+ readonly type: "object";
23740
+ readonly maxProperties: number;
23741
+ readonly additionalProperties: true;
23742
+ };
23743
+ readonly subtables: {
23744
+ readonly type: "object";
23745
+ readonly maxProperties: 200;
23746
+ readonly additionalProperties: {
23747
+ readonly type: "object";
23748
+ readonly additionalProperties: false;
23749
+ readonly required: readonly ["resourceCode", "surface", "rows", "total"];
23750
+ readonly properties: {
23751
+ readonly resourceCode: {
23752
+ readonly type: "string";
23753
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
23754
+ };
23755
+ readonly surface: {
23756
+ readonly type: "object";
23757
+ };
23758
+ readonly rows: {
23759
+ readonly type: "array";
23760
+ readonly maxItems: 200;
23761
+ readonly items: {
23762
+ readonly type: "object";
23763
+ readonly maxProperties: number;
23764
+ };
23765
+ };
23766
+ readonly total: {
23767
+ readonly type: "integer";
23768
+ readonly minimum: 0;
23769
+ readonly maximum: 200;
23770
+ };
22857
23771
  };
22858
23772
  };
22859
- readonly total: {
22860
- readonly type: "integer";
22861
- readonly minimum: 0;
22862
- readonly maximum: 200;
22863
- };
23773
+ };
23774
+ readonly projectionDigest: {
23775
+ readonly anyOf: readonly [{
23776
+ readonly type: "string";
23777
+ readonly pattern: "^[0-9a-f]{64}$";
23778
+ }, {
23779
+ readonly type: "null";
23780
+ }];
23781
+ };
23782
+ readonly errorCode: {
23783
+ readonly type: "string";
23784
+ readonly minLength: 1;
23785
+ readonly maxLength: 128;
22864
23786
  };
22865
23787
  };
23788
+ readonly "x-openxiangda-max-bytes": number;
22866
23789
  };
22867
- readonly projectionDigest: {
22868
- readonly anyOf: readonly [{
22869
- readonly type: "string";
22870
- readonly pattern: "^[0-9a-f]{64}$";
22871
- }, {
22872
- readonly type: "null";
22873
- }];
22874
- };
22875
- readonly errorCode: {
22876
- readonly type: "string";
22877
- readonly minLength: 1;
22878
- readonly maxLength: 128;
23790
+ readonly summary: {
23791
+ readonly type: "object";
23792
+ readonly additionalProperties: false;
23793
+ readonly required: readonly ["title", "initiatorDisplayName", "departmentDisplayName", "submittedAt", "businessNumber"];
23794
+ readonly properties: {
23795
+ readonly title: {
23796
+ readonly type: "string";
23797
+ readonly minLength: 1;
23798
+ };
23799
+ readonly initiatorDisplayName: {
23800
+ readonly type: "string";
23801
+ readonly minLength: 1;
23802
+ };
23803
+ readonly departmentDisplayName: {
23804
+ readonly anyOf: readonly [{
23805
+ readonly type: "string";
23806
+ readonly minLength: 1;
23807
+ }, {
23808
+ readonly type: "null";
23809
+ }];
23810
+ };
23811
+ readonly submittedAt: {
23812
+ readonly type: "string";
23813
+ readonly format: "date-time";
23814
+ };
23815
+ readonly businessNumber: {
23816
+ readonly anyOf: readonly [{
23817
+ readonly type: "string";
23818
+ readonly minLength: 1;
23819
+ }, {
23820
+ readonly type: "null";
23821
+ }];
23822
+ };
23823
+ readonly initiator: {
23824
+ readonly type: "object";
23825
+ readonly additionalProperties: false;
23826
+ readonly required: readonly ["userId", "displayName", "avatarUrl", "departmentDisplayName"];
23827
+ readonly properties: {
23828
+ readonly userId: {
23829
+ readonly anyOf: readonly [{
23830
+ readonly type: "string";
23831
+ readonly minLength: 1;
23832
+ }, {
23833
+ readonly type: "null";
23834
+ }];
23835
+ };
23836
+ readonly displayName: {
23837
+ readonly type: "string";
23838
+ readonly minLength: 1;
23839
+ };
23840
+ readonly avatarUrl: {
23841
+ readonly anyOf: readonly [{
23842
+ readonly type: "string";
23843
+ readonly minLength: 1;
23844
+ }, {
23845
+ readonly type: "null";
23846
+ }];
23847
+ };
23848
+ readonly departmentDisplayName: {
23849
+ readonly anyOf: readonly [{
23850
+ readonly type: "string";
23851
+ readonly minLength: 1;
23852
+ }, {
23853
+ readonly type: "null";
23854
+ }];
23855
+ };
23856
+ };
23857
+ };
23858
+ };
22879
23859
  };
22880
23860
  };
22881
- readonly "x-openxiangda-max-bytes": number;
22882
23861
  };
22883
- readonly summary: {
23862
+ readonly fieldPolicy: {
23863
+ readonly type: "object";
23864
+ };
23865
+ readonly operations: {
23866
+ readonly type: "array";
23867
+ readonly items: {
23868
+ readonly type: "object";
23869
+ };
23870
+ };
23871
+ readonly extensions: {
23872
+ readonly type: "object";
23873
+ };
23874
+ };
23875
+ };
23876
+ readonly timeline: {
23877
+ readonly type: "object";
23878
+ readonly required: readonly ["engineVersion", "instanceId", "instanceSequence", "timelineRevision", "flow", "items", "display"];
23879
+ readonly properties: {
23880
+ readonly engineVersion: {
23881
+ readonly const: "2.0";
23882
+ };
23883
+ readonly instanceId: {
23884
+ readonly type: "string";
23885
+ readonly minLength: 1;
23886
+ };
23887
+ readonly instanceSequence: {
23888
+ readonly type: "integer";
23889
+ readonly minimum: 0;
23890
+ };
23891
+ readonly timelineRevision: {
23892
+ readonly type: "string";
23893
+ readonly pattern: "^[0-9a-f]{64}$";
23894
+ };
23895
+ readonly flow: {
23896
+ readonly type: "array";
23897
+ readonly items: {
23898
+ readonly type: "object";
23899
+ };
23900
+ };
23901
+ readonly items: {
23902
+ readonly type: "array";
23903
+ readonly items: {
23904
+ readonly type: "object";
23905
+ };
23906
+ };
23907
+ readonly display: {
22884
23908
  readonly type: "object";
22885
23909
  readonly additionalProperties: false;
22886
- readonly required: readonly ["title", "initiatorDisplayName", "departmentDisplayName", "submittedAt", "businessNumber"];
23910
+ readonly required: readonly ["entries"];
22887
23911
  readonly properties: {
22888
- readonly title: {
22889
- readonly type: "string";
22890
- readonly minLength: 1;
22891
- };
22892
- readonly initiatorDisplayName: {
22893
- readonly type: "string";
22894
- readonly minLength: 1;
22895
- };
22896
- readonly departmentDisplayName: {
22897
- readonly anyOf: readonly [{
22898
- readonly type: "string";
22899
- readonly minLength: 1;
22900
- }, {
22901
- readonly type: "null";
22902
- }];
22903
- };
22904
- readonly submittedAt: {
22905
- readonly type: "string";
22906
- readonly format: "date-time";
22907
- };
22908
- readonly businessNumber: {
22909
- readonly anyOf: readonly [{
22910
- readonly type: "string";
22911
- readonly minLength: 1;
22912
- }, {
22913
- readonly type: "null";
22914
- }];
23912
+ readonly entries: {
23913
+ readonly type: "array";
23914
+ readonly items: {
23915
+ readonly type: "object";
23916
+ };
22915
23917
  };
22916
23918
  };
22917
23919
  };
22918
23920
  };
22919
23921
  };
22920
- readonly fieldPolicy: {
23922
+ readonly currentStatus: {
22921
23923
  readonly type: "object";
23924
+ readonly additionalProperties: false;
23925
+ readonly required: readonly ["code", "label", "tone"];
23926
+ readonly properties: {
23927
+ readonly code: {
23928
+ readonly type: "string";
23929
+ readonly minLength: 1;
23930
+ };
23931
+ readonly label: {
23932
+ readonly type: "string";
23933
+ readonly minLength: 1;
23934
+ };
23935
+ readonly tone: {
23936
+ readonly type: "string";
23937
+ readonly minLength: 1;
23938
+ };
23939
+ };
23940
+ };
23941
+ readonly nodes: {
23942
+ readonly type: "array";
23943
+ readonly items: {
23944
+ readonly type: "object";
23945
+ };
23946
+ };
23947
+ readonly handlingRecords: {
23948
+ readonly type: "array";
23949
+ readonly items: {
23950
+ readonly type: "object";
23951
+ };
22922
23952
  };
22923
23953
  readonly operations: {
22924
23954
  readonly type: "array";
@@ -22926,8 +23956,20 @@ export declare const contractSchemas: {
22926
23956
  readonly type: "object";
22927
23957
  };
22928
23958
  };
22929
- readonly extensions: {
23959
+ readonly navigationContext: {
22930
23960
  readonly type: "object";
23961
+ readonly additionalProperties: false;
23962
+ readonly required: readonly ["desktopReturnPath", "mobileReturnPath"];
23963
+ readonly properties: {
23964
+ readonly desktopReturnPath: {
23965
+ readonly type: "string";
23966
+ readonly minLength: 1;
23967
+ };
23968
+ readonly mobileReturnPath: {
23969
+ readonly type: "string";
23970
+ readonly minLength: 1;
23971
+ };
23972
+ };
22931
23973
  };
22932
23974
  };
22933
23975
  };