@adea-ai/sdk 2.0.0 → 3.0.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/client.d.ts +2 -1
- package/dist/client.js +3 -0
- package/dist/operations.d.ts +15 -1
- package/dist/operations.js +15 -1
- package/openapi/control-plane.v3.json +1483 -448
- package/package.json +3 -3
|
@@ -8233,7 +8233,14 @@
|
|
|
8233
8233
|
"operation": { "const": "marketplace.catalog.read", "type": "string" },
|
|
8234
8234
|
"parameters": {
|
|
8235
8235
|
"properties": {
|
|
8236
|
+
"cursor": {
|
|
8237
|
+
"maxLength": 512,
|
|
8238
|
+
"minLength": 8,
|
|
8239
|
+
"pattern": "^cur_[A-Za-z0-9_-]+$",
|
|
8240
|
+
"type": "string"
|
|
8241
|
+
},
|
|
8236
8242
|
"installedBy": { "maxLength": 128, "minLength": 1, "type": "string" },
|
|
8243
|
+
"limit": { "maximum": 100, "minimum": 1, "type": "integer" },
|
|
8237
8244
|
"workspaceIdentity": {
|
|
8238
8245
|
"properties": {
|
|
8239
8246
|
"userId": { "maxLength": 128, "minLength": 1, "type": "string" },
|
|
@@ -8377,8 +8384,21 @@
|
|
|
8377
8384
|
],
|
|
8378
8385
|
"type": "object"
|
|
8379
8386
|
},
|
|
8387
|
+
"maxItems": 100,
|
|
8380
8388
|
"type": "array"
|
|
8381
8389
|
},
|
|
8390
|
+
"installationsPage": {
|
|
8391
|
+
"additionalProperties": false,
|
|
8392
|
+
"properties": {
|
|
8393
|
+
"nextCursor": {
|
|
8394
|
+
"maxLength": 512,
|
|
8395
|
+
"minLength": 8,
|
|
8396
|
+
"pattern": "^cur_[A-Za-z0-9_-]+$",
|
|
8397
|
+
"type": "string"
|
|
8398
|
+
}
|
|
8399
|
+
},
|
|
8400
|
+
"type": "object"
|
|
8401
|
+
},
|
|
8382
8402
|
"releaseId": { "pattern": "^catalog:[a-f0-9]{64}$", "type": "string" },
|
|
8383
8403
|
"state": { "enum": ["ready", "stale"], "type": "string" }
|
|
8384
8404
|
},
|
|
@@ -10672,10 +10692,7 @@
|
|
|
10672
10692
|
"target": {
|
|
10673
10693
|
"additionalProperties": false,
|
|
10674
10694
|
"properties": {
|
|
10675
|
-
"harness": {
|
|
10676
|
-
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
10677
|
-
"type": "string"
|
|
10678
|
-
},
|
|
10695
|
+
"harness": { "enum": ["pi", "pi_durable", "acp"], "type": "string" },
|
|
10679
10696
|
"harnessVersion": {
|
|
10680
10697
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
10681
10698
|
"type": "string"
|
|
@@ -10685,12 +10702,7 @@
|
|
|
10685
10702
|
"type": "string"
|
|
10686
10703
|
},
|
|
10687
10704
|
"providerBinding": {
|
|
10688
|
-
"enum": [
|
|
10689
|
-
"pi_model_runtime",
|
|
10690
|
-
"pi_durable_models",
|
|
10691
|
-
"cloudflare_binding",
|
|
10692
|
-
"native_harness"
|
|
10693
|
-
],
|
|
10705
|
+
"enum": ["pi_model_runtime", "pi_durable_models", "native_harness"],
|
|
10694
10706
|
"type": "string"
|
|
10695
10707
|
}
|
|
10696
10708
|
},
|
|
@@ -11830,10 +11842,7 @@
|
|
|
11830
11842
|
"target": {
|
|
11831
11843
|
"additionalProperties": false,
|
|
11832
11844
|
"properties": {
|
|
11833
|
-
"harness": {
|
|
11834
|
-
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
11835
|
-
"type": "string"
|
|
11836
|
-
},
|
|
11845
|
+
"harness": { "enum": ["pi", "pi_durable", "acp"], "type": "string" },
|
|
11837
11846
|
"harnessVersion": {
|
|
11838
11847
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
11839
11848
|
"type": "string"
|
|
@@ -11843,12 +11852,7 @@
|
|
|
11843
11852
|
"type": "string"
|
|
11844
11853
|
},
|
|
11845
11854
|
"providerBinding": {
|
|
11846
|
-
"enum": [
|
|
11847
|
-
"pi_model_runtime",
|
|
11848
|
-
"pi_durable_models",
|
|
11849
|
-
"cloudflare_binding",
|
|
11850
|
-
"native_harness"
|
|
11851
|
-
],
|
|
11855
|
+
"enum": ["pi_model_runtime", "pi_durable_models", "native_harness"],
|
|
11852
11856
|
"type": "string"
|
|
11853
11857
|
}
|
|
11854
11858
|
},
|
|
@@ -11953,10 +11957,7 @@
|
|
|
11953
11957
|
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
11954
11958
|
"type": "string"
|
|
11955
11959
|
},
|
|
11956
|
-
"harness": {
|
|
11957
|
-
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
11958
|
-
"type": "string"
|
|
11959
|
-
},
|
|
11960
|
+
"harness": { "enum": ["pi", "pi_durable", "acp"], "type": "string" },
|
|
11960
11961
|
"harnessVersion": {
|
|
11961
11962
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
11962
11963
|
"type": "string"
|
|
@@ -11972,12 +11973,7 @@
|
|
|
11972
11973
|
"type": "string"
|
|
11973
11974
|
},
|
|
11974
11975
|
"providerBinding": {
|
|
11975
|
-
"enum": [
|
|
11976
|
-
"pi_model_runtime",
|
|
11977
|
-
"pi_durable_models",
|
|
11978
|
-
"cloudflare_binding",
|
|
11979
|
-
"native_harness"
|
|
11980
|
-
],
|
|
11976
|
+
"enum": ["pi_model_runtime", "pi_durable_models", "native_harness"],
|
|
11981
11977
|
"type": "string"
|
|
11982
11978
|
},
|
|
11983
11979
|
"providerModel": {
|
|
@@ -12317,6 +12313,30 @@
|
|
|
12317
12313
|
"const": "pi-child-publication/v1",
|
|
12318
12314
|
"type": "string"
|
|
12319
12315
|
},
|
|
12316
|
+
"sealedConclusion": {
|
|
12317
|
+
"additionalProperties": false,
|
|
12318
|
+
"properties": {
|
|
12319
|
+
"ciphertext": {
|
|
12320
|
+
"maxLength": 4096,
|
|
12321
|
+
"minLength": 1,
|
|
12322
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
12323
|
+
"type": "string"
|
|
12324
|
+
},
|
|
12325
|
+
"ckv": {
|
|
12326
|
+
"maximum": 9007199254740991,
|
|
12327
|
+
"minimum": 1,
|
|
12328
|
+
"type": "integer"
|
|
12329
|
+
},
|
|
12330
|
+
"nonce": {
|
|
12331
|
+
"maxLength": 16,
|
|
12332
|
+
"minLength": 16,
|
|
12333
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
12334
|
+
"type": "string"
|
|
12335
|
+
}
|
|
12336
|
+
},
|
|
12337
|
+
"required": ["ckv", "nonce", "ciphertext"],
|
|
12338
|
+
"type": "object"
|
|
12339
|
+
},
|
|
12320
12340
|
"state": {
|
|
12321
12341
|
"enum": ["completed", "failed", "cancelled"],
|
|
12322
12342
|
"type": "string"
|
|
@@ -17535,9 +17555,9 @@
|
|
|
17535
17555
|
"security": [{ "serviceBearer": [] }]
|
|
17536
17556
|
}
|
|
17537
17557
|
},
|
|
17538
|
-
"/v3/pi-durable/lead-dispatches/
|
|
17558
|
+
"/v3/pi-durable/lead-dispatches/events": {
|
|
17539
17559
|
"post": {
|
|
17540
|
-
"operationId": "pi-durable.lead.
|
|
17560
|
+
"operationId": "pi-durable.lead.events",
|
|
17541
17561
|
"requestBody": {
|
|
17542
17562
|
"content": {
|
|
17543
17563
|
"application/json": {
|
|
@@ -17586,17 +17606,22 @@
|
|
|
17586
17606
|
"required": ["traceId"],
|
|
17587
17607
|
"type": "object"
|
|
17588
17608
|
},
|
|
17589
|
-
"operation": { "const": "pi-durable.lead.
|
|
17609
|
+
"operation": { "const": "pi-durable.lead.events", "type": "string" },
|
|
17590
17610
|
"parameters": {
|
|
17591
17611
|
"additionalProperties": false,
|
|
17592
17612
|
"properties": {
|
|
17593
|
-
"
|
|
17594
|
-
|
|
17595
|
-
|
|
17613
|
+
"afterSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" },
|
|
17614
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
17615
|
+
"limit": { "maximum": 256, "minimum": 1, "type": "integer" },
|
|
17616
|
+
"messageId": {
|
|
17617
|
+
"maxLength": 128,
|
|
17618
|
+
"minLength": 1,
|
|
17619
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
17596
17620
|
"type": "string"
|
|
17597
|
-
}
|
|
17621
|
+
},
|
|
17622
|
+
"waitMs": { "maximum": 8000, "minimum": 0, "type": "integer" }
|
|
17598
17623
|
},
|
|
17599
|
-
"required": ["
|
|
17624
|
+
"required": ["dispatchId", "messageId", "afterSeq", "waitMs"],
|
|
17600
17625
|
"type": "object"
|
|
17601
17626
|
},
|
|
17602
17627
|
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
@@ -17657,103 +17682,84 @@
|
|
|
17657
17682
|
"data": {
|
|
17658
17683
|
"additionalProperties": false,
|
|
17659
17684
|
"properties": {
|
|
17660
|
-
"
|
|
17661
|
-
|
|
17662
|
-
|
|
17663
|
-
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
|
|
17669
|
-
|
|
17670
|
-
"attemptId": {},
|
|
17671
|
-
"dispatchId": {
|
|
17672
|
-
"pattern": "^dispatch_[a-f0-9]{32}$",
|
|
17673
|
-
"type": "string"
|
|
17674
|
-
},
|
|
17675
|
-
"executionId": {},
|
|
17676
|
-
"observedTarget": {
|
|
17677
|
-
"additionalProperties": false,
|
|
17678
|
-
"properties": {
|
|
17679
|
-
"generation": {
|
|
17680
|
-
"additionalProperties": false,
|
|
17681
|
-
"properties": {
|
|
17682
|
-
"attemptId": {},
|
|
17683
|
-
"inferenceId": {
|
|
17684
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
17685
|
-
"type": "string"
|
|
17686
|
-
},
|
|
17687
|
-
"inferenceKey": {
|
|
17688
|
-
"maxLength": 8192,
|
|
17689
|
-
"minLength": 1,
|
|
17690
|
-
"type": "string"
|
|
17691
|
-
},
|
|
17692
|
-
"schemaVersion": {
|
|
17693
|
-
"const": "runtime-observed-generation/v1",
|
|
17694
|
-
"type": "string"
|
|
17695
|
-
},
|
|
17696
|
-
"turnKey": {
|
|
17697
|
-
"maxLength": 4096,
|
|
17698
|
-
"minLength": 1,
|
|
17699
|
-
"type": "string"
|
|
17700
|
-
}
|
|
17701
|
-
},
|
|
17702
|
-
"required": [
|
|
17703
|
-
"schemaVersion",
|
|
17704
|
-
"attemptId",
|
|
17705
|
-
"turnKey",
|
|
17706
|
-
"inferenceId",
|
|
17707
|
-
"inferenceKey"
|
|
17708
|
-
],
|
|
17709
|
-
"type": "object"
|
|
17710
|
-
},
|
|
17711
|
-
"sessionId": {
|
|
17712
|
-
"maxLength": 256,
|
|
17713
|
-
"minLength": 1,
|
|
17714
|
-
"type": "string"
|
|
17715
|
-
},
|
|
17716
|
-
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
17717
|
-
},
|
|
17718
|
-
"readOnly": true,
|
|
17719
|
-
"required": ["sessionId", "taskId"],
|
|
17720
|
-
"type": "object"
|
|
17721
|
-
},
|
|
17722
|
-
"requestedTarget": {
|
|
17723
|
-
"additionalProperties": false,
|
|
17724
|
-
"properties": {
|
|
17725
|
-
"generation": {
|
|
17726
|
-
"maximum": 9007199254740991,
|
|
17727
|
-
"minimum": 0,
|
|
17728
|
-
"type": "integer"
|
|
17729
|
-
},
|
|
17730
|
-
"sessionId": {
|
|
17731
|
-
"maxLength": 256,
|
|
17732
|
-
"minLength": 1,
|
|
17733
|
-
"type": "string"
|
|
17734
|
-
},
|
|
17735
|
-
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
17736
|
-
},
|
|
17737
|
-
"readOnly": true,
|
|
17738
|
-
"required": ["sessionId", "taskId", "generation"],
|
|
17739
|
-
"type": "object"
|
|
17740
|
-
},
|
|
17741
|
-
"runtimeSessionId": {},
|
|
17742
|
-
"state": {
|
|
17743
|
-
"enum": ["dispatching", "dispatched", "reconciliation_required"],
|
|
17744
|
-
"type": "string"
|
|
17745
|
-
}
|
|
17685
|
+
"complete": { "type": "boolean" },
|
|
17686
|
+
"contractVersion": { "const": 1, "type": "number" },
|
|
17687
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
17688
|
+
"events": {
|
|
17689
|
+
"items": {
|
|
17690
|
+
"additionalProperties": false,
|
|
17691
|
+
"properties": {
|
|
17692
|
+
"classification": {
|
|
17693
|
+
"enum": ["workspace_private", "restricted_local"],
|
|
17694
|
+
"type": "string"
|
|
17746
17695
|
},
|
|
17747
|
-
"
|
|
17748
|
-
"type": "
|
|
17696
|
+
"confidence": { "const": "authoritative", "type": "string" },
|
|
17697
|
+
"eventId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
17698
|
+
"generation": { "const": 1, "type": "number" },
|
|
17699
|
+
"harnessRunId": {
|
|
17700
|
+
"maxLength": 256,
|
|
17701
|
+
"minLength": 1,
|
|
17702
|
+
"type": "string"
|
|
17703
|
+
},
|
|
17704
|
+
"kind": { "maxLength": 64, "minLength": 1, "type": "string" },
|
|
17705
|
+
"occurredAt": {
|
|
17706
|
+
"format": "date-time",
|
|
17707
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
17708
|
+
"type": "string"
|
|
17709
|
+
},
|
|
17710
|
+
"payload": {
|
|
17711
|
+
"additionalProperties": {},
|
|
17712
|
+
"propertyNames": { "type": "string" },
|
|
17713
|
+
"type": "object"
|
|
17714
|
+
},
|
|
17715
|
+
"receivedAt": {
|
|
17716
|
+
"format": "date-time",
|
|
17717
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
17718
|
+
"type": "string"
|
|
17719
|
+
},
|
|
17720
|
+
"runtimeSessionId": {
|
|
17721
|
+
"pattern": "^pi-lead:dispatch_[a-f0-9]{32}$",
|
|
17722
|
+
"type": "string"
|
|
17723
|
+
},
|
|
17724
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
17725
|
+
"seq": { "pattern": "^[1-9]\\d*$", "type": "string" },
|
|
17726
|
+
"source": { "const": "native", "type": "string" },
|
|
17727
|
+
"sourceEventId": {
|
|
17728
|
+
"maxLength": 256,
|
|
17729
|
+
"minLength": 1,
|
|
17730
|
+
"type": "string"
|
|
17731
|
+
}
|
|
17749
17732
|
},
|
|
17750
|
-
|
|
17751
|
-
|
|
17733
|
+
"required": [
|
|
17734
|
+
"schemaVersion",
|
|
17735
|
+
"eventId",
|
|
17736
|
+
"runtimeSessionId",
|
|
17737
|
+
"harnessRunId",
|
|
17738
|
+
"generation",
|
|
17739
|
+
"seq",
|
|
17740
|
+
"occurredAt",
|
|
17741
|
+
"receivedAt",
|
|
17742
|
+
"source",
|
|
17743
|
+
"sourceEventId",
|
|
17744
|
+
"confidence",
|
|
17745
|
+
"classification",
|
|
17746
|
+
"kind",
|
|
17747
|
+
"payload"
|
|
17748
|
+
],
|
|
17749
|
+
"type": "object"
|
|
17750
|
+
},
|
|
17751
|
+
"maxItems": 256,
|
|
17752
|
+
"type": "array"
|
|
17752
17753
|
},
|
|
17753
|
-
"
|
|
17754
|
-
"workspaceId": {}
|
|
17754
|
+
"nextSeq": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17755
17755
|
},
|
|
17756
|
-
"required": [
|
|
17756
|
+
"required": [
|
|
17757
|
+
"contractVersion",
|
|
17758
|
+
"dispatchId",
|
|
17759
|
+
"events",
|
|
17760
|
+
"nextSeq",
|
|
17761
|
+
"complete"
|
|
17762
|
+
],
|
|
17757
17763
|
"type": "object"
|
|
17758
17764
|
},
|
|
17759
17765
|
"requestId": {}
|
|
@@ -17854,9 +17860,9 @@
|
|
|
17854
17860
|
"security": [{ "serviceBearer": [] }]
|
|
17855
17861
|
}
|
|
17856
17862
|
},
|
|
17857
|
-
"/v3/pi-durable/lead-dispatches/
|
|
17863
|
+
"/v3/pi-durable/lead-dispatches/lookup": {
|
|
17858
17864
|
"post": {
|
|
17859
|
-
"operationId": "pi-durable.lead.
|
|
17865
|
+
"operationId": "pi-durable.lead.lookup",
|
|
17860
17866
|
"requestBody": {
|
|
17861
17867
|
"content": {
|
|
17862
17868
|
"application/json": {
|
|
@@ -17876,7 +17882,6 @@
|
|
|
17876
17882
|
"required": ["servicePrincipalId"],
|
|
17877
17883
|
"type": "object"
|
|
17878
17884
|
},
|
|
17879
|
-
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17880
17885
|
"contractVersion": {
|
|
17881
17886
|
"additionalProperties": false,
|
|
17882
17887
|
"properties": {
|
|
@@ -17906,19 +17911,8 @@
|
|
|
17906
17911
|
"required": ["traceId"],
|
|
17907
17912
|
"type": "object"
|
|
17908
17913
|
},
|
|
17909
|
-
"
|
|
17910
|
-
|
|
17911
|
-
"minLength": 16,
|
|
17912
|
-
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
17913
|
-
"type": "string"
|
|
17914
|
-
},
|
|
17915
|
-
"issuedAt": {
|
|
17916
|
-
"format": "date-time",
|
|
17917
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
17918
|
-
"type": "string"
|
|
17919
|
-
},
|
|
17920
|
-
"operation": { "const": "pi-durable.lead.prepare", "type": "string" },
|
|
17921
|
-
"payload": {
|
|
17914
|
+
"operation": { "const": "pi-durable.lead.lookup", "type": "string" },
|
|
17915
|
+
"parameters": {
|
|
17922
17916
|
"additionalProperties": false,
|
|
17923
17917
|
"properties": {
|
|
17924
17918
|
"intentId": {
|
|
@@ -17930,9 +17924,13 @@
|
|
|
17930
17924
|
"required": ["intentId"],
|
|
17931
17925
|
"type": "object"
|
|
17932
17926
|
},
|
|
17933
|
-
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
17934
17927
|
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17935
17928
|
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17929
|
+
"requestedAt": {
|
|
17930
|
+
"format": "date-time",
|
|
17931
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
17932
|
+
"type": "string"
|
|
17933
|
+
},
|
|
17936
17934
|
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17937
17935
|
},
|
|
17938
17936
|
"required": [
|
|
@@ -17941,12 +17939,9 @@
|
|
|
17941
17939
|
"requestId",
|
|
17942
17940
|
"workspaceId",
|
|
17943
17941
|
"correlation",
|
|
17944
|
-
"commandId",
|
|
17945
|
-
"idempotencyKey",
|
|
17946
|
-
"payloadHash",
|
|
17947
17942
|
"operation",
|
|
17948
|
-
"
|
|
17949
|
-
"
|
|
17943
|
+
"requestedAt",
|
|
17944
|
+
"parameters"
|
|
17950
17945
|
],
|
|
17951
17946
|
"type": "object"
|
|
17952
17947
|
}
|
|
@@ -17987,263 +17982,942 @@
|
|
|
17987
17982
|
"data": {
|
|
17988
17983
|
"additionalProperties": false,
|
|
17989
17984
|
"properties": {
|
|
17990
|
-
"
|
|
17991
|
-
|
|
17992
|
-
"
|
|
17985
|
+
"intentId": {
|
|
17986
|
+
"format": "uuid",
|
|
17987
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
17988
|
+
"type": "string"
|
|
17989
|
+
},
|
|
17990
|
+
"receipt": {
|
|
17991
|
+
"anyOf": [
|
|
17993
17992
|
{
|
|
17994
17993
|
"additionalProperties": false,
|
|
17995
17994
|
"properties": {
|
|
17996
|
-
"
|
|
17997
|
-
"
|
|
17998
|
-
"pattern": "^
|
|
17995
|
+
"attemptId": {},
|
|
17996
|
+
"dispatchId": {
|
|
17997
|
+
"pattern": "^dispatch_[a-f0-9]{32}$",
|
|
17999
17998
|
"type": "string"
|
|
18000
17999
|
},
|
|
18001
|
-
"
|
|
18002
|
-
|
|
18003
|
-
"maximum": 9007199254740991,
|
|
18004
|
-
"type": "integer"
|
|
18005
|
-
},
|
|
18006
|
-
"maximumTokens": {
|
|
18007
|
-
"exclusiveMinimum": 0,
|
|
18008
|
-
"maximum": 9007199254740991,
|
|
18009
|
-
"type": "integer"
|
|
18010
|
-
},
|
|
18011
|
-
"profile": {
|
|
18000
|
+
"executionId": {},
|
|
18001
|
+
"observedTarget": {
|
|
18012
18002
|
"additionalProperties": false,
|
|
18013
18003
|
"properties": {
|
|
18014
|
-
"
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18004
|
+
"generation": {
|
|
18005
|
+
"additionalProperties": false,
|
|
18006
|
+
"properties": {
|
|
18007
|
+
"attemptId": {},
|
|
18008
|
+
"inferenceId": {
|
|
18009
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
18010
|
+
"type": "string"
|
|
18011
|
+
},
|
|
18012
|
+
"inferenceKey": {
|
|
18013
|
+
"maxLength": 8192,
|
|
18014
|
+
"minLength": 1,
|
|
18015
|
+
"type": "string"
|
|
18016
|
+
},
|
|
18017
|
+
"schemaVersion": {
|
|
18018
|
+
"const": "runtime-observed-generation/v1",
|
|
18019
|
+
"type": "string"
|
|
18020
|
+
},
|
|
18021
|
+
"turnKey": {
|
|
18022
|
+
"maxLength": 4096,
|
|
18023
|
+
"minLength": 1,
|
|
18024
|
+
"type": "string"
|
|
18025
|
+
}
|
|
18026
|
+
},
|
|
18027
|
+
"required": [
|
|
18028
|
+
"schemaVersion",
|
|
18029
|
+
"attemptId",
|
|
18030
|
+
"turnKey",
|
|
18031
|
+
"inferenceId",
|
|
18032
|
+
"inferenceKey"
|
|
18033
|
+
],
|
|
18034
|
+
"type": "object"
|
|
18035
|
+
},
|
|
18036
|
+
"sessionId": {
|
|
18037
|
+
"maxLength": 256,
|
|
18038
|
+
"minLength": 1,
|
|
18039
|
+
"type": "string"
|
|
18040
|
+
},
|
|
18041
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18042
|
+
},
|
|
18043
|
+
"readOnly": true,
|
|
18044
|
+
"required": ["sessionId", "taskId"],
|
|
18045
|
+
"type": "object"
|
|
18046
|
+
},
|
|
18047
|
+
"requestedTarget": {
|
|
18048
|
+
"additionalProperties": false,
|
|
18049
|
+
"properties": {
|
|
18050
|
+
"generation": {
|
|
18023
18051
|
"maximum": 9007199254740991,
|
|
18052
|
+
"minimum": 0,
|
|
18024
18053
|
"type": "integer"
|
|
18025
|
-
}
|
|
18054
|
+
},
|
|
18055
|
+
"sessionId": {
|
|
18056
|
+
"maxLength": 256,
|
|
18057
|
+
"minLength": 1,
|
|
18058
|
+
"type": "string"
|
|
18059
|
+
},
|
|
18060
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18026
18061
|
},
|
|
18027
18062
|
"readOnly": true,
|
|
18028
|
-
"required": [
|
|
18029
|
-
"profileId",
|
|
18030
|
-
"profileVersionId",
|
|
18031
|
-
"version",
|
|
18032
|
-
"revision"
|
|
18033
|
-
],
|
|
18063
|
+
"required": ["sessionId", "taskId", "generation"],
|
|
18034
18064
|
"type": "object"
|
|
18035
18065
|
},
|
|
18036
|
-
"
|
|
18037
|
-
|
|
18066
|
+
"runtimeSessionId": {},
|
|
18067
|
+
"state": {
|
|
18068
|
+
"enum": ["dispatching", "dispatched", "reconciliation_required"],
|
|
18038
18069
|
"type": "string"
|
|
18039
|
-
}
|
|
18040
|
-
|
|
18070
|
+
}
|
|
18071
|
+
},
|
|
18072
|
+
"required": ["dispatchId", "executionId", "attemptId", "state"],
|
|
18073
|
+
"type": "object"
|
|
18074
|
+
},
|
|
18075
|
+
{ "type": "null" }
|
|
18076
|
+
]
|
|
18077
|
+
},
|
|
18078
|
+
"schemaVersion": { "const": "pi-lead-lookup/v1", "type": "string" },
|
|
18079
|
+
"workspaceId": {}
|
|
18080
|
+
},
|
|
18081
|
+
"required": ["schemaVersion", "workspaceId", "intentId", "receipt"],
|
|
18082
|
+
"type": "object"
|
|
18083
|
+
},
|
|
18084
|
+
"requestId": {}
|
|
18085
|
+
},
|
|
18086
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18087
|
+
"type": "object"
|
|
18088
|
+
}
|
|
18089
|
+
}
|
|
18090
|
+
},
|
|
18091
|
+
"description": "Successful response"
|
|
18092
|
+
},
|
|
18093
|
+
"default": {
|
|
18094
|
+
"content": {
|
|
18095
|
+
"application/json": {
|
|
18096
|
+
"schema": {
|
|
18097
|
+
"additionalProperties": false,
|
|
18098
|
+
"properties": {
|
|
18099
|
+
"contractVersion": {
|
|
18100
|
+
"additionalProperties": false,
|
|
18101
|
+
"properties": {
|
|
18102
|
+
"major": {
|
|
18103
|
+
"exclusiveMinimum": 0,
|
|
18104
|
+
"maximum": 9007199254740991,
|
|
18105
|
+
"type": "integer"
|
|
18106
|
+
},
|
|
18107
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18108
|
+
},
|
|
18109
|
+
"required": ["major", "minor"],
|
|
18110
|
+
"type": "object"
|
|
18111
|
+
},
|
|
18112
|
+
"correlation": {
|
|
18113
|
+
"additionalProperties": false,
|
|
18114
|
+
"properties": {
|
|
18115
|
+
"causationCommandId": {},
|
|
18116
|
+
"parentEventId": {},
|
|
18117
|
+
"traceId": {}
|
|
18118
|
+
},
|
|
18119
|
+
"required": ["traceId"],
|
|
18120
|
+
"type": "object"
|
|
18121
|
+
},
|
|
18122
|
+
"error": {
|
|
18123
|
+
"additionalProperties": false,
|
|
18124
|
+
"properties": {
|
|
18125
|
+
"class": {
|
|
18126
|
+
"enum": [
|
|
18127
|
+
"validation",
|
|
18128
|
+
"authentication",
|
|
18129
|
+
"authorization",
|
|
18130
|
+
"conflict",
|
|
18131
|
+
"stale_reference",
|
|
18132
|
+
"capability_mismatch",
|
|
18133
|
+
"runtime_unavailable",
|
|
18134
|
+
"internal"
|
|
18135
|
+
],
|
|
18136
|
+
"type": "string"
|
|
18137
|
+
},
|
|
18138
|
+
"code": {
|
|
18139
|
+
"maxLength": 96,
|
|
18140
|
+
"minLength": 1,
|
|
18141
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18142
|
+
"type": "string"
|
|
18143
|
+
},
|
|
18144
|
+
"details": {
|
|
18145
|
+
"additionalProperties": {},
|
|
18146
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18147
|
+
"type": "object"
|
|
18148
|
+
},
|
|
18149
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18150
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18151
|
+
"retryable": { "type": "boolean" },
|
|
18152
|
+
"source": {
|
|
18153
|
+
"enum": [
|
|
18154
|
+
"client",
|
|
18155
|
+
"auth",
|
|
18156
|
+
"policy",
|
|
18157
|
+
"runtime",
|
|
18158
|
+
"provider",
|
|
18159
|
+
"persistence",
|
|
18160
|
+
"workflow",
|
|
18161
|
+
"system"
|
|
18162
|
+
],
|
|
18163
|
+
"type": "string"
|
|
18164
|
+
}
|
|
18165
|
+
},
|
|
18166
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18167
|
+
"type": "object"
|
|
18168
|
+
},
|
|
18169
|
+
"requestId": {}
|
|
18170
|
+
},
|
|
18171
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18172
|
+
"type": "object"
|
|
18173
|
+
}
|
|
18174
|
+
}
|
|
18175
|
+
},
|
|
18176
|
+
"description": "Normalized error response"
|
|
18177
|
+
}
|
|
18178
|
+
},
|
|
18179
|
+
"security": [{ "serviceBearer": [] }]
|
|
18180
|
+
}
|
|
18181
|
+
},
|
|
18182
|
+
"/v3/pi-durable/lead-dispatches/prepare": {
|
|
18183
|
+
"post": {
|
|
18184
|
+
"operationId": "pi-durable.lead.prepare",
|
|
18185
|
+
"requestBody": {
|
|
18186
|
+
"content": {
|
|
18187
|
+
"application/json": {
|
|
18188
|
+
"schema": {
|
|
18189
|
+
"additionalProperties": false,
|
|
18190
|
+
"properties": {
|
|
18191
|
+
"caller": {
|
|
18192
|
+
"additionalProperties": false,
|
|
18193
|
+
"properties": {
|
|
18194
|
+
"servicePrincipalId": {
|
|
18195
|
+
"maxLength": 64,
|
|
18196
|
+
"minLength": 5,
|
|
18197
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
18198
|
+
"type": "string"
|
|
18199
|
+
}
|
|
18200
|
+
},
|
|
18201
|
+
"required": ["servicePrincipalId"],
|
|
18202
|
+
"type": "object"
|
|
18203
|
+
},
|
|
18204
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18205
|
+
"contractVersion": {
|
|
18206
|
+
"additionalProperties": false,
|
|
18207
|
+
"properties": {
|
|
18208
|
+
"major": {
|
|
18209
|
+
"exclusiveMinimum": 0,
|
|
18210
|
+
"maximum": 9007199254740991,
|
|
18211
|
+
"type": "integer"
|
|
18212
|
+
},
|
|
18213
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18214
|
+
},
|
|
18215
|
+
"required": ["major", "minor"],
|
|
18216
|
+
"type": "object"
|
|
18217
|
+
},
|
|
18218
|
+
"correlation": {
|
|
18219
|
+
"additionalProperties": false,
|
|
18220
|
+
"properties": {
|
|
18221
|
+
"causationCommandId": {
|
|
18222
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18223
|
+
"type": "string"
|
|
18224
|
+
},
|
|
18225
|
+
"parentEventId": {
|
|
18226
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18227
|
+
"type": "string"
|
|
18228
|
+
},
|
|
18229
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18230
|
+
},
|
|
18231
|
+
"required": ["traceId"],
|
|
18232
|
+
"type": "object"
|
|
18233
|
+
},
|
|
18234
|
+
"idempotencyKey": {
|
|
18235
|
+
"maxLength": 128,
|
|
18236
|
+
"minLength": 16,
|
|
18237
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
18238
|
+
"type": "string"
|
|
18239
|
+
},
|
|
18240
|
+
"issuedAt": {
|
|
18241
|
+
"format": "date-time",
|
|
18242
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18243
|
+
"type": "string"
|
|
18244
|
+
},
|
|
18245
|
+
"operation": { "const": "pi-durable.lead.prepare", "type": "string" },
|
|
18246
|
+
"payload": {
|
|
18247
|
+
"additionalProperties": false,
|
|
18248
|
+
"properties": {
|
|
18249
|
+
"intentId": {
|
|
18250
|
+
"format": "uuid",
|
|
18251
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
18252
|
+
"type": "string"
|
|
18253
|
+
}
|
|
18254
|
+
},
|
|
18255
|
+
"required": ["intentId"],
|
|
18256
|
+
"type": "object"
|
|
18257
|
+
},
|
|
18258
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
18259
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18260
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18261
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18262
|
+
},
|
|
18263
|
+
"required": [
|
|
18264
|
+
"caller",
|
|
18265
|
+
"contractVersion",
|
|
18266
|
+
"requestId",
|
|
18267
|
+
"workspaceId",
|
|
18268
|
+
"correlation",
|
|
18269
|
+
"commandId",
|
|
18270
|
+
"idempotencyKey",
|
|
18271
|
+
"payloadHash",
|
|
18272
|
+
"operation",
|
|
18273
|
+
"issuedAt",
|
|
18274
|
+
"payload"
|
|
18275
|
+
],
|
|
18276
|
+
"type": "object"
|
|
18277
|
+
}
|
|
18278
|
+
}
|
|
18279
|
+
},
|
|
18280
|
+
"required": true
|
|
18281
|
+
},
|
|
18282
|
+
"responses": {
|
|
18283
|
+
"200": {
|
|
18284
|
+
"content": {
|
|
18285
|
+
"application/json": {
|
|
18286
|
+
"schema": {
|
|
18287
|
+
"additionalProperties": false,
|
|
18288
|
+
"properties": {
|
|
18289
|
+
"contractVersion": {
|
|
18290
|
+
"additionalProperties": false,
|
|
18291
|
+
"properties": {
|
|
18292
|
+
"major": {
|
|
18293
|
+
"exclusiveMinimum": 0,
|
|
18294
|
+
"maximum": 9007199254740991,
|
|
18295
|
+
"type": "integer"
|
|
18296
|
+
},
|
|
18297
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18298
|
+
},
|
|
18299
|
+
"required": ["major", "minor"],
|
|
18300
|
+
"type": "object"
|
|
18301
|
+
},
|
|
18302
|
+
"correlation": {
|
|
18303
|
+
"additionalProperties": false,
|
|
18304
|
+
"properties": {
|
|
18305
|
+
"causationCommandId": {},
|
|
18306
|
+
"parentEventId": {},
|
|
18307
|
+
"traceId": {}
|
|
18308
|
+
},
|
|
18309
|
+
"required": ["traceId"],
|
|
18310
|
+
"type": "object"
|
|
18311
|
+
},
|
|
18312
|
+
"data": {
|
|
18313
|
+
"additionalProperties": false,
|
|
18314
|
+
"properties": {
|
|
18315
|
+
"attemptId": {},
|
|
18316
|
+
"childAllowance": {
|
|
18317
|
+
"oneOf": [
|
|
18318
|
+
{
|
|
18319
|
+
"additionalProperties": false,
|
|
18320
|
+
"properties": {
|
|
18321
|
+
"currency": { "const": "USD", "type": "string" },
|
|
18322
|
+
"executionPlanDigest": {
|
|
18323
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
18324
|
+
"type": "string"
|
|
18325
|
+
},
|
|
18326
|
+
"maximumMicrounits": {
|
|
18327
|
+
"exclusiveMinimum": 0,
|
|
18328
|
+
"maximum": 9007199254740991,
|
|
18329
|
+
"type": "integer"
|
|
18330
|
+
},
|
|
18331
|
+
"maximumTokens": {
|
|
18332
|
+
"exclusiveMinimum": 0,
|
|
18333
|
+
"maximum": 9007199254740991,
|
|
18334
|
+
"type": "integer"
|
|
18335
|
+
},
|
|
18336
|
+
"profile": {
|
|
18337
|
+
"additionalProperties": false,
|
|
18338
|
+
"properties": {
|
|
18339
|
+
"profileId": {},
|
|
18340
|
+
"profileVersionId": {},
|
|
18341
|
+
"revision": {
|
|
18342
|
+
"exclusiveMinimum": 0,
|
|
18343
|
+
"maximum": 9007199254740991,
|
|
18344
|
+
"type": "integer"
|
|
18345
|
+
},
|
|
18346
|
+
"version": {
|
|
18347
|
+
"exclusiveMinimum": 0,
|
|
18348
|
+
"maximum": 9007199254740991,
|
|
18349
|
+
"type": "integer"
|
|
18350
|
+
}
|
|
18351
|
+
},
|
|
18352
|
+
"readOnly": true,
|
|
18353
|
+
"required": [
|
|
18354
|
+
"profileId",
|
|
18355
|
+
"profileVersionId",
|
|
18356
|
+
"version",
|
|
18357
|
+
"revision"
|
|
18358
|
+
],
|
|
18359
|
+
"type": "object"
|
|
18360
|
+
},
|
|
18361
|
+
"schemaVersion": {
|
|
18362
|
+
"const": "pi-lead-child-allowance/v1",
|
|
18363
|
+
"type": "string"
|
|
18364
|
+
},
|
|
18365
|
+
"state": { "const": "stated", "type": "string" }
|
|
18366
|
+
},
|
|
18367
|
+
"required": [
|
|
18368
|
+
"schemaVersion",
|
|
18369
|
+
"executionPlanDigest",
|
|
18370
|
+
"profile",
|
|
18371
|
+
"state",
|
|
18372
|
+
"currency",
|
|
18373
|
+
"maximumMicrounits",
|
|
18374
|
+
"maximumTokens"
|
|
18375
|
+
],
|
|
18376
|
+
"type": "object"
|
|
18377
|
+
},
|
|
18378
|
+
{
|
|
18379
|
+
"additionalProperties": false,
|
|
18380
|
+
"properties": {
|
|
18381
|
+
"executionPlanDigest": {
|
|
18382
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
18383
|
+
"type": "string"
|
|
18384
|
+
},
|
|
18385
|
+
"profile": {
|
|
18386
|
+
"additionalProperties": false,
|
|
18387
|
+
"properties": {
|
|
18388
|
+
"profileId": {},
|
|
18389
|
+
"profileVersionId": {},
|
|
18390
|
+
"revision": {
|
|
18391
|
+
"exclusiveMinimum": 0,
|
|
18392
|
+
"maximum": 9007199254740991,
|
|
18393
|
+
"type": "integer"
|
|
18394
|
+
},
|
|
18395
|
+
"version": {
|
|
18396
|
+
"exclusiveMinimum": 0,
|
|
18397
|
+
"maximum": 9007199254740991,
|
|
18398
|
+
"type": "integer"
|
|
18399
|
+
}
|
|
18400
|
+
},
|
|
18401
|
+
"readOnly": true,
|
|
18402
|
+
"required": [
|
|
18403
|
+
"profileId",
|
|
18404
|
+
"profileVersionId",
|
|
18405
|
+
"version",
|
|
18406
|
+
"revision"
|
|
18407
|
+
],
|
|
18408
|
+
"type": "object"
|
|
18409
|
+
},
|
|
18410
|
+
"schemaVersion": {
|
|
18411
|
+
"const": "pi-lead-child-allowance/v1",
|
|
18412
|
+
"type": "string"
|
|
18413
|
+
},
|
|
18414
|
+
"state": { "const": "not_stated", "type": "string" }
|
|
18415
|
+
},
|
|
18416
|
+
"required": [
|
|
18417
|
+
"schemaVersion",
|
|
18418
|
+
"executionPlanDigest",
|
|
18419
|
+
"profile",
|
|
18420
|
+
"state"
|
|
18421
|
+
],
|
|
18422
|
+
"type": "object"
|
|
18423
|
+
}
|
|
18424
|
+
]
|
|
18425
|
+
},
|
|
18426
|
+
"executionId": {},
|
|
18427
|
+
"expiresAt": {
|
|
18428
|
+
"format": "date-time",
|
|
18429
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18430
|
+
"type": "string"
|
|
18431
|
+
},
|
|
18432
|
+
"funding": {
|
|
18433
|
+
"additionalProperties": false,
|
|
18434
|
+
"properties": {
|
|
18435
|
+
"accountRef": {
|
|
18436
|
+
"maxLength": 256,
|
|
18437
|
+
"minLength": 1,
|
|
18438
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18439
|
+
"type": "string"
|
|
18440
|
+
},
|
|
18441
|
+
"attemptId": {},
|
|
18442
|
+
"authKind": {
|
|
18443
|
+
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
18444
|
+
"type": "string"
|
|
18445
|
+
},
|
|
18446
|
+
"authorityRevision": {
|
|
18447
|
+
"exclusiveMinimum": 0,
|
|
18448
|
+
"maximum": 9007199254740991,
|
|
18449
|
+
"type": "integer"
|
|
18450
|
+
},
|
|
18451
|
+
"authorizationRef": {
|
|
18452
|
+
"maxLength": 256,
|
|
18453
|
+
"minLength": 1,
|
|
18454
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18455
|
+
"type": "string"
|
|
18456
|
+
},
|
|
18457
|
+
"executionId": {},
|
|
18458
|
+
"expiresAt": {
|
|
18459
|
+
"format": "date-time",
|
|
18460
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18461
|
+
"type": "string"
|
|
18462
|
+
},
|
|
18463
|
+
"fundingOwner": {
|
|
18464
|
+
"additionalProperties": false,
|
|
18465
|
+
"properties": {
|
|
18466
|
+
"displayName": {
|
|
18467
|
+
"maxLength": 128,
|
|
18468
|
+
"minLength": 1,
|
|
18469
|
+
"type": "string"
|
|
18470
|
+
},
|
|
18471
|
+
"evidenceRef": {
|
|
18472
|
+
"maxLength": 256,
|
|
18473
|
+
"minLength": 1,
|
|
18474
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18475
|
+
"type": "string"
|
|
18476
|
+
},
|
|
18477
|
+
"kind": {
|
|
18478
|
+
"enum": ["provider_account", "workspace_account", "adea_account"],
|
|
18479
|
+
"type": "string"
|
|
18480
|
+
},
|
|
18481
|
+
"ownerRef": {
|
|
18482
|
+
"maxLength": 256,
|
|
18483
|
+
"minLength": 1,
|
|
18484
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18485
|
+
"type": "string"
|
|
18486
|
+
},
|
|
18487
|
+
"revision": {
|
|
18488
|
+
"exclusiveMinimum": 0,
|
|
18489
|
+
"maximum": 9007199254740991,
|
|
18490
|
+
"type": "integer"
|
|
18491
|
+
}
|
|
18492
|
+
},
|
|
18493
|
+
"required": [
|
|
18494
|
+
"ownerRef",
|
|
18495
|
+
"kind",
|
|
18496
|
+
"displayName",
|
|
18497
|
+
"revision",
|
|
18498
|
+
"evidenceRef"
|
|
18499
|
+
],
|
|
18500
|
+
"type": "object"
|
|
18501
|
+
},
|
|
18502
|
+
"fundingSource": {
|
|
18503
|
+
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
18504
|
+
"type": "string"
|
|
18505
|
+
},
|
|
18506
|
+
"provider": {
|
|
18507
|
+
"maxLength": 128,
|
|
18508
|
+
"minLength": 1,
|
|
18509
|
+
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
18510
|
+
"type": "string"
|
|
18511
|
+
},
|
|
18512
|
+
"providerModel": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18513
|
+
"schemaVersion": {
|
|
18514
|
+
"const": "model-funding-display/v1",
|
|
18515
|
+
"type": "string"
|
|
18516
|
+
},
|
|
18517
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
18518
|
+
"selectionRevision": {
|
|
18519
|
+
"exclusiveMinimum": 0,
|
|
18520
|
+
"maximum": 9007199254740991,
|
|
18521
|
+
"type": "integer"
|
|
18522
|
+
},
|
|
18523
|
+
"state": { "const": "ready", "type": "string" },
|
|
18524
|
+
"workspaceId": {}
|
|
18525
|
+
},
|
|
18526
|
+
"required": [
|
|
18527
|
+
"schemaVersion",
|
|
18528
|
+
"workspaceId",
|
|
18529
|
+
"executionId",
|
|
18530
|
+
"attemptId",
|
|
18531
|
+
"selectionRef",
|
|
18532
|
+
"selectionRevision",
|
|
18533
|
+
"state",
|
|
18534
|
+
"provider",
|
|
18535
|
+
"providerModel",
|
|
18536
|
+
"accountRef",
|
|
18537
|
+
"authKind",
|
|
18538
|
+
"fundingSource",
|
|
18539
|
+
"fundingOwner",
|
|
18540
|
+
"authorizationRef",
|
|
18541
|
+
"authorityRevision",
|
|
18542
|
+
"expiresAt"
|
|
18543
|
+
],
|
|
18544
|
+
"type": "object"
|
|
18545
|
+
},
|
|
18546
|
+
"intentId": {
|
|
18547
|
+
"format": "uuid",
|
|
18548
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
18549
|
+
"type": "string"
|
|
18550
|
+
},
|
|
18551
|
+
"preparationRef": { "pattern": "^prep_[a-f0-9]{32}$", "type": "string" },
|
|
18552
|
+
"replayed": { "type": "boolean" },
|
|
18553
|
+
"schemaVersion": { "const": "pi-lead-preparation/v1", "type": "string" },
|
|
18554
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
18555
|
+
"selectionRevision": {
|
|
18556
|
+
"exclusiveMinimum": 0,
|
|
18557
|
+
"maximum": 9007199254740991,
|
|
18558
|
+
"type": "integer"
|
|
18559
|
+
}
|
|
18560
|
+
},
|
|
18561
|
+
"required": [
|
|
18562
|
+
"schemaVersion",
|
|
18563
|
+
"preparationRef",
|
|
18564
|
+
"intentId",
|
|
18565
|
+
"executionId",
|
|
18566
|
+
"attemptId",
|
|
18567
|
+
"selectionRef",
|
|
18568
|
+
"selectionRevision",
|
|
18569
|
+
"funding",
|
|
18570
|
+
"expiresAt",
|
|
18571
|
+
"replayed"
|
|
18572
|
+
],
|
|
18573
|
+
"type": "object"
|
|
18574
|
+
},
|
|
18575
|
+
"requestId": {}
|
|
18576
|
+
},
|
|
18577
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18578
|
+
"type": "object"
|
|
18579
|
+
}
|
|
18580
|
+
}
|
|
18581
|
+
},
|
|
18582
|
+
"description": "Successful response"
|
|
18583
|
+
},
|
|
18584
|
+
"default": {
|
|
18585
|
+
"content": {
|
|
18586
|
+
"application/json": {
|
|
18587
|
+
"schema": {
|
|
18588
|
+
"additionalProperties": false,
|
|
18589
|
+
"properties": {
|
|
18590
|
+
"contractVersion": {
|
|
18591
|
+
"additionalProperties": false,
|
|
18592
|
+
"properties": {
|
|
18593
|
+
"major": {
|
|
18594
|
+
"exclusiveMinimum": 0,
|
|
18595
|
+
"maximum": 9007199254740991,
|
|
18596
|
+
"type": "integer"
|
|
18597
|
+
},
|
|
18598
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18599
|
+
},
|
|
18600
|
+
"required": ["major", "minor"],
|
|
18601
|
+
"type": "object"
|
|
18602
|
+
},
|
|
18603
|
+
"correlation": {
|
|
18604
|
+
"additionalProperties": false,
|
|
18605
|
+
"properties": {
|
|
18606
|
+
"causationCommandId": {},
|
|
18607
|
+
"parentEventId": {},
|
|
18608
|
+
"traceId": {}
|
|
18609
|
+
},
|
|
18610
|
+
"required": ["traceId"],
|
|
18611
|
+
"type": "object"
|
|
18612
|
+
},
|
|
18613
|
+
"error": {
|
|
18614
|
+
"additionalProperties": false,
|
|
18615
|
+
"properties": {
|
|
18616
|
+
"class": {
|
|
18617
|
+
"enum": [
|
|
18618
|
+
"validation",
|
|
18619
|
+
"authentication",
|
|
18620
|
+
"authorization",
|
|
18621
|
+
"conflict",
|
|
18622
|
+
"stale_reference",
|
|
18623
|
+
"capability_mismatch",
|
|
18624
|
+
"runtime_unavailable",
|
|
18625
|
+
"internal"
|
|
18626
|
+
],
|
|
18627
|
+
"type": "string"
|
|
18628
|
+
},
|
|
18629
|
+
"code": {
|
|
18630
|
+
"maxLength": 96,
|
|
18631
|
+
"minLength": 1,
|
|
18632
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18633
|
+
"type": "string"
|
|
18634
|
+
},
|
|
18635
|
+
"details": {
|
|
18636
|
+
"additionalProperties": {},
|
|
18637
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18638
|
+
"type": "object"
|
|
18639
|
+
},
|
|
18640
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18641
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18642
|
+
"retryable": { "type": "boolean" },
|
|
18643
|
+
"source": {
|
|
18644
|
+
"enum": [
|
|
18645
|
+
"client",
|
|
18646
|
+
"auth",
|
|
18647
|
+
"policy",
|
|
18648
|
+
"runtime",
|
|
18649
|
+
"provider",
|
|
18650
|
+
"persistence",
|
|
18651
|
+
"workflow",
|
|
18652
|
+
"system"
|
|
18653
|
+
],
|
|
18654
|
+
"type": "string"
|
|
18655
|
+
}
|
|
18656
|
+
},
|
|
18657
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18658
|
+
"type": "object"
|
|
18659
|
+
},
|
|
18660
|
+
"requestId": {}
|
|
18661
|
+
},
|
|
18662
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18663
|
+
"type": "object"
|
|
18664
|
+
}
|
|
18665
|
+
}
|
|
18666
|
+
},
|
|
18667
|
+
"description": "Normalized error response"
|
|
18668
|
+
}
|
|
18669
|
+
},
|
|
18670
|
+
"security": [{ "serviceBearer": [] }]
|
|
18671
|
+
}
|
|
18672
|
+
},
|
|
18673
|
+
"/v3/pi-durable/lead-dispatches/progress": {
|
|
18674
|
+
"post": {
|
|
18675
|
+
"operationId": "pi-durable.lead.progress",
|
|
18676
|
+
"requestBody": {
|
|
18677
|
+
"content": {
|
|
18678
|
+
"application/json": {
|
|
18679
|
+
"schema": {
|
|
18680
|
+
"additionalProperties": false,
|
|
18681
|
+
"properties": {
|
|
18682
|
+
"caller": {
|
|
18683
|
+
"additionalProperties": false,
|
|
18684
|
+
"properties": {
|
|
18685
|
+
"servicePrincipalId": {
|
|
18686
|
+
"maxLength": 64,
|
|
18687
|
+
"minLength": 5,
|
|
18688
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
18689
|
+
"type": "string"
|
|
18690
|
+
}
|
|
18691
|
+
},
|
|
18692
|
+
"required": ["servicePrincipalId"],
|
|
18693
|
+
"type": "object"
|
|
18694
|
+
},
|
|
18695
|
+
"contractVersion": {
|
|
18696
|
+
"additionalProperties": false,
|
|
18697
|
+
"properties": {
|
|
18698
|
+
"major": {
|
|
18699
|
+
"exclusiveMinimum": 0,
|
|
18700
|
+
"maximum": 9007199254740991,
|
|
18701
|
+
"type": "integer"
|
|
18702
|
+
},
|
|
18703
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18704
|
+
},
|
|
18705
|
+
"required": ["major", "minor"],
|
|
18706
|
+
"type": "object"
|
|
18707
|
+
},
|
|
18708
|
+
"correlation": {
|
|
18709
|
+
"additionalProperties": false,
|
|
18710
|
+
"properties": {
|
|
18711
|
+
"causationCommandId": {
|
|
18712
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18713
|
+
"type": "string"
|
|
18714
|
+
},
|
|
18715
|
+
"parentEventId": {
|
|
18716
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18717
|
+
"type": "string"
|
|
18718
|
+
},
|
|
18719
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18720
|
+
},
|
|
18721
|
+
"required": ["traceId"],
|
|
18722
|
+
"type": "object"
|
|
18723
|
+
},
|
|
18724
|
+
"operation": { "const": "pi-durable.lead.progress", "type": "string" },
|
|
18725
|
+
"parameters": {
|
|
18726
|
+
"additionalProperties": false,
|
|
18727
|
+
"properties": {
|
|
18728
|
+
"afterSequence": {
|
|
18729
|
+
"maximum": 9007199254740991,
|
|
18730
|
+
"minimum": 0,
|
|
18731
|
+
"type": "integer"
|
|
18732
|
+
},
|
|
18733
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
18734
|
+
},
|
|
18735
|
+
"required": ["dispatchId"],
|
|
18736
|
+
"type": "object"
|
|
18737
|
+
},
|
|
18738
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18739
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18740
|
+
"requestedAt": {
|
|
18741
|
+
"format": "date-time",
|
|
18742
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18743
|
+
"type": "string"
|
|
18744
|
+
},
|
|
18745
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18746
|
+
},
|
|
18747
|
+
"required": [
|
|
18748
|
+
"caller",
|
|
18749
|
+
"contractVersion",
|
|
18750
|
+
"requestId",
|
|
18751
|
+
"workspaceId",
|
|
18752
|
+
"correlation",
|
|
18753
|
+
"operation",
|
|
18754
|
+
"requestedAt",
|
|
18755
|
+
"parameters"
|
|
18756
|
+
],
|
|
18757
|
+
"type": "object"
|
|
18758
|
+
}
|
|
18759
|
+
}
|
|
18760
|
+
},
|
|
18761
|
+
"required": true
|
|
18762
|
+
},
|
|
18763
|
+
"responses": {
|
|
18764
|
+
"200": {
|
|
18765
|
+
"content": {
|
|
18766
|
+
"application/json": {
|
|
18767
|
+
"schema": {
|
|
18768
|
+
"$defs": {
|
|
18769
|
+
"__schema0": {
|
|
18770
|
+
"anyOf": [
|
|
18771
|
+
{ "type": "string" },
|
|
18772
|
+
{ "type": "number" },
|
|
18773
|
+
{ "type": "boolean" },
|
|
18774
|
+
{ "type": "null" },
|
|
18775
|
+
{ "items": { "$ref": "#/$defs/__schema0" }, "type": "array" },
|
|
18776
|
+
{
|
|
18777
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
18778
|
+
"propertyNames": { "type": "string" },
|
|
18779
|
+
"type": "object"
|
|
18780
|
+
}
|
|
18781
|
+
]
|
|
18782
|
+
}
|
|
18783
|
+
},
|
|
18784
|
+
"additionalProperties": false,
|
|
18785
|
+
"properties": {
|
|
18786
|
+
"contractVersion": {
|
|
18787
|
+
"additionalProperties": false,
|
|
18788
|
+
"properties": {
|
|
18789
|
+
"major": {
|
|
18790
|
+
"exclusiveMinimum": 0,
|
|
18791
|
+
"maximum": 9007199254740991,
|
|
18792
|
+
"type": "integer"
|
|
18793
|
+
},
|
|
18794
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18795
|
+
},
|
|
18796
|
+
"required": ["major", "minor"],
|
|
18797
|
+
"type": "object"
|
|
18798
|
+
},
|
|
18799
|
+
"correlation": {
|
|
18800
|
+
"additionalProperties": false,
|
|
18801
|
+
"properties": {
|
|
18802
|
+
"causationCommandId": {},
|
|
18803
|
+
"parentEventId": {},
|
|
18804
|
+
"traceId": {}
|
|
18805
|
+
},
|
|
18806
|
+
"required": ["traceId"],
|
|
18807
|
+
"type": "object"
|
|
18808
|
+
},
|
|
18809
|
+
"data": {
|
|
18810
|
+
"additionalProperties": false,
|
|
18811
|
+
"properties": {
|
|
18812
|
+
"attemptId": {},
|
|
18813
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18814
|
+
"events": {
|
|
18815
|
+
"items": {
|
|
18816
|
+
"additionalProperties": false,
|
|
18817
|
+
"properties": {
|
|
18818
|
+
"data": {
|
|
18819
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
18820
|
+
"propertyNames": { "type": "string" },
|
|
18821
|
+
"type": "object"
|
|
18041
18822
|
},
|
|
18042
|
-
"
|
|
18043
|
-
|
|
18044
|
-
"
|
|
18045
|
-
"
|
|
18046
|
-
"
|
|
18047
|
-
"currency",
|
|
18048
|
-
"maximumMicrounits",
|
|
18049
|
-
"maximumTokens"
|
|
18050
|
-
],
|
|
18051
|
-
"type": "object"
|
|
18052
|
-
},
|
|
18053
|
-
{
|
|
18054
|
-
"additionalProperties": false,
|
|
18055
|
-
"properties": {
|
|
18056
|
-
"executionPlanDigest": {
|
|
18057
|
-
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
18058
|
-
"type": "string"
|
|
18059
|
-
},
|
|
18060
|
-
"profile": {
|
|
18061
|
-
"additionalProperties": false,
|
|
18062
|
-
"properties": {
|
|
18063
|
-
"profileId": {},
|
|
18064
|
-
"profileVersionId": {},
|
|
18065
|
-
"revision": {
|
|
18066
|
-
"exclusiveMinimum": 0,
|
|
18067
|
-
"maximum": 9007199254740991,
|
|
18068
|
-
"type": "integer"
|
|
18069
|
-
},
|
|
18070
|
-
"version": {
|
|
18071
|
-
"exclusiveMinimum": 0,
|
|
18072
|
-
"maximum": 9007199254740991,
|
|
18073
|
-
"type": "integer"
|
|
18074
|
-
}
|
|
18075
|
-
},
|
|
18076
|
-
"readOnly": true,
|
|
18077
|
-
"required": [
|
|
18078
|
-
"profileId",
|
|
18079
|
-
"profileVersionId",
|
|
18080
|
-
"version",
|
|
18081
|
-
"revision"
|
|
18082
|
-
],
|
|
18083
|
-
"type": "object"
|
|
18084
|
-
},
|
|
18085
|
-
"schemaVersion": {
|
|
18086
|
-
"const": "pi-lead-child-allowance/v1",
|
|
18087
|
-
"type": "string"
|
|
18088
|
-
},
|
|
18089
|
-
"state": { "const": "not_stated", "type": "string" }
|
|
18823
|
+
"handleId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18824
|
+
"occurredAt": {
|
|
18825
|
+
"format": "date-time",
|
|
18826
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18827
|
+
"type": "string"
|
|
18090
18828
|
},
|
|
18091
|
-
"
|
|
18092
|
-
"
|
|
18093
|
-
"
|
|
18094
|
-
"
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18829
|
+
"sequence": {
|
|
18830
|
+
"exclusiveMinimum": 0,
|
|
18831
|
+
"maximum": 9007199254740991,
|
|
18832
|
+
"type": "integer"
|
|
18833
|
+
},
|
|
18834
|
+
"type": {
|
|
18835
|
+
"enum": ["status", "output", "interaction", "usage", "artifact"],
|
|
18836
|
+
"type": "string"
|
|
18837
|
+
}
|
|
18838
|
+
},
|
|
18839
|
+
"required": ["handleId", "sequence", "occurredAt", "type", "data"],
|
|
18840
|
+
"type": "object"
|
|
18841
|
+
},
|
|
18842
|
+
"maxItems": 256,
|
|
18843
|
+
"type": "array"
|
|
18100
18844
|
},
|
|
18101
18845
|
"executionId": {},
|
|
18102
|
-
"
|
|
18103
|
-
"format": "
|
|
18104
|
-
"pattern": "^(
|
|
18846
|
+
"intentId": {
|
|
18847
|
+
"format": "uuid",
|
|
18848
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
18105
18849
|
"type": "string"
|
|
18106
18850
|
},
|
|
18107
|
-
"
|
|
18851
|
+
"nextSequence": {
|
|
18852
|
+
"maximum": 9007199254740991,
|
|
18853
|
+
"minimum": 0,
|
|
18854
|
+
"type": "integer"
|
|
18855
|
+
},
|
|
18856
|
+
"observedTarget": {
|
|
18108
18857
|
"additionalProperties": false,
|
|
18109
18858
|
"properties": {
|
|
18110
|
-
"
|
|
18111
|
-
"maxLength": 256,
|
|
18112
|
-
"minLength": 1,
|
|
18113
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18114
|
-
"type": "string"
|
|
18115
|
-
},
|
|
18116
|
-
"attemptId": {},
|
|
18117
|
-
"authKind": {
|
|
18118
|
-
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
18119
|
-
"type": "string"
|
|
18120
|
-
},
|
|
18121
|
-
"authorityRevision": {
|
|
18122
|
-
"exclusiveMinimum": 0,
|
|
18123
|
-
"maximum": 9007199254740991,
|
|
18124
|
-
"type": "integer"
|
|
18125
|
-
},
|
|
18126
|
-
"authorizationRef": {
|
|
18127
|
-
"maxLength": 256,
|
|
18128
|
-
"minLength": 1,
|
|
18129
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18130
|
-
"type": "string"
|
|
18131
|
-
},
|
|
18132
|
-
"executionId": {},
|
|
18133
|
-
"expiresAt": {
|
|
18134
|
-
"format": "date-time",
|
|
18135
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18136
|
-
"type": "string"
|
|
18137
|
-
},
|
|
18138
|
-
"fundingOwner": {
|
|
18859
|
+
"generation": {
|
|
18139
18860
|
"additionalProperties": false,
|
|
18140
18861
|
"properties": {
|
|
18141
|
-
"
|
|
18142
|
-
|
|
18143
|
-
"
|
|
18862
|
+
"attemptId": {},
|
|
18863
|
+
"inferenceId": {
|
|
18864
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
18144
18865
|
"type": "string"
|
|
18145
18866
|
},
|
|
18146
|
-
"
|
|
18147
|
-
"maxLength":
|
|
18867
|
+
"inferenceKey": {
|
|
18868
|
+
"maxLength": 8192,
|
|
18148
18869
|
"minLength": 1,
|
|
18149
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18150
|
-
"type": "string"
|
|
18151
|
-
},
|
|
18152
|
-
"kind": {
|
|
18153
|
-
"enum": ["provider_account", "workspace_account", "adea_account"],
|
|
18154
18870
|
"type": "string"
|
|
18155
18871
|
},
|
|
18156
|
-
"
|
|
18157
|
-
"
|
|
18158
|
-
"minLength": 1,
|
|
18159
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
18872
|
+
"schemaVersion": {
|
|
18873
|
+
"const": "runtime-observed-generation/v1",
|
|
18160
18874
|
"type": "string"
|
|
18161
18875
|
},
|
|
18162
|
-
"
|
|
18163
|
-
"exclusiveMinimum": 0,
|
|
18164
|
-
"maximum": 9007199254740991,
|
|
18165
|
-
"type": "integer"
|
|
18166
|
-
}
|
|
18876
|
+
"turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
|
|
18167
18877
|
},
|
|
18168
18878
|
"required": [
|
|
18169
|
-
"
|
|
18170
|
-
"
|
|
18171
|
-
"
|
|
18172
|
-
"
|
|
18173
|
-
"
|
|
18879
|
+
"schemaVersion",
|
|
18880
|
+
"attemptId",
|
|
18881
|
+
"turnKey",
|
|
18882
|
+
"inferenceId",
|
|
18883
|
+
"inferenceKey"
|
|
18174
18884
|
],
|
|
18175
18885
|
"type": "object"
|
|
18176
18886
|
},
|
|
18177
|
-
"
|
|
18178
|
-
|
|
18179
|
-
"type": "string"
|
|
18180
|
-
},
|
|
18181
|
-
"provider": {
|
|
18182
|
-
"maxLength": 128,
|
|
18183
|
-
"minLength": 1,
|
|
18184
|
-
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
18185
|
-
"type": "string"
|
|
18186
|
-
},
|
|
18187
|
-
"providerModel": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18188
|
-
"schemaVersion": {
|
|
18189
|
-
"const": "model-funding-display/v1",
|
|
18190
|
-
"type": "string"
|
|
18191
|
-
},
|
|
18192
|
-
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
18193
|
-
"selectionRevision": {
|
|
18194
|
-
"exclusiveMinimum": 0,
|
|
18195
|
-
"maximum": 9007199254740991,
|
|
18196
|
-
"type": "integer"
|
|
18197
|
-
},
|
|
18198
|
-
"state": { "const": "ready", "type": "string" },
|
|
18199
|
-
"workspaceId": {}
|
|
18887
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18888
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18200
18889
|
},
|
|
18201
|
-
"
|
|
18202
|
-
|
|
18203
|
-
"workspaceId",
|
|
18204
|
-
"executionId",
|
|
18205
|
-
"attemptId",
|
|
18206
|
-
"selectionRef",
|
|
18207
|
-
"selectionRevision",
|
|
18208
|
-
"state",
|
|
18209
|
-
"provider",
|
|
18210
|
-
"providerModel",
|
|
18211
|
-
"accountRef",
|
|
18212
|
-
"authKind",
|
|
18213
|
-
"fundingSource",
|
|
18214
|
-
"fundingOwner",
|
|
18215
|
-
"authorizationRef",
|
|
18216
|
-
"authorityRevision",
|
|
18217
|
-
"expiresAt"
|
|
18218
|
-
],
|
|
18890
|
+
"readOnly": true,
|
|
18891
|
+
"required": ["sessionId", "taskId"],
|
|
18219
18892
|
"type": "object"
|
|
18220
18893
|
},
|
|
18221
|
-
"
|
|
18222
|
-
"
|
|
18223
|
-
"
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
"
|
|
18233
|
-
"
|
|
18234
|
-
|
|
18894
|
+
"requestedTarget": {
|
|
18895
|
+
"additionalProperties": false,
|
|
18896
|
+
"properties": {
|
|
18897
|
+
"generation": {
|
|
18898
|
+
"maximum": 9007199254740991,
|
|
18899
|
+
"minimum": 0,
|
|
18900
|
+
"type": "integer"
|
|
18901
|
+
},
|
|
18902
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18903
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
18904
|
+
},
|
|
18905
|
+
"readOnly": true,
|
|
18906
|
+
"required": ["sessionId", "taskId", "generation"],
|
|
18907
|
+
"type": "object"
|
|
18908
|
+
},
|
|
18909
|
+
"runtimeSessionId": {},
|
|
18910
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" }
|
|
18235
18911
|
},
|
|
18236
18912
|
"required": [
|
|
18237
18913
|
"schemaVersion",
|
|
18238
|
-
"
|
|
18914
|
+
"dispatchId",
|
|
18239
18915
|
"intentId",
|
|
18240
18916
|
"executionId",
|
|
18241
18917
|
"attemptId",
|
|
18242
|
-
"
|
|
18243
|
-
"
|
|
18244
|
-
"
|
|
18245
|
-
"expiresAt",
|
|
18246
|
-
"replayed"
|
|
18918
|
+
"runtimeSessionId",
|
|
18919
|
+
"events",
|
|
18920
|
+
"nextSequence"
|
|
18247
18921
|
],
|
|
18248
18922
|
"type": "object"
|
|
18249
18923
|
},
|
|
@@ -18345,9 +19019,9 @@
|
|
|
18345
19019
|
"security": [{ "serviceBearer": [] }]
|
|
18346
19020
|
}
|
|
18347
19021
|
},
|
|
18348
|
-
"/v3/pi-durable/lead-dispatches/
|
|
19022
|
+
"/v3/pi-durable/lead-dispatches/questions/answer": {
|
|
18349
19023
|
"post": {
|
|
18350
|
-
"operationId": "pi-durable.lead.
|
|
19024
|
+
"operationId": "pi-durable.lead.question-answer",
|
|
18351
19025
|
"requestBody": {
|
|
18352
19026
|
"content": {
|
|
18353
19027
|
"application/json": {
|
|
@@ -18367,6 +19041,7 @@
|
|
|
18367
19041
|
"required": ["servicePrincipalId"],
|
|
18368
19042
|
"type": "object"
|
|
18369
19043
|
},
|
|
19044
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18370
19045
|
"contractVersion": {
|
|
18371
19046
|
"additionalProperties": false,
|
|
18372
19047
|
"properties": {
|
|
@@ -18396,27 +19071,90 @@
|
|
|
18396
19071
|
"required": ["traceId"],
|
|
18397
19072
|
"type": "object"
|
|
18398
19073
|
},
|
|
18399
|
-
"
|
|
18400
|
-
|
|
19074
|
+
"idempotencyKey": {
|
|
19075
|
+
"maxLength": 128,
|
|
19076
|
+
"minLength": 16,
|
|
19077
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
19078
|
+
"type": "string"
|
|
19079
|
+
},
|
|
19080
|
+
"issuedAt": {
|
|
19081
|
+
"format": "date-time",
|
|
19082
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
19083
|
+
"type": "string"
|
|
19084
|
+
},
|
|
19085
|
+
"operation": { "const": "pi-durable.lead.question-answer", "type": "string" },
|
|
19086
|
+
"payload": {
|
|
18401
19087
|
"additionalProperties": false,
|
|
18402
19088
|
"properties": {
|
|
18403
|
-
"
|
|
18404
|
-
"
|
|
18405
|
-
|
|
18406
|
-
|
|
19089
|
+
"answers": {
|
|
19090
|
+
"items": {
|
|
19091
|
+
"anyOf": [
|
|
19092
|
+
{
|
|
19093
|
+
"additionalProperties": false,
|
|
19094
|
+
"properties": {
|
|
19095
|
+
"questionId": {
|
|
19096
|
+
"maxLength": 64,
|
|
19097
|
+
"minLength": 1,
|
|
19098
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
19099
|
+
"type": "string"
|
|
19100
|
+
},
|
|
19101
|
+
"text": { "maxLength": 16384, "minLength": 1, "type": "string" }
|
|
19102
|
+
},
|
|
19103
|
+
"required": ["questionId", "text"],
|
|
19104
|
+
"type": "object"
|
|
19105
|
+
},
|
|
19106
|
+
{
|
|
19107
|
+
"additionalProperties": false,
|
|
19108
|
+
"properties": {
|
|
19109
|
+
"optionIds": {
|
|
19110
|
+
"items": {
|
|
19111
|
+
"maxLength": 64,
|
|
19112
|
+
"minLength": 1,
|
|
19113
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
19114
|
+
"type": "string"
|
|
19115
|
+
},
|
|
19116
|
+
"maxItems": 16,
|
|
19117
|
+
"minItems": 1,
|
|
19118
|
+
"type": "array"
|
|
19119
|
+
},
|
|
19120
|
+
"questionId": {
|
|
19121
|
+
"maxLength": 64,
|
|
19122
|
+
"minLength": 1,
|
|
19123
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
19124
|
+
"type": "string"
|
|
19125
|
+
}
|
|
19126
|
+
},
|
|
19127
|
+
"required": ["questionId", "optionIds"],
|
|
19128
|
+
"type": "object"
|
|
19129
|
+
},
|
|
19130
|
+
{
|
|
19131
|
+
"additionalProperties": false,
|
|
19132
|
+
"properties": {
|
|
19133
|
+
"questionId": {
|
|
19134
|
+
"maxLength": 64,
|
|
19135
|
+
"minLength": 1,
|
|
19136
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
19137
|
+
"type": "string"
|
|
19138
|
+
},
|
|
19139
|
+
"skipped": { "const": true, "type": "boolean" }
|
|
19140
|
+
},
|
|
19141
|
+
"required": ["questionId", "skipped"],
|
|
19142
|
+
"type": "object"
|
|
19143
|
+
}
|
|
19144
|
+
]
|
|
19145
|
+
},
|
|
19146
|
+
"maxItems": 8,
|
|
19147
|
+
"type": "array"
|
|
18407
19148
|
},
|
|
18408
|
-
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
19149
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
19150
|
+
"requestId": { "pattern": "^pi-question:[a-f0-9]{32}$", "type": "string" }
|
|
18409
19151
|
},
|
|
18410
|
-
"required": ["dispatchId"],
|
|
19152
|
+
"required": ["dispatchId", "requestId", "answers"],
|
|
18411
19153
|
"type": "object"
|
|
18412
19154
|
},
|
|
19155
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
18413
19156
|
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18414
19157
|
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18415
|
-
"requestedAt": {
|
|
18416
|
-
"format": "date-time",
|
|
18417
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
18418
|
-
"type": "string"
|
|
18419
|
-
},
|
|
18420
19158
|
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18421
19159
|
},
|
|
18422
19160
|
"required": [
|
|
@@ -18425,9 +19163,12 @@
|
|
|
18425
19163
|
"requestId",
|
|
18426
19164
|
"workspaceId",
|
|
18427
19165
|
"correlation",
|
|
19166
|
+
"commandId",
|
|
19167
|
+
"idempotencyKey",
|
|
19168
|
+
"payloadHash",
|
|
18428
19169
|
"operation",
|
|
18429
|
-
"
|
|
18430
|
-
"
|
|
19170
|
+
"issuedAt",
|
|
19171
|
+
"payload"
|
|
18431
19172
|
],
|
|
18432
19173
|
"type": "object"
|
|
18433
19174
|
}
|
|
@@ -18454,6 +19195,20 @@
|
|
|
18454
19195
|
"type": "object"
|
|
18455
19196
|
}
|
|
18456
19197
|
]
|
|
19198
|
+
},
|
|
19199
|
+
"__schema1": {
|
|
19200
|
+
"anyOf": [
|
|
19201
|
+
{ "type": "string" },
|
|
19202
|
+
{ "type": "number" },
|
|
19203
|
+
{ "type": "boolean" },
|
|
19204
|
+
{ "type": "null" },
|
|
19205
|
+
{ "items": { "$ref": "#/$defs/__schema1" }, "type": "array" },
|
|
19206
|
+
{
|
|
19207
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
19208
|
+
"propertyNames": { "type": "string" },
|
|
19209
|
+
"type": "object"
|
|
19210
|
+
}
|
|
19211
|
+
]
|
|
18457
19212
|
}
|
|
18458
19213
|
},
|
|
18459
19214
|
"additionalProperties": false,
|
|
@@ -18486,52 +19241,149 @@
|
|
|
18486
19241
|
"properties": {
|
|
18487
19242
|
"attemptId": {},
|
|
18488
19243
|
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18489
|
-
"
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
"
|
|
18500
|
-
|
|
18501
|
-
"
|
|
18502
|
-
"
|
|
19244
|
+
"executionId": {},
|
|
19245
|
+
"intentId": {
|
|
19246
|
+
"format": "uuid",
|
|
19247
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
19248
|
+
"type": "string"
|
|
19249
|
+
},
|
|
19250
|
+
"observedTarget": {
|
|
19251
|
+
"additionalProperties": false,
|
|
19252
|
+
"properties": {
|
|
19253
|
+
"generation": {
|
|
19254
|
+
"additionalProperties": false,
|
|
19255
|
+
"properties": {
|
|
19256
|
+
"attemptId": {},
|
|
19257
|
+
"inferenceId": {
|
|
19258
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$",
|
|
19259
|
+
"type": "string"
|
|
19260
|
+
},
|
|
19261
|
+
"inferenceKey": {
|
|
19262
|
+
"maxLength": 8192,
|
|
19263
|
+
"minLength": 1,
|
|
19264
|
+
"type": "string"
|
|
19265
|
+
},
|
|
19266
|
+
"schemaVersion": {
|
|
19267
|
+
"const": "runtime-observed-generation/v1",
|
|
19268
|
+
"type": "string"
|
|
19269
|
+
},
|
|
19270
|
+
"turnKey": { "maxLength": 4096, "minLength": 1, "type": "string" }
|
|
18503
19271
|
},
|
|
18504
|
-
"
|
|
18505
|
-
"
|
|
18506
|
-
"
|
|
18507
|
-
"
|
|
19272
|
+
"required": [
|
|
19273
|
+
"schemaVersion",
|
|
19274
|
+
"attemptId",
|
|
19275
|
+
"turnKey",
|
|
19276
|
+
"inferenceId",
|
|
19277
|
+
"inferenceKey"
|
|
19278
|
+
],
|
|
19279
|
+
"type": "object"
|
|
19280
|
+
},
|
|
19281
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
19282
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
19283
|
+
},
|
|
19284
|
+
"readOnly": true,
|
|
19285
|
+
"required": ["sessionId", "taskId"],
|
|
19286
|
+
"type": "object"
|
|
19287
|
+
},
|
|
19288
|
+
"outcome": {
|
|
19289
|
+
"enum": ["answered", "already_answered", "expired"],
|
|
19290
|
+
"type": "string"
|
|
19291
|
+
},
|
|
19292
|
+
"questionSchemaVersion": {
|
|
19293
|
+
"const": "pi-lead-question-answer/v1",
|
|
19294
|
+
"type": "string"
|
|
19295
|
+
},
|
|
19296
|
+
"requestEventId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
19297
|
+
"requestId": { "pattern": "^pi-question:[a-f0-9]{32}$", "type": "string" },
|
|
19298
|
+
"requestedTarget": {
|
|
19299
|
+
"additionalProperties": false,
|
|
19300
|
+
"properties": {
|
|
19301
|
+
"generation": {
|
|
19302
|
+
"maximum": 9007199254740991,
|
|
19303
|
+
"minimum": 0,
|
|
19304
|
+
"type": "integer"
|
|
19305
|
+
},
|
|
19306
|
+
"sessionId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
19307
|
+
"taskId": { "maxLength": 256, "minLength": 1, "type": "string" }
|
|
19308
|
+
},
|
|
19309
|
+
"readOnly": true,
|
|
19310
|
+
"required": ["sessionId", "taskId", "generation"],
|
|
19311
|
+
"type": "object"
|
|
19312
|
+
},
|
|
19313
|
+
"runtimeSessionId": {},
|
|
19314
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
|
|
19315
|
+
"state": {
|
|
19316
|
+
"enum": [
|
|
19317
|
+
"starting",
|
|
19318
|
+
"running",
|
|
19319
|
+
"awaiting_input",
|
|
19320
|
+
"cancelling",
|
|
19321
|
+
"completed",
|
|
19322
|
+
"failed",
|
|
19323
|
+
"cancelled",
|
|
19324
|
+
"timed_out",
|
|
19325
|
+
"unknown"
|
|
19326
|
+
],
|
|
19327
|
+
"type": "string"
|
|
19328
|
+
},
|
|
19329
|
+
"status": {
|
|
19330
|
+
"additionalProperties": false,
|
|
19331
|
+
"properties": {
|
|
19332
|
+
"error": {
|
|
19333
|
+
"additionalProperties": false,
|
|
19334
|
+
"properties": {
|
|
19335
|
+
"classification": {
|
|
19336
|
+
"enum": [
|
|
19337
|
+
"validation",
|
|
19338
|
+
"unsupported",
|
|
19339
|
+
"unavailable",
|
|
19340
|
+
"conflict",
|
|
19341
|
+
"timeout",
|
|
19342
|
+
"cancelled",
|
|
19343
|
+
"runtime",
|
|
19344
|
+
"infrastructure",
|
|
19345
|
+
"unknown"
|
|
19346
|
+
],
|
|
19347
|
+
"type": "string"
|
|
19348
|
+
},
|
|
19349
|
+
"code": {
|
|
19350
|
+
"maxLength": 128,
|
|
19351
|
+
"minLength": 1,
|
|
19352
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
19353
|
+
"type": "string"
|
|
19354
|
+
},
|
|
19355
|
+
"details": {
|
|
19356
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
19357
|
+
"propertyNames": { "type": "string" },
|
|
19358
|
+
"type": "object"
|
|
19359
|
+
},
|
|
19360
|
+
"message": { "maxLength": 4096, "minLength": 1, "type": "string" },
|
|
19361
|
+
"retryable": { "type": "boolean" }
|
|
18508
19362
|
},
|
|
18509
|
-
"
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
19363
|
+
"required": ["code", "classification", "message", "retryable"],
|
|
19364
|
+
"type": "object"
|
|
19365
|
+
},
|
|
19366
|
+
"handle": {
|
|
19367
|
+
"additionalProperties": false,
|
|
19368
|
+
"properties": {
|
|
19369
|
+
"attemptId": {},
|
|
19370
|
+
"externalSessionId": {},
|
|
19371
|
+
"handleId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
19372
|
+
"startedAt": {
|
|
19373
|
+
"format": "date-time",
|
|
19374
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
19375
|
+
"type": "string"
|
|
19376
|
+
}
|
|
19377
|
+
},
|
|
19378
|
+
"required": ["handleId", "attemptId", "startedAt"],
|
|
19379
|
+
"type": "object"
|
|
18513
19380
|
},
|
|
18514
|
-
"
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
"executionId": {},
|
|
18521
|
-
"intentId": {
|
|
18522
|
-
"format": "uuid",
|
|
18523
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
18524
|
-
"type": "string"
|
|
18525
|
-
},
|
|
18526
|
-
"nextSequence": {
|
|
18527
|
-
"maximum": 9007199254740991,
|
|
18528
|
-
"minimum": 0,
|
|
18529
|
-
"type": "integer"
|
|
18530
|
-
},
|
|
18531
|
-
"observedTarget": {
|
|
18532
|
-
"additionalProperties": false,
|
|
18533
|
-
"properties": {
|
|
18534
|
-
"generation": {
|
|
19381
|
+
"observedAt": {
|
|
19382
|
+
"format": "date-time",
|
|
19383
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
|
|
19384
|
+
"type": "string"
|
|
19385
|
+
},
|
|
19386
|
+
"observedGeneration": {
|
|
18535
19387
|
"additionalProperties": false,
|
|
18536
19388
|
"properties": {
|
|
18537
19389
|
"attemptId": {},
|
|
@@ -18559,30 +19411,209 @@
|
|
|
18559
19411
|
],
|
|
18560
19412
|
"type": "object"
|
|
18561
19413
|
},
|
|
18562
|
-
"
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
19414
|
+
"result": {
|
|
19415
|
+
"additionalProperties": false,
|
|
19416
|
+
"properties": {
|
|
19417
|
+
"artifacts": {
|
|
19418
|
+
"items": {
|
|
19419
|
+
"additionalProperties": false,
|
|
19420
|
+
"properties": {
|
|
19421
|
+
"artifactId": {},
|
|
19422
|
+
"digest": {
|
|
19423
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
19424
|
+
"type": "string"
|
|
19425
|
+
},
|
|
19426
|
+
"locator": {
|
|
19427
|
+
"maxLength": 512,
|
|
19428
|
+
"minLength": 1,
|
|
19429
|
+
"type": "string"
|
|
19430
|
+
},
|
|
19431
|
+
"mediaType": {
|
|
19432
|
+
"maxLength": 128,
|
|
19433
|
+
"minLength": 1,
|
|
19434
|
+
"type": "string"
|
|
19435
|
+
},
|
|
19436
|
+
"sizeBytes": {
|
|
19437
|
+
"maximum": 9007199254740991,
|
|
19438
|
+
"minimum": 0,
|
|
19439
|
+
"type": "integer"
|
|
19440
|
+
},
|
|
19441
|
+
"version": {
|
|
19442
|
+
"exclusiveMinimum": 0,
|
|
19443
|
+
"maximum": 9007199254740991,
|
|
19444
|
+
"type": "integer"
|
|
19445
|
+
}
|
|
19446
|
+
},
|
|
19447
|
+
"required": [
|
|
19448
|
+
"artifactId",
|
|
19449
|
+
"version",
|
|
19450
|
+
"mediaType",
|
|
19451
|
+
"digest",
|
|
19452
|
+
"sizeBytes",
|
|
19453
|
+
"locator"
|
|
19454
|
+
],
|
|
19455
|
+
"type": "object"
|
|
19456
|
+
},
|
|
19457
|
+
"maxItems": 1024,
|
|
19458
|
+
"type": "array"
|
|
19459
|
+
},
|
|
19460
|
+
"outcome": { "const": "completed", "type": "string" },
|
|
19461
|
+
"output": { "$ref": "#/$defs/__schema0" },
|
|
19462
|
+
"usage": {
|
|
19463
|
+
"additionalProperties": false,
|
|
19464
|
+
"properties": {
|
|
19465
|
+
"accounting": {
|
|
19466
|
+
"additionalProperties": false,
|
|
19467
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
19468
|
+
"properties": {
|
|
19469
|
+
"chargedMicrounits": {
|
|
19470
|
+
"maximum": 9007199254740991,
|
|
19471
|
+
"minimum": 0,
|
|
19472
|
+
"type": "integer"
|
|
19473
|
+
},
|
|
19474
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
19475
|
+
"currency": { "const": "USD", "type": "string" },
|
|
19476
|
+
"fundingSource": {
|
|
19477
|
+
"enum": [
|
|
19478
|
+
"hq_managed",
|
|
19479
|
+
"byo_api",
|
|
19480
|
+
"external_subscription"
|
|
19481
|
+
],
|
|
19482
|
+
"type": "string"
|
|
19483
|
+
},
|
|
19484
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
19485
|
+
"sourceId": {
|
|
19486
|
+
"maxLength": 256,
|
|
19487
|
+
"minLength": 1,
|
|
19488
|
+
"type": "string"
|
|
19489
|
+
}
|
|
19490
|
+
},
|
|
19491
|
+
"required": [
|
|
19492
|
+
"schemaVersion",
|
|
19493
|
+
"sourceId",
|
|
19494
|
+
"fundingSource",
|
|
19495
|
+
"currency",
|
|
19496
|
+
"chargedMicrounits",
|
|
19497
|
+
"costExact"
|
|
19498
|
+
],
|
|
19499
|
+
"type": "object"
|
|
19500
|
+
},
|
|
19501
|
+
"cost": {
|
|
19502
|
+
"additionalProperties": false,
|
|
19503
|
+
"properties": {
|
|
19504
|
+
"amount": {
|
|
19505
|
+
"pattern": "^\\d+(?:\\.\\d+)?$",
|
|
19506
|
+
"type": "string"
|
|
19507
|
+
},
|
|
19508
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
19509
|
+
},
|
|
19510
|
+
"required": ["amount", "currency"],
|
|
19511
|
+
"type": "object"
|
|
19512
|
+
},
|
|
19513
|
+
"durationMs": {
|
|
19514
|
+
"maximum": 9007199254740991,
|
|
19515
|
+
"minimum": 0,
|
|
19516
|
+
"type": "integer"
|
|
19517
|
+
},
|
|
19518
|
+
"inputTokens": {
|
|
19519
|
+
"maximum": 9007199254740991,
|
|
19520
|
+
"minimum": 0,
|
|
19521
|
+
"type": "integer"
|
|
19522
|
+
},
|
|
19523
|
+
"outputTokens": {
|
|
19524
|
+
"maximum": 9007199254740991,
|
|
19525
|
+
"minimum": 0,
|
|
19526
|
+
"type": "integer"
|
|
19527
|
+
}
|
|
19528
|
+
},
|
|
19529
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
19530
|
+
"type": "object"
|
|
19531
|
+
}
|
|
19532
|
+
},
|
|
19533
|
+
"required": ["outcome", "usage", "artifacts"],
|
|
19534
|
+
"type": "object"
|
|
18576
19535
|
},
|
|
18577
|
-
"
|
|
18578
|
-
|
|
19536
|
+
"state": {
|
|
19537
|
+
"enum": [
|
|
19538
|
+
"starting",
|
|
19539
|
+
"running",
|
|
19540
|
+
"awaiting_input",
|
|
19541
|
+
"cancelling",
|
|
19542
|
+
"completed",
|
|
19543
|
+
"failed",
|
|
19544
|
+
"cancelled",
|
|
19545
|
+
"timed_out",
|
|
19546
|
+
"unknown"
|
|
19547
|
+
],
|
|
19548
|
+
"type": "string"
|
|
19549
|
+
},
|
|
19550
|
+
"terminalUsage": {
|
|
19551
|
+
"additionalProperties": false,
|
|
19552
|
+
"properties": {
|
|
19553
|
+
"accounting": {
|
|
19554
|
+
"additionalProperties": false,
|
|
19555
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
19556
|
+
"properties": {
|
|
19557
|
+
"chargedMicrounits": {
|
|
19558
|
+
"maximum": 9007199254740991,
|
|
19559
|
+
"minimum": 0,
|
|
19560
|
+
"type": "integer"
|
|
19561
|
+
},
|
|
19562
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
19563
|
+
"currency": { "const": "USD", "type": "string" },
|
|
19564
|
+
"fundingSource": {
|
|
19565
|
+
"enum": ["hq_managed", "byo_api", "external_subscription"],
|
|
19566
|
+
"type": "string"
|
|
19567
|
+
},
|
|
19568
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
19569
|
+
"sourceId": {
|
|
19570
|
+
"maxLength": 256,
|
|
19571
|
+
"minLength": 1,
|
|
19572
|
+
"type": "string"
|
|
19573
|
+
}
|
|
19574
|
+
},
|
|
19575
|
+
"required": [
|
|
19576
|
+
"schemaVersion",
|
|
19577
|
+
"sourceId",
|
|
19578
|
+
"fundingSource",
|
|
19579
|
+
"currency",
|
|
19580
|
+
"chargedMicrounits",
|
|
19581
|
+
"costExact"
|
|
19582
|
+
],
|
|
19583
|
+
"type": "object"
|
|
19584
|
+
},
|
|
19585
|
+
"cost": {
|
|
19586
|
+
"additionalProperties": false,
|
|
19587
|
+
"properties": {
|
|
19588
|
+
"amount": { "pattern": "^\\d+(?:\\.\\d+)?$", "type": "string" },
|
|
19589
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
19590
|
+
},
|
|
19591
|
+
"required": ["amount", "currency"],
|
|
19592
|
+
"type": "object"
|
|
19593
|
+
},
|
|
19594
|
+
"durationMs": {
|
|
19595
|
+
"maximum": 9007199254740991,
|
|
19596
|
+
"minimum": 0,
|
|
19597
|
+
"type": "integer"
|
|
19598
|
+
},
|
|
19599
|
+
"inputTokens": {
|
|
19600
|
+
"maximum": 9007199254740991,
|
|
19601
|
+
"minimum": 0,
|
|
19602
|
+
"type": "integer"
|
|
19603
|
+
},
|
|
19604
|
+
"outputTokens": {
|
|
19605
|
+
"maximum": 9007199254740991,
|
|
19606
|
+
"minimum": 0,
|
|
19607
|
+
"type": "integer"
|
|
19608
|
+
}
|
|
19609
|
+
},
|
|
19610
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
19611
|
+
"type": "object"
|
|
19612
|
+
}
|
|
18579
19613
|
},
|
|
18580
|
-
"
|
|
18581
|
-
"required": ["sessionId", "taskId", "generation"],
|
|
19614
|
+
"required": ["handle", "state", "observedAt"],
|
|
18582
19615
|
"type": "object"
|
|
18583
|
-
}
|
|
18584
|
-
"runtimeSessionId": {},
|
|
18585
|
-
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" }
|
|
19616
|
+
}
|
|
18586
19617
|
},
|
|
18587
19618
|
"required": [
|
|
18588
19619
|
"schemaVersion",
|
|
@@ -18591,8 +19622,12 @@
|
|
|
18591
19622
|
"executionId",
|
|
18592
19623
|
"attemptId",
|
|
18593
19624
|
"runtimeSessionId",
|
|
18594
|
-
"
|
|
18595
|
-
"
|
|
19625
|
+
"questionSchemaVersion",
|
|
19626
|
+
"requestId",
|
|
19627
|
+
"requestEventId",
|
|
19628
|
+
"outcome",
|
|
19629
|
+
"state",
|
|
19630
|
+
"status"
|
|
18596
19631
|
],
|
|
18597
19632
|
"type": "object"
|
|
18598
19633
|
},
|