@adea-ai/sdk 1.13.0 → 1.15.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/README.md +10 -0
- package/dist/client.d.ts +9 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +33 -0
- package/dist/client.js.map +1 -1
- package/dist/operations.d.ts +677 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +53 -1
- package/dist/operations.js.map +1 -1
- package/openapi/control-plane.v3.json +2923 -215
- package/package.json +4 -4
|
@@ -13775,9 +13775,9 @@
|
|
|
13775
13775
|
"security": [{ "serviceBearer": [] }]
|
|
13776
13776
|
}
|
|
13777
13777
|
},
|
|
13778
|
-
"/v1/model-connections/selection/
|
|
13778
|
+
"/v1/model-connections/selection/funding/get": {
|
|
13779
13779
|
"post": {
|
|
13780
|
-
"operationId": "model-selection.
|
|
13780
|
+
"operationId": "model-selection.funding.get",
|
|
13781
13781
|
"requestBody": {
|
|
13782
13782
|
"content": {
|
|
13783
13783
|
"application/json": {
|
|
@@ -13824,55 +13824,23 @@
|
|
|
13824
13824
|
"required": ["traceId"],
|
|
13825
13825
|
"type": "object"
|
|
13826
13826
|
},
|
|
13827
|
-
"operation": { "const": "model-selection.
|
|
13827
|
+
"operation": { "const": "model-selection.funding.get", "type": "string" },
|
|
13828
13828
|
"parameters": {
|
|
13829
13829
|
"additionalProperties": false,
|
|
13830
13830
|
"properties": {
|
|
13831
|
-
"
|
|
13832
|
-
|
|
13833
|
-
"
|
|
13834
|
-
|
|
13835
|
-
"providerModel": {
|
|
13836
|
-
"maxLength": 256,
|
|
13837
|
-
"minLength": 1,
|
|
13838
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
13839
|
-
"type": "string"
|
|
13840
|
-
}
|
|
13841
|
-
},
|
|
13842
|
-
"required": ["connectionRef", "providerModel"],
|
|
13843
|
-
"type": "object"
|
|
13831
|
+
"attemptId": { "pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
13832
|
+
"executionId": {
|
|
13833
|
+
"pattern": "^exe_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
13834
|
+
"type": "string"
|
|
13844
13835
|
},
|
|
13845
|
-
"
|
|
13846
|
-
"
|
|
13847
|
-
"
|
|
13848
|
-
"
|
|
13849
|
-
|
|
13850
|
-
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
13851
|
-
"type": "string"
|
|
13852
|
-
},
|
|
13853
|
-
"harnessVersion": {
|
|
13854
|
-
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
13855
|
-
"type": "string"
|
|
13856
|
-
},
|
|
13857
|
-
"location": {
|
|
13858
|
-
"enum": ["local_device", "remote_host", "agent_hq_cloud"],
|
|
13859
|
-
"type": "string"
|
|
13860
|
-
},
|
|
13861
|
-
"providerBinding": {
|
|
13862
|
-
"enum": [
|
|
13863
|
-
"pi_model_runtime",
|
|
13864
|
-
"pi_durable_models",
|
|
13865
|
-
"cloudflare_binding",
|
|
13866
|
-
"native_harness"
|
|
13867
|
-
],
|
|
13868
|
-
"type": "string"
|
|
13869
|
-
}
|
|
13870
|
-
},
|
|
13871
|
-
"required": ["location", "harness", "harnessVersion", "providerBinding"],
|
|
13872
|
-
"type": "object"
|
|
13836
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
13837
|
+
"selectionRevision": {
|
|
13838
|
+
"exclusiveMinimum": 0,
|
|
13839
|
+
"maximum": 9007199254740991,
|
|
13840
|
+
"type": "integer"
|
|
13873
13841
|
}
|
|
13874
13842
|
},
|
|
13875
|
-
"required": ["
|
|
13843
|
+
"required": ["executionId", "attemptId", "selectionRef", "selectionRevision"],
|
|
13876
13844
|
"type": "object"
|
|
13877
13845
|
},
|
|
13878
13846
|
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
@@ -13932,128 +13900,191 @@
|
|
|
13932
13900
|
"data": {
|
|
13933
13901
|
"additionalProperties": false,
|
|
13934
13902
|
"properties": {
|
|
13935
|
-
"
|
|
13936
|
-
"
|
|
13937
|
-
|
|
13938
|
-
"accountRef": {
|
|
13939
|
-
"maxLength": 256,
|
|
13940
|
-
"minLength": 1,
|
|
13941
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
13942
|
-
"type": "string"
|
|
13943
|
-
},
|
|
13944
|
-
"authKind": {
|
|
13945
|
-
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
13946
|
-
"type": "string"
|
|
13947
|
-
},
|
|
13948
|
-
"configurationRevision": {
|
|
13949
|
-
"exclusiveMinimum": 0,
|
|
13950
|
-
"maximum": 9007199254740991,
|
|
13951
|
-
"type": "integer"
|
|
13952
|
-
},
|
|
13953
|
-
"connectionRef": {
|
|
13954
|
-
"pattern": "^mconn_[a-f0-9]{32}$",
|
|
13955
|
-
"type": "string"
|
|
13956
|
-
},
|
|
13957
|
-
"connectionRevision": {
|
|
13958
|
-
"exclusiveMinimum": 0,
|
|
13959
|
-
"maximum": 9007199254740991,
|
|
13960
|
-
"type": "integer"
|
|
13961
|
-
},
|
|
13962
|
-
"credentialRef": {},
|
|
13963
|
-
"credentialRevision": {
|
|
13964
|
-
"exclusiveMinimum": 0,
|
|
13965
|
-
"maximum": 9007199254740991,
|
|
13966
|
-
"type": "integer"
|
|
13967
|
-
},
|
|
13968
|
-
"fundingSource": {
|
|
13969
|
-
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
13970
|
-
"type": "string"
|
|
13971
|
-
},
|
|
13972
|
-
"harness": {
|
|
13973
|
-
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
13974
|
-
"type": "string"
|
|
13975
|
-
},
|
|
13976
|
-
"harnessVersion": {
|
|
13977
|
-
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
13978
|
-
"type": "string"
|
|
13979
|
-
},
|
|
13980
|
-
"location": {
|
|
13981
|
-
"enum": ["local_device", "remote_host", "agent_hq_cloud"],
|
|
13982
|
-
"type": "string"
|
|
13983
|
-
},
|
|
13984
|
-
"provider": {
|
|
13985
|
-
"maxLength": 128,
|
|
13986
|
-
"minLength": 1,
|
|
13987
|
-
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
13988
|
-
"type": "string"
|
|
13989
|
-
},
|
|
13990
|
-
"providerBinding": {
|
|
13991
|
-
"enum": [
|
|
13992
|
-
"pi_model_runtime",
|
|
13993
|
-
"pi_durable_models",
|
|
13994
|
-
"cloudflare_binding",
|
|
13995
|
-
"native_harness"
|
|
13996
|
-
],
|
|
13997
|
-
"type": "string"
|
|
13998
|
-
},
|
|
13999
|
-
"providerModel": {
|
|
14000
|
-
"maxLength": 256,
|
|
14001
|
-
"minLength": 1,
|
|
14002
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14003
|
-
"type": "string"
|
|
14004
|
-
},
|
|
14005
|
-
"schemaVersion": { "const": "model-selection/v1", "type": "string" },
|
|
14006
|
-
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
14007
|
-
"selectionRevision": {
|
|
14008
|
-
"exclusiveMinimum": 0,
|
|
14009
|
-
"maximum": 9007199254740991,
|
|
14010
|
-
"type": "integer"
|
|
14011
|
-
},
|
|
14012
|
-
"workspaceGrant": {
|
|
13903
|
+
"funding": {
|
|
13904
|
+
"oneOf": [
|
|
13905
|
+
{
|
|
14013
13906
|
"additionalProperties": false,
|
|
14014
13907
|
"properties": {
|
|
14015
|
-
"
|
|
13908
|
+
"accountRef": {
|
|
14016
13909
|
"maxLength": 256,
|
|
14017
13910
|
"minLength": 1,
|
|
14018
13911
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14019
13912
|
"type": "string"
|
|
14020
13913
|
},
|
|
14021
|
-
"
|
|
13914
|
+
"attemptId": {},
|
|
13915
|
+
"authKind": {
|
|
13916
|
+
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
13917
|
+
"type": "string"
|
|
13918
|
+
},
|
|
13919
|
+
"authorityRevision": {
|
|
14022
13920
|
"exclusiveMinimum": 0,
|
|
14023
13921
|
"maximum": 9007199254740991,
|
|
14024
13922
|
"type": "integer"
|
|
14025
|
-
}
|
|
13923
|
+
},
|
|
13924
|
+
"authorizationRef": {
|
|
13925
|
+
"maxLength": 256,
|
|
13926
|
+
"minLength": 1,
|
|
13927
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
13928
|
+
"type": "string"
|
|
13929
|
+
},
|
|
13930
|
+
"executionId": {},
|
|
13931
|
+
"expiresAt": {
|
|
13932
|
+
"format": "date-time",
|
|
13933
|
+
"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))$",
|
|
13934
|
+
"type": "string"
|
|
13935
|
+
},
|
|
13936
|
+
"fundingOwner": {
|
|
13937
|
+
"additionalProperties": false,
|
|
13938
|
+
"properties": {
|
|
13939
|
+
"displayName": {
|
|
13940
|
+
"maxLength": 128,
|
|
13941
|
+
"minLength": 1,
|
|
13942
|
+
"type": "string"
|
|
13943
|
+
},
|
|
13944
|
+
"evidenceRef": {
|
|
13945
|
+
"maxLength": 256,
|
|
13946
|
+
"minLength": 1,
|
|
13947
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
13948
|
+
"type": "string"
|
|
13949
|
+
},
|
|
13950
|
+
"kind": {
|
|
13951
|
+
"enum": [
|
|
13952
|
+
"provider_account",
|
|
13953
|
+
"workspace_account",
|
|
13954
|
+
"adea_account"
|
|
13955
|
+
],
|
|
13956
|
+
"type": "string"
|
|
13957
|
+
},
|
|
13958
|
+
"ownerRef": {
|
|
13959
|
+
"maxLength": 256,
|
|
13960
|
+
"minLength": 1,
|
|
13961
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
13962
|
+
"type": "string"
|
|
13963
|
+
},
|
|
13964
|
+
"revision": {
|
|
13965
|
+
"exclusiveMinimum": 0,
|
|
13966
|
+
"maximum": 9007199254740991,
|
|
13967
|
+
"type": "integer"
|
|
13968
|
+
}
|
|
13969
|
+
},
|
|
13970
|
+
"required": [
|
|
13971
|
+
"ownerRef",
|
|
13972
|
+
"kind",
|
|
13973
|
+
"displayName",
|
|
13974
|
+
"revision",
|
|
13975
|
+
"evidenceRef"
|
|
13976
|
+
],
|
|
13977
|
+
"type": "object"
|
|
13978
|
+
},
|
|
13979
|
+
"fundingSource": {
|
|
13980
|
+
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
13981
|
+
"type": "string"
|
|
13982
|
+
},
|
|
13983
|
+
"provider": {
|
|
13984
|
+
"maxLength": 128,
|
|
13985
|
+
"minLength": 1,
|
|
13986
|
+
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
13987
|
+
"type": "string"
|
|
13988
|
+
},
|
|
13989
|
+
"providerModel": {
|
|
13990
|
+
"maxLength": 256,
|
|
13991
|
+
"minLength": 1,
|
|
13992
|
+
"type": "string"
|
|
13993
|
+
},
|
|
13994
|
+
"schemaVersion": {
|
|
13995
|
+
"const": "model-funding-display/v1",
|
|
13996
|
+
"type": "string"
|
|
13997
|
+
},
|
|
13998
|
+
"selectionRef": {
|
|
13999
|
+
"pattern": "^msel_[a-f0-9]{32}$",
|
|
14000
|
+
"type": "string"
|
|
14001
|
+
},
|
|
14002
|
+
"selectionRevision": {
|
|
14003
|
+
"exclusiveMinimum": 0,
|
|
14004
|
+
"maximum": 9007199254740991,
|
|
14005
|
+
"type": "integer"
|
|
14006
|
+
},
|
|
14007
|
+
"state": { "const": "ready", "type": "string" },
|
|
14008
|
+
"workspaceId": {}
|
|
14026
14009
|
},
|
|
14027
|
-
"required": [
|
|
14010
|
+
"required": [
|
|
14011
|
+
"schemaVersion",
|
|
14012
|
+
"workspaceId",
|
|
14013
|
+
"executionId",
|
|
14014
|
+
"attemptId",
|
|
14015
|
+
"selectionRef",
|
|
14016
|
+
"selectionRevision",
|
|
14017
|
+
"state",
|
|
14018
|
+
"provider",
|
|
14019
|
+
"providerModel",
|
|
14020
|
+
"accountRef",
|
|
14021
|
+
"authKind",
|
|
14022
|
+
"fundingSource",
|
|
14023
|
+
"fundingOwner",
|
|
14024
|
+
"authorizationRef",
|
|
14025
|
+
"authorityRevision",
|
|
14026
|
+
"expiresAt"
|
|
14027
|
+
],
|
|
14028
14028
|
"type": "object"
|
|
14029
14029
|
},
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14030
|
+
{
|
|
14031
|
+
"additionalProperties": false,
|
|
14032
|
+
"properties": {
|
|
14033
|
+
"attemptId": {},
|
|
14034
|
+
"executionId": {},
|
|
14035
|
+
"reasonCode": {
|
|
14036
|
+
"enum": [
|
|
14037
|
+
"CONNECTION_MISSING",
|
|
14038
|
+
"CONNECTION_REVOKED",
|
|
14039
|
+
"CREDENTIAL_MISSING",
|
|
14040
|
+
"CREDENTIAL_EXPIRED",
|
|
14041
|
+
"CREDENTIAL_REVOKED",
|
|
14042
|
+
"CREDENTIAL_REVISION_CHANGED",
|
|
14043
|
+
"WORKSPACE_GRANT_EXPIRED",
|
|
14044
|
+
"WORKSPACE_GRANT_REVOKED",
|
|
14045
|
+
"SELECTION_CHANGED",
|
|
14046
|
+
"MODEL_UNAVAILABLE",
|
|
14047
|
+
"QUOTA_EXHAUSTED",
|
|
14048
|
+
"INCOMPATIBLE_HARNESS",
|
|
14049
|
+
"INCOMPATIBLE_LOCATION",
|
|
14050
|
+
"AUTH_MODE_UNSUPPORTED",
|
|
14051
|
+
"PROVIDER_POLICY_DENIED",
|
|
14052
|
+
"READINESS_UNAVAILABLE"
|
|
14053
|
+
],
|
|
14054
|
+
"type": "string"
|
|
14055
|
+
},
|
|
14056
|
+
"schemaVersion": {
|
|
14057
|
+
"const": "model-funding-display/v1",
|
|
14058
|
+
"type": "string"
|
|
14059
|
+
},
|
|
14060
|
+
"selectionRef": {
|
|
14061
|
+
"pattern": "^msel_[a-f0-9]{32}$",
|
|
14062
|
+
"type": "string"
|
|
14063
|
+
},
|
|
14064
|
+
"selectionRevision": {
|
|
14065
|
+
"exclusiveMinimum": 0,
|
|
14066
|
+
"maximum": 9007199254740991,
|
|
14067
|
+
"type": "integer"
|
|
14068
|
+
},
|
|
14069
|
+
"state": { "const": "blocked", "type": "string" },
|
|
14070
|
+
"workspaceId": {}
|
|
14071
|
+
},
|
|
14072
|
+
"required": [
|
|
14073
|
+
"schemaVersion",
|
|
14074
|
+
"workspaceId",
|
|
14075
|
+
"executionId",
|
|
14076
|
+
"attemptId",
|
|
14077
|
+
"selectionRef",
|
|
14078
|
+
"selectionRevision",
|
|
14079
|
+
"state",
|
|
14080
|
+
"reasonCode"
|
|
14081
|
+
],
|
|
14082
|
+
"type": "object"
|
|
14083
|
+
}
|
|
14084
|
+
]
|
|
14054
14085
|
}
|
|
14055
14086
|
},
|
|
14056
|
-
"required": ["
|
|
14087
|
+
"required": ["funding"],
|
|
14057
14088
|
"type": "object"
|
|
14058
14089
|
},
|
|
14059
14090
|
"requestId": {}
|
|
@@ -14154,13 +14185,14 @@
|
|
|
14154
14185
|
"security": [{ "serviceBearer": [] }]
|
|
14155
14186
|
}
|
|
14156
14187
|
},
|
|
14157
|
-
"/v1/
|
|
14188
|
+
"/v1/model-connections/selection/resolve": {
|
|
14158
14189
|
"post": {
|
|
14159
|
-
"operationId": "
|
|
14190
|
+
"operationId": "model-selection.resolve",
|
|
14160
14191
|
"requestBody": {
|
|
14161
14192
|
"content": {
|
|
14162
14193
|
"application/json": {
|
|
14163
14194
|
"schema": {
|
|
14195
|
+
"additionalProperties": false,
|
|
14164
14196
|
"properties": {
|
|
14165
14197
|
"caller": {
|
|
14166
14198
|
"properties": {
|
|
@@ -14202,19 +14234,57 @@
|
|
|
14202
14234
|
"required": ["traceId"],
|
|
14203
14235
|
"type": "object"
|
|
14204
14236
|
},
|
|
14205
|
-
"operation": { "const": "
|
|
14237
|
+
"operation": { "const": "model-selection.resolve", "type": "string" },
|
|
14206
14238
|
"parameters": {
|
|
14239
|
+
"additionalProperties": false,
|
|
14207
14240
|
"properties": {
|
|
14208
|
-
"
|
|
14209
|
-
|
|
14210
|
-
"
|
|
14211
|
-
|
|
14241
|
+
"override": {
|
|
14242
|
+
"additionalProperties": false,
|
|
14243
|
+
"properties": {
|
|
14244
|
+
"connectionRef": { "pattern": "^mconn_[a-f0-9]{32}$", "type": "string" },
|
|
14245
|
+
"providerModel": {
|
|
14246
|
+
"maxLength": 256,
|
|
14247
|
+
"minLength": 1,
|
|
14248
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14249
|
+
"type": "string"
|
|
14250
|
+
}
|
|
14251
|
+
},
|
|
14252
|
+
"required": ["connectionRef", "providerModel"],
|
|
14253
|
+
"type": "object"
|
|
14254
|
+
},
|
|
14255
|
+
"role": { "enum": ["lead", "child", "direct"], "type": "string" },
|
|
14256
|
+
"target": {
|
|
14257
|
+
"additionalProperties": false,
|
|
14258
|
+
"properties": {
|
|
14259
|
+
"harness": {
|
|
14260
|
+
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
14261
|
+
"type": "string"
|
|
14262
|
+
},
|
|
14263
|
+
"harnessVersion": {
|
|
14264
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
14265
|
+
"type": "string"
|
|
14266
|
+
},
|
|
14267
|
+
"location": {
|
|
14268
|
+
"enum": ["local_device", "remote_host", "agent_hq_cloud"],
|
|
14269
|
+
"type": "string"
|
|
14270
|
+
},
|
|
14271
|
+
"providerBinding": {
|
|
14272
|
+
"enum": [
|
|
14273
|
+
"pi_model_runtime",
|
|
14274
|
+
"pi_durable_models",
|
|
14275
|
+
"cloudflare_binding",
|
|
14276
|
+
"native_harness"
|
|
14277
|
+
],
|
|
14278
|
+
"type": "string"
|
|
14279
|
+
}
|
|
14280
|
+
},
|
|
14281
|
+
"required": ["location", "harness", "harnessVersion", "providerBinding"],
|
|
14282
|
+
"type": "object"
|
|
14212
14283
|
}
|
|
14213
14284
|
},
|
|
14214
|
-
"required": ["
|
|
14285
|
+
"required": ["role", "target"],
|
|
14215
14286
|
"type": "object"
|
|
14216
14287
|
},
|
|
14217
|
-
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14218
14288
|
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14219
14289
|
"requestedAt": {
|
|
14220
14290
|
"format": "date-time",
|
|
@@ -14272,46 +14342,128 @@
|
|
|
14272
14342
|
"data": {
|
|
14273
14343
|
"additionalProperties": false,
|
|
14274
14344
|
"properties": {
|
|
14275
|
-
"
|
|
14345
|
+
"selection": {
|
|
14276
14346
|
"additionalProperties": false,
|
|
14277
14347
|
"properties": {
|
|
14278
|
-
"
|
|
14279
|
-
"
|
|
14348
|
+
"accountRef": {
|
|
14349
|
+
"maxLength": 256,
|
|
14350
|
+
"minLength": 1,
|
|
14351
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14280
14352
|
"type": "string"
|
|
14281
14353
|
},
|
|
14282
|
-
"
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14354
|
+
"authKind": {
|
|
14355
|
+
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
14356
|
+
"type": "string"
|
|
14357
|
+
},
|
|
14358
|
+
"configurationRevision": {
|
|
14286
14359
|
"exclusiveMinimum": 0,
|
|
14287
14360
|
"maximum": 9007199254740991,
|
|
14288
14361
|
"type": "integer"
|
|
14289
14362
|
},
|
|
14290
|
-
"
|
|
14363
|
+
"connectionRef": {
|
|
14364
|
+
"pattern": "^mconn_[a-f0-9]{32}$",
|
|
14365
|
+
"type": "string"
|
|
14366
|
+
},
|
|
14367
|
+
"connectionRevision": {
|
|
14291
14368
|
"exclusiveMinimum": 0,
|
|
14292
14369
|
"maximum": 9007199254740991,
|
|
14293
14370
|
"type": "integer"
|
|
14294
14371
|
},
|
|
14295
|
-
"
|
|
14372
|
+
"credentialRef": {},
|
|
14373
|
+
"credentialRevision": {
|
|
14296
14374
|
"exclusiveMinimum": 0,
|
|
14297
14375
|
"maximum": 9007199254740991,
|
|
14298
14376
|
"type": "integer"
|
|
14299
|
-
}
|
|
14377
|
+
},
|
|
14378
|
+
"fundingSource": {
|
|
14379
|
+
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
14380
|
+
"type": "string"
|
|
14381
|
+
},
|
|
14382
|
+
"harness": {
|
|
14383
|
+
"enum": ["pi", "pi_durable", "cloudflare_agents", "acp"],
|
|
14384
|
+
"type": "string"
|
|
14385
|
+
},
|
|
14386
|
+
"harnessVersion": {
|
|
14387
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
|
|
14388
|
+
"type": "string"
|
|
14389
|
+
},
|
|
14390
|
+
"location": {
|
|
14391
|
+
"enum": ["local_device", "remote_host", "agent_hq_cloud"],
|
|
14392
|
+
"type": "string"
|
|
14393
|
+
},
|
|
14394
|
+
"provider": {
|
|
14395
|
+
"maxLength": 128,
|
|
14396
|
+
"minLength": 1,
|
|
14397
|
+
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
14398
|
+
"type": "string"
|
|
14399
|
+
},
|
|
14400
|
+
"providerBinding": {
|
|
14401
|
+
"enum": [
|
|
14402
|
+
"pi_model_runtime",
|
|
14403
|
+
"pi_durable_models",
|
|
14404
|
+
"cloudflare_binding",
|
|
14405
|
+
"native_harness"
|
|
14406
|
+
],
|
|
14407
|
+
"type": "string"
|
|
14408
|
+
},
|
|
14409
|
+
"providerModel": {
|
|
14410
|
+
"maxLength": 256,
|
|
14411
|
+
"minLength": 1,
|
|
14412
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14413
|
+
"type": "string"
|
|
14414
|
+
},
|
|
14415
|
+
"schemaVersion": { "const": "model-selection/v1", "type": "string" },
|
|
14416
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
14417
|
+
"selectionRevision": {
|
|
14418
|
+
"exclusiveMinimum": 0,
|
|
14419
|
+
"maximum": 9007199254740991,
|
|
14420
|
+
"type": "integer"
|
|
14421
|
+
},
|
|
14422
|
+
"workspaceGrant": {
|
|
14423
|
+
"additionalProperties": false,
|
|
14424
|
+
"properties": {
|
|
14425
|
+
"grantRef": {
|
|
14426
|
+
"maxLength": 256,
|
|
14427
|
+
"minLength": 1,
|
|
14428
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
14429
|
+
"type": "string"
|
|
14430
|
+
},
|
|
14431
|
+
"revision": {
|
|
14432
|
+
"exclusiveMinimum": 0,
|
|
14433
|
+
"maximum": 9007199254740991,
|
|
14434
|
+
"type": "integer"
|
|
14435
|
+
}
|
|
14436
|
+
},
|
|
14437
|
+
"required": ["grantRef", "revision"],
|
|
14438
|
+
"type": "object"
|
|
14439
|
+
},
|
|
14440
|
+
"workspaceId": {}
|
|
14300
14441
|
},
|
|
14301
14442
|
"required": [
|
|
14302
|
-
"profileId",
|
|
14303
|
-
"profileVersionId",
|
|
14304
|
-
"version",
|
|
14305
|
-
"revision",
|
|
14306
14443
|
"schemaVersion",
|
|
14307
|
-
"
|
|
14308
|
-
"
|
|
14444
|
+
"selectionRef",
|
|
14445
|
+
"selectionRevision",
|
|
14446
|
+
"workspaceId",
|
|
14447
|
+
"connectionRef",
|
|
14448
|
+
"connectionRevision",
|
|
14449
|
+
"credentialRef",
|
|
14450
|
+
"credentialRevision",
|
|
14451
|
+
"provider",
|
|
14452
|
+
"accountRef",
|
|
14453
|
+
"authKind",
|
|
14454
|
+
"fundingSource",
|
|
14455
|
+
"providerModel",
|
|
14456
|
+
"location",
|
|
14457
|
+
"harness",
|
|
14458
|
+
"harnessVersion",
|
|
14459
|
+
"providerBinding",
|
|
14460
|
+
"workspaceGrant",
|
|
14461
|
+
"configurationRevision"
|
|
14309
14462
|
],
|
|
14310
14463
|
"type": "object"
|
|
14311
|
-
}
|
|
14312
|
-
"skillVersionIds": { "items": {}, "maxItems": 128, "type": "array" }
|
|
14464
|
+
}
|
|
14313
14465
|
},
|
|
14314
|
-
"required": ["
|
|
14466
|
+
"required": ["selection"],
|
|
14315
14467
|
"type": "object"
|
|
14316
14468
|
},
|
|
14317
14469
|
"requestId": {}
|
|
@@ -14412,9 +14564,9 @@
|
|
|
14412
14564
|
"security": [{ "serviceBearer": [] }]
|
|
14413
14565
|
}
|
|
14414
14566
|
},
|
|
14415
|
-
"/v1/
|
|
14567
|
+
"/v1/profiles/resolve": {
|
|
14416
14568
|
"post": {
|
|
14417
|
-
"operationId": "
|
|
14569
|
+
"operationId": "profile.resolve",
|
|
14418
14570
|
"requestBody": {
|
|
14419
14571
|
"content": {
|
|
14420
14572
|
"application/json": {
|
|
@@ -14432,7 +14584,6 @@
|
|
|
14432
14584
|
"required": ["servicePrincipalId"],
|
|
14433
14585
|
"type": "object"
|
|
14434
14586
|
},
|
|
14435
|
-
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14436
14587
|
"contractVersion": {
|
|
14437
14588
|
"additionalProperties": false,
|
|
14438
14589
|
"properties": {
|
|
@@ -14461,22 +14612,25 @@
|
|
|
14461
14612
|
"required": ["traceId"],
|
|
14462
14613
|
"type": "object"
|
|
14463
14614
|
},
|
|
14464
|
-
"
|
|
14465
|
-
|
|
14466
|
-
"
|
|
14467
|
-
|
|
14468
|
-
|
|
14615
|
+
"operation": { "const": "profile.resolve", "type": "string" },
|
|
14616
|
+
"parameters": {
|
|
14617
|
+
"properties": {
|
|
14618
|
+
"profileId": { "pattern": "^prf_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14619
|
+
"profileVersionId": {
|
|
14620
|
+
"pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
14621
|
+
"type": "string"
|
|
14622
|
+
}
|
|
14623
|
+
},
|
|
14624
|
+
"required": ["profileId"],
|
|
14625
|
+
"type": "object"
|
|
14469
14626
|
},
|
|
14470
|
-
"
|
|
14627
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14628
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14629
|
+
"requestedAt": {
|
|
14471
14630
|
"format": "date-time",
|
|
14472
14631
|
"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))$",
|
|
14473
14632
|
"type": "string"
|
|
14474
14633
|
},
|
|
14475
|
-
"operation": { "const": "project-state.initialize", "type": "string" },
|
|
14476
|
-
"payload": { "additionalProperties": false, "properties": {}, "type": "object" },
|
|
14477
|
-
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
14478
|
-
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14479
|
-
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14480
14634
|
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
14481
14635
|
},
|
|
14482
14636
|
"required": [
|
|
@@ -14484,14 +14638,10 @@
|
|
|
14484
14638
|
"contractVersion",
|
|
14485
14639
|
"requestId",
|
|
14486
14640
|
"workspaceId",
|
|
14487
|
-
"projectId",
|
|
14488
14641
|
"correlation",
|
|
14489
|
-
"commandId",
|
|
14490
|
-
"idempotencyKey",
|
|
14491
|
-
"payloadHash",
|
|
14492
14642
|
"operation",
|
|
14493
|
-
"
|
|
14494
|
-
"
|
|
14643
|
+
"requestedAt",
|
|
14644
|
+
"parameters"
|
|
14495
14645
|
],
|
|
14496
14646
|
"type": "object"
|
|
14497
14647
|
}
|
|
@@ -14532,24 +14682,46 @@
|
|
|
14532
14682
|
"data": {
|
|
14533
14683
|
"additionalProperties": false,
|
|
14534
14684
|
"properties": {
|
|
14535
|
-
"
|
|
14536
|
-
"initializedAt": {
|
|
14537
|
-
"format": "date-time",
|
|
14538
|
-
"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))$",
|
|
14539
|
-
"type": "string"
|
|
14540
|
-
},
|
|
14541
|
-
"projectState": {
|
|
14685
|
+
"profile": {
|
|
14542
14686
|
"additionalProperties": false,
|
|
14543
14687
|
"properties": {
|
|
14544
|
-
"
|
|
14545
|
-
|
|
14546
|
-
|
|
14688
|
+
"contentDigest": {
|
|
14689
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
14690
|
+
"type": "string"
|
|
14691
|
+
},
|
|
14692
|
+
"lifecycle": { "const": "published", "type": "string" },
|
|
14693
|
+
"profileId": {},
|
|
14694
|
+
"profileVersionId": {},
|
|
14695
|
+
"revision": {
|
|
14696
|
+
"exclusiveMinimum": 0,
|
|
14697
|
+
"maximum": 9007199254740991,
|
|
14698
|
+
"type": "integer"
|
|
14699
|
+
},
|
|
14700
|
+
"schemaVersion": {
|
|
14701
|
+
"exclusiveMinimum": 0,
|
|
14702
|
+
"maximum": 9007199254740991,
|
|
14703
|
+
"type": "integer"
|
|
14704
|
+
},
|
|
14705
|
+
"version": {
|
|
14706
|
+
"exclusiveMinimum": 0,
|
|
14707
|
+
"maximum": 9007199254740991,
|
|
14708
|
+
"type": "integer"
|
|
14709
|
+
}
|
|
14547
14710
|
},
|
|
14548
|
-
"required": [
|
|
14711
|
+
"required": [
|
|
14712
|
+
"profileId",
|
|
14713
|
+
"profileVersionId",
|
|
14714
|
+
"version",
|
|
14715
|
+
"revision",
|
|
14716
|
+
"schemaVersion",
|
|
14717
|
+
"contentDigest",
|
|
14718
|
+
"lifecycle"
|
|
14719
|
+
],
|
|
14549
14720
|
"type": "object"
|
|
14550
|
-
}
|
|
14721
|
+
},
|
|
14722
|
+
"skillVersionIds": { "items": {}, "maxItems": 128, "type": "array" }
|
|
14551
14723
|
},
|
|
14552
|
-
"required": ["
|
|
14724
|
+
"required": ["profile", "skillVersionIds"],
|
|
14553
14725
|
"type": "object"
|
|
14554
14726
|
},
|
|
14555
14727
|
"requestId": {}
|
|
@@ -14650,9 +14822,247 @@
|
|
|
14650
14822
|
"security": [{ "serviceBearer": [] }]
|
|
14651
14823
|
}
|
|
14652
14824
|
},
|
|
14653
|
-
"/v1/project-states/
|
|
14825
|
+
"/v1/project-states/initialize": {
|
|
14654
14826
|
"post": {
|
|
14655
|
-
"operationId": "project-state.
|
|
14827
|
+
"operationId": "project-state.initialize",
|
|
14828
|
+
"requestBody": {
|
|
14829
|
+
"content": {
|
|
14830
|
+
"application/json": {
|
|
14831
|
+
"schema": {
|
|
14832
|
+
"properties": {
|
|
14833
|
+
"caller": {
|
|
14834
|
+
"properties": {
|
|
14835
|
+
"servicePrincipalId": {
|
|
14836
|
+
"maxLength": 64,
|
|
14837
|
+
"minLength": 5,
|
|
14838
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
14839
|
+
"type": "string"
|
|
14840
|
+
}
|
|
14841
|
+
},
|
|
14842
|
+
"required": ["servicePrincipalId"],
|
|
14843
|
+
"type": "object"
|
|
14844
|
+
},
|
|
14845
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14846
|
+
"contractVersion": {
|
|
14847
|
+
"additionalProperties": false,
|
|
14848
|
+
"properties": {
|
|
14849
|
+
"major": {
|
|
14850
|
+
"exclusiveMinimum": 0,
|
|
14851
|
+
"maximum": 9007199254740991,
|
|
14852
|
+
"type": "integer"
|
|
14853
|
+
},
|
|
14854
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
14855
|
+
},
|
|
14856
|
+
"required": ["major", "minor"],
|
|
14857
|
+
"type": "object"
|
|
14858
|
+
},
|
|
14859
|
+
"correlation": {
|
|
14860
|
+
"properties": {
|
|
14861
|
+
"causationCommandId": {
|
|
14862
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
14863
|
+
"type": "string"
|
|
14864
|
+
},
|
|
14865
|
+
"parentEventId": {
|
|
14866
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
14867
|
+
"type": "string"
|
|
14868
|
+
},
|
|
14869
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
14870
|
+
},
|
|
14871
|
+
"required": ["traceId"],
|
|
14872
|
+
"type": "object"
|
|
14873
|
+
},
|
|
14874
|
+
"idempotencyKey": {
|
|
14875
|
+
"maxLength": 128,
|
|
14876
|
+
"minLength": 16,
|
|
14877
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
14878
|
+
"type": "string"
|
|
14879
|
+
},
|
|
14880
|
+
"issuedAt": {
|
|
14881
|
+
"format": "date-time",
|
|
14882
|
+
"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))$",
|
|
14883
|
+
"type": "string"
|
|
14884
|
+
},
|
|
14885
|
+
"operation": { "const": "project-state.initialize", "type": "string" },
|
|
14886
|
+
"payload": { "additionalProperties": false, "properties": {}, "type": "object" },
|
|
14887
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
14888
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14889
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
14890
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
14891
|
+
},
|
|
14892
|
+
"required": [
|
|
14893
|
+
"caller",
|
|
14894
|
+
"contractVersion",
|
|
14895
|
+
"requestId",
|
|
14896
|
+
"workspaceId",
|
|
14897
|
+
"projectId",
|
|
14898
|
+
"correlation",
|
|
14899
|
+
"commandId",
|
|
14900
|
+
"idempotencyKey",
|
|
14901
|
+
"payloadHash",
|
|
14902
|
+
"operation",
|
|
14903
|
+
"issuedAt",
|
|
14904
|
+
"payload"
|
|
14905
|
+
],
|
|
14906
|
+
"type": "object"
|
|
14907
|
+
}
|
|
14908
|
+
}
|
|
14909
|
+
},
|
|
14910
|
+
"required": true
|
|
14911
|
+
},
|
|
14912
|
+
"responses": {
|
|
14913
|
+
"200": {
|
|
14914
|
+
"content": {
|
|
14915
|
+
"application/json": {
|
|
14916
|
+
"schema": {
|
|
14917
|
+
"additionalProperties": false,
|
|
14918
|
+
"properties": {
|
|
14919
|
+
"contractVersion": {
|
|
14920
|
+
"additionalProperties": false,
|
|
14921
|
+
"properties": {
|
|
14922
|
+
"major": {
|
|
14923
|
+
"exclusiveMinimum": 0,
|
|
14924
|
+
"maximum": 9007199254740991,
|
|
14925
|
+
"type": "integer"
|
|
14926
|
+
},
|
|
14927
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
14928
|
+
},
|
|
14929
|
+
"required": ["major", "minor"],
|
|
14930
|
+
"type": "object"
|
|
14931
|
+
},
|
|
14932
|
+
"correlation": {
|
|
14933
|
+
"additionalProperties": false,
|
|
14934
|
+
"properties": {
|
|
14935
|
+
"causationCommandId": {},
|
|
14936
|
+
"parentEventId": {},
|
|
14937
|
+
"traceId": {}
|
|
14938
|
+
},
|
|
14939
|
+
"required": ["traceId"],
|
|
14940
|
+
"type": "object"
|
|
14941
|
+
},
|
|
14942
|
+
"data": {
|
|
14943
|
+
"additionalProperties": false,
|
|
14944
|
+
"properties": {
|
|
14945
|
+
"commandId": {},
|
|
14946
|
+
"initializedAt": {
|
|
14947
|
+
"format": "date-time",
|
|
14948
|
+
"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))$",
|
|
14949
|
+
"type": "string"
|
|
14950
|
+
},
|
|
14951
|
+
"projectState": {
|
|
14952
|
+
"additionalProperties": false,
|
|
14953
|
+
"properties": {
|
|
14954
|
+
"projectId": {},
|
|
14955
|
+
"revision": { "const": 0, "type": "number" },
|
|
14956
|
+
"workspaceId": {}
|
|
14957
|
+
},
|
|
14958
|
+
"required": ["workspaceId", "projectId", "revision"],
|
|
14959
|
+
"type": "object"
|
|
14960
|
+
}
|
|
14961
|
+
},
|
|
14962
|
+
"required": ["projectState", "commandId", "initializedAt"],
|
|
14963
|
+
"type": "object"
|
|
14964
|
+
},
|
|
14965
|
+
"requestId": {}
|
|
14966
|
+
},
|
|
14967
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
14968
|
+
"type": "object"
|
|
14969
|
+
}
|
|
14970
|
+
}
|
|
14971
|
+
},
|
|
14972
|
+
"description": "Successful response"
|
|
14973
|
+
},
|
|
14974
|
+
"default": {
|
|
14975
|
+
"content": {
|
|
14976
|
+
"application/json": {
|
|
14977
|
+
"schema": {
|
|
14978
|
+
"additionalProperties": false,
|
|
14979
|
+
"properties": {
|
|
14980
|
+
"contractVersion": {
|
|
14981
|
+
"additionalProperties": false,
|
|
14982
|
+
"properties": {
|
|
14983
|
+
"major": {
|
|
14984
|
+
"exclusiveMinimum": 0,
|
|
14985
|
+
"maximum": 9007199254740991,
|
|
14986
|
+
"type": "integer"
|
|
14987
|
+
},
|
|
14988
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
14989
|
+
},
|
|
14990
|
+
"required": ["major", "minor"],
|
|
14991
|
+
"type": "object"
|
|
14992
|
+
},
|
|
14993
|
+
"correlation": {
|
|
14994
|
+
"additionalProperties": false,
|
|
14995
|
+
"properties": {
|
|
14996
|
+
"causationCommandId": {},
|
|
14997
|
+
"parentEventId": {},
|
|
14998
|
+
"traceId": {}
|
|
14999
|
+
},
|
|
15000
|
+
"required": ["traceId"],
|
|
15001
|
+
"type": "object"
|
|
15002
|
+
},
|
|
15003
|
+
"error": {
|
|
15004
|
+
"additionalProperties": false,
|
|
15005
|
+
"properties": {
|
|
15006
|
+
"class": {
|
|
15007
|
+
"enum": [
|
|
15008
|
+
"validation",
|
|
15009
|
+
"authentication",
|
|
15010
|
+
"authorization",
|
|
15011
|
+
"conflict",
|
|
15012
|
+
"stale_reference",
|
|
15013
|
+
"capability_mismatch",
|
|
15014
|
+
"runtime_unavailable",
|
|
15015
|
+
"internal"
|
|
15016
|
+
],
|
|
15017
|
+
"type": "string"
|
|
15018
|
+
},
|
|
15019
|
+
"code": {
|
|
15020
|
+
"maxLength": 96,
|
|
15021
|
+
"minLength": 1,
|
|
15022
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
15023
|
+
"type": "string"
|
|
15024
|
+
},
|
|
15025
|
+
"details": {
|
|
15026
|
+
"additionalProperties": {},
|
|
15027
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
15028
|
+
"type": "object"
|
|
15029
|
+
},
|
|
15030
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
15031
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
15032
|
+
"retryable": { "type": "boolean" },
|
|
15033
|
+
"source": {
|
|
15034
|
+
"enum": [
|
|
15035
|
+
"client",
|
|
15036
|
+
"auth",
|
|
15037
|
+
"policy",
|
|
15038
|
+
"runtime",
|
|
15039
|
+
"provider",
|
|
15040
|
+
"persistence",
|
|
15041
|
+
"workflow",
|
|
15042
|
+
"system"
|
|
15043
|
+
],
|
|
15044
|
+
"type": "string"
|
|
15045
|
+
}
|
|
15046
|
+
},
|
|
15047
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
15048
|
+
"type": "object"
|
|
15049
|
+
},
|
|
15050
|
+
"requestId": {}
|
|
15051
|
+
},
|
|
15052
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
15053
|
+
"type": "object"
|
|
15054
|
+
}
|
|
15055
|
+
}
|
|
15056
|
+
},
|
|
15057
|
+
"description": "Normalized error response"
|
|
15058
|
+
}
|
|
15059
|
+
},
|
|
15060
|
+
"security": [{ "serviceBearer": [] }]
|
|
15061
|
+
}
|
|
15062
|
+
},
|
|
15063
|
+
"/v1/project-states/resolve": {
|
|
15064
|
+
"post": {
|
|
15065
|
+
"operationId": "project-state.resolve",
|
|
14656
15066
|
"requestBody": {
|
|
14657
15067
|
"content": {
|
|
14658
15068
|
"application/json": {
|
|
@@ -16302,6 +16712,2304 @@
|
|
|
16302
16712
|
},
|
|
16303
16713
|
"security": [{ "serviceBearer": [] }]
|
|
16304
16714
|
}
|
|
16715
|
+
},
|
|
16716
|
+
"/v3/pi-durable/lead-dispatches/cancel": {
|
|
16717
|
+
"post": {
|
|
16718
|
+
"operationId": "pi-durable.lead.cancel",
|
|
16719
|
+
"requestBody": {
|
|
16720
|
+
"content": {
|
|
16721
|
+
"application/json": {
|
|
16722
|
+
"schema": {
|
|
16723
|
+
"additionalProperties": false,
|
|
16724
|
+
"properties": {
|
|
16725
|
+
"caller": {
|
|
16726
|
+
"additionalProperties": false,
|
|
16727
|
+
"properties": {
|
|
16728
|
+
"servicePrincipalId": {
|
|
16729
|
+
"maxLength": 64,
|
|
16730
|
+
"minLength": 5,
|
|
16731
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
16732
|
+
"type": "string"
|
|
16733
|
+
}
|
|
16734
|
+
},
|
|
16735
|
+
"required": ["servicePrincipalId"],
|
|
16736
|
+
"type": "object"
|
|
16737
|
+
},
|
|
16738
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
16739
|
+
"contractVersion": {
|
|
16740
|
+
"additionalProperties": false,
|
|
16741
|
+
"properties": {
|
|
16742
|
+
"major": {
|
|
16743
|
+
"exclusiveMinimum": 0,
|
|
16744
|
+
"maximum": 9007199254740991,
|
|
16745
|
+
"type": "integer"
|
|
16746
|
+
},
|
|
16747
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
16748
|
+
},
|
|
16749
|
+
"required": ["major", "minor"],
|
|
16750
|
+
"type": "object"
|
|
16751
|
+
},
|
|
16752
|
+
"correlation": {
|
|
16753
|
+
"additionalProperties": false,
|
|
16754
|
+
"properties": {
|
|
16755
|
+
"causationCommandId": {
|
|
16756
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
16757
|
+
"type": "string"
|
|
16758
|
+
},
|
|
16759
|
+
"parentEventId": {
|
|
16760
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
16761
|
+
"type": "string"
|
|
16762
|
+
},
|
|
16763
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
16764
|
+
},
|
|
16765
|
+
"required": ["traceId"],
|
|
16766
|
+
"type": "object"
|
|
16767
|
+
},
|
|
16768
|
+
"idempotencyKey": {
|
|
16769
|
+
"maxLength": 128,
|
|
16770
|
+
"minLength": 16,
|
|
16771
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
16772
|
+
"type": "string"
|
|
16773
|
+
},
|
|
16774
|
+
"issuedAt": {
|
|
16775
|
+
"format": "date-time",
|
|
16776
|
+
"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))$",
|
|
16777
|
+
"type": "string"
|
|
16778
|
+
},
|
|
16779
|
+
"operation": { "const": "pi-durable.lead.cancel", "type": "string" },
|
|
16780
|
+
"payload": {
|
|
16781
|
+
"additionalProperties": false,
|
|
16782
|
+
"properties": {
|
|
16783
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
16784
|
+
},
|
|
16785
|
+
"required": ["dispatchId"],
|
|
16786
|
+
"type": "object"
|
|
16787
|
+
},
|
|
16788
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
16789
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
16790
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
16791
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
16792
|
+
},
|
|
16793
|
+
"required": [
|
|
16794
|
+
"caller",
|
|
16795
|
+
"contractVersion",
|
|
16796
|
+
"requestId",
|
|
16797
|
+
"workspaceId",
|
|
16798
|
+
"correlation",
|
|
16799
|
+
"commandId",
|
|
16800
|
+
"idempotencyKey",
|
|
16801
|
+
"payloadHash",
|
|
16802
|
+
"operation",
|
|
16803
|
+
"issuedAt",
|
|
16804
|
+
"payload"
|
|
16805
|
+
],
|
|
16806
|
+
"type": "object"
|
|
16807
|
+
}
|
|
16808
|
+
}
|
|
16809
|
+
},
|
|
16810
|
+
"required": true
|
|
16811
|
+
},
|
|
16812
|
+
"responses": {
|
|
16813
|
+
"202": {
|
|
16814
|
+
"content": {
|
|
16815
|
+
"application/json": {
|
|
16816
|
+
"schema": {
|
|
16817
|
+
"$defs": {
|
|
16818
|
+
"__schema0": {
|
|
16819
|
+
"anyOf": [
|
|
16820
|
+
{ "type": "string" },
|
|
16821
|
+
{ "type": "number" },
|
|
16822
|
+
{ "type": "boolean" },
|
|
16823
|
+
{ "type": "null" },
|
|
16824
|
+
{ "items": { "$ref": "#/$defs/__schema0" }, "type": "array" },
|
|
16825
|
+
{
|
|
16826
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
16827
|
+
"propertyNames": { "type": "string" },
|
|
16828
|
+
"type": "object"
|
|
16829
|
+
}
|
|
16830
|
+
]
|
|
16831
|
+
},
|
|
16832
|
+
"__schema1": {
|
|
16833
|
+
"anyOf": [
|
|
16834
|
+
{ "type": "string" },
|
|
16835
|
+
{ "type": "number" },
|
|
16836
|
+
{ "type": "boolean" },
|
|
16837
|
+
{ "type": "null" },
|
|
16838
|
+
{ "items": { "$ref": "#/$defs/__schema1" }, "type": "array" },
|
|
16839
|
+
{
|
|
16840
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
16841
|
+
"propertyNames": { "type": "string" },
|
|
16842
|
+
"type": "object"
|
|
16843
|
+
}
|
|
16844
|
+
]
|
|
16845
|
+
}
|
|
16846
|
+
},
|
|
16847
|
+
"additionalProperties": false,
|
|
16848
|
+
"properties": {
|
|
16849
|
+
"contractVersion": {
|
|
16850
|
+
"additionalProperties": false,
|
|
16851
|
+
"properties": {
|
|
16852
|
+
"major": {
|
|
16853
|
+
"exclusiveMinimum": 0,
|
|
16854
|
+
"maximum": 9007199254740991,
|
|
16855
|
+
"type": "integer"
|
|
16856
|
+
},
|
|
16857
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
16858
|
+
},
|
|
16859
|
+
"required": ["major", "minor"],
|
|
16860
|
+
"type": "object"
|
|
16861
|
+
},
|
|
16862
|
+
"correlation": {
|
|
16863
|
+
"additionalProperties": false,
|
|
16864
|
+
"properties": {
|
|
16865
|
+
"causationCommandId": {},
|
|
16866
|
+
"parentEventId": {},
|
|
16867
|
+
"traceId": {}
|
|
16868
|
+
},
|
|
16869
|
+
"required": ["traceId"],
|
|
16870
|
+
"type": "object"
|
|
16871
|
+
},
|
|
16872
|
+
"data": {
|
|
16873
|
+
"additionalProperties": false,
|
|
16874
|
+
"properties": {
|
|
16875
|
+
"attemptId": {},
|
|
16876
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
16877
|
+
"executionId": {},
|
|
16878
|
+
"intentId": {
|
|
16879
|
+
"format": "uuid",
|
|
16880
|
+
"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)$",
|
|
16881
|
+
"type": "string"
|
|
16882
|
+
},
|
|
16883
|
+
"runtimeSessionId": {},
|
|
16884
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
|
|
16885
|
+
"state": {
|
|
16886
|
+
"enum": [
|
|
16887
|
+
"starting",
|
|
16888
|
+
"running",
|
|
16889
|
+
"awaiting_input",
|
|
16890
|
+
"cancelling",
|
|
16891
|
+
"completed",
|
|
16892
|
+
"failed",
|
|
16893
|
+
"cancelled",
|
|
16894
|
+
"timed_out",
|
|
16895
|
+
"unknown"
|
|
16896
|
+
],
|
|
16897
|
+
"type": "string"
|
|
16898
|
+
},
|
|
16899
|
+
"status": {
|
|
16900
|
+
"additionalProperties": false,
|
|
16901
|
+
"properties": {
|
|
16902
|
+
"error": {
|
|
16903
|
+
"additionalProperties": false,
|
|
16904
|
+
"properties": {
|
|
16905
|
+
"classification": {
|
|
16906
|
+
"enum": [
|
|
16907
|
+
"validation",
|
|
16908
|
+
"unsupported",
|
|
16909
|
+
"unavailable",
|
|
16910
|
+
"conflict",
|
|
16911
|
+
"timeout",
|
|
16912
|
+
"cancelled",
|
|
16913
|
+
"runtime",
|
|
16914
|
+
"infrastructure",
|
|
16915
|
+
"unknown"
|
|
16916
|
+
],
|
|
16917
|
+
"type": "string"
|
|
16918
|
+
},
|
|
16919
|
+
"code": {
|
|
16920
|
+
"maxLength": 128,
|
|
16921
|
+
"minLength": 1,
|
|
16922
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
16923
|
+
"type": "string"
|
|
16924
|
+
},
|
|
16925
|
+
"details": {
|
|
16926
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
16927
|
+
"propertyNames": { "type": "string" },
|
|
16928
|
+
"type": "object"
|
|
16929
|
+
},
|
|
16930
|
+
"message": { "maxLength": 4096, "minLength": 1, "type": "string" },
|
|
16931
|
+
"retryable": { "type": "boolean" }
|
|
16932
|
+
},
|
|
16933
|
+
"required": ["code", "classification", "message", "retryable"],
|
|
16934
|
+
"type": "object"
|
|
16935
|
+
},
|
|
16936
|
+
"handle": {
|
|
16937
|
+
"additionalProperties": false,
|
|
16938
|
+
"properties": {
|
|
16939
|
+
"attemptId": {},
|
|
16940
|
+
"externalSessionId": {},
|
|
16941
|
+
"handleId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
16942
|
+
"startedAt": {
|
|
16943
|
+
"format": "date-time",
|
|
16944
|
+
"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))$",
|
|
16945
|
+
"type": "string"
|
|
16946
|
+
}
|
|
16947
|
+
},
|
|
16948
|
+
"required": ["handleId", "attemptId", "startedAt"],
|
|
16949
|
+
"type": "object"
|
|
16950
|
+
},
|
|
16951
|
+
"observedAt": {
|
|
16952
|
+
"format": "date-time",
|
|
16953
|
+
"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))$",
|
|
16954
|
+
"type": "string"
|
|
16955
|
+
},
|
|
16956
|
+
"result": {
|
|
16957
|
+
"additionalProperties": false,
|
|
16958
|
+
"properties": {
|
|
16959
|
+
"artifacts": {
|
|
16960
|
+
"items": {
|
|
16961
|
+
"additionalProperties": false,
|
|
16962
|
+
"properties": {
|
|
16963
|
+
"artifactId": {},
|
|
16964
|
+
"digest": {
|
|
16965
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
16966
|
+
"type": "string"
|
|
16967
|
+
},
|
|
16968
|
+
"locator": {
|
|
16969
|
+
"maxLength": 512,
|
|
16970
|
+
"minLength": 1,
|
|
16971
|
+
"type": "string"
|
|
16972
|
+
},
|
|
16973
|
+
"mediaType": {
|
|
16974
|
+
"maxLength": 128,
|
|
16975
|
+
"minLength": 1,
|
|
16976
|
+
"type": "string"
|
|
16977
|
+
},
|
|
16978
|
+
"sizeBytes": {
|
|
16979
|
+
"maximum": 9007199254740991,
|
|
16980
|
+
"minimum": 0,
|
|
16981
|
+
"type": "integer"
|
|
16982
|
+
},
|
|
16983
|
+
"version": {
|
|
16984
|
+
"exclusiveMinimum": 0,
|
|
16985
|
+
"maximum": 9007199254740991,
|
|
16986
|
+
"type": "integer"
|
|
16987
|
+
}
|
|
16988
|
+
},
|
|
16989
|
+
"required": [
|
|
16990
|
+
"artifactId",
|
|
16991
|
+
"version",
|
|
16992
|
+
"mediaType",
|
|
16993
|
+
"digest",
|
|
16994
|
+
"sizeBytes",
|
|
16995
|
+
"locator"
|
|
16996
|
+
],
|
|
16997
|
+
"type": "object"
|
|
16998
|
+
},
|
|
16999
|
+
"maxItems": 1024,
|
|
17000
|
+
"type": "array"
|
|
17001
|
+
},
|
|
17002
|
+
"outcome": { "const": "completed", "type": "string" },
|
|
17003
|
+
"output": { "$ref": "#/$defs/__schema0" },
|
|
17004
|
+
"usage": {
|
|
17005
|
+
"additionalProperties": false,
|
|
17006
|
+
"properties": {
|
|
17007
|
+
"accounting": {
|
|
17008
|
+
"additionalProperties": false,
|
|
17009
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
17010
|
+
"properties": {
|
|
17011
|
+
"chargedMicrounits": {
|
|
17012
|
+
"maximum": 9007199254740991,
|
|
17013
|
+
"minimum": 0,
|
|
17014
|
+
"type": "integer"
|
|
17015
|
+
},
|
|
17016
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
17017
|
+
"currency": { "const": "USD", "type": "string" },
|
|
17018
|
+
"fundingSource": {
|
|
17019
|
+
"enum": [
|
|
17020
|
+
"hq_managed",
|
|
17021
|
+
"byo_api",
|
|
17022
|
+
"external_subscription"
|
|
17023
|
+
],
|
|
17024
|
+
"type": "string"
|
|
17025
|
+
},
|
|
17026
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
17027
|
+
"sourceId": {
|
|
17028
|
+
"maxLength": 256,
|
|
17029
|
+
"minLength": 1,
|
|
17030
|
+
"type": "string"
|
|
17031
|
+
}
|
|
17032
|
+
},
|
|
17033
|
+
"required": [
|
|
17034
|
+
"schemaVersion",
|
|
17035
|
+
"sourceId",
|
|
17036
|
+
"fundingSource",
|
|
17037
|
+
"currency",
|
|
17038
|
+
"chargedMicrounits",
|
|
17039
|
+
"costExact"
|
|
17040
|
+
],
|
|
17041
|
+
"type": "object"
|
|
17042
|
+
},
|
|
17043
|
+
"cost": {
|
|
17044
|
+
"additionalProperties": false,
|
|
17045
|
+
"properties": {
|
|
17046
|
+
"amount": {
|
|
17047
|
+
"pattern": "^\\d+(?:\\.\\d+)?$",
|
|
17048
|
+
"type": "string"
|
|
17049
|
+
},
|
|
17050
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
17051
|
+
},
|
|
17052
|
+
"required": ["amount", "currency"],
|
|
17053
|
+
"type": "object"
|
|
17054
|
+
},
|
|
17055
|
+
"durationMs": {
|
|
17056
|
+
"maximum": 9007199254740991,
|
|
17057
|
+
"minimum": 0,
|
|
17058
|
+
"type": "integer"
|
|
17059
|
+
},
|
|
17060
|
+
"inputTokens": {
|
|
17061
|
+
"maximum": 9007199254740991,
|
|
17062
|
+
"minimum": 0,
|
|
17063
|
+
"type": "integer"
|
|
17064
|
+
},
|
|
17065
|
+
"outputTokens": {
|
|
17066
|
+
"maximum": 9007199254740991,
|
|
17067
|
+
"minimum": 0,
|
|
17068
|
+
"type": "integer"
|
|
17069
|
+
}
|
|
17070
|
+
},
|
|
17071
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
17072
|
+
"type": "object"
|
|
17073
|
+
}
|
|
17074
|
+
},
|
|
17075
|
+
"required": ["outcome", "usage", "artifacts"],
|
|
17076
|
+
"type": "object"
|
|
17077
|
+
},
|
|
17078
|
+
"state": {
|
|
17079
|
+
"enum": [
|
|
17080
|
+
"starting",
|
|
17081
|
+
"running",
|
|
17082
|
+
"awaiting_input",
|
|
17083
|
+
"cancelling",
|
|
17084
|
+
"completed",
|
|
17085
|
+
"failed",
|
|
17086
|
+
"cancelled",
|
|
17087
|
+
"timed_out",
|
|
17088
|
+
"unknown"
|
|
17089
|
+
],
|
|
17090
|
+
"type": "string"
|
|
17091
|
+
},
|
|
17092
|
+
"terminalUsage": {
|
|
17093
|
+
"additionalProperties": false,
|
|
17094
|
+
"properties": {
|
|
17095
|
+
"accounting": {
|
|
17096
|
+
"additionalProperties": false,
|
|
17097
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
17098
|
+
"properties": {
|
|
17099
|
+
"chargedMicrounits": {
|
|
17100
|
+
"maximum": 9007199254740991,
|
|
17101
|
+
"minimum": 0,
|
|
17102
|
+
"type": "integer"
|
|
17103
|
+
},
|
|
17104
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
17105
|
+
"currency": { "const": "USD", "type": "string" },
|
|
17106
|
+
"fundingSource": {
|
|
17107
|
+
"enum": ["hq_managed", "byo_api", "external_subscription"],
|
|
17108
|
+
"type": "string"
|
|
17109
|
+
},
|
|
17110
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
17111
|
+
"sourceId": {
|
|
17112
|
+
"maxLength": 256,
|
|
17113
|
+
"minLength": 1,
|
|
17114
|
+
"type": "string"
|
|
17115
|
+
}
|
|
17116
|
+
},
|
|
17117
|
+
"required": [
|
|
17118
|
+
"schemaVersion",
|
|
17119
|
+
"sourceId",
|
|
17120
|
+
"fundingSource",
|
|
17121
|
+
"currency",
|
|
17122
|
+
"chargedMicrounits",
|
|
17123
|
+
"costExact"
|
|
17124
|
+
],
|
|
17125
|
+
"type": "object"
|
|
17126
|
+
},
|
|
17127
|
+
"cost": {
|
|
17128
|
+
"additionalProperties": false,
|
|
17129
|
+
"properties": {
|
|
17130
|
+
"amount": { "pattern": "^\\d+(?:\\.\\d+)?$", "type": "string" },
|
|
17131
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
17132
|
+
},
|
|
17133
|
+
"required": ["amount", "currency"],
|
|
17134
|
+
"type": "object"
|
|
17135
|
+
},
|
|
17136
|
+
"durationMs": {
|
|
17137
|
+
"maximum": 9007199254740991,
|
|
17138
|
+
"minimum": 0,
|
|
17139
|
+
"type": "integer"
|
|
17140
|
+
},
|
|
17141
|
+
"inputTokens": {
|
|
17142
|
+
"maximum": 9007199254740991,
|
|
17143
|
+
"minimum": 0,
|
|
17144
|
+
"type": "integer"
|
|
17145
|
+
},
|
|
17146
|
+
"outputTokens": {
|
|
17147
|
+
"maximum": 9007199254740991,
|
|
17148
|
+
"minimum": 0,
|
|
17149
|
+
"type": "integer"
|
|
17150
|
+
}
|
|
17151
|
+
},
|
|
17152
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
17153
|
+
"type": "object"
|
|
17154
|
+
}
|
|
17155
|
+
},
|
|
17156
|
+
"required": ["handle", "state", "observedAt"],
|
|
17157
|
+
"type": "object"
|
|
17158
|
+
}
|
|
17159
|
+
},
|
|
17160
|
+
"required": [
|
|
17161
|
+
"schemaVersion",
|
|
17162
|
+
"dispatchId",
|
|
17163
|
+
"intentId",
|
|
17164
|
+
"executionId",
|
|
17165
|
+
"attemptId",
|
|
17166
|
+
"runtimeSessionId",
|
|
17167
|
+
"state",
|
|
17168
|
+
"status"
|
|
17169
|
+
],
|
|
17170
|
+
"type": "object"
|
|
17171
|
+
},
|
|
17172
|
+
"requestId": {}
|
|
17173
|
+
},
|
|
17174
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
17175
|
+
"type": "object"
|
|
17176
|
+
}
|
|
17177
|
+
}
|
|
17178
|
+
},
|
|
17179
|
+
"description": "Successful response"
|
|
17180
|
+
},
|
|
17181
|
+
"default": {
|
|
17182
|
+
"content": {
|
|
17183
|
+
"application/json": {
|
|
17184
|
+
"schema": {
|
|
17185
|
+
"additionalProperties": false,
|
|
17186
|
+
"properties": {
|
|
17187
|
+
"contractVersion": {
|
|
17188
|
+
"additionalProperties": false,
|
|
17189
|
+
"properties": {
|
|
17190
|
+
"major": {
|
|
17191
|
+
"exclusiveMinimum": 0,
|
|
17192
|
+
"maximum": 9007199254740991,
|
|
17193
|
+
"type": "integer"
|
|
17194
|
+
},
|
|
17195
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17196
|
+
},
|
|
17197
|
+
"required": ["major", "minor"],
|
|
17198
|
+
"type": "object"
|
|
17199
|
+
},
|
|
17200
|
+
"correlation": {
|
|
17201
|
+
"additionalProperties": false,
|
|
17202
|
+
"properties": {
|
|
17203
|
+
"causationCommandId": {},
|
|
17204
|
+
"parentEventId": {},
|
|
17205
|
+
"traceId": {}
|
|
17206
|
+
},
|
|
17207
|
+
"required": ["traceId"],
|
|
17208
|
+
"type": "object"
|
|
17209
|
+
},
|
|
17210
|
+
"error": {
|
|
17211
|
+
"additionalProperties": false,
|
|
17212
|
+
"properties": {
|
|
17213
|
+
"class": {
|
|
17214
|
+
"enum": [
|
|
17215
|
+
"validation",
|
|
17216
|
+
"authentication",
|
|
17217
|
+
"authorization",
|
|
17218
|
+
"conflict",
|
|
17219
|
+
"stale_reference",
|
|
17220
|
+
"capability_mismatch",
|
|
17221
|
+
"runtime_unavailable",
|
|
17222
|
+
"internal"
|
|
17223
|
+
],
|
|
17224
|
+
"type": "string"
|
|
17225
|
+
},
|
|
17226
|
+
"code": {
|
|
17227
|
+
"maxLength": 96,
|
|
17228
|
+
"minLength": 1,
|
|
17229
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
17230
|
+
"type": "string"
|
|
17231
|
+
},
|
|
17232
|
+
"details": {
|
|
17233
|
+
"additionalProperties": {},
|
|
17234
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
17235
|
+
"type": "object"
|
|
17236
|
+
},
|
|
17237
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
17238
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
17239
|
+
"retryable": { "type": "boolean" },
|
|
17240
|
+
"source": {
|
|
17241
|
+
"enum": [
|
|
17242
|
+
"client",
|
|
17243
|
+
"auth",
|
|
17244
|
+
"policy",
|
|
17245
|
+
"runtime",
|
|
17246
|
+
"provider",
|
|
17247
|
+
"persistence",
|
|
17248
|
+
"workflow",
|
|
17249
|
+
"system"
|
|
17250
|
+
],
|
|
17251
|
+
"type": "string"
|
|
17252
|
+
}
|
|
17253
|
+
},
|
|
17254
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
17255
|
+
"type": "object"
|
|
17256
|
+
},
|
|
17257
|
+
"requestId": {}
|
|
17258
|
+
},
|
|
17259
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
17260
|
+
"type": "object"
|
|
17261
|
+
}
|
|
17262
|
+
}
|
|
17263
|
+
},
|
|
17264
|
+
"description": "Normalized error response"
|
|
17265
|
+
}
|
|
17266
|
+
},
|
|
17267
|
+
"security": [{ "serviceBearer": [] }]
|
|
17268
|
+
}
|
|
17269
|
+
},
|
|
17270
|
+
"/v3/pi-durable/lead-dispatches/dispatch": {
|
|
17271
|
+
"post": {
|
|
17272
|
+
"operationId": "pi-durable.lead.dispatch",
|
|
17273
|
+
"requestBody": {
|
|
17274
|
+
"content": {
|
|
17275
|
+
"application/json": {
|
|
17276
|
+
"schema": {
|
|
17277
|
+
"additionalProperties": false,
|
|
17278
|
+
"properties": {
|
|
17279
|
+
"caller": {
|
|
17280
|
+
"additionalProperties": false,
|
|
17281
|
+
"properties": {
|
|
17282
|
+
"servicePrincipalId": {
|
|
17283
|
+
"maxLength": 64,
|
|
17284
|
+
"minLength": 5,
|
|
17285
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
17286
|
+
"type": "string"
|
|
17287
|
+
}
|
|
17288
|
+
},
|
|
17289
|
+
"required": ["servicePrincipalId"],
|
|
17290
|
+
"type": "object"
|
|
17291
|
+
},
|
|
17292
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17293
|
+
"contractVersion": {
|
|
17294
|
+
"additionalProperties": false,
|
|
17295
|
+
"properties": {
|
|
17296
|
+
"major": {
|
|
17297
|
+
"exclusiveMinimum": 0,
|
|
17298
|
+
"maximum": 9007199254740991,
|
|
17299
|
+
"type": "integer"
|
|
17300
|
+
},
|
|
17301
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17302
|
+
},
|
|
17303
|
+
"required": ["major", "minor"],
|
|
17304
|
+
"type": "object"
|
|
17305
|
+
},
|
|
17306
|
+
"correlation": {
|
|
17307
|
+
"additionalProperties": false,
|
|
17308
|
+
"properties": {
|
|
17309
|
+
"causationCommandId": {
|
|
17310
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17311
|
+
"type": "string"
|
|
17312
|
+
},
|
|
17313
|
+
"parentEventId": {
|
|
17314
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17315
|
+
"type": "string"
|
|
17316
|
+
},
|
|
17317
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17318
|
+
},
|
|
17319
|
+
"required": ["traceId"],
|
|
17320
|
+
"type": "object"
|
|
17321
|
+
},
|
|
17322
|
+
"idempotencyKey": {
|
|
17323
|
+
"maxLength": 128,
|
|
17324
|
+
"minLength": 16,
|
|
17325
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
17326
|
+
"type": "string"
|
|
17327
|
+
},
|
|
17328
|
+
"issuedAt": {
|
|
17329
|
+
"format": "date-time",
|
|
17330
|
+
"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))$",
|
|
17331
|
+
"type": "string"
|
|
17332
|
+
},
|
|
17333
|
+
"operation": { "const": "pi-durable.lead.dispatch", "type": "string" },
|
|
17334
|
+
"payload": {
|
|
17335
|
+
"additionalProperties": false,
|
|
17336
|
+
"properties": {
|
|
17337
|
+
"intentId": {
|
|
17338
|
+
"format": "uuid",
|
|
17339
|
+
"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)$",
|
|
17340
|
+
"type": "string"
|
|
17341
|
+
},
|
|
17342
|
+
"preparationRef": { "pattern": "^prep_[a-f0-9]{32}$", "type": "string" }
|
|
17343
|
+
},
|
|
17344
|
+
"required": ["intentId"],
|
|
17345
|
+
"type": "object"
|
|
17346
|
+
},
|
|
17347
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
17348
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17349
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17350
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17351
|
+
},
|
|
17352
|
+
"required": [
|
|
17353
|
+
"caller",
|
|
17354
|
+
"contractVersion",
|
|
17355
|
+
"requestId",
|
|
17356
|
+
"workspaceId",
|
|
17357
|
+
"correlation",
|
|
17358
|
+
"commandId",
|
|
17359
|
+
"idempotencyKey",
|
|
17360
|
+
"payloadHash",
|
|
17361
|
+
"operation",
|
|
17362
|
+
"issuedAt",
|
|
17363
|
+
"payload"
|
|
17364
|
+
],
|
|
17365
|
+
"type": "object"
|
|
17366
|
+
}
|
|
17367
|
+
}
|
|
17368
|
+
},
|
|
17369
|
+
"required": true
|
|
17370
|
+
},
|
|
17371
|
+
"responses": {
|
|
17372
|
+
"202": {
|
|
17373
|
+
"content": {
|
|
17374
|
+
"application/json": {
|
|
17375
|
+
"schema": {
|
|
17376
|
+
"additionalProperties": false,
|
|
17377
|
+
"properties": {
|
|
17378
|
+
"contractVersion": {
|
|
17379
|
+
"additionalProperties": false,
|
|
17380
|
+
"properties": {
|
|
17381
|
+
"major": {
|
|
17382
|
+
"exclusiveMinimum": 0,
|
|
17383
|
+
"maximum": 9007199254740991,
|
|
17384
|
+
"type": "integer"
|
|
17385
|
+
},
|
|
17386
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17387
|
+
},
|
|
17388
|
+
"required": ["major", "minor"],
|
|
17389
|
+
"type": "object"
|
|
17390
|
+
},
|
|
17391
|
+
"correlation": {
|
|
17392
|
+
"additionalProperties": false,
|
|
17393
|
+
"properties": {
|
|
17394
|
+
"causationCommandId": {},
|
|
17395
|
+
"parentEventId": {},
|
|
17396
|
+
"traceId": {}
|
|
17397
|
+
},
|
|
17398
|
+
"required": ["traceId"],
|
|
17399
|
+
"type": "object"
|
|
17400
|
+
},
|
|
17401
|
+
"data": {
|
|
17402
|
+
"additionalProperties": false,
|
|
17403
|
+
"properties": {
|
|
17404
|
+
"attemptId": {},
|
|
17405
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
17406
|
+
"executionId": {},
|
|
17407
|
+
"intentId": {
|
|
17408
|
+
"format": "uuid",
|
|
17409
|
+
"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)$",
|
|
17410
|
+
"type": "string"
|
|
17411
|
+
},
|
|
17412
|
+
"replayed": { "type": "boolean" },
|
|
17413
|
+
"runtimeSessionId": {},
|
|
17414
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
|
|
17415
|
+
"state": {
|
|
17416
|
+
"enum": [
|
|
17417
|
+
"starting",
|
|
17418
|
+
"running",
|
|
17419
|
+
"awaiting_input",
|
|
17420
|
+
"cancelling",
|
|
17421
|
+
"completed",
|
|
17422
|
+
"failed",
|
|
17423
|
+
"cancelled",
|
|
17424
|
+
"timed_out",
|
|
17425
|
+
"unknown"
|
|
17426
|
+
],
|
|
17427
|
+
"type": "string"
|
|
17428
|
+
}
|
|
17429
|
+
},
|
|
17430
|
+
"required": [
|
|
17431
|
+
"schemaVersion",
|
|
17432
|
+
"dispatchId",
|
|
17433
|
+
"intentId",
|
|
17434
|
+
"executionId",
|
|
17435
|
+
"attemptId",
|
|
17436
|
+
"runtimeSessionId",
|
|
17437
|
+
"state",
|
|
17438
|
+
"replayed"
|
|
17439
|
+
],
|
|
17440
|
+
"type": "object"
|
|
17441
|
+
},
|
|
17442
|
+
"requestId": {}
|
|
17443
|
+
},
|
|
17444
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
17445
|
+
"type": "object"
|
|
17446
|
+
}
|
|
17447
|
+
}
|
|
17448
|
+
},
|
|
17449
|
+
"description": "Successful response"
|
|
17450
|
+
},
|
|
17451
|
+
"default": {
|
|
17452
|
+
"content": {
|
|
17453
|
+
"application/json": {
|
|
17454
|
+
"schema": {
|
|
17455
|
+
"additionalProperties": false,
|
|
17456
|
+
"properties": {
|
|
17457
|
+
"contractVersion": {
|
|
17458
|
+
"additionalProperties": false,
|
|
17459
|
+
"properties": {
|
|
17460
|
+
"major": {
|
|
17461
|
+
"exclusiveMinimum": 0,
|
|
17462
|
+
"maximum": 9007199254740991,
|
|
17463
|
+
"type": "integer"
|
|
17464
|
+
},
|
|
17465
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17466
|
+
},
|
|
17467
|
+
"required": ["major", "minor"],
|
|
17468
|
+
"type": "object"
|
|
17469
|
+
},
|
|
17470
|
+
"correlation": {
|
|
17471
|
+
"additionalProperties": false,
|
|
17472
|
+
"properties": {
|
|
17473
|
+
"causationCommandId": {},
|
|
17474
|
+
"parentEventId": {},
|
|
17475
|
+
"traceId": {}
|
|
17476
|
+
},
|
|
17477
|
+
"required": ["traceId"],
|
|
17478
|
+
"type": "object"
|
|
17479
|
+
},
|
|
17480
|
+
"error": {
|
|
17481
|
+
"additionalProperties": false,
|
|
17482
|
+
"properties": {
|
|
17483
|
+
"class": {
|
|
17484
|
+
"enum": [
|
|
17485
|
+
"validation",
|
|
17486
|
+
"authentication",
|
|
17487
|
+
"authorization",
|
|
17488
|
+
"conflict",
|
|
17489
|
+
"stale_reference",
|
|
17490
|
+
"capability_mismatch",
|
|
17491
|
+
"runtime_unavailable",
|
|
17492
|
+
"internal"
|
|
17493
|
+
],
|
|
17494
|
+
"type": "string"
|
|
17495
|
+
},
|
|
17496
|
+
"code": {
|
|
17497
|
+
"maxLength": 96,
|
|
17498
|
+
"minLength": 1,
|
|
17499
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
17500
|
+
"type": "string"
|
|
17501
|
+
},
|
|
17502
|
+
"details": {
|
|
17503
|
+
"additionalProperties": {},
|
|
17504
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
17505
|
+
"type": "object"
|
|
17506
|
+
},
|
|
17507
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
17508
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
17509
|
+
"retryable": { "type": "boolean" },
|
|
17510
|
+
"source": {
|
|
17511
|
+
"enum": [
|
|
17512
|
+
"client",
|
|
17513
|
+
"auth",
|
|
17514
|
+
"policy",
|
|
17515
|
+
"runtime",
|
|
17516
|
+
"provider",
|
|
17517
|
+
"persistence",
|
|
17518
|
+
"workflow",
|
|
17519
|
+
"system"
|
|
17520
|
+
],
|
|
17521
|
+
"type": "string"
|
|
17522
|
+
}
|
|
17523
|
+
},
|
|
17524
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
17525
|
+
"type": "object"
|
|
17526
|
+
},
|
|
17527
|
+
"requestId": {}
|
|
17528
|
+
},
|
|
17529
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
17530
|
+
"type": "object"
|
|
17531
|
+
}
|
|
17532
|
+
}
|
|
17533
|
+
},
|
|
17534
|
+
"description": "Normalized error response"
|
|
17535
|
+
}
|
|
17536
|
+
},
|
|
17537
|
+
"security": [{ "serviceBearer": [] }]
|
|
17538
|
+
}
|
|
17539
|
+
},
|
|
17540
|
+
"/v3/pi-durable/lead-dispatches/lookup": {
|
|
17541
|
+
"post": {
|
|
17542
|
+
"operationId": "pi-durable.lead.lookup",
|
|
17543
|
+
"requestBody": {
|
|
17544
|
+
"content": {
|
|
17545
|
+
"application/json": {
|
|
17546
|
+
"schema": {
|
|
17547
|
+
"additionalProperties": false,
|
|
17548
|
+
"properties": {
|
|
17549
|
+
"caller": {
|
|
17550
|
+
"additionalProperties": false,
|
|
17551
|
+
"properties": {
|
|
17552
|
+
"servicePrincipalId": {
|
|
17553
|
+
"maxLength": 64,
|
|
17554
|
+
"minLength": 5,
|
|
17555
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
17556
|
+
"type": "string"
|
|
17557
|
+
}
|
|
17558
|
+
},
|
|
17559
|
+
"required": ["servicePrincipalId"],
|
|
17560
|
+
"type": "object"
|
|
17561
|
+
},
|
|
17562
|
+
"contractVersion": {
|
|
17563
|
+
"additionalProperties": false,
|
|
17564
|
+
"properties": {
|
|
17565
|
+
"major": {
|
|
17566
|
+
"exclusiveMinimum": 0,
|
|
17567
|
+
"maximum": 9007199254740991,
|
|
17568
|
+
"type": "integer"
|
|
17569
|
+
},
|
|
17570
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17571
|
+
},
|
|
17572
|
+
"required": ["major", "minor"],
|
|
17573
|
+
"type": "object"
|
|
17574
|
+
},
|
|
17575
|
+
"correlation": {
|
|
17576
|
+
"additionalProperties": false,
|
|
17577
|
+
"properties": {
|
|
17578
|
+
"causationCommandId": {
|
|
17579
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17580
|
+
"type": "string"
|
|
17581
|
+
},
|
|
17582
|
+
"parentEventId": {
|
|
17583
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17584
|
+
"type": "string"
|
|
17585
|
+
},
|
|
17586
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17587
|
+
},
|
|
17588
|
+
"required": ["traceId"],
|
|
17589
|
+
"type": "object"
|
|
17590
|
+
},
|
|
17591
|
+
"operation": { "const": "pi-durable.lead.lookup", "type": "string" },
|
|
17592
|
+
"parameters": {
|
|
17593
|
+
"additionalProperties": false,
|
|
17594
|
+
"properties": {
|
|
17595
|
+
"intentId": {
|
|
17596
|
+
"format": "uuid",
|
|
17597
|
+
"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)$",
|
|
17598
|
+
"type": "string"
|
|
17599
|
+
}
|
|
17600
|
+
},
|
|
17601
|
+
"required": ["intentId"],
|
|
17602
|
+
"type": "object"
|
|
17603
|
+
},
|
|
17604
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17605
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17606
|
+
"requestedAt": {
|
|
17607
|
+
"format": "date-time",
|
|
17608
|
+
"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))$",
|
|
17609
|
+
"type": "string"
|
|
17610
|
+
},
|
|
17611
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17612
|
+
},
|
|
17613
|
+
"required": [
|
|
17614
|
+
"caller",
|
|
17615
|
+
"contractVersion",
|
|
17616
|
+
"requestId",
|
|
17617
|
+
"workspaceId",
|
|
17618
|
+
"correlation",
|
|
17619
|
+
"operation",
|
|
17620
|
+
"requestedAt",
|
|
17621
|
+
"parameters"
|
|
17622
|
+
],
|
|
17623
|
+
"type": "object"
|
|
17624
|
+
}
|
|
17625
|
+
}
|
|
17626
|
+
},
|
|
17627
|
+
"required": true
|
|
17628
|
+
},
|
|
17629
|
+
"responses": {
|
|
17630
|
+
"200": {
|
|
17631
|
+
"content": {
|
|
17632
|
+
"application/json": {
|
|
17633
|
+
"schema": {
|
|
17634
|
+
"additionalProperties": false,
|
|
17635
|
+
"properties": {
|
|
17636
|
+
"contractVersion": {
|
|
17637
|
+
"additionalProperties": false,
|
|
17638
|
+
"properties": {
|
|
17639
|
+
"major": {
|
|
17640
|
+
"exclusiveMinimum": 0,
|
|
17641
|
+
"maximum": 9007199254740991,
|
|
17642
|
+
"type": "integer"
|
|
17643
|
+
},
|
|
17644
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17645
|
+
},
|
|
17646
|
+
"required": ["major", "minor"],
|
|
17647
|
+
"type": "object"
|
|
17648
|
+
},
|
|
17649
|
+
"correlation": {
|
|
17650
|
+
"additionalProperties": false,
|
|
17651
|
+
"properties": {
|
|
17652
|
+
"causationCommandId": {},
|
|
17653
|
+
"parentEventId": {},
|
|
17654
|
+
"traceId": {}
|
|
17655
|
+
},
|
|
17656
|
+
"required": ["traceId"],
|
|
17657
|
+
"type": "object"
|
|
17658
|
+
},
|
|
17659
|
+
"data": {
|
|
17660
|
+
"additionalProperties": false,
|
|
17661
|
+
"properties": {
|
|
17662
|
+
"intentId": {
|
|
17663
|
+
"format": "uuid",
|
|
17664
|
+
"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)$",
|
|
17665
|
+
"type": "string"
|
|
17666
|
+
},
|
|
17667
|
+
"receipt": {
|
|
17668
|
+
"anyOf": [
|
|
17669
|
+
{
|
|
17670
|
+
"additionalProperties": false,
|
|
17671
|
+
"properties": {
|
|
17672
|
+
"attemptId": {},
|
|
17673
|
+
"dispatchId": {
|
|
17674
|
+
"pattern": "^dispatch_[a-f0-9]{32}$",
|
|
17675
|
+
"type": "string"
|
|
17676
|
+
},
|
|
17677
|
+
"executionId": {},
|
|
17678
|
+
"runtimeSessionId": {},
|
|
17679
|
+
"state": {
|
|
17680
|
+
"enum": ["dispatching", "dispatched", "reconciliation_required"],
|
|
17681
|
+
"type": "string"
|
|
17682
|
+
}
|
|
17683
|
+
},
|
|
17684
|
+
"required": ["dispatchId", "executionId", "attemptId", "state"],
|
|
17685
|
+
"type": "object"
|
|
17686
|
+
},
|
|
17687
|
+
{ "type": "null" }
|
|
17688
|
+
]
|
|
17689
|
+
},
|
|
17690
|
+
"schemaVersion": { "const": "pi-lead-lookup/v1", "type": "string" },
|
|
17691
|
+
"workspaceId": {}
|
|
17692
|
+
},
|
|
17693
|
+
"required": ["schemaVersion", "workspaceId", "intentId", "receipt"],
|
|
17694
|
+
"type": "object"
|
|
17695
|
+
},
|
|
17696
|
+
"requestId": {}
|
|
17697
|
+
},
|
|
17698
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
17699
|
+
"type": "object"
|
|
17700
|
+
}
|
|
17701
|
+
}
|
|
17702
|
+
},
|
|
17703
|
+
"description": "Successful response"
|
|
17704
|
+
},
|
|
17705
|
+
"default": {
|
|
17706
|
+
"content": {
|
|
17707
|
+
"application/json": {
|
|
17708
|
+
"schema": {
|
|
17709
|
+
"additionalProperties": false,
|
|
17710
|
+
"properties": {
|
|
17711
|
+
"contractVersion": {
|
|
17712
|
+
"additionalProperties": false,
|
|
17713
|
+
"properties": {
|
|
17714
|
+
"major": {
|
|
17715
|
+
"exclusiveMinimum": 0,
|
|
17716
|
+
"maximum": 9007199254740991,
|
|
17717
|
+
"type": "integer"
|
|
17718
|
+
},
|
|
17719
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17720
|
+
},
|
|
17721
|
+
"required": ["major", "minor"],
|
|
17722
|
+
"type": "object"
|
|
17723
|
+
},
|
|
17724
|
+
"correlation": {
|
|
17725
|
+
"additionalProperties": false,
|
|
17726
|
+
"properties": {
|
|
17727
|
+
"causationCommandId": {},
|
|
17728
|
+
"parentEventId": {},
|
|
17729
|
+
"traceId": {}
|
|
17730
|
+
},
|
|
17731
|
+
"required": ["traceId"],
|
|
17732
|
+
"type": "object"
|
|
17733
|
+
},
|
|
17734
|
+
"error": {
|
|
17735
|
+
"additionalProperties": false,
|
|
17736
|
+
"properties": {
|
|
17737
|
+
"class": {
|
|
17738
|
+
"enum": [
|
|
17739
|
+
"validation",
|
|
17740
|
+
"authentication",
|
|
17741
|
+
"authorization",
|
|
17742
|
+
"conflict",
|
|
17743
|
+
"stale_reference",
|
|
17744
|
+
"capability_mismatch",
|
|
17745
|
+
"runtime_unavailable",
|
|
17746
|
+
"internal"
|
|
17747
|
+
],
|
|
17748
|
+
"type": "string"
|
|
17749
|
+
},
|
|
17750
|
+
"code": {
|
|
17751
|
+
"maxLength": 96,
|
|
17752
|
+
"minLength": 1,
|
|
17753
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
17754
|
+
"type": "string"
|
|
17755
|
+
},
|
|
17756
|
+
"details": {
|
|
17757
|
+
"additionalProperties": {},
|
|
17758
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
17759
|
+
"type": "object"
|
|
17760
|
+
},
|
|
17761
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
17762
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
17763
|
+
"retryable": { "type": "boolean" },
|
|
17764
|
+
"source": {
|
|
17765
|
+
"enum": [
|
|
17766
|
+
"client",
|
|
17767
|
+
"auth",
|
|
17768
|
+
"policy",
|
|
17769
|
+
"runtime",
|
|
17770
|
+
"provider",
|
|
17771
|
+
"persistence",
|
|
17772
|
+
"workflow",
|
|
17773
|
+
"system"
|
|
17774
|
+
],
|
|
17775
|
+
"type": "string"
|
|
17776
|
+
}
|
|
17777
|
+
},
|
|
17778
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
17779
|
+
"type": "object"
|
|
17780
|
+
},
|
|
17781
|
+
"requestId": {}
|
|
17782
|
+
},
|
|
17783
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
17784
|
+
"type": "object"
|
|
17785
|
+
}
|
|
17786
|
+
}
|
|
17787
|
+
},
|
|
17788
|
+
"description": "Normalized error response"
|
|
17789
|
+
}
|
|
17790
|
+
},
|
|
17791
|
+
"security": [{ "serviceBearer": [] }]
|
|
17792
|
+
}
|
|
17793
|
+
},
|
|
17794
|
+
"/v3/pi-durable/lead-dispatches/prepare": {
|
|
17795
|
+
"post": {
|
|
17796
|
+
"operationId": "pi-durable.lead.prepare",
|
|
17797
|
+
"requestBody": {
|
|
17798
|
+
"content": {
|
|
17799
|
+
"application/json": {
|
|
17800
|
+
"schema": {
|
|
17801
|
+
"additionalProperties": false,
|
|
17802
|
+
"properties": {
|
|
17803
|
+
"caller": {
|
|
17804
|
+
"additionalProperties": false,
|
|
17805
|
+
"properties": {
|
|
17806
|
+
"servicePrincipalId": {
|
|
17807
|
+
"maxLength": 64,
|
|
17808
|
+
"minLength": 5,
|
|
17809
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
17810
|
+
"type": "string"
|
|
17811
|
+
}
|
|
17812
|
+
},
|
|
17813
|
+
"required": ["servicePrincipalId"],
|
|
17814
|
+
"type": "object"
|
|
17815
|
+
},
|
|
17816
|
+
"commandId": { "pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17817
|
+
"contractVersion": {
|
|
17818
|
+
"additionalProperties": false,
|
|
17819
|
+
"properties": {
|
|
17820
|
+
"major": {
|
|
17821
|
+
"exclusiveMinimum": 0,
|
|
17822
|
+
"maximum": 9007199254740991,
|
|
17823
|
+
"type": "integer"
|
|
17824
|
+
},
|
|
17825
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17826
|
+
},
|
|
17827
|
+
"required": ["major", "minor"],
|
|
17828
|
+
"type": "object"
|
|
17829
|
+
},
|
|
17830
|
+
"correlation": {
|
|
17831
|
+
"additionalProperties": false,
|
|
17832
|
+
"properties": {
|
|
17833
|
+
"causationCommandId": {
|
|
17834
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17835
|
+
"type": "string"
|
|
17836
|
+
},
|
|
17837
|
+
"parentEventId": {
|
|
17838
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
17839
|
+
"type": "string"
|
|
17840
|
+
},
|
|
17841
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17842
|
+
},
|
|
17843
|
+
"required": ["traceId"],
|
|
17844
|
+
"type": "object"
|
|
17845
|
+
},
|
|
17846
|
+
"idempotencyKey": {
|
|
17847
|
+
"maxLength": 128,
|
|
17848
|
+
"minLength": 16,
|
|
17849
|
+
"pattern": "^[A-Za-z0-9._:-]+$",
|
|
17850
|
+
"type": "string"
|
|
17851
|
+
},
|
|
17852
|
+
"issuedAt": {
|
|
17853
|
+
"format": "date-time",
|
|
17854
|
+
"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))$",
|
|
17855
|
+
"type": "string"
|
|
17856
|
+
},
|
|
17857
|
+
"operation": { "const": "pi-durable.lead.prepare", "type": "string" },
|
|
17858
|
+
"payload": {
|
|
17859
|
+
"additionalProperties": false,
|
|
17860
|
+
"properties": {
|
|
17861
|
+
"intentId": {
|
|
17862
|
+
"format": "uuid",
|
|
17863
|
+
"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)$",
|
|
17864
|
+
"type": "string"
|
|
17865
|
+
}
|
|
17866
|
+
},
|
|
17867
|
+
"required": ["intentId"],
|
|
17868
|
+
"type": "object"
|
|
17869
|
+
},
|
|
17870
|
+
"payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
|
|
17871
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17872
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
17873
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
17874
|
+
},
|
|
17875
|
+
"required": [
|
|
17876
|
+
"caller",
|
|
17877
|
+
"contractVersion",
|
|
17878
|
+
"requestId",
|
|
17879
|
+
"workspaceId",
|
|
17880
|
+
"correlation",
|
|
17881
|
+
"commandId",
|
|
17882
|
+
"idempotencyKey",
|
|
17883
|
+
"payloadHash",
|
|
17884
|
+
"operation",
|
|
17885
|
+
"issuedAt",
|
|
17886
|
+
"payload"
|
|
17887
|
+
],
|
|
17888
|
+
"type": "object"
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
},
|
|
17892
|
+
"required": true
|
|
17893
|
+
},
|
|
17894
|
+
"responses": {
|
|
17895
|
+
"200": {
|
|
17896
|
+
"content": {
|
|
17897
|
+
"application/json": {
|
|
17898
|
+
"schema": {
|
|
17899
|
+
"additionalProperties": false,
|
|
17900
|
+
"properties": {
|
|
17901
|
+
"contractVersion": {
|
|
17902
|
+
"additionalProperties": false,
|
|
17903
|
+
"properties": {
|
|
17904
|
+
"major": {
|
|
17905
|
+
"exclusiveMinimum": 0,
|
|
17906
|
+
"maximum": 9007199254740991,
|
|
17907
|
+
"type": "integer"
|
|
17908
|
+
},
|
|
17909
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
17910
|
+
},
|
|
17911
|
+
"required": ["major", "minor"],
|
|
17912
|
+
"type": "object"
|
|
17913
|
+
},
|
|
17914
|
+
"correlation": {
|
|
17915
|
+
"additionalProperties": false,
|
|
17916
|
+
"properties": {
|
|
17917
|
+
"causationCommandId": {},
|
|
17918
|
+
"parentEventId": {},
|
|
17919
|
+
"traceId": {}
|
|
17920
|
+
},
|
|
17921
|
+
"required": ["traceId"],
|
|
17922
|
+
"type": "object"
|
|
17923
|
+
},
|
|
17924
|
+
"data": {
|
|
17925
|
+
"additionalProperties": false,
|
|
17926
|
+
"properties": {
|
|
17927
|
+
"attemptId": {},
|
|
17928
|
+
"executionId": {},
|
|
17929
|
+
"expiresAt": {
|
|
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
|
+
},
|
|
17934
|
+
"funding": {
|
|
17935
|
+
"additionalProperties": false,
|
|
17936
|
+
"properties": {
|
|
17937
|
+
"accountRef": {
|
|
17938
|
+
"maxLength": 256,
|
|
17939
|
+
"minLength": 1,
|
|
17940
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
17941
|
+
"type": "string"
|
|
17942
|
+
},
|
|
17943
|
+
"attemptId": {},
|
|
17944
|
+
"authKind": {
|
|
17945
|
+
"enum": ["api_key", "provider_subscription", "local_runtime"],
|
|
17946
|
+
"type": "string"
|
|
17947
|
+
},
|
|
17948
|
+
"authorityRevision": {
|
|
17949
|
+
"exclusiveMinimum": 0,
|
|
17950
|
+
"maximum": 9007199254740991,
|
|
17951
|
+
"type": "integer"
|
|
17952
|
+
},
|
|
17953
|
+
"authorizationRef": {
|
|
17954
|
+
"maxLength": 256,
|
|
17955
|
+
"minLength": 1,
|
|
17956
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
17957
|
+
"type": "string"
|
|
17958
|
+
},
|
|
17959
|
+
"executionId": {},
|
|
17960
|
+
"expiresAt": {
|
|
17961
|
+
"format": "date-time",
|
|
17962
|
+
"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))$",
|
|
17963
|
+
"type": "string"
|
|
17964
|
+
},
|
|
17965
|
+
"fundingOwner": {
|
|
17966
|
+
"additionalProperties": false,
|
|
17967
|
+
"properties": {
|
|
17968
|
+
"displayName": {
|
|
17969
|
+
"maxLength": 128,
|
|
17970
|
+
"minLength": 1,
|
|
17971
|
+
"type": "string"
|
|
17972
|
+
},
|
|
17973
|
+
"evidenceRef": {
|
|
17974
|
+
"maxLength": 256,
|
|
17975
|
+
"minLength": 1,
|
|
17976
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
17977
|
+
"type": "string"
|
|
17978
|
+
},
|
|
17979
|
+
"kind": {
|
|
17980
|
+
"enum": ["provider_account", "workspace_account", "adea_account"],
|
|
17981
|
+
"type": "string"
|
|
17982
|
+
},
|
|
17983
|
+
"ownerRef": {
|
|
17984
|
+
"maxLength": 256,
|
|
17985
|
+
"minLength": 1,
|
|
17986
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
|
|
17987
|
+
"type": "string"
|
|
17988
|
+
},
|
|
17989
|
+
"revision": {
|
|
17990
|
+
"exclusiveMinimum": 0,
|
|
17991
|
+
"maximum": 9007199254740991,
|
|
17992
|
+
"type": "integer"
|
|
17993
|
+
}
|
|
17994
|
+
},
|
|
17995
|
+
"required": [
|
|
17996
|
+
"ownerRef",
|
|
17997
|
+
"kind",
|
|
17998
|
+
"displayName",
|
|
17999
|
+
"revision",
|
|
18000
|
+
"evidenceRef"
|
|
18001
|
+
],
|
|
18002
|
+
"type": "object"
|
|
18003
|
+
},
|
|
18004
|
+
"fundingSource": {
|
|
18005
|
+
"enum": ["hq_managed", "external_subscription", "byo_api"],
|
|
18006
|
+
"type": "string"
|
|
18007
|
+
},
|
|
18008
|
+
"provider": {
|
|
18009
|
+
"maxLength": 128,
|
|
18010
|
+
"minLength": 1,
|
|
18011
|
+
"pattern": "^[a-z][a-z0-9.-]*$",
|
|
18012
|
+
"type": "string"
|
|
18013
|
+
},
|
|
18014
|
+
"providerModel": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18015
|
+
"schemaVersion": {
|
|
18016
|
+
"const": "model-funding-display/v1",
|
|
18017
|
+
"type": "string"
|
|
18018
|
+
},
|
|
18019
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
18020
|
+
"selectionRevision": {
|
|
18021
|
+
"exclusiveMinimum": 0,
|
|
18022
|
+
"maximum": 9007199254740991,
|
|
18023
|
+
"type": "integer"
|
|
18024
|
+
},
|
|
18025
|
+
"state": { "const": "ready", "type": "string" },
|
|
18026
|
+
"workspaceId": {}
|
|
18027
|
+
},
|
|
18028
|
+
"required": [
|
|
18029
|
+
"schemaVersion",
|
|
18030
|
+
"workspaceId",
|
|
18031
|
+
"executionId",
|
|
18032
|
+
"attemptId",
|
|
18033
|
+
"selectionRef",
|
|
18034
|
+
"selectionRevision",
|
|
18035
|
+
"state",
|
|
18036
|
+
"provider",
|
|
18037
|
+
"providerModel",
|
|
18038
|
+
"accountRef",
|
|
18039
|
+
"authKind",
|
|
18040
|
+
"fundingSource",
|
|
18041
|
+
"fundingOwner",
|
|
18042
|
+
"authorizationRef",
|
|
18043
|
+
"authorityRevision",
|
|
18044
|
+
"expiresAt"
|
|
18045
|
+
],
|
|
18046
|
+
"type": "object"
|
|
18047
|
+
},
|
|
18048
|
+
"intentId": {
|
|
18049
|
+
"format": "uuid",
|
|
18050
|
+
"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)$",
|
|
18051
|
+
"type": "string"
|
|
18052
|
+
},
|
|
18053
|
+
"preparationRef": { "pattern": "^prep_[a-f0-9]{32}$", "type": "string" },
|
|
18054
|
+
"replayed": { "type": "boolean" },
|
|
18055
|
+
"schemaVersion": { "const": "pi-lead-preparation/v1", "type": "string" },
|
|
18056
|
+
"selectionRef": { "pattern": "^msel_[a-f0-9]{32}$", "type": "string" },
|
|
18057
|
+
"selectionRevision": {
|
|
18058
|
+
"exclusiveMinimum": 0,
|
|
18059
|
+
"maximum": 9007199254740991,
|
|
18060
|
+
"type": "integer"
|
|
18061
|
+
}
|
|
18062
|
+
},
|
|
18063
|
+
"required": [
|
|
18064
|
+
"schemaVersion",
|
|
18065
|
+
"preparationRef",
|
|
18066
|
+
"intentId",
|
|
18067
|
+
"executionId",
|
|
18068
|
+
"attemptId",
|
|
18069
|
+
"selectionRef",
|
|
18070
|
+
"selectionRevision",
|
|
18071
|
+
"funding",
|
|
18072
|
+
"expiresAt",
|
|
18073
|
+
"replayed"
|
|
18074
|
+
],
|
|
18075
|
+
"type": "object"
|
|
18076
|
+
},
|
|
18077
|
+
"requestId": {}
|
|
18078
|
+
},
|
|
18079
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18080
|
+
"type": "object"
|
|
18081
|
+
}
|
|
18082
|
+
}
|
|
18083
|
+
},
|
|
18084
|
+
"description": "Successful response"
|
|
18085
|
+
},
|
|
18086
|
+
"default": {
|
|
18087
|
+
"content": {
|
|
18088
|
+
"application/json": {
|
|
18089
|
+
"schema": {
|
|
18090
|
+
"additionalProperties": false,
|
|
18091
|
+
"properties": {
|
|
18092
|
+
"contractVersion": {
|
|
18093
|
+
"additionalProperties": false,
|
|
18094
|
+
"properties": {
|
|
18095
|
+
"major": {
|
|
18096
|
+
"exclusiveMinimum": 0,
|
|
18097
|
+
"maximum": 9007199254740991,
|
|
18098
|
+
"type": "integer"
|
|
18099
|
+
},
|
|
18100
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18101
|
+
},
|
|
18102
|
+
"required": ["major", "minor"],
|
|
18103
|
+
"type": "object"
|
|
18104
|
+
},
|
|
18105
|
+
"correlation": {
|
|
18106
|
+
"additionalProperties": false,
|
|
18107
|
+
"properties": {
|
|
18108
|
+
"causationCommandId": {},
|
|
18109
|
+
"parentEventId": {},
|
|
18110
|
+
"traceId": {}
|
|
18111
|
+
},
|
|
18112
|
+
"required": ["traceId"],
|
|
18113
|
+
"type": "object"
|
|
18114
|
+
},
|
|
18115
|
+
"error": {
|
|
18116
|
+
"additionalProperties": false,
|
|
18117
|
+
"properties": {
|
|
18118
|
+
"class": {
|
|
18119
|
+
"enum": [
|
|
18120
|
+
"validation",
|
|
18121
|
+
"authentication",
|
|
18122
|
+
"authorization",
|
|
18123
|
+
"conflict",
|
|
18124
|
+
"stale_reference",
|
|
18125
|
+
"capability_mismatch",
|
|
18126
|
+
"runtime_unavailable",
|
|
18127
|
+
"internal"
|
|
18128
|
+
],
|
|
18129
|
+
"type": "string"
|
|
18130
|
+
},
|
|
18131
|
+
"code": {
|
|
18132
|
+
"maxLength": 96,
|
|
18133
|
+
"minLength": 1,
|
|
18134
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18135
|
+
"type": "string"
|
|
18136
|
+
},
|
|
18137
|
+
"details": {
|
|
18138
|
+
"additionalProperties": {},
|
|
18139
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18140
|
+
"type": "object"
|
|
18141
|
+
},
|
|
18142
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18143
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18144
|
+
"retryable": { "type": "boolean" },
|
|
18145
|
+
"source": {
|
|
18146
|
+
"enum": [
|
|
18147
|
+
"client",
|
|
18148
|
+
"auth",
|
|
18149
|
+
"policy",
|
|
18150
|
+
"runtime",
|
|
18151
|
+
"provider",
|
|
18152
|
+
"persistence",
|
|
18153
|
+
"workflow",
|
|
18154
|
+
"system"
|
|
18155
|
+
],
|
|
18156
|
+
"type": "string"
|
|
18157
|
+
}
|
|
18158
|
+
},
|
|
18159
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18160
|
+
"type": "object"
|
|
18161
|
+
},
|
|
18162
|
+
"requestId": {}
|
|
18163
|
+
},
|
|
18164
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18165
|
+
"type": "object"
|
|
18166
|
+
}
|
|
18167
|
+
}
|
|
18168
|
+
},
|
|
18169
|
+
"description": "Normalized error response"
|
|
18170
|
+
}
|
|
18171
|
+
},
|
|
18172
|
+
"security": [{ "serviceBearer": [] }]
|
|
18173
|
+
}
|
|
18174
|
+
},
|
|
18175
|
+
"/v3/pi-durable/lead-dispatches/progress": {
|
|
18176
|
+
"post": {
|
|
18177
|
+
"operationId": "pi-durable.lead.progress",
|
|
18178
|
+
"requestBody": {
|
|
18179
|
+
"content": {
|
|
18180
|
+
"application/json": {
|
|
18181
|
+
"schema": {
|
|
18182
|
+
"additionalProperties": false,
|
|
18183
|
+
"properties": {
|
|
18184
|
+
"caller": {
|
|
18185
|
+
"additionalProperties": false,
|
|
18186
|
+
"properties": {
|
|
18187
|
+
"servicePrincipalId": {
|
|
18188
|
+
"maxLength": 64,
|
|
18189
|
+
"minLength": 5,
|
|
18190
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
18191
|
+
"type": "string"
|
|
18192
|
+
}
|
|
18193
|
+
},
|
|
18194
|
+
"required": ["servicePrincipalId"],
|
|
18195
|
+
"type": "object"
|
|
18196
|
+
},
|
|
18197
|
+
"contractVersion": {
|
|
18198
|
+
"additionalProperties": false,
|
|
18199
|
+
"properties": {
|
|
18200
|
+
"major": {
|
|
18201
|
+
"exclusiveMinimum": 0,
|
|
18202
|
+
"maximum": 9007199254740991,
|
|
18203
|
+
"type": "integer"
|
|
18204
|
+
},
|
|
18205
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18206
|
+
},
|
|
18207
|
+
"required": ["major", "minor"],
|
|
18208
|
+
"type": "object"
|
|
18209
|
+
},
|
|
18210
|
+
"correlation": {
|
|
18211
|
+
"additionalProperties": false,
|
|
18212
|
+
"properties": {
|
|
18213
|
+
"causationCommandId": {
|
|
18214
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18215
|
+
"type": "string"
|
|
18216
|
+
},
|
|
18217
|
+
"parentEventId": {
|
|
18218
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18219
|
+
"type": "string"
|
|
18220
|
+
},
|
|
18221
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18222
|
+
},
|
|
18223
|
+
"required": ["traceId"],
|
|
18224
|
+
"type": "object"
|
|
18225
|
+
},
|
|
18226
|
+
"operation": { "const": "pi-durable.lead.progress", "type": "string" },
|
|
18227
|
+
"parameters": {
|
|
18228
|
+
"additionalProperties": false,
|
|
18229
|
+
"properties": {
|
|
18230
|
+
"afterSequence": {
|
|
18231
|
+
"maximum": 9007199254740991,
|
|
18232
|
+
"minimum": 0,
|
|
18233
|
+
"type": "integer"
|
|
18234
|
+
},
|
|
18235
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
18236
|
+
},
|
|
18237
|
+
"required": ["dispatchId"],
|
|
18238
|
+
"type": "object"
|
|
18239
|
+
},
|
|
18240
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18241
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18242
|
+
"requestedAt": {
|
|
18243
|
+
"format": "date-time",
|
|
18244
|
+
"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))$",
|
|
18245
|
+
"type": "string"
|
|
18246
|
+
},
|
|
18247
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18248
|
+
},
|
|
18249
|
+
"required": [
|
|
18250
|
+
"caller",
|
|
18251
|
+
"contractVersion",
|
|
18252
|
+
"requestId",
|
|
18253
|
+
"workspaceId",
|
|
18254
|
+
"correlation",
|
|
18255
|
+
"operation",
|
|
18256
|
+
"requestedAt",
|
|
18257
|
+
"parameters"
|
|
18258
|
+
],
|
|
18259
|
+
"type": "object"
|
|
18260
|
+
}
|
|
18261
|
+
}
|
|
18262
|
+
},
|
|
18263
|
+
"required": true
|
|
18264
|
+
},
|
|
18265
|
+
"responses": {
|
|
18266
|
+
"200": {
|
|
18267
|
+
"content": {
|
|
18268
|
+
"application/json": {
|
|
18269
|
+
"schema": {
|
|
18270
|
+
"$defs": {
|
|
18271
|
+
"__schema0": {
|
|
18272
|
+
"anyOf": [
|
|
18273
|
+
{ "type": "string" },
|
|
18274
|
+
{ "type": "number" },
|
|
18275
|
+
{ "type": "boolean" },
|
|
18276
|
+
{ "type": "null" },
|
|
18277
|
+
{ "items": { "$ref": "#/$defs/__schema0" }, "type": "array" },
|
|
18278
|
+
{
|
|
18279
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
18280
|
+
"propertyNames": { "type": "string" },
|
|
18281
|
+
"type": "object"
|
|
18282
|
+
}
|
|
18283
|
+
]
|
|
18284
|
+
}
|
|
18285
|
+
},
|
|
18286
|
+
"additionalProperties": false,
|
|
18287
|
+
"properties": {
|
|
18288
|
+
"contractVersion": {
|
|
18289
|
+
"additionalProperties": false,
|
|
18290
|
+
"properties": {
|
|
18291
|
+
"major": {
|
|
18292
|
+
"exclusiveMinimum": 0,
|
|
18293
|
+
"maximum": 9007199254740991,
|
|
18294
|
+
"type": "integer"
|
|
18295
|
+
},
|
|
18296
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18297
|
+
},
|
|
18298
|
+
"required": ["major", "minor"],
|
|
18299
|
+
"type": "object"
|
|
18300
|
+
},
|
|
18301
|
+
"correlation": {
|
|
18302
|
+
"additionalProperties": false,
|
|
18303
|
+
"properties": {
|
|
18304
|
+
"causationCommandId": {},
|
|
18305
|
+
"parentEventId": {},
|
|
18306
|
+
"traceId": {}
|
|
18307
|
+
},
|
|
18308
|
+
"required": ["traceId"],
|
|
18309
|
+
"type": "object"
|
|
18310
|
+
},
|
|
18311
|
+
"data": {
|
|
18312
|
+
"additionalProperties": false,
|
|
18313
|
+
"properties": {
|
|
18314
|
+
"attemptId": {},
|
|
18315
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18316
|
+
"events": {
|
|
18317
|
+
"items": {
|
|
18318
|
+
"additionalProperties": false,
|
|
18319
|
+
"properties": {
|
|
18320
|
+
"data": {
|
|
18321
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
18322
|
+
"propertyNames": { "type": "string" },
|
|
18323
|
+
"type": "object"
|
|
18324
|
+
},
|
|
18325
|
+
"handleId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18326
|
+
"occurredAt": {
|
|
18327
|
+
"format": "date-time",
|
|
18328
|
+
"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))$",
|
|
18329
|
+
"type": "string"
|
|
18330
|
+
},
|
|
18331
|
+
"sequence": {
|
|
18332
|
+
"exclusiveMinimum": 0,
|
|
18333
|
+
"maximum": 9007199254740991,
|
|
18334
|
+
"type": "integer"
|
|
18335
|
+
},
|
|
18336
|
+
"type": {
|
|
18337
|
+
"enum": ["status", "output", "interaction", "usage", "artifact"],
|
|
18338
|
+
"type": "string"
|
|
18339
|
+
}
|
|
18340
|
+
},
|
|
18341
|
+
"required": ["handleId", "sequence", "occurredAt", "type", "data"],
|
|
18342
|
+
"type": "object"
|
|
18343
|
+
},
|
|
18344
|
+
"maxItems": 256,
|
|
18345
|
+
"type": "array"
|
|
18346
|
+
},
|
|
18347
|
+
"executionId": {},
|
|
18348
|
+
"intentId": {
|
|
18349
|
+
"format": "uuid",
|
|
18350
|
+
"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)$",
|
|
18351
|
+
"type": "string"
|
|
18352
|
+
},
|
|
18353
|
+
"nextSequence": {
|
|
18354
|
+
"maximum": 9007199254740991,
|
|
18355
|
+
"minimum": 0,
|
|
18356
|
+
"type": "integer"
|
|
18357
|
+
},
|
|
18358
|
+
"runtimeSessionId": {},
|
|
18359
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" }
|
|
18360
|
+
},
|
|
18361
|
+
"required": [
|
|
18362
|
+
"schemaVersion",
|
|
18363
|
+
"dispatchId",
|
|
18364
|
+
"intentId",
|
|
18365
|
+
"executionId",
|
|
18366
|
+
"attemptId",
|
|
18367
|
+
"runtimeSessionId",
|
|
18368
|
+
"events",
|
|
18369
|
+
"nextSequence"
|
|
18370
|
+
],
|
|
18371
|
+
"type": "object"
|
|
18372
|
+
},
|
|
18373
|
+
"requestId": {}
|
|
18374
|
+
},
|
|
18375
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18376
|
+
"type": "object"
|
|
18377
|
+
}
|
|
18378
|
+
}
|
|
18379
|
+
},
|
|
18380
|
+
"description": "Successful response"
|
|
18381
|
+
},
|
|
18382
|
+
"default": {
|
|
18383
|
+
"content": {
|
|
18384
|
+
"application/json": {
|
|
18385
|
+
"schema": {
|
|
18386
|
+
"additionalProperties": false,
|
|
18387
|
+
"properties": {
|
|
18388
|
+
"contractVersion": {
|
|
18389
|
+
"additionalProperties": false,
|
|
18390
|
+
"properties": {
|
|
18391
|
+
"major": {
|
|
18392
|
+
"exclusiveMinimum": 0,
|
|
18393
|
+
"maximum": 9007199254740991,
|
|
18394
|
+
"type": "integer"
|
|
18395
|
+
},
|
|
18396
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18397
|
+
},
|
|
18398
|
+
"required": ["major", "minor"],
|
|
18399
|
+
"type": "object"
|
|
18400
|
+
},
|
|
18401
|
+
"correlation": {
|
|
18402
|
+
"additionalProperties": false,
|
|
18403
|
+
"properties": {
|
|
18404
|
+
"causationCommandId": {},
|
|
18405
|
+
"parentEventId": {},
|
|
18406
|
+
"traceId": {}
|
|
18407
|
+
},
|
|
18408
|
+
"required": ["traceId"],
|
|
18409
|
+
"type": "object"
|
|
18410
|
+
},
|
|
18411
|
+
"error": {
|
|
18412
|
+
"additionalProperties": false,
|
|
18413
|
+
"properties": {
|
|
18414
|
+
"class": {
|
|
18415
|
+
"enum": [
|
|
18416
|
+
"validation",
|
|
18417
|
+
"authentication",
|
|
18418
|
+
"authorization",
|
|
18419
|
+
"conflict",
|
|
18420
|
+
"stale_reference",
|
|
18421
|
+
"capability_mismatch",
|
|
18422
|
+
"runtime_unavailable",
|
|
18423
|
+
"internal"
|
|
18424
|
+
],
|
|
18425
|
+
"type": "string"
|
|
18426
|
+
},
|
|
18427
|
+
"code": {
|
|
18428
|
+
"maxLength": 96,
|
|
18429
|
+
"minLength": 1,
|
|
18430
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18431
|
+
"type": "string"
|
|
18432
|
+
},
|
|
18433
|
+
"details": {
|
|
18434
|
+
"additionalProperties": {},
|
|
18435
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18436
|
+
"type": "object"
|
|
18437
|
+
},
|
|
18438
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18439
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18440
|
+
"retryable": { "type": "boolean" },
|
|
18441
|
+
"source": {
|
|
18442
|
+
"enum": [
|
|
18443
|
+
"client",
|
|
18444
|
+
"auth",
|
|
18445
|
+
"policy",
|
|
18446
|
+
"runtime",
|
|
18447
|
+
"provider",
|
|
18448
|
+
"persistence",
|
|
18449
|
+
"workflow",
|
|
18450
|
+
"system"
|
|
18451
|
+
],
|
|
18452
|
+
"type": "string"
|
|
18453
|
+
}
|
|
18454
|
+
},
|
|
18455
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18456
|
+
"type": "object"
|
|
18457
|
+
},
|
|
18458
|
+
"requestId": {}
|
|
18459
|
+
},
|
|
18460
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
18461
|
+
"type": "object"
|
|
18462
|
+
}
|
|
18463
|
+
}
|
|
18464
|
+
},
|
|
18465
|
+
"description": "Normalized error response"
|
|
18466
|
+
}
|
|
18467
|
+
},
|
|
18468
|
+
"security": [{ "serviceBearer": [] }]
|
|
18469
|
+
}
|
|
18470
|
+
},
|
|
18471
|
+
"/v3/pi-durable/lead-dispatches/status": {
|
|
18472
|
+
"post": {
|
|
18473
|
+
"operationId": "pi-durable.lead.status",
|
|
18474
|
+
"requestBody": {
|
|
18475
|
+
"content": {
|
|
18476
|
+
"application/json": {
|
|
18477
|
+
"schema": {
|
|
18478
|
+
"additionalProperties": false,
|
|
18479
|
+
"properties": {
|
|
18480
|
+
"caller": {
|
|
18481
|
+
"additionalProperties": false,
|
|
18482
|
+
"properties": {
|
|
18483
|
+
"servicePrincipalId": {
|
|
18484
|
+
"maxLength": 64,
|
|
18485
|
+
"minLength": 5,
|
|
18486
|
+
"pattern": "^svc_[a-z][a-z0-9-]*$",
|
|
18487
|
+
"type": "string"
|
|
18488
|
+
}
|
|
18489
|
+
},
|
|
18490
|
+
"required": ["servicePrincipalId"],
|
|
18491
|
+
"type": "object"
|
|
18492
|
+
},
|
|
18493
|
+
"contractVersion": {
|
|
18494
|
+
"additionalProperties": false,
|
|
18495
|
+
"properties": {
|
|
18496
|
+
"major": {
|
|
18497
|
+
"exclusiveMinimum": 0,
|
|
18498
|
+
"maximum": 9007199254740991,
|
|
18499
|
+
"type": "integer"
|
|
18500
|
+
},
|
|
18501
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18502
|
+
},
|
|
18503
|
+
"required": ["major", "minor"],
|
|
18504
|
+
"type": "object"
|
|
18505
|
+
},
|
|
18506
|
+
"correlation": {
|
|
18507
|
+
"additionalProperties": false,
|
|
18508
|
+
"properties": {
|
|
18509
|
+
"causationCommandId": {
|
|
18510
|
+
"pattern": "^cmd_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18511
|
+
"type": "string"
|
|
18512
|
+
},
|
|
18513
|
+
"parentEventId": {
|
|
18514
|
+
"pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$",
|
|
18515
|
+
"type": "string"
|
|
18516
|
+
},
|
|
18517
|
+
"traceId": { "pattern": "^trc_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18518
|
+
},
|
|
18519
|
+
"required": ["traceId"],
|
|
18520
|
+
"type": "object"
|
|
18521
|
+
},
|
|
18522
|
+
"operation": { "const": "pi-durable.lead.status", "type": "string" },
|
|
18523
|
+
"parameters": {
|
|
18524
|
+
"additionalProperties": false,
|
|
18525
|
+
"properties": {
|
|
18526
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" }
|
|
18527
|
+
},
|
|
18528
|
+
"required": ["dispatchId"],
|
|
18529
|
+
"type": "object"
|
|
18530
|
+
},
|
|
18531
|
+
"projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18532
|
+
"requestId": { "pattern": "^req_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
|
|
18533
|
+
"requestedAt": {
|
|
18534
|
+
"format": "date-time",
|
|
18535
|
+
"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))$",
|
|
18536
|
+
"type": "string"
|
|
18537
|
+
},
|
|
18538
|
+
"workspaceId": { "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
|
|
18539
|
+
},
|
|
18540
|
+
"required": [
|
|
18541
|
+
"caller",
|
|
18542
|
+
"contractVersion",
|
|
18543
|
+
"requestId",
|
|
18544
|
+
"workspaceId",
|
|
18545
|
+
"correlation",
|
|
18546
|
+
"operation",
|
|
18547
|
+
"requestedAt",
|
|
18548
|
+
"parameters"
|
|
18549
|
+
],
|
|
18550
|
+
"type": "object"
|
|
18551
|
+
}
|
|
18552
|
+
}
|
|
18553
|
+
},
|
|
18554
|
+
"required": true
|
|
18555
|
+
},
|
|
18556
|
+
"responses": {
|
|
18557
|
+
"200": {
|
|
18558
|
+
"content": {
|
|
18559
|
+
"application/json": {
|
|
18560
|
+
"schema": {
|
|
18561
|
+
"$defs": {
|
|
18562
|
+
"__schema0": {
|
|
18563
|
+
"anyOf": [
|
|
18564
|
+
{ "type": "string" },
|
|
18565
|
+
{ "type": "number" },
|
|
18566
|
+
{ "type": "boolean" },
|
|
18567
|
+
{ "type": "null" },
|
|
18568
|
+
{ "items": { "$ref": "#/$defs/__schema0" }, "type": "array" },
|
|
18569
|
+
{
|
|
18570
|
+
"additionalProperties": { "$ref": "#/$defs/__schema0" },
|
|
18571
|
+
"propertyNames": { "type": "string" },
|
|
18572
|
+
"type": "object"
|
|
18573
|
+
}
|
|
18574
|
+
]
|
|
18575
|
+
},
|
|
18576
|
+
"__schema1": {
|
|
18577
|
+
"anyOf": [
|
|
18578
|
+
{ "type": "string" },
|
|
18579
|
+
{ "type": "number" },
|
|
18580
|
+
{ "type": "boolean" },
|
|
18581
|
+
{ "type": "null" },
|
|
18582
|
+
{ "items": { "$ref": "#/$defs/__schema1" }, "type": "array" },
|
|
18583
|
+
{
|
|
18584
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
18585
|
+
"propertyNames": { "type": "string" },
|
|
18586
|
+
"type": "object"
|
|
18587
|
+
}
|
|
18588
|
+
]
|
|
18589
|
+
}
|
|
18590
|
+
},
|
|
18591
|
+
"additionalProperties": false,
|
|
18592
|
+
"properties": {
|
|
18593
|
+
"contractVersion": {
|
|
18594
|
+
"additionalProperties": false,
|
|
18595
|
+
"properties": {
|
|
18596
|
+
"major": {
|
|
18597
|
+
"exclusiveMinimum": 0,
|
|
18598
|
+
"maximum": 9007199254740991,
|
|
18599
|
+
"type": "integer"
|
|
18600
|
+
},
|
|
18601
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18602
|
+
},
|
|
18603
|
+
"required": ["major", "minor"],
|
|
18604
|
+
"type": "object"
|
|
18605
|
+
},
|
|
18606
|
+
"correlation": {
|
|
18607
|
+
"additionalProperties": false,
|
|
18608
|
+
"properties": {
|
|
18609
|
+
"causationCommandId": {},
|
|
18610
|
+
"parentEventId": {},
|
|
18611
|
+
"traceId": {}
|
|
18612
|
+
},
|
|
18613
|
+
"required": ["traceId"],
|
|
18614
|
+
"type": "object"
|
|
18615
|
+
},
|
|
18616
|
+
"data": {
|
|
18617
|
+
"additionalProperties": false,
|
|
18618
|
+
"properties": {
|
|
18619
|
+
"attemptId": {},
|
|
18620
|
+
"dispatchId": { "pattern": "^dispatch_[a-f0-9]{32}$", "type": "string" },
|
|
18621
|
+
"executionId": {},
|
|
18622
|
+
"intentId": {
|
|
18623
|
+
"format": "uuid",
|
|
18624
|
+
"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)$",
|
|
18625
|
+
"type": "string"
|
|
18626
|
+
},
|
|
18627
|
+
"runtimeSessionId": {},
|
|
18628
|
+
"schemaVersion": { "const": "pi-lead-dispatch/v1", "type": "string" },
|
|
18629
|
+
"state": {
|
|
18630
|
+
"enum": [
|
|
18631
|
+
"starting",
|
|
18632
|
+
"running",
|
|
18633
|
+
"awaiting_input",
|
|
18634
|
+
"cancelling",
|
|
18635
|
+
"completed",
|
|
18636
|
+
"failed",
|
|
18637
|
+
"cancelled",
|
|
18638
|
+
"timed_out",
|
|
18639
|
+
"unknown"
|
|
18640
|
+
],
|
|
18641
|
+
"type": "string"
|
|
18642
|
+
},
|
|
18643
|
+
"status": {
|
|
18644
|
+
"additionalProperties": false,
|
|
18645
|
+
"properties": {
|
|
18646
|
+
"error": {
|
|
18647
|
+
"additionalProperties": false,
|
|
18648
|
+
"properties": {
|
|
18649
|
+
"classification": {
|
|
18650
|
+
"enum": [
|
|
18651
|
+
"validation",
|
|
18652
|
+
"unsupported",
|
|
18653
|
+
"unavailable",
|
|
18654
|
+
"conflict",
|
|
18655
|
+
"timeout",
|
|
18656
|
+
"cancelled",
|
|
18657
|
+
"runtime",
|
|
18658
|
+
"infrastructure",
|
|
18659
|
+
"unknown"
|
|
18660
|
+
],
|
|
18661
|
+
"type": "string"
|
|
18662
|
+
},
|
|
18663
|
+
"code": {
|
|
18664
|
+
"maxLength": 128,
|
|
18665
|
+
"minLength": 1,
|
|
18666
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18667
|
+
"type": "string"
|
|
18668
|
+
},
|
|
18669
|
+
"details": {
|
|
18670
|
+
"additionalProperties": { "$ref": "#/$defs/__schema1" },
|
|
18671
|
+
"propertyNames": { "type": "string" },
|
|
18672
|
+
"type": "object"
|
|
18673
|
+
},
|
|
18674
|
+
"message": { "maxLength": 4096, "minLength": 1, "type": "string" },
|
|
18675
|
+
"retryable": { "type": "boolean" }
|
|
18676
|
+
},
|
|
18677
|
+
"required": ["code", "classification", "message", "retryable"],
|
|
18678
|
+
"type": "object"
|
|
18679
|
+
},
|
|
18680
|
+
"handle": {
|
|
18681
|
+
"additionalProperties": false,
|
|
18682
|
+
"properties": {
|
|
18683
|
+
"attemptId": {},
|
|
18684
|
+
"externalSessionId": {},
|
|
18685
|
+
"handleId": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18686
|
+
"startedAt": {
|
|
18687
|
+
"format": "date-time",
|
|
18688
|
+
"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))$",
|
|
18689
|
+
"type": "string"
|
|
18690
|
+
}
|
|
18691
|
+
},
|
|
18692
|
+
"required": ["handleId", "attemptId", "startedAt"],
|
|
18693
|
+
"type": "object"
|
|
18694
|
+
},
|
|
18695
|
+
"observedAt": {
|
|
18696
|
+
"format": "date-time",
|
|
18697
|
+
"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))$",
|
|
18698
|
+
"type": "string"
|
|
18699
|
+
},
|
|
18700
|
+
"result": {
|
|
18701
|
+
"additionalProperties": false,
|
|
18702
|
+
"properties": {
|
|
18703
|
+
"artifacts": {
|
|
18704
|
+
"items": {
|
|
18705
|
+
"additionalProperties": false,
|
|
18706
|
+
"properties": {
|
|
18707
|
+
"artifactId": {},
|
|
18708
|
+
"digest": {
|
|
18709
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
18710
|
+
"type": "string"
|
|
18711
|
+
},
|
|
18712
|
+
"locator": {
|
|
18713
|
+
"maxLength": 512,
|
|
18714
|
+
"minLength": 1,
|
|
18715
|
+
"type": "string"
|
|
18716
|
+
},
|
|
18717
|
+
"mediaType": {
|
|
18718
|
+
"maxLength": 128,
|
|
18719
|
+
"minLength": 1,
|
|
18720
|
+
"type": "string"
|
|
18721
|
+
},
|
|
18722
|
+
"sizeBytes": {
|
|
18723
|
+
"maximum": 9007199254740991,
|
|
18724
|
+
"minimum": 0,
|
|
18725
|
+
"type": "integer"
|
|
18726
|
+
},
|
|
18727
|
+
"version": {
|
|
18728
|
+
"exclusiveMinimum": 0,
|
|
18729
|
+
"maximum": 9007199254740991,
|
|
18730
|
+
"type": "integer"
|
|
18731
|
+
}
|
|
18732
|
+
},
|
|
18733
|
+
"required": [
|
|
18734
|
+
"artifactId",
|
|
18735
|
+
"version",
|
|
18736
|
+
"mediaType",
|
|
18737
|
+
"digest",
|
|
18738
|
+
"sizeBytes",
|
|
18739
|
+
"locator"
|
|
18740
|
+
],
|
|
18741
|
+
"type": "object"
|
|
18742
|
+
},
|
|
18743
|
+
"maxItems": 1024,
|
|
18744
|
+
"type": "array"
|
|
18745
|
+
},
|
|
18746
|
+
"outcome": { "const": "completed", "type": "string" },
|
|
18747
|
+
"output": { "$ref": "#/$defs/__schema0" },
|
|
18748
|
+
"usage": {
|
|
18749
|
+
"additionalProperties": false,
|
|
18750
|
+
"properties": {
|
|
18751
|
+
"accounting": {
|
|
18752
|
+
"additionalProperties": false,
|
|
18753
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
18754
|
+
"properties": {
|
|
18755
|
+
"chargedMicrounits": {
|
|
18756
|
+
"maximum": 9007199254740991,
|
|
18757
|
+
"minimum": 0,
|
|
18758
|
+
"type": "integer"
|
|
18759
|
+
},
|
|
18760
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
18761
|
+
"currency": { "const": "USD", "type": "string" },
|
|
18762
|
+
"fundingSource": {
|
|
18763
|
+
"enum": [
|
|
18764
|
+
"hq_managed",
|
|
18765
|
+
"byo_api",
|
|
18766
|
+
"external_subscription"
|
|
18767
|
+
],
|
|
18768
|
+
"type": "string"
|
|
18769
|
+
},
|
|
18770
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
18771
|
+
"sourceId": {
|
|
18772
|
+
"maxLength": 256,
|
|
18773
|
+
"minLength": 1,
|
|
18774
|
+
"type": "string"
|
|
18775
|
+
}
|
|
18776
|
+
},
|
|
18777
|
+
"required": [
|
|
18778
|
+
"schemaVersion",
|
|
18779
|
+
"sourceId",
|
|
18780
|
+
"fundingSource",
|
|
18781
|
+
"currency",
|
|
18782
|
+
"chargedMicrounits",
|
|
18783
|
+
"costExact"
|
|
18784
|
+
],
|
|
18785
|
+
"type": "object"
|
|
18786
|
+
},
|
|
18787
|
+
"cost": {
|
|
18788
|
+
"additionalProperties": false,
|
|
18789
|
+
"properties": {
|
|
18790
|
+
"amount": {
|
|
18791
|
+
"pattern": "^\\d+(?:\\.\\d+)?$",
|
|
18792
|
+
"type": "string"
|
|
18793
|
+
},
|
|
18794
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
18795
|
+
},
|
|
18796
|
+
"required": ["amount", "currency"],
|
|
18797
|
+
"type": "object"
|
|
18798
|
+
},
|
|
18799
|
+
"durationMs": {
|
|
18800
|
+
"maximum": 9007199254740991,
|
|
18801
|
+
"minimum": 0,
|
|
18802
|
+
"type": "integer"
|
|
18803
|
+
},
|
|
18804
|
+
"inputTokens": {
|
|
18805
|
+
"maximum": 9007199254740991,
|
|
18806
|
+
"minimum": 0,
|
|
18807
|
+
"type": "integer"
|
|
18808
|
+
},
|
|
18809
|
+
"outputTokens": {
|
|
18810
|
+
"maximum": 9007199254740991,
|
|
18811
|
+
"minimum": 0,
|
|
18812
|
+
"type": "integer"
|
|
18813
|
+
}
|
|
18814
|
+
},
|
|
18815
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
18816
|
+
"type": "object"
|
|
18817
|
+
}
|
|
18818
|
+
},
|
|
18819
|
+
"required": ["outcome", "usage", "artifacts"],
|
|
18820
|
+
"type": "object"
|
|
18821
|
+
},
|
|
18822
|
+
"state": {
|
|
18823
|
+
"enum": [
|
|
18824
|
+
"starting",
|
|
18825
|
+
"running",
|
|
18826
|
+
"awaiting_input",
|
|
18827
|
+
"cancelling",
|
|
18828
|
+
"completed",
|
|
18829
|
+
"failed",
|
|
18830
|
+
"cancelled",
|
|
18831
|
+
"timed_out",
|
|
18832
|
+
"unknown"
|
|
18833
|
+
],
|
|
18834
|
+
"type": "string"
|
|
18835
|
+
},
|
|
18836
|
+
"terminalUsage": {
|
|
18837
|
+
"additionalProperties": false,
|
|
18838
|
+
"properties": {
|
|
18839
|
+
"accounting": {
|
|
18840
|
+
"additionalProperties": false,
|
|
18841
|
+
"description": "Reported accounting metadata only; consumers must verify source authority before charging.",
|
|
18842
|
+
"properties": {
|
|
18843
|
+
"chargedMicrounits": {
|
|
18844
|
+
"maximum": 9007199254740991,
|
|
18845
|
+
"minimum": 0,
|
|
18846
|
+
"type": "integer"
|
|
18847
|
+
},
|
|
18848
|
+
"costExact": { "const": true, "type": "boolean" },
|
|
18849
|
+
"currency": { "const": "USD", "type": "string" },
|
|
18850
|
+
"fundingSource": {
|
|
18851
|
+
"enum": ["hq_managed", "byo_api", "external_subscription"],
|
|
18852
|
+
"type": "string"
|
|
18853
|
+
},
|
|
18854
|
+
"schemaVersion": { "const": 1, "type": "number" },
|
|
18855
|
+
"sourceId": {
|
|
18856
|
+
"maxLength": 256,
|
|
18857
|
+
"minLength": 1,
|
|
18858
|
+
"type": "string"
|
|
18859
|
+
}
|
|
18860
|
+
},
|
|
18861
|
+
"required": [
|
|
18862
|
+
"schemaVersion",
|
|
18863
|
+
"sourceId",
|
|
18864
|
+
"fundingSource",
|
|
18865
|
+
"currency",
|
|
18866
|
+
"chargedMicrounits",
|
|
18867
|
+
"costExact"
|
|
18868
|
+
],
|
|
18869
|
+
"type": "object"
|
|
18870
|
+
},
|
|
18871
|
+
"cost": {
|
|
18872
|
+
"additionalProperties": false,
|
|
18873
|
+
"properties": {
|
|
18874
|
+
"amount": { "pattern": "^\\d+(?:\\.\\d+)?$", "type": "string" },
|
|
18875
|
+
"currency": { "pattern": "^[A-Z]{3}$", "type": "string" }
|
|
18876
|
+
},
|
|
18877
|
+
"required": ["amount", "currency"],
|
|
18878
|
+
"type": "object"
|
|
18879
|
+
},
|
|
18880
|
+
"durationMs": {
|
|
18881
|
+
"maximum": 9007199254740991,
|
|
18882
|
+
"minimum": 0,
|
|
18883
|
+
"type": "integer"
|
|
18884
|
+
},
|
|
18885
|
+
"inputTokens": {
|
|
18886
|
+
"maximum": 9007199254740991,
|
|
18887
|
+
"minimum": 0,
|
|
18888
|
+
"type": "integer"
|
|
18889
|
+
},
|
|
18890
|
+
"outputTokens": {
|
|
18891
|
+
"maximum": 9007199254740991,
|
|
18892
|
+
"minimum": 0,
|
|
18893
|
+
"type": "integer"
|
|
18894
|
+
}
|
|
18895
|
+
},
|
|
18896
|
+
"required": ["inputTokens", "outputTokens", "durationMs"],
|
|
18897
|
+
"type": "object"
|
|
18898
|
+
}
|
|
18899
|
+
},
|
|
18900
|
+
"required": ["handle", "state", "observedAt"],
|
|
18901
|
+
"type": "object"
|
|
18902
|
+
}
|
|
18903
|
+
},
|
|
18904
|
+
"required": [
|
|
18905
|
+
"schemaVersion",
|
|
18906
|
+
"dispatchId",
|
|
18907
|
+
"intentId",
|
|
18908
|
+
"executionId",
|
|
18909
|
+
"attemptId",
|
|
18910
|
+
"runtimeSessionId",
|
|
18911
|
+
"state",
|
|
18912
|
+
"status"
|
|
18913
|
+
],
|
|
18914
|
+
"type": "object"
|
|
18915
|
+
},
|
|
18916
|
+
"requestId": {}
|
|
18917
|
+
},
|
|
18918
|
+
"required": ["contractVersion", "requestId", "correlation", "data"],
|
|
18919
|
+
"type": "object"
|
|
18920
|
+
}
|
|
18921
|
+
}
|
|
18922
|
+
},
|
|
18923
|
+
"description": "Successful response"
|
|
18924
|
+
},
|
|
18925
|
+
"default": {
|
|
18926
|
+
"content": {
|
|
18927
|
+
"application/json": {
|
|
18928
|
+
"schema": {
|
|
18929
|
+
"additionalProperties": false,
|
|
18930
|
+
"properties": {
|
|
18931
|
+
"contractVersion": {
|
|
18932
|
+
"additionalProperties": false,
|
|
18933
|
+
"properties": {
|
|
18934
|
+
"major": {
|
|
18935
|
+
"exclusiveMinimum": 0,
|
|
18936
|
+
"maximum": 9007199254740991,
|
|
18937
|
+
"type": "integer"
|
|
18938
|
+
},
|
|
18939
|
+
"minor": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }
|
|
18940
|
+
},
|
|
18941
|
+
"required": ["major", "minor"],
|
|
18942
|
+
"type": "object"
|
|
18943
|
+
},
|
|
18944
|
+
"correlation": {
|
|
18945
|
+
"additionalProperties": false,
|
|
18946
|
+
"properties": {
|
|
18947
|
+
"causationCommandId": {},
|
|
18948
|
+
"parentEventId": {},
|
|
18949
|
+
"traceId": {}
|
|
18950
|
+
},
|
|
18951
|
+
"required": ["traceId"],
|
|
18952
|
+
"type": "object"
|
|
18953
|
+
},
|
|
18954
|
+
"error": {
|
|
18955
|
+
"additionalProperties": false,
|
|
18956
|
+
"properties": {
|
|
18957
|
+
"class": {
|
|
18958
|
+
"enum": [
|
|
18959
|
+
"validation",
|
|
18960
|
+
"authentication",
|
|
18961
|
+
"authorization",
|
|
18962
|
+
"conflict",
|
|
18963
|
+
"stale_reference",
|
|
18964
|
+
"capability_mismatch",
|
|
18965
|
+
"runtime_unavailable",
|
|
18966
|
+
"internal"
|
|
18967
|
+
],
|
|
18968
|
+
"type": "string"
|
|
18969
|
+
},
|
|
18970
|
+
"code": {
|
|
18971
|
+
"maxLength": 96,
|
|
18972
|
+
"minLength": 1,
|
|
18973
|
+
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
18974
|
+
"type": "string"
|
|
18975
|
+
},
|
|
18976
|
+
"details": {
|
|
18977
|
+
"additionalProperties": {},
|
|
18978
|
+
"propertyNames": { "maxLength": 64, "type": "string" },
|
|
18979
|
+
"type": "object"
|
|
18980
|
+
},
|
|
18981
|
+
"message": { "maxLength": 512, "minLength": 1, "type": "string" },
|
|
18982
|
+
"remediation": { "maxLength": 256, "minLength": 1, "type": "string" },
|
|
18983
|
+
"retryable": { "type": "boolean" },
|
|
18984
|
+
"source": {
|
|
18985
|
+
"enum": [
|
|
18986
|
+
"client",
|
|
18987
|
+
"auth",
|
|
18988
|
+
"policy",
|
|
18989
|
+
"runtime",
|
|
18990
|
+
"provider",
|
|
18991
|
+
"persistence",
|
|
18992
|
+
"workflow",
|
|
18993
|
+
"system"
|
|
18994
|
+
],
|
|
18995
|
+
"type": "string"
|
|
18996
|
+
}
|
|
18997
|
+
},
|
|
18998
|
+
"required": ["class", "code", "message", "retryable", "source"],
|
|
18999
|
+
"type": "object"
|
|
19000
|
+
},
|
|
19001
|
+
"requestId": {}
|
|
19002
|
+
},
|
|
19003
|
+
"required": ["contractVersion", "requestId", "correlation", "error"],
|
|
19004
|
+
"type": "object"
|
|
19005
|
+
}
|
|
19006
|
+
}
|
|
19007
|
+
},
|
|
19008
|
+
"description": "Normalized error response"
|
|
19009
|
+
}
|
|
19010
|
+
},
|
|
19011
|
+
"security": [{ "serviceBearer": [] }]
|
|
19012
|
+
}
|
|
16305
19013
|
}
|
|
16306
19014
|
},
|
|
16307
19015
|
"components": {
|