primcli 3.0.0-preview.27 → 3.0.0-preview.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-command-B-nuABGm.js → api-command-BX7D2LxZ.js} +3152 -262
- package/dist/{cli-command-names-no0f7d7s.js → cli-command-names-DPG2eMQ_.js} +11 -0
- package/dist/{machine-session-1utuweTi.js → machine-session-B8Z4GZ6-.js} +4 -4
- package/dist/{notify-session-CM4_ZYe9.js → notify-session-CmoGM6h8.js} +2 -2
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/command-not-found.js +1 -1
- package/dist/oclif/index.js +46 -13
- package/dist/oclif/receiver-heal.js +1 -1
- package/dist/{repeats-Dj_o6c-X-CK1wU9lP.js → repeats-Dj_o6c-X-jmlxD8_1.js} +178 -0
- package/dist/{scoped-chat-DN0qj4AY.js → scoped-chat-CDkazRdx.js} +1 -1
- package/dist/{signal-command-D4ZIidPX.js → signal-command-Dz3D14zv.js} +4 -4
- package/package.json +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as getThread, Bt as getEndpoint, C as parseRetryAfter, H as assertAwaitingFilterRows, J as isAwaitingRejectedError, U as awaitingRejectedError, V as ReplyStateUnsupportedError, Vn as sdk_gen_exports, W as ensureSearchReportsReplyState, X as replyStateSurfaceForOperation, Yt as getOwnGrant, at as expectedAutomatedVerdicts, et as AutomatedFilterUnsupportedError, it as ensureSearchReportsAutomated, nt as automatedRejectedError, pn as listEndpoints, rt as automatedSurfaceForOperation, st as isAutomatedRejectedError, tt as assertAutomatedVerdict, un as listDomains, zt as getEmail } from "./repeats-Dj_o6c-X-
|
|
2
|
-
import { a as canonicalCommandId, i as canonicalCliText, r as canonicalBodyFlagName } from "./cli-command-names-
|
|
1
|
+
import { $t as getThread, Bt as getEndpoint, C as parseRetryAfter, H as assertAwaitingFilterRows, J as isAwaitingRejectedError, U as awaitingRejectedError, V as ReplyStateUnsupportedError, Vn as sdk_gen_exports, W as ensureSearchReportsReplyState, X as replyStateSurfaceForOperation, Yt as getOwnGrant, at as expectedAutomatedVerdicts, et as AutomatedFilterUnsupportedError, it as ensureSearchReportsAutomated, nt as automatedRejectedError, pn as listEndpoints, rt as automatedSurfaceForOperation, st as isAutomatedRejectedError, tt as assertAutomatedVerdict, un as listDomains, zt as getEmail } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
|
|
2
|
+
import { a as canonicalCommandId, i as canonicalCliText, r as canonicalBodyFlagName } from "./cli-command-names-DPG2eMQ_.js";
|
|
3
3
|
import { B as agentProfileDirectory, C as normalizeApiBaseUrl, E as saveSignupCredentials, G as loadConnectedAgentProfile, H as agentProfilesDirectory, R as AGENT_PROFILE_ENV, S as loadCliCredentials, T as saveCliCredentials, Y as requireDefaultLoginProfile, b as detectPrimitiveKeyEnvMisname, f as validateCliHeaderName, ft as detectRuntimeSession, h as cliAccessTokenExpiresAt, i as loadCliConfig, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, mt as PrimitiveApiClient, p as validateCliHeaderValue, rt as loadActiveAgentPass, v as deleteCliCredentials, w as resolveCliAuth } from "./cli-config-CwZJQIcn.js";
|
|
4
4
|
import "./oclif/global-org-flag.js";
|
|
5
5
|
import { a as assertRequiredBodyFields, i as operationHelpInputs } from "./help-inputs-NGARVZL_.js";
|
|
@@ -1068,6 +1068,16 @@ const operationManifest = [
|
|
|
1068
1068
|
"maxLength": 255,
|
|
1069
1069
|
"pattern": "^[!-~]{1,255}$"
|
|
1070
1070
|
},
|
|
1071
|
+
"if_absent": {
|
|
1072
|
+
"type": "boolean",
|
|
1073
|
+
"description": "When true with idempotency_key, atomically claim work only if no active or completed activity exists for this actor and key (takes over expired started claims; otherwise returns 409 with error.details.activity)."
|
|
1074
|
+
},
|
|
1075
|
+
"claim_ttl_seconds": {
|
|
1076
|
+
"type": "integer",
|
|
1077
|
+
"minimum": 1,
|
|
1078
|
+
"maximum": 86400,
|
|
1079
|
+
"description": "Optional lease duration in seconds (1 to 86400) for status started claims."
|
|
1080
|
+
},
|
|
1071
1081
|
"visibility": {
|
|
1072
1082
|
"type": "string",
|
|
1073
1083
|
"enum": ["thread", "actor_only"],
|
|
@@ -1172,6 +1182,11 @@ const operationManifest = [
|
|
|
1172
1182
|
"type": ["string", "null"],
|
|
1173
1183
|
"format": "uuid"
|
|
1174
1184
|
},
|
|
1185
|
+
"agent_id": {
|
|
1186
|
+
"type": ["string", "null"],
|
|
1187
|
+
"format": "uuid",
|
|
1188
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
1189
|
+
},
|
|
1175
1190
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
1176
1191
|
}
|
|
1177
1192
|
},
|
|
@@ -1291,6 +1306,11 @@ const operationManifest = [
|
|
|
1291
1306
|
"type": ["string", "null"],
|
|
1292
1307
|
"format": "date-time"
|
|
1293
1308
|
},
|
|
1309
|
+
"claim_expires_at": {
|
|
1310
|
+
"type": ["string", "null"],
|
|
1311
|
+
"format": "date-time",
|
|
1312
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
1313
|
+
},
|
|
1294
1314
|
"updated_by": { "oneOf": [{
|
|
1295
1315
|
"type": "object",
|
|
1296
1316
|
"additionalProperties": false,
|
|
@@ -1319,6 +1339,10 @@ const operationManifest = [
|
|
|
1319
1339
|
"occurred_at": {
|
|
1320
1340
|
"type": "string",
|
|
1321
1341
|
"format": "date-time"
|
|
1342
|
+
},
|
|
1343
|
+
"internals_redacted": {
|
|
1344
|
+
"type": "boolean",
|
|
1345
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
1322
1346
|
}
|
|
1323
1347
|
}
|
|
1324
1348
|
},
|
|
@@ -1456,6 +1480,16 @@ const operationManifest = [
|
|
|
1456
1480
|
"maxLength": 255,
|
|
1457
1481
|
"pattern": "^[!-~]{1,255}$"
|
|
1458
1482
|
},
|
|
1483
|
+
"if_absent": {
|
|
1484
|
+
"type": "boolean",
|
|
1485
|
+
"description": "When true with idempotency_key, atomically claim work only if no active or completed activity exists for this actor and key (takes over expired started claims; otherwise returns 409 with error.details.activity)."
|
|
1486
|
+
},
|
|
1487
|
+
"claim_ttl_seconds": {
|
|
1488
|
+
"type": "integer",
|
|
1489
|
+
"minimum": 1,
|
|
1490
|
+
"maximum": 86400,
|
|
1491
|
+
"description": "Optional lease duration in seconds (1 to 86400) for status started claims."
|
|
1492
|
+
},
|
|
1459
1493
|
"visibility": {
|
|
1460
1494
|
"type": "string",
|
|
1461
1495
|
"enum": ["thread", "actor_only"],
|
|
@@ -1560,6 +1594,11 @@ const operationManifest = [
|
|
|
1560
1594
|
"type": ["string", "null"],
|
|
1561
1595
|
"format": "uuid"
|
|
1562
1596
|
},
|
|
1597
|
+
"agent_id": {
|
|
1598
|
+
"type": ["string", "null"],
|
|
1599
|
+
"format": "uuid",
|
|
1600
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
1601
|
+
},
|
|
1563
1602
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
1564
1603
|
}
|
|
1565
1604
|
},
|
|
@@ -1679,6 +1718,11 @@ const operationManifest = [
|
|
|
1679
1718
|
"type": ["string", "null"],
|
|
1680
1719
|
"format": "date-time"
|
|
1681
1720
|
},
|
|
1721
|
+
"claim_expires_at": {
|
|
1722
|
+
"type": ["string", "null"],
|
|
1723
|
+
"format": "date-time",
|
|
1724
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
1725
|
+
},
|
|
1682
1726
|
"updated_by": { "oneOf": [{
|
|
1683
1727
|
"type": "object",
|
|
1684
1728
|
"additionalProperties": false,
|
|
@@ -1707,6 +1751,10 @@ const operationManifest = [
|
|
|
1707
1751
|
"occurred_at": {
|
|
1708
1752
|
"type": "string",
|
|
1709
1753
|
"format": "date-time"
|
|
1754
|
+
},
|
|
1755
|
+
"internals_redacted": {
|
|
1756
|
+
"type": "boolean",
|
|
1757
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
1710
1758
|
}
|
|
1711
1759
|
}
|
|
1712
1760
|
},
|
|
@@ -1784,6 +1832,13 @@ const operationManifest = [
|
|
|
1784
1832
|
"required": false,
|
|
1785
1833
|
"type": "string"
|
|
1786
1834
|
},
|
|
1835
|
+
{
|
|
1836
|
+
"description": "Filter to events or activities attributed to a durable Agent identity UUID.",
|
|
1837
|
+
"enum": null,
|
|
1838
|
+
"name": "agent_id",
|
|
1839
|
+
"required": false,
|
|
1840
|
+
"type": "string"
|
|
1841
|
+
},
|
|
1787
1842
|
{
|
|
1788
1843
|
"description": "Filter to events or activities carrying this run_id.",
|
|
1789
1844
|
"enum": null,
|
|
@@ -1941,6 +1996,11 @@ const operationManifest = [
|
|
|
1941
1996
|
"type": ["string", "null"],
|
|
1942
1997
|
"format": "uuid"
|
|
1943
1998
|
},
|
|
1999
|
+
"agent_id": {
|
|
2000
|
+
"type": ["string", "null"],
|
|
2001
|
+
"format": "uuid",
|
|
2002
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
2003
|
+
},
|
|
1944
2004
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
1945
2005
|
}
|
|
1946
2006
|
},
|
|
@@ -1954,6 +2014,10 @@ const operationManifest = [
|
|
|
1954
2014
|
"occurred_at": {
|
|
1955
2015
|
"type": "string",
|
|
1956
2016
|
"format": "date-time"
|
|
2017
|
+
},
|
|
2018
|
+
"internals_redacted": {
|
|
2019
|
+
"type": "boolean",
|
|
2020
|
+
"description": "True when operational internals (request_id, run_id, metadata, actor owner fields) were stripped for this viewer."
|
|
1957
2021
|
}
|
|
1958
2022
|
}
|
|
1959
2023
|
}, {
|
|
@@ -2048,6 +2112,11 @@ const operationManifest = [
|
|
|
2048
2112
|
"type": ["string", "null"],
|
|
2049
2113
|
"format": "uuid"
|
|
2050
2114
|
},
|
|
2115
|
+
"agent_id": {
|
|
2116
|
+
"type": ["string", "null"],
|
|
2117
|
+
"format": "uuid",
|
|
2118
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
2119
|
+
},
|
|
2051
2120
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
2052
2121
|
}
|
|
2053
2122
|
},
|
|
@@ -2167,6 +2236,11 @@ const operationManifest = [
|
|
|
2167
2236
|
"type": ["string", "null"],
|
|
2168
2237
|
"format": "date-time"
|
|
2169
2238
|
},
|
|
2239
|
+
"claim_expires_at": {
|
|
2240
|
+
"type": ["string", "null"],
|
|
2241
|
+
"format": "date-time",
|
|
2242
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
2243
|
+
},
|
|
2170
2244
|
"updated_by": { "oneOf": [{
|
|
2171
2245
|
"type": "object",
|
|
2172
2246
|
"additionalProperties": false,
|
|
@@ -2195,6 +2269,10 @@ const operationManifest = [
|
|
|
2195
2269
|
"occurred_at": {
|
|
2196
2270
|
"type": "string",
|
|
2197
2271
|
"format": "date-time"
|
|
2272
|
+
},
|
|
2273
|
+
"internals_redacted": {
|
|
2274
|
+
"type": "boolean",
|
|
2275
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
2198
2276
|
}
|
|
2199
2277
|
}
|
|
2200
2278
|
}],
|
|
@@ -2535,6 +2613,11 @@ const operationManifest = [
|
|
|
2535
2613
|
"type": ["string", "null"],
|
|
2536
2614
|
"format": "uuid"
|
|
2537
2615
|
},
|
|
2616
|
+
"agent_id": {
|
|
2617
|
+
"type": ["string", "null"],
|
|
2618
|
+
"format": "uuid",
|
|
2619
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
2620
|
+
},
|
|
2538
2621
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
2539
2622
|
}
|
|
2540
2623
|
},
|
|
@@ -2679,6 +2762,13 @@ const operationManifest = [
|
|
|
2679
2762
|
"required": false,
|
|
2680
2763
|
"type": "string"
|
|
2681
2764
|
},
|
|
2765
|
+
{
|
|
2766
|
+
"description": "Filter to events or activities attributed to a durable Agent identity UUID.",
|
|
2767
|
+
"enum": null,
|
|
2768
|
+
"name": "agent_id",
|
|
2769
|
+
"required": false,
|
|
2770
|
+
"type": "string"
|
|
2771
|
+
},
|
|
2682
2772
|
{
|
|
2683
2773
|
"description": "Filter to actions taken by a human member or by API keys, OAuth grants, and personal agents owned by that member.",
|
|
2684
2774
|
"enum": null,
|
|
@@ -2856,6 +2946,11 @@ const operationManifest = [
|
|
|
2856
2946
|
"type": ["string", "null"],
|
|
2857
2947
|
"format": "uuid"
|
|
2858
2948
|
},
|
|
2949
|
+
"agent_id": {
|
|
2950
|
+
"type": ["string", "null"],
|
|
2951
|
+
"format": "uuid",
|
|
2952
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
2953
|
+
},
|
|
2859
2954
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
2860
2955
|
}
|
|
2861
2956
|
},
|
|
@@ -2869,6 +2964,10 @@ const operationManifest = [
|
|
|
2869
2964
|
"occurred_at": {
|
|
2870
2965
|
"type": "string",
|
|
2871
2966
|
"format": "date-time"
|
|
2967
|
+
},
|
|
2968
|
+
"internals_redacted": {
|
|
2969
|
+
"type": "boolean",
|
|
2970
|
+
"description": "True when operational internals (request_id, run_id, metadata, actor owner fields) were stripped for this viewer."
|
|
2872
2971
|
}
|
|
2873
2972
|
}
|
|
2874
2973
|
}, {
|
|
@@ -2963,6 +3062,11 @@ const operationManifest = [
|
|
|
2963
3062
|
"type": ["string", "null"],
|
|
2964
3063
|
"format": "uuid"
|
|
2965
3064
|
},
|
|
3065
|
+
"agent_id": {
|
|
3066
|
+
"type": ["string", "null"],
|
|
3067
|
+
"format": "uuid",
|
|
3068
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
3069
|
+
},
|
|
2966
3070
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
2967
3071
|
}
|
|
2968
3072
|
},
|
|
@@ -3082,6 +3186,11 @@ const operationManifest = [
|
|
|
3082
3186
|
"type": ["string", "null"],
|
|
3083
3187
|
"format": "date-time"
|
|
3084
3188
|
},
|
|
3189
|
+
"claim_expires_at": {
|
|
3190
|
+
"type": ["string", "null"],
|
|
3191
|
+
"format": "date-time",
|
|
3192
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
3193
|
+
},
|
|
3085
3194
|
"updated_by": { "oneOf": [{
|
|
3086
3195
|
"type": "object",
|
|
3087
3196
|
"additionalProperties": false,
|
|
@@ -3110,6 +3219,10 @@ const operationManifest = [
|
|
|
3110
3219
|
"occurred_at": {
|
|
3111
3220
|
"type": "string",
|
|
3112
3221
|
"format": "date-time"
|
|
3222
|
+
},
|
|
3223
|
+
"internals_redacted": {
|
|
3224
|
+
"type": "boolean",
|
|
3225
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
3113
3226
|
}
|
|
3114
3227
|
}
|
|
3115
3228
|
}],
|
|
@@ -3229,6 +3342,17 @@ const operationManifest = [
|
|
|
3229
3342
|
"type": "string",
|
|
3230
3343
|
"enum": ["thread", "actor_only"],
|
|
3231
3344
|
"description": "Visibility of a thread activity (`thread` is shared with scoped readers; `actor_only` is private to the creating actor unless an auditor passes `include_private=true`)."
|
|
3345
|
+
},
|
|
3346
|
+
"claim_ttl_seconds": {
|
|
3347
|
+
"type": ["integer", "null"],
|
|
3348
|
+
"minimum": 1,
|
|
3349
|
+
"maximum": 86400,
|
|
3350
|
+
"description": "Optional lease duration in seconds (1 to 86400) when status is started (null clears)."
|
|
3351
|
+
},
|
|
3352
|
+
"if_revision": {
|
|
3353
|
+
"type": "integer",
|
|
3354
|
+
"minimum": 1,
|
|
3355
|
+
"description": "Expected current revision for compare-and-set updates (returns 409 with error.details.activity on mismatch)."
|
|
3232
3356
|
}
|
|
3233
3357
|
}
|
|
3234
3358
|
},
|
|
@@ -3328,6 +3452,11 @@ const operationManifest = [
|
|
|
3328
3452
|
"type": ["string", "null"],
|
|
3329
3453
|
"format": "uuid"
|
|
3330
3454
|
},
|
|
3455
|
+
"agent_id": {
|
|
3456
|
+
"type": ["string", "null"],
|
|
3457
|
+
"format": "uuid",
|
|
3458
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
3459
|
+
},
|
|
3331
3460
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
3332
3461
|
}
|
|
3333
3462
|
},
|
|
@@ -3447,6 +3576,11 @@ const operationManifest = [
|
|
|
3447
3576
|
"type": ["string", "null"],
|
|
3448
3577
|
"format": "date-time"
|
|
3449
3578
|
},
|
|
3579
|
+
"claim_expires_at": {
|
|
3580
|
+
"type": ["string", "null"],
|
|
3581
|
+
"format": "date-time",
|
|
3582
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
3583
|
+
},
|
|
3450
3584
|
"updated_by": { "oneOf": [{
|
|
3451
3585
|
"type": "object",
|
|
3452
3586
|
"additionalProperties": false,
|
|
@@ -3475,6 +3609,10 @@ const operationManifest = [
|
|
|
3475
3609
|
"occurred_at": {
|
|
3476
3610
|
"type": "string",
|
|
3477
3611
|
"format": "date-time"
|
|
3612
|
+
},
|
|
3613
|
+
"internals_redacted": {
|
|
3614
|
+
"type": "boolean",
|
|
3615
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
3478
3616
|
}
|
|
3479
3617
|
}
|
|
3480
3618
|
} }
|
|
@@ -8458,311 +8596,3019 @@ const operationManifest = [
|
|
|
8458
8596
|
"required": true,
|
|
8459
8597
|
"type": "string"
|
|
8460
8598
|
}],
|
|
8461
|
-
"queryParams": [],
|
|
8599
|
+
"queryParams": [],
|
|
8600
|
+
"headerParams": [],
|
|
8601
|
+
"permissions": ["agent_work:write"],
|
|
8602
|
+
"access": null,
|
|
8603
|
+
"requestSchema": {
|
|
8604
|
+
"type": "object",
|
|
8605
|
+
"properties": {
|
|
8606
|
+
"expectedVersion": {
|
|
8607
|
+
"type": "integer",
|
|
8608
|
+
"minimum": 1,
|
|
8609
|
+
"maximum": 2147483646
|
|
8610
|
+
},
|
|
8611
|
+
"status": {
|
|
8612
|
+
"type": "string",
|
|
8613
|
+
"const": "completed"
|
|
8614
|
+
}
|
|
8615
|
+
},
|
|
8616
|
+
"required": ["expectedVersion", "status"],
|
|
8617
|
+
"additionalProperties": false
|
|
8618
|
+
},
|
|
8619
|
+
"responseSchema": {
|
|
8620
|
+
"type": "object",
|
|
8621
|
+
"properties": {
|
|
8622
|
+
"id": {
|
|
8623
|
+
"type": "string",
|
|
8624
|
+
"format": "uuid"
|
|
8625
|
+
},
|
|
8626
|
+
"agentId": {
|
|
8627
|
+
"type": "string",
|
|
8628
|
+
"format": "uuid"
|
|
8629
|
+
},
|
|
8630
|
+
"version": {
|
|
8631
|
+
"type": "integer",
|
|
8632
|
+
"exclusiveMinimum": 0,
|
|
8633
|
+
"maximum": 9007199254740991
|
|
8634
|
+
},
|
|
8635
|
+
"workTitle": { "type": ["string", "null"] },
|
|
8636
|
+
"workDetail": { "type": ["string", "null"] },
|
|
8637
|
+
"status": {
|
|
8638
|
+
"type": "string",
|
|
8639
|
+
"enum": [
|
|
8640
|
+
"active",
|
|
8641
|
+
"completed",
|
|
8642
|
+
"cancelled"
|
|
8643
|
+
]
|
|
8644
|
+
},
|
|
8645
|
+
"proposedDeadlineAt": {
|
|
8646
|
+
"type": ["string", "null"],
|
|
8647
|
+
"format": "date-time",
|
|
8648
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8649
|
+
},
|
|
8650
|
+
"deadline": {
|
|
8651
|
+
"type": ["object", "null"],
|
|
8652
|
+
"properties": {
|
|
8653
|
+
"id": {
|
|
8654
|
+
"type": "string",
|
|
8655
|
+
"format": "uuid"
|
|
8656
|
+
},
|
|
8657
|
+
"dueAt": {
|
|
8658
|
+
"type": "string",
|
|
8659
|
+
"format": "date-time",
|
|
8660
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8661
|
+
},
|
|
8662
|
+
"agreedAt": {
|
|
8663
|
+
"type": "string",
|
|
8664
|
+
"format": "date-time",
|
|
8665
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8666
|
+
},
|
|
8667
|
+
"agreedByUserId": {
|
|
8668
|
+
"type": "string",
|
|
8669
|
+
"format": "uuid"
|
|
8670
|
+
},
|
|
8671
|
+
"workVersion": {
|
|
8672
|
+
"type": "integer",
|
|
8673
|
+
"minimum": 1,
|
|
8674
|
+
"maximum": 2147483646
|
|
8675
|
+
}
|
|
8676
|
+
},
|
|
8677
|
+
"required": [
|
|
8678
|
+
"id",
|
|
8679
|
+
"dueAt",
|
|
8680
|
+
"agreedAt",
|
|
8681
|
+
"agreedByUserId",
|
|
8682
|
+
"workVersion"
|
|
8683
|
+
]
|
|
8684
|
+
},
|
|
8685
|
+
"createdBy": {
|
|
8686
|
+
"type": "object",
|
|
8687
|
+
"properties": {
|
|
8688
|
+
"kind": {
|
|
8689
|
+
"type": "string",
|
|
8690
|
+
"enum": ["human", "agent"]
|
|
8691
|
+
},
|
|
8692
|
+
"id": {
|
|
8693
|
+
"type": "string",
|
|
8694
|
+
"format": "uuid"
|
|
8695
|
+
}
|
|
8696
|
+
},
|
|
8697
|
+
"required": ["kind", "id"]
|
|
8698
|
+
},
|
|
8699
|
+
"updatedBy": {
|
|
8700
|
+
"type": "object",
|
|
8701
|
+
"properties": {
|
|
8702
|
+
"kind": {
|
|
8703
|
+
"type": "string",
|
|
8704
|
+
"enum": ["human", "agent"]
|
|
8705
|
+
},
|
|
8706
|
+
"id": {
|
|
8707
|
+
"type": "string",
|
|
8708
|
+
"format": "uuid"
|
|
8709
|
+
}
|
|
8710
|
+
},
|
|
8711
|
+
"required": ["kind", "id"]
|
|
8712
|
+
},
|
|
8713
|
+
"createdAt": {
|
|
8714
|
+
"type": "string",
|
|
8715
|
+
"format": "date-time",
|
|
8716
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8717
|
+
},
|
|
8718
|
+
"updatedAt": {
|
|
8719
|
+
"type": "string",
|
|
8720
|
+
"format": "date-time",
|
|
8721
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8722
|
+
}
|
|
8723
|
+
},
|
|
8724
|
+
"required": [
|
|
8725
|
+
"id",
|
|
8726
|
+
"agentId",
|
|
8727
|
+
"version",
|
|
8728
|
+
"workTitle",
|
|
8729
|
+
"workDetail",
|
|
8730
|
+
"status",
|
|
8731
|
+
"proposedDeadlineAt",
|
|
8732
|
+
"deadline",
|
|
8733
|
+
"createdBy",
|
|
8734
|
+
"updatedBy",
|
|
8735
|
+
"createdAt",
|
|
8736
|
+
"updatedAt"
|
|
8737
|
+
]
|
|
8738
|
+
},
|
|
8739
|
+
"sdkName": "agentWorkReportStatus",
|
|
8740
|
+
"summary": "report Status",
|
|
8741
|
+
"tag": "Agent Work",
|
|
8742
|
+
"tagCommand": "agent-work"
|
|
8743
|
+
},
|
|
8744
|
+
{
|
|
8745
|
+
"binaryResponse": false,
|
|
8746
|
+
"bodyRequired": true,
|
|
8747
|
+
"command": "agent-work-withdraw-deadline",
|
|
8748
|
+
"description": "The current human owner withdraws the current agreement with its expected version. Historical agreement facts remain immutable. Agent-delegate and primitive-agent OAuth credentials cannot withdraw.",
|
|
8749
|
+
"hasJsonBody": true,
|
|
8750
|
+
"method": "POST",
|
|
8751
|
+
"operationId": "agentWorkWithdrawDeadline",
|
|
8752
|
+
"path": "/agent-work/agents/{agentId}/records/{workId}/deadline-withdrawal",
|
|
8753
|
+
"pathParams": [{
|
|
8754
|
+
"description": "Current personal agent connection UUID.",
|
|
8755
|
+
"enum": null,
|
|
8756
|
+
"name": "agentId",
|
|
8757
|
+
"required": true,
|
|
8758
|
+
"type": "string"
|
|
8759
|
+
}, {
|
|
8760
|
+
"description": "Work record UUID.",
|
|
8761
|
+
"enum": null,
|
|
8762
|
+
"name": "workId",
|
|
8763
|
+
"required": true,
|
|
8764
|
+
"type": "string"
|
|
8765
|
+
}],
|
|
8766
|
+
"queryParams": [],
|
|
8767
|
+
"headerParams": [],
|
|
8768
|
+
"permissions": ["agent_work:manage"],
|
|
8769
|
+
"access": null,
|
|
8770
|
+
"requestSchema": {
|
|
8771
|
+
"type": "object",
|
|
8772
|
+
"properties": { "expectedVersion": {
|
|
8773
|
+
"type": "integer",
|
|
8774
|
+
"minimum": 1,
|
|
8775
|
+
"maximum": 2147483646
|
|
8776
|
+
} },
|
|
8777
|
+
"required": ["expectedVersion"],
|
|
8778
|
+
"additionalProperties": false
|
|
8779
|
+
},
|
|
8780
|
+
"responseSchema": {
|
|
8781
|
+
"type": "object",
|
|
8782
|
+
"properties": {
|
|
8783
|
+
"id": {
|
|
8784
|
+
"type": "string",
|
|
8785
|
+
"format": "uuid"
|
|
8786
|
+
},
|
|
8787
|
+
"agentId": {
|
|
8788
|
+
"type": "string",
|
|
8789
|
+
"format": "uuid"
|
|
8790
|
+
},
|
|
8791
|
+
"version": {
|
|
8792
|
+
"type": "integer",
|
|
8793
|
+
"exclusiveMinimum": 0,
|
|
8794
|
+
"maximum": 9007199254740991
|
|
8795
|
+
},
|
|
8796
|
+
"workTitle": { "type": ["string", "null"] },
|
|
8797
|
+
"workDetail": { "type": ["string", "null"] },
|
|
8798
|
+
"status": {
|
|
8799
|
+
"type": "string",
|
|
8800
|
+
"enum": [
|
|
8801
|
+
"active",
|
|
8802
|
+
"completed",
|
|
8803
|
+
"cancelled"
|
|
8804
|
+
]
|
|
8805
|
+
},
|
|
8806
|
+
"proposedDeadlineAt": {
|
|
8807
|
+
"type": ["string", "null"],
|
|
8808
|
+
"format": "date-time",
|
|
8809
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8810
|
+
},
|
|
8811
|
+
"deadline": {
|
|
8812
|
+
"type": ["object", "null"],
|
|
8813
|
+
"properties": {
|
|
8814
|
+
"id": {
|
|
8815
|
+
"type": "string",
|
|
8816
|
+
"format": "uuid"
|
|
8817
|
+
},
|
|
8818
|
+
"dueAt": {
|
|
8819
|
+
"type": "string",
|
|
8820
|
+
"format": "date-time",
|
|
8821
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8822
|
+
},
|
|
8823
|
+
"agreedAt": {
|
|
8824
|
+
"type": "string",
|
|
8825
|
+
"format": "date-time",
|
|
8826
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8827
|
+
},
|
|
8828
|
+
"agreedByUserId": {
|
|
8829
|
+
"type": "string",
|
|
8830
|
+
"format": "uuid"
|
|
8831
|
+
},
|
|
8832
|
+
"workVersion": {
|
|
8833
|
+
"type": "integer",
|
|
8834
|
+
"minimum": 1,
|
|
8835
|
+
"maximum": 2147483646
|
|
8836
|
+
}
|
|
8837
|
+
},
|
|
8838
|
+
"required": [
|
|
8839
|
+
"id",
|
|
8840
|
+
"dueAt",
|
|
8841
|
+
"agreedAt",
|
|
8842
|
+
"agreedByUserId",
|
|
8843
|
+
"workVersion"
|
|
8844
|
+
]
|
|
8845
|
+
},
|
|
8846
|
+
"createdBy": {
|
|
8847
|
+
"type": "object",
|
|
8848
|
+
"properties": {
|
|
8849
|
+
"kind": {
|
|
8850
|
+
"type": "string",
|
|
8851
|
+
"enum": ["human", "agent"]
|
|
8852
|
+
},
|
|
8853
|
+
"id": {
|
|
8854
|
+
"type": "string",
|
|
8855
|
+
"format": "uuid"
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
"required": ["kind", "id"]
|
|
8859
|
+
},
|
|
8860
|
+
"updatedBy": {
|
|
8861
|
+
"type": "object",
|
|
8862
|
+
"properties": {
|
|
8863
|
+
"kind": {
|
|
8864
|
+
"type": "string",
|
|
8865
|
+
"enum": ["human", "agent"]
|
|
8866
|
+
},
|
|
8867
|
+
"id": {
|
|
8868
|
+
"type": "string",
|
|
8869
|
+
"format": "uuid"
|
|
8870
|
+
}
|
|
8871
|
+
},
|
|
8872
|
+
"required": ["kind", "id"]
|
|
8873
|
+
},
|
|
8874
|
+
"createdAt": {
|
|
8875
|
+
"type": "string",
|
|
8876
|
+
"format": "date-time",
|
|
8877
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8878
|
+
},
|
|
8879
|
+
"updatedAt": {
|
|
8880
|
+
"type": "string",
|
|
8881
|
+
"format": "date-time",
|
|
8882
|
+
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8883
|
+
}
|
|
8884
|
+
},
|
|
8885
|
+
"required": [
|
|
8886
|
+
"id",
|
|
8887
|
+
"agentId",
|
|
8888
|
+
"version",
|
|
8889
|
+
"workTitle",
|
|
8890
|
+
"workDetail",
|
|
8891
|
+
"status",
|
|
8892
|
+
"proposedDeadlineAt",
|
|
8893
|
+
"deadline",
|
|
8894
|
+
"createdBy",
|
|
8895
|
+
"updatedBy",
|
|
8896
|
+
"createdAt",
|
|
8897
|
+
"updatedAt"
|
|
8898
|
+
]
|
|
8899
|
+
},
|
|
8900
|
+
"sdkName": "agentWorkWithdrawDeadline",
|
|
8901
|
+
"summary": "withdraw Deadline",
|
|
8902
|
+
"tag": "Agent Work",
|
|
8903
|
+
"tagCommand": "agent-work"
|
|
8904
|
+
},
|
|
8905
|
+
{
|
|
8906
|
+
"binaryResponse": false,
|
|
8907
|
+
"bodyRequired": true,
|
|
8908
|
+
"command": "bind-agent-credential",
|
|
8909
|
+
"description": "Binds an existing API key or OAuth grant to an agent identity and backfills historical thread activities onto the agent identity with deterministic collision folding.",
|
|
8910
|
+
"hasJsonBody": true,
|
|
8911
|
+
"method": "POST",
|
|
8912
|
+
"operationId": "bindAgentCredential",
|
|
8913
|
+
"path": "/agents/{id}/credentials",
|
|
8914
|
+
"pathParams": [{
|
|
8915
|
+
"description": "Agent identity UUID.",
|
|
8916
|
+
"enum": null,
|
|
8917
|
+
"name": "id",
|
|
8918
|
+
"required": true,
|
|
8919
|
+
"type": "string"
|
|
8920
|
+
}],
|
|
8921
|
+
"queryParams": [],
|
|
8922
|
+
"headerParams": [],
|
|
8923
|
+
"permissions": ["agent_connections:manage"],
|
|
8924
|
+
"access": null,
|
|
8925
|
+
"requestSchema": {
|
|
8926
|
+
"type": "object",
|
|
8927
|
+
"additionalProperties": false,
|
|
8928
|
+
"required": ["credential_id"],
|
|
8929
|
+
"properties": {
|
|
8930
|
+
"kind": {
|
|
8931
|
+
"type": "string",
|
|
8932
|
+
"enum": ["api_key", "oauth_grant"]
|
|
8933
|
+
},
|
|
8934
|
+
"credential_id": {
|
|
8935
|
+
"type": "string",
|
|
8936
|
+
"format": "uuid"
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8939
|
+
},
|
|
8940
|
+
"responseSchema": {
|
|
8941
|
+
"type": "object",
|
|
8942
|
+
"additionalProperties": false,
|
|
8943
|
+
"required": [
|
|
8944
|
+
"bound",
|
|
8945
|
+
"agent_id",
|
|
8946
|
+
"kind",
|
|
8947
|
+
"credential_id",
|
|
8948
|
+
"backfilled_activities",
|
|
8949
|
+
"folded_collisions"
|
|
8950
|
+
],
|
|
8951
|
+
"properties": {
|
|
8952
|
+
"bound": {
|
|
8953
|
+
"type": "boolean",
|
|
8954
|
+
"const": true
|
|
8955
|
+
},
|
|
8956
|
+
"agent_id": {
|
|
8957
|
+
"type": "string",
|
|
8958
|
+
"format": "uuid"
|
|
8959
|
+
},
|
|
8960
|
+
"kind": {
|
|
8961
|
+
"type": "string",
|
|
8962
|
+
"enum": ["api_key", "oauth_grant"]
|
|
8963
|
+
},
|
|
8964
|
+
"credential_id": {
|
|
8965
|
+
"type": "string",
|
|
8966
|
+
"format": "uuid"
|
|
8967
|
+
},
|
|
8968
|
+
"backfilled_activities": {
|
|
8969
|
+
"type": "integer",
|
|
8970
|
+
"minimum": 0
|
|
8971
|
+
},
|
|
8972
|
+
"folded_collisions": {
|
|
8973
|
+
"type": "integer",
|
|
8974
|
+
"minimum": 0
|
|
8975
|
+
}
|
|
8976
|
+
}
|
|
8977
|
+
},
|
|
8978
|
+
"sdkName": "bindAgentCredential",
|
|
8979
|
+
"summary": "Bind an API key or OAuth grant to an agent identity",
|
|
8980
|
+
"tag": "Agents",
|
|
8981
|
+
"tagCommand": "agents"
|
|
8982
|
+
},
|
|
8983
|
+
{
|
|
8984
|
+
"binaryResponse": false,
|
|
8985
|
+
"bodyRequired": true,
|
|
8986
|
+
"command": "claim-agent-address",
|
|
8987
|
+
"description": "Claims an address on a verified organization domain with an enforced canonical From display name. Catch-all sending and receiving on unclaimed addresses remain unchanged.",
|
|
8988
|
+
"hasJsonBody": true,
|
|
8989
|
+
"method": "POST",
|
|
8990
|
+
"operationId": "claimAgentAddress",
|
|
8991
|
+
"path": "/agents/{id}/addresses",
|
|
8992
|
+
"pathParams": [{
|
|
8993
|
+
"description": "Agent identity UUID.",
|
|
8994
|
+
"enum": null,
|
|
8995
|
+
"name": "id",
|
|
8996
|
+
"required": true,
|
|
8997
|
+
"type": "string"
|
|
8998
|
+
}],
|
|
8999
|
+
"queryParams": [],
|
|
9000
|
+
"headerParams": [],
|
|
9001
|
+
"permissions": ["agent_connections:manage"],
|
|
9002
|
+
"access": null,
|
|
9003
|
+
"requestSchema": {
|
|
9004
|
+
"type": "object",
|
|
9005
|
+
"additionalProperties": false,
|
|
9006
|
+
"required": ["address", "display_name"],
|
|
9007
|
+
"properties": {
|
|
9008
|
+
"address": {
|
|
9009
|
+
"type": "string",
|
|
9010
|
+
"maxLength": 320
|
|
9011
|
+
},
|
|
9012
|
+
"display_name": {
|
|
9013
|
+
"type": "string",
|
|
9014
|
+
"minLength": 1,
|
|
9015
|
+
"maxLength": 120
|
|
9016
|
+
},
|
|
9017
|
+
"include_prior_history": { "type": "boolean" },
|
|
9018
|
+
"reclaim_retired": { "type": "boolean" }
|
|
9019
|
+
}
|
|
9020
|
+
},
|
|
9021
|
+
"responseSchema": {
|
|
9022
|
+
"type": "object",
|
|
9023
|
+
"additionalProperties": false,
|
|
9024
|
+
"required": ["address"],
|
|
9025
|
+
"properties": { "address": {
|
|
9026
|
+
"type": "object",
|
|
9027
|
+
"additionalProperties": false,
|
|
9028
|
+
"required": [
|
|
9029
|
+
"id",
|
|
9030
|
+
"agent_id",
|
|
9031
|
+
"address",
|
|
9032
|
+
"display_name",
|
|
9033
|
+
"claimed_at",
|
|
9034
|
+
"claimed_by_user_id",
|
|
9035
|
+
"history_access_from",
|
|
9036
|
+
"released_at",
|
|
9037
|
+
"released_by_user_id",
|
|
9038
|
+
"created_at",
|
|
9039
|
+
"updated_at"
|
|
9040
|
+
],
|
|
9041
|
+
"properties": {
|
|
9042
|
+
"id": {
|
|
9043
|
+
"type": "string",
|
|
9044
|
+
"format": "uuid"
|
|
9045
|
+
},
|
|
9046
|
+
"agent_id": {
|
|
9047
|
+
"type": "string",
|
|
9048
|
+
"format": "uuid"
|
|
9049
|
+
},
|
|
9050
|
+
"address": { "type": "string" },
|
|
9051
|
+
"display_name": { "type": "string" },
|
|
9052
|
+
"claimed_at": {
|
|
9053
|
+
"type": "string",
|
|
9054
|
+
"format": "date-time"
|
|
9055
|
+
},
|
|
9056
|
+
"claimed_by_user_id": {
|
|
9057
|
+
"type": ["string", "null"],
|
|
9058
|
+
"format": "uuid"
|
|
9059
|
+
},
|
|
9060
|
+
"history_access_from": {
|
|
9061
|
+
"type": "string",
|
|
9062
|
+
"format": "date-time"
|
|
9063
|
+
},
|
|
9064
|
+
"released_at": {
|
|
9065
|
+
"type": ["string", "null"],
|
|
9066
|
+
"format": "date-time"
|
|
9067
|
+
},
|
|
9068
|
+
"released_by_user_id": {
|
|
9069
|
+
"type": ["string", "null"],
|
|
9070
|
+
"format": "uuid"
|
|
9071
|
+
},
|
|
9072
|
+
"created_at": {
|
|
9073
|
+
"type": "string",
|
|
9074
|
+
"format": "date-time"
|
|
9075
|
+
},
|
|
9076
|
+
"updated_at": {
|
|
9077
|
+
"type": "string",
|
|
9078
|
+
"format": "date-time"
|
|
9079
|
+
}
|
|
9080
|
+
}
|
|
9081
|
+
} }
|
|
9082
|
+
},
|
|
9083
|
+
"sdkName": "claimAgentAddress",
|
|
9084
|
+
"summary": "Claim an optional mailbox address for an agent identity",
|
|
9085
|
+
"tag": "Agents",
|
|
9086
|
+
"tagCommand": "agents"
|
|
9087
|
+
},
|
|
9088
|
+
{
|
|
9089
|
+
"binaryResponse": false,
|
|
9090
|
+
"bodyRequired": true,
|
|
9091
|
+
"command": "create-agent",
|
|
9092
|
+
"description": "Creates a durable per-organization agent identity decoupled from individual API keys or OAuth grants.",
|
|
9093
|
+
"hasJsonBody": true,
|
|
9094
|
+
"method": "POST",
|
|
9095
|
+
"operationId": "createAgent",
|
|
9096
|
+
"path": "/agents",
|
|
9097
|
+
"pathParams": [],
|
|
9098
|
+
"queryParams": [],
|
|
9099
|
+
"headerParams": [],
|
|
9100
|
+
"permissions": ["agent_connections:manage"],
|
|
9101
|
+
"access": null,
|
|
9102
|
+
"requestSchema": {
|
|
9103
|
+
"type": "object",
|
|
9104
|
+
"additionalProperties": false,
|
|
9105
|
+
"required": ["name"],
|
|
9106
|
+
"properties": {
|
|
9107
|
+
"slug": {
|
|
9108
|
+
"type": "string",
|
|
9109
|
+
"minLength": 1,
|
|
9110
|
+
"maxLength": 64
|
|
9111
|
+
},
|
|
9112
|
+
"name": {
|
|
9113
|
+
"type": "string",
|
|
9114
|
+
"minLength": 1,
|
|
9115
|
+
"maxLength": 120
|
|
9116
|
+
},
|
|
9117
|
+
"description": {
|
|
9118
|
+
"type": ["string", "null"],
|
|
9119
|
+
"maxLength": 500
|
|
9120
|
+
},
|
|
9121
|
+
"ownership_kind": {
|
|
9122
|
+
"type": "string",
|
|
9123
|
+
"enum": [
|
|
9124
|
+
"org",
|
|
9125
|
+
"personal",
|
|
9126
|
+
"external"
|
|
9127
|
+
]
|
|
9128
|
+
},
|
|
9129
|
+
"owner_user_id": {
|
|
9130
|
+
"type": "string",
|
|
9131
|
+
"format": "uuid"
|
|
9132
|
+
},
|
|
9133
|
+
"owner_group_id": {
|
|
9134
|
+
"type": ["string", "null"],
|
|
9135
|
+
"format": "uuid"
|
|
9136
|
+
},
|
|
9137
|
+
"operator_kind": {
|
|
9138
|
+
"type": "string",
|
|
9139
|
+
"enum": ["internal", "external_oauth"]
|
|
9140
|
+
},
|
|
9141
|
+
"vendor_name": {
|
|
9142
|
+
"type": ["string", "null"],
|
|
9143
|
+
"maxLength": 120
|
|
9144
|
+
},
|
|
9145
|
+
"vendor_contact_email": {
|
|
9146
|
+
"type": ["string", "null"],
|
|
9147
|
+
"maxLength": 320
|
|
9148
|
+
},
|
|
9149
|
+
"envelope_grant_id": {
|
|
9150
|
+
"type": ["string", "null"],
|
|
9151
|
+
"format": "uuid"
|
|
9152
|
+
}
|
|
9153
|
+
}
|
|
9154
|
+
},
|
|
9155
|
+
"responseSchema": {
|
|
9156
|
+
"type": "object",
|
|
9157
|
+
"additionalProperties": false,
|
|
9158
|
+
"required": ["agent"],
|
|
9159
|
+
"properties": { "agent": {
|
|
9160
|
+
"type": "object",
|
|
9161
|
+
"additionalProperties": false,
|
|
9162
|
+
"required": [
|
|
9163
|
+
"id",
|
|
9164
|
+
"org_id",
|
|
9165
|
+
"slug",
|
|
9166
|
+
"name",
|
|
9167
|
+
"description",
|
|
9168
|
+
"ownership_kind",
|
|
9169
|
+
"owner_user_id",
|
|
9170
|
+
"owner_label",
|
|
9171
|
+
"owner_group_id",
|
|
9172
|
+
"owner_group_name",
|
|
9173
|
+
"operator_kind",
|
|
9174
|
+
"vendor_name",
|
|
9175
|
+
"vendor_contact_email",
|
|
9176
|
+
"status",
|
|
9177
|
+
"paused_at",
|
|
9178
|
+
"paused_by_user_id",
|
|
9179
|
+
"paused_reason",
|
|
9180
|
+
"retired_at",
|
|
9181
|
+
"retired_by_user_id",
|
|
9182
|
+
"envelope_grant_id",
|
|
9183
|
+
"addresses",
|
|
9184
|
+
"credential_counts",
|
|
9185
|
+
"created_by_user_id",
|
|
9186
|
+
"created_at",
|
|
9187
|
+
"updated_at",
|
|
9188
|
+
"credentials",
|
|
9189
|
+
"retired_addresses"
|
|
9190
|
+
],
|
|
9191
|
+
"properties": {
|
|
9192
|
+
"id": {
|
|
9193
|
+
"type": "string",
|
|
9194
|
+
"format": "uuid"
|
|
9195
|
+
},
|
|
9196
|
+
"org_id": {
|
|
9197
|
+
"type": "string",
|
|
9198
|
+
"format": "uuid"
|
|
9199
|
+
},
|
|
9200
|
+
"slug": { "type": "string" },
|
|
9201
|
+
"name": { "type": "string" },
|
|
9202
|
+
"description": { "type": ["string", "null"] },
|
|
9203
|
+
"ownership_kind": {
|
|
9204
|
+
"type": "string",
|
|
9205
|
+
"enum": [
|
|
9206
|
+
"org",
|
|
9207
|
+
"personal",
|
|
9208
|
+
"external"
|
|
9209
|
+
]
|
|
9210
|
+
},
|
|
9211
|
+
"owner_user_id": {
|
|
9212
|
+
"type": "string",
|
|
9213
|
+
"format": "uuid"
|
|
9214
|
+
},
|
|
9215
|
+
"owner_label": { "type": ["string", "null"] },
|
|
9216
|
+
"owner_group_id": {
|
|
9217
|
+
"type": ["string", "null"],
|
|
9218
|
+
"format": "uuid"
|
|
9219
|
+
},
|
|
9220
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
9221
|
+
"operator_kind": {
|
|
9222
|
+
"type": "string",
|
|
9223
|
+
"enum": ["internal", "external_oauth"]
|
|
9224
|
+
},
|
|
9225
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
9226
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
9227
|
+
"status": {
|
|
9228
|
+
"type": "string",
|
|
9229
|
+
"enum": [
|
|
9230
|
+
"active",
|
|
9231
|
+
"paused",
|
|
9232
|
+
"retired"
|
|
9233
|
+
]
|
|
9234
|
+
},
|
|
9235
|
+
"paused_at": {
|
|
9236
|
+
"type": ["string", "null"],
|
|
9237
|
+
"format": "date-time"
|
|
9238
|
+
},
|
|
9239
|
+
"paused_by_user_id": {
|
|
9240
|
+
"type": ["string", "null"],
|
|
9241
|
+
"format": "uuid"
|
|
9242
|
+
},
|
|
9243
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
9244
|
+
"retired_at": {
|
|
9245
|
+
"type": ["string", "null"],
|
|
9246
|
+
"format": "date-time"
|
|
9247
|
+
},
|
|
9248
|
+
"retired_by_user_id": {
|
|
9249
|
+
"type": ["string", "null"],
|
|
9250
|
+
"format": "uuid"
|
|
9251
|
+
},
|
|
9252
|
+
"envelope_grant_id": {
|
|
9253
|
+
"type": ["string", "null"],
|
|
9254
|
+
"format": "uuid"
|
|
9255
|
+
},
|
|
9256
|
+
"addresses": {
|
|
9257
|
+
"type": "array",
|
|
9258
|
+
"items": {
|
|
9259
|
+
"type": "object",
|
|
9260
|
+
"additionalProperties": false,
|
|
9261
|
+
"required": [
|
|
9262
|
+
"id",
|
|
9263
|
+
"agent_id",
|
|
9264
|
+
"address",
|
|
9265
|
+
"display_name",
|
|
9266
|
+
"claimed_at",
|
|
9267
|
+
"claimed_by_user_id",
|
|
9268
|
+
"history_access_from",
|
|
9269
|
+
"released_at",
|
|
9270
|
+
"released_by_user_id",
|
|
9271
|
+
"created_at",
|
|
9272
|
+
"updated_at"
|
|
9273
|
+
],
|
|
9274
|
+
"properties": {
|
|
9275
|
+
"id": {
|
|
9276
|
+
"type": "string",
|
|
9277
|
+
"format": "uuid"
|
|
9278
|
+
},
|
|
9279
|
+
"agent_id": {
|
|
9280
|
+
"type": "string",
|
|
9281
|
+
"format": "uuid"
|
|
9282
|
+
},
|
|
9283
|
+
"address": { "type": "string" },
|
|
9284
|
+
"display_name": { "type": "string" },
|
|
9285
|
+
"claimed_at": {
|
|
9286
|
+
"type": "string",
|
|
9287
|
+
"format": "date-time"
|
|
9288
|
+
},
|
|
9289
|
+
"claimed_by_user_id": {
|
|
9290
|
+
"type": ["string", "null"],
|
|
9291
|
+
"format": "uuid"
|
|
9292
|
+
},
|
|
9293
|
+
"history_access_from": {
|
|
9294
|
+
"type": "string",
|
|
9295
|
+
"format": "date-time"
|
|
9296
|
+
},
|
|
9297
|
+
"released_at": {
|
|
9298
|
+
"type": ["string", "null"],
|
|
9299
|
+
"format": "date-time"
|
|
9300
|
+
},
|
|
9301
|
+
"released_by_user_id": {
|
|
9302
|
+
"type": ["string", "null"],
|
|
9303
|
+
"format": "uuid"
|
|
9304
|
+
},
|
|
9305
|
+
"created_at": {
|
|
9306
|
+
"type": "string",
|
|
9307
|
+
"format": "date-time"
|
|
9308
|
+
},
|
|
9309
|
+
"updated_at": {
|
|
9310
|
+
"type": "string",
|
|
9311
|
+
"format": "date-time"
|
|
9312
|
+
}
|
|
9313
|
+
}
|
|
9314
|
+
}
|
|
9315
|
+
},
|
|
9316
|
+
"credential_counts": {
|
|
9317
|
+
"type": "object",
|
|
9318
|
+
"additionalProperties": false,
|
|
9319
|
+
"required": [
|
|
9320
|
+
"api_keys",
|
|
9321
|
+
"oauth_grants",
|
|
9322
|
+
"connections"
|
|
9323
|
+
],
|
|
9324
|
+
"properties": {
|
|
9325
|
+
"api_keys": {
|
|
9326
|
+
"type": "integer",
|
|
9327
|
+
"minimum": 0
|
|
9328
|
+
},
|
|
9329
|
+
"oauth_grants": {
|
|
9330
|
+
"type": "integer",
|
|
9331
|
+
"minimum": 0
|
|
9332
|
+
},
|
|
9333
|
+
"connections": {
|
|
9334
|
+
"type": "integer",
|
|
9335
|
+
"minimum": 0
|
|
9336
|
+
}
|
|
9337
|
+
}
|
|
9338
|
+
},
|
|
9339
|
+
"created_by_user_id": {
|
|
9340
|
+
"type": ["string", "null"],
|
|
9341
|
+
"format": "uuid"
|
|
9342
|
+
},
|
|
9343
|
+
"created_at": {
|
|
9344
|
+
"type": "string",
|
|
9345
|
+
"format": "date-time"
|
|
9346
|
+
},
|
|
9347
|
+
"updated_at": {
|
|
9348
|
+
"type": "string",
|
|
9349
|
+
"format": "date-time"
|
|
9350
|
+
},
|
|
9351
|
+
"credentials": {
|
|
9352
|
+
"type": "array",
|
|
9353
|
+
"items": {
|
|
9354
|
+
"type": "object",
|
|
9355
|
+
"additionalProperties": false,
|
|
9356
|
+
"required": [
|
|
9357
|
+
"kind",
|
|
9358
|
+
"id",
|
|
9359
|
+
"label",
|
|
9360
|
+
"prefix",
|
|
9361
|
+
"revoked_at",
|
|
9362
|
+
"created_at"
|
|
9363
|
+
],
|
|
9364
|
+
"properties": {
|
|
9365
|
+
"kind": {
|
|
9366
|
+
"type": "string",
|
|
9367
|
+
"enum": ["api_key", "oauth_grant"]
|
|
9368
|
+
},
|
|
9369
|
+
"id": {
|
|
9370
|
+
"type": "string",
|
|
9371
|
+
"format": "uuid"
|
|
9372
|
+
},
|
|
9373
|
+
"label": { "type": ["string", "null"] },
|
|
9374
|
+
"prefix": { "type": ["string", "null"] },
|
|
9375
|
+
"revoked_at": {
|
|
9376
|
+
"type": ["string", "null"],
|
|
9377
|
+
"format": "date-time"
|
|
9378
|
+
},
|
|
9379
|
+
"created_at": {
|
|
9380
|
+
"type": "string",
|
|
9381
|
+
"format": "date-time"
|
|
9382
|
+
}
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
9385
|
+
},
|
|
9386
|
+
"retired_addresses": {
|
|
9387
|
+
"type": "array",
|
|
9388
|
+
"items": {
|
|
9389
|
+
"type": "object",
|
|
9390
|
+
"additionalProperties": false,
|
|
9391
|
+
"required": [
|
|
9392
|
+
"id",
|
|
9393
|
+
"agent_id",
|
|
9394
|
+
"address",
|
|
9395
|
+
"display_name",
|
|
9396
|
+
"claimed_at",
|
|
9397
|
+
"claimed_by_user_id",
|
|
9398
|
+
"history_access_from",
|
|
9399
|
+
"released_at",
|
|
9400
|
+
"released_by_user_id",
|
|
9401
|
+
"created_at",
|
|
9402
|
+
"updated_at"
|
|
9403
|
+
],
|
|
9404
|
+
"properties": {
|
|
9405
|
+
"id": {
|
|
9406
|
+
"type": "string",
|
|
9407
|
+
"format": "uuid"
|
|
9408
|
+
},
|
|
9409
|
+
"agent_id": {
|
|
9410
|
+
"type": "string",
|
|
9411
|
+
"format": "uuid"
|
|
9412
|
+
},
|
|
9413
|
+
"address": { "type": "string" },
|
|
9414
|
+
"display_name": { "type": "string" },
|
|
9415
|
+
"claimed_at": {
|
|
9416
|
+
"type": "string",
|
|
9417
|
+
"format": "date-time"
|
|
9418
|
+
},
|
|
9419
|
+
"claimed_by_user_id": {
|
|
9420
|
+
"type": ["string", "null"],
|
|
9421
|
+
"format": "uuid"
|
|
9422
|
+
},
|
|
9423
|
+
"history_access_from": {
|
|
9424
|
+
"type": "string",
|
|
9425
|
+
"format": "date-time"
|
|
9426
|
+
},
|
|
9427
|
+
"released_at": {
|
|
9428
|
+
"type": ["string", "null"],
|
|
9429
|
+
"format": "date-time"
|
|
9430
|
+
},
|
|
9431
|
+
"released_by_user_id": {
|
|
9432
|
+
"type": ["string", "null"],
|
|
9433
|
+
"format": "uuid"
|
|
9434
|
+
},
|
|
9435
|
+
"created_at": {
|
|
9436
|
+
"type": "string",
|
|
9437
|
+
"format": "date-time"
|
|
9438
|
+
},
|
|
9439
|
+
"updated_at": {
|
|
9440
|
+
"type": "string",
|
|
9441
|
+
"format": "date-time"
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
9444
|
+
}
|
|
9445
|
+
}
|
|
9446
|
+
}
|
|
9447
|
+
} }
|
|
9448
|
+
},
|
|
9449
|
+
"sdkName": "createAgent",
|
|
9450
|
+
"summary": "Create a durable agent identity",
|
|
9451
|
+
"tag": "Agents",
|
|
9452
|
+
"tagCommand": "agents"
|
|
9453
|
+
},
|
|
9454
|
+
{
|
|
9455
|
+
"binaryResponse": false,
|
|
9456
|
+
"bodyRequired": false,
|
|
9457
|
+
"command": "get-agent",
|
|
9458
|
+
"description": "Returns full details for one agent identity, including active and retired claimed addresses and bound credentials.",
|
|
9459
|
+
"hasJsonBody": false,
|
|
9460
|
+
"method": "GET",
|
|
9461
|
+
"operationId": "getAgent",
|
|
9462
|
+
"path": "/agents/{id}",
|
|
9463
|
+
"pathParams": [{
|
|
9464
|
+
"description": "Agent identity UUID.",
|
|
9465
|
+
"enum": null,
|
|
9466
|
+
"name": "id",
|
|
9467
|
+
"required": true,
|
|
9468
|
+
"type": "string"
|
|
9469
|
+
}],
|
|
9470
|
+
"queryParams": [],
|
|
9471
|
+
"headerParams": [],
|
|
9472
|
+
"permissions": ["org:read"],
|
|
9473
|
+
"access": null,
|
|
9474
|
+
"requestSchema": null,
|
|
9475
|
+
"responseSchema": {
|
|
9476
|
+
"type": "object",
|
|
9477
|
+
"additionalProperties": false,
|
|
9478
|
+
"required": ["agent"],
|
|
9479
|
+
"properties": { "agent": {
|
|
9480
|
+
"type": "object",
|
|
9481
|
+
"additionalProperties": false,
|
|
9482
|
+
"required": [
|
|
9483
|
+
"id",
|
|
9484
|
+
"org_id",
|
|
9485
|
+
"slug",
|
|
9486
|
+
"name",
|
|
9487
|
+
"description",
|
|
9488
|
+
"ownership_kind",
|
|
9489
|
+
"owner_user_id",
|
|
9490
|
+
"owner_label",
|
|
9491
|
+
"owner_group_id",
|
|
9492
|
+
"owner_group_name",
|
|
9493
|
+
"operator_kind",
|
|
9494
|
+
"vendor_name",
|
|
9495
|
+
"vendor_contact_email",
|
|
9496
|
+
"status",
|
|
9497
|
+
"paused_at",
|
|
9498
|
+
"paused_by_user_id",
|
|
9499
|
+
"paused_reason",
|
|
9500
|
+
"retired_at",
|
|
9501
|
+
"retired_by_user_id",
|
|
9502
|
+
"envelope_grant_id",
|
|
9503
|
+
"addresses",
|
|
9504
|
+
"credential_counts",
|
|
9505
|
+
"created_by_user_id",
|
|
9506
|
+
"created_at",
|
|
9507
|
+
"updated_at",
|
|
9508
|
+
"credentials",
|
|
9509
|
+
"retired_addresses"
|
|
9510
|
+
],
|
|
9511
|
+
"properties": {
|
|
9512
|
+
"id": {
|
|
9513
|
+
"type": "string",
|
|
9514
|
+
"format": "uuid"
|
|
9515
|
+
},
|
|
9516
|
+
"org_id": {
|
|
9517
|
+
"type": "string",
|
|
9518
|
+
"format": "uuid"
|
|
9519
|
+
},
|
|
9520
|
+
"slug": { "type": "string" },
|
|
9521
|
+
"name": { "type": "string" },
|
|
9522
|
+
"description": { "type": ["string", "null"] },
|
|
9523
|
+
"ownership_kind": {
|
|
9524
|
+
"type": "string",
|
|
9525
|
+
"enum": [
|
|
9526
|
+
"org",
|
|
9527
|
+
"personal",
|
|
9528
|
+
"external"
|
|
9529
|
+
]
|
|
9530
|
+
},
|
|
9531
|
+
"owner_user_id": {
|
|
9532
|
+
"type": "string",
|
|
9533
|
+
"format": "uuid"
|
|
9534
|
+
},
|
|
9535
|
+
"owner_label": { "type": ["string", "null"] },
|
|
9536
|
+
"owner_group_id": {
|
|
9537
|
+
"type": ["string", "null"],
|
|
9538
|
+
"format": "uuid"
|
|
9539
|
+
},
|
|
9540
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
9541
|
+
"operator_kind": {
|
|
9542
|
+
"type": "string",
|
|
9543
|
+
"enum": ["internal", "external_oauth"]
|
|
9544
|
+
},
|
|
9545
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
9546
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
9547
|
+
"status": {
|
|
9548
|
+
"type": "string",
|
|
9549
|
+
"enum": [
|
|
9550
|
+
"active",
|
|
9551
|
+
"paused",
|
|
9552
|
+
"retired"
|
|
9553
|
+
]
|
|
9554
|
+
},
|
|
9555
|
+
"paused_at": {
|
|
9556
|
+
"type": ["string", "null"],
|
|
9557
|
+
"format": "date-time"
|
|
9558
|
+
},
|
|
9559
|
+
"paused_by_user_id": {
|
|
9560
|
+
"type": ["string", "null"],
|
|
9561
|
+
"format": "uuid"
|
|
9562
|
+
},
|
|
9563
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
9564
|
+
"retired_at": {
|
|
9565
|
+
"type": ["string", "null"],
|
|
9566
|
+
"format": "date-time"
|
|
9567
|
+
},
|
|
9568
|
+
"retired_by_user_id": {
|
|
9569
|
+
"type": ["string", "null"],
|
|
9570
|
+
"format": "uuid"
|
|
9571
|
+
},
|
|
9572
|
+
"envelope_grant_id": {
|
|
9573
|
+
"type": ["string", "null"],
|
|
9574
|
+
"format": "uuid"
|
|
9575
|
+
},
|
|
9576
|
+
"addresses": {
|
|
9577
|
+
"type": "array",
|
|
9578
|
+
"items": {
|
|
9579
|
+
"type": "object",
|
|
9580
|
+
"additionalProperties": false,
|
|
9581
|
+
"required": [
|
|
9582
|
+
"id",
|
|
9583
|
+
"agent_id",
|
|
9584
|
+
"address",
|
|
9585
|
+
"display_name",
|
|
9586
|
+
"claimed_at",
|
|
9587
|
+
"claimed_by_user_id",
|
|
9588
|
+
"history_access_from",
|
|
9589
|
+
"released_at",
|
|
9590
|
+
"released_by_user_id",
|
|
9591
|
+
"created_at",
|
|
9592
|
+
"updated_at"
|
|
9593
|
+
],
|
|
9594
|
+
"properties": {
|
|
9595
|
+
"id": {
|
|
9596
|
+
"type": "string",
|
|
9597
|
+
"format": "uuid"
|
|
9598
|
+
},
|
|
9599
|
+
"agent_id": {
|
|
9600
|
+
"type": "string",
|
|
9601
|
+
"format": "uuid"
|
|
9602
|
+
},
|
|
9603
|
+
"address": { "type": "string" },
|
|
9604
|
+
"display_name": { "type": "string" },
|
|
9605
|
+
"claimed_at": {
|
|
9606
|
+
"type": "string",
|
|
9607
|
+
"format": "date-time"
|
|
9608
|
+
},
|
|
9609
|
+
"claimed_by_user_id": {
|
|
9610
|
+
"type": ["string", "null"],
|
|
9611
|
+
"format": "uuid"
|
|
9612
|
+
},
|
|
9613
|
+
"history_access_from": {
|
|
9614
|
+
"type": "string",
|
|
9615
|
+
"format": "date-time"
|
|
9616
|
+
},
|
|
9617
|
+
"released_at": {
|
|
9618
|
+
"type": ["string", "null"],
|
|
9619
|
+
"format": "date-time"
|
|
9620
|
+
},
|
|
9621
|
+
"released_by_user_id": {
|
|
9622
|
+
"type": ["string", "null"],
|
|
9623
|
+
"format": "uuid"
|
|
9624
|
+
},
|
|
9625
|
+
"created_at": {
|
|
9626
|
+
"type": "string",
|
|
9627
|
+
"format": "date-time"
|
|
9628
|
+
},
|
|
9629
|
+
"updated_at": {
|
|
9630
|
+
"type": "string",
|
|
9631
|
+
"format": "date-time"
|
|
9632
|
+
}
|
|
9633
|
+
}
|
|
9634
|
+
}
|
|
9635
|
+
},
|
|
9636
|
+
"credential_counts": {
|
|
9637
|
+
"type": "object",
|
|
9638
|
+
"additionalProperties": false,
|
|
9639
|
+
"required": [
|
|
9640
|
+
"api_keys",
|
|
9641
|
+
"oauth_grants",
|
|
9642
|
+
"connections"
|
|
9643
|
+
],
|
|
9644
|
+
"properties": {
|
|
9645
|
+
"api_keys": {
|
|
9646
|
+
"type": "integer",
|
|
9647
|
+
"minimum": 0
|
|
9648
|
+
},
|
|
9649
|
+
"oauth_grants": {
|
|
9650
|
+
"type": "integer",
|
|
9651
|
+
"minimum": 0
|
|
9652
|
+
},
|
|
9653
|
+
"connections": {
|
|
9654
|
+
"type": "integer",
|
|
9655
|
+
"minimum": 0
|
|
9656
|
+
}
|
|
9657
|
+
}
|
|
9658
|
+
},
|
|
9659
|
+
"created_by_user_id": {
|
|
9660
|
+
"type": ["string", "null"],
|
|
9661
|
+
"format": "uuid"
|
|
9662
|
+
},
|
|
9663
|
+
"created_at": {
|
|
9664
|
+
"type": "string",
|
|
9665
|
+
"format": "date-time"
|
|
9666
|
+
},
|
|
9667
|
+
"updated_at": {
|
|
9668
|
+
"type": "string",
|
|
9669
|
+
"format": "date-time"
|
|
9670
|
+
},
|
|
9671
|
+
"credentials": {
|
|
9672
|
+
"type": "array",
|
|
9673
|
+
"items": {
|
|
9674
|
+
"type": "object",
|
|
9675
|
+
"additionalProperties": false,
|
|
9676
|
+
"required": [
|
|
9677
|
+
"kind",
|
|
9678
|
+
"id",
|
|
9679
|
+
"label",
|
|
9680
|
+
"prefix",
|
|
9681
|
+
"revoked_at",
|
|
9682
|
+
"created_at"
|
|
9683
|
+
],
|
|
9684
|
+
"properties": {
|
|
9685
|
+
"kind": {
|
|
9686
|
+
"type": "string",
|
|
9687
|
+
"enum": ["api_key", "oauth_grant"]
|
|
9688
|
+
},
|
|
9689
|
+
"id": {
|
|
9690
|
+
"type": "string",
|
|
9691
|
+
"format": "uuid"
|
|
9692
|
+
},
|
|
9693
|
+
"label": { "type": ["string", "null"] },
|
|
9694
|
+
"prefix": { "type": ["string", "null"] },
|
|
9695
|
+
"revoked_at": {
|
|
9696
|
+
"type": ["string", "null"],
|
|
9697
|
+
"format": "date-time"
|
|
9698
|
+
},
|
|
9699
|
+
"created_at": {
|
|
9700
|
+
"type": "string",
|
|
9701
|
+
"format": "date-time"
|
|
9702
|
+
}
|
|
9703
|
+
}
|
|
9704
|
+
}
|
|
9705
|
+
},
|
|
9706
|
+
"retired_addresses": {
|
|
9707
|
+
"type": "array",
|
|
9708
|
+
"items": {
|
|
9709
|
+
"type": "object",
|
|
9710
|
+
"additionalProperties": false,
|
|
9711
|
+
"required": [
|
|
9712
|
+
"id",
|
|
9713
|
+
"agent_id",
|
|
9714
|
+
"address",
|
|
9715
|
+
"display_name",
|
|
9716
|
+
"claimed_at",
|
|
9717
|
+
"claimed_by_user_id",
|
|
9718
|
+
"history_access_from",
|
|
9719
|
+
"released_at",
|
|
9720
|
+
"released_by_user_id",
|
|
9721
|
+
"created_at",
|
|
9722
|
+
"updated_at"
|
|
9723
|
+
],
|
|
9724
|
+
"properties": {
|
|
9725
|
+
"id": {
|
|
9726
|
+
"type": "string",
|
|
9727
|
+
"format": "uuid"
|
|
9728
|
+
},
|
|
9729
|
+
"agent_id": {
|
|
9730
|
+
"type": "string",
|
|
9731
|
+
"format": "uuid"
|
|
9732
|
+
},
|
|
9733
|
+
"address": { "type": "string" },
|
|
9734
|
+
"display_name": { "type": "string" },
|
|
9735
|
+
"claimed_at": {
|
|
9736
|
+
"type": "string",
|
|
9737
|
+
"format": "date-time"
|
|
9738
|
+
},
|
|
9739
|
+
"claimed_by_user_id": {
|
|
9740
|
+
"type": ["string", "null"],
|
|
9741
|
+
"format": "uuid"
|
|
9742
|
+
},
|
|
9743
|
+
"history_access_from": {
|
|
9744
|
+
"type": "string",
|
|
9745
|
+
"format": "date-time"
|
|
9746
|
+
},
|
|
9747
|
+
"released_at": {
|
|
9748
|
+
"type": ["string", "null"],
|
|
9749
|
+
"format": "date-time"
|
|
9750
|
+
},
|
|
9751
|
+
"released_by_user_id": {
|
|
9752
|
+
"type": ["string", "null"],
|
|
9753
|
+
"format": "uuid"
|
|
9754
|
+
},
|
|
9755
|
+
"created_at": {
|
|
9756
|
+
"type": "string",
|
|
9757
|
+
"format": "date-time"
|
|
9758
|
+
},
|
|
9759
|
+
"updated_at": {
|
|
9760
|
+
"type": "string",
|
|
9761
|
+
"format": "date-time"
|
|
9762
|
+
}
|
|
9763
|
+
}
|
|
9764
|
+
}
|
|
9765
|
+
}
|
|
9766
|
+
}
|
|
9767
|
+
} }
|
|
9768
|
+
},
|
|
9769
|
+
"sdkName": "getAgent",
|
|
9770
|
+
"summary": "Get a durable agent identity with credentials and claimed addresses",
|
|
9771
|
+
"tag": "Agents",
|
|
9772
|
+
"tagCommand": "agents"
|
|
9773
|
+
},
|
|
9774
|
+
{
|
|
9775
|
+
"binaryResponse": false,
|
|
9776
|
+
"bodyRequired": false,
|
|
9777
|
+
"command": "list-agents",
|
|
9778
|
+
"description": "Lists durable per-organization agent identities along with their active claimed addresses, credential counts, owner attribution, and lifecycle status.",
|
|
9779
|
+
"hasJsonBody": false,
|
|
9780
|
+
"method": "GET",
|
|
9781
|
+
"operationId": "listAgents",
|
|
9782
|
+
"path": "/agents",
|
|
9783
|
+
"pathParams": [],
|
|
9784
|
+
"queryParams": [
|
|
9785
|
+
{
|
|
9786
|
+
"description": "Filter by lifecycle status (active, paused, or retired).",
|
|
9787
|
+
"enum": null,
|
|
9788
|
+
"name": "status",
|
|
9789
|
+
"required": false,
|
|
9790
|
+
"type": "string"
|
|
9791
|
+
},
|
|
9792
|
+
{
|
|
9793
|
+
"description": "Filter by ownership kind (org, personal, or external).",
|
|
9794
|
+
"enum": null,
|
|
9795
|
+
"name": "ownership_kind",
|
|
9796
|
+
"required": false,
|
|
9797
|
+
"type": "string"
|
|
9798
|
+
},
|
|
9799
|
+
{
|
|
9800
|
+
"description": "Filter by accountable owner user UUID.",
|
|
9801
|
+
"enum": null,
|
|
9802
|
+
"name": "owner_user_id",
|
|
9803
|
+
"required": false,
|
|
9804
|
+
"type": "string"
|
|
9805
|
+
},
|
|
9806
|
+
{
|
|
9807
|
+
"default": 100,
|
|
9808
|
+
"description": "Maximum agent identities to return (1 to 200; default 100).",
|
|
9809
|
+
"enum": null,
|
|
9810
|
+
"maximum": 200,
|
|
9811
|
+
"minimum": 1,
|
|
9812
|
+
"name": "limit",
|
|
9813
|
+
"required": false,
|
|
9814
|
+
"type": "integer"
|
|
9815
|
+
}
|
|
9816
|
+
],
|
|
9817
|
+
"headerParams": [],
|
|
9818
|
+
"permissions": ["org:read"],
|
|
9819
|
+
"access": null,
|
|
9820
|
+
"requestSchema": null,
|
|
9821
|
+
"responseSchema": {
|
|
9822
|
+
"type": "object",
|
|
9823
|
+
"additionalProperties": false,
|
|
9824
|
+
"required": ["agents"],
|
|
9825
|
+
"properties": { "agents": {
|
|
9826
|
+
"type": "array",
|
|
9827
|
+
"items": {
|
|
9828
|
+
"type": "object",
|
|
9829
|
+
"additionalProperties": false,
|
|
9830
|
+
"required": [
|
|
9831
|
+
"id",
|
|
9832
|
+
"org_id",
|
|
9833
|
+
"slug",
|
|
9834
|
+
"name",
|
|
9835
|
+
"description",
|
|
9836
|
+
"ownership_kind",
|
|
9837
|
+
"owner_user_id",
|
|
9838
|
+
"owner_label",
|
|
9839
|
+
"owner_group_id",
|
|
9840
|
+
"owner_group_name",
|
|
9841
|
+
"operator_kind",
|
|
9842
|
+
"vendor_name",
|
|
9843
|
+
"vendor_contact_email",
|
|
9844
|
+
"status",
|
|
9845
|
+
"paused_at",
|
|
9846
|
+
"paused_by_user_id",
|
|
9847
|
+
"paused_reason",
|
|
9848
|
+
"retired_at",
|
|
9849
|
+
"retired_by_user_id",
|
|
9850
|
+
"envelope_grant_id",
|
|
9851
|
+
"addresses",
|
|
9852
|
+
"credential_counts",
|
|
9853
|
+
"created_by_user_id",
|
|
9854
|
+
"created_at",
|
|
9855
|
+
"updated_at"
|
|
9856
|
+
],
|
|
9857
|
+
"properties": {
|
|
9858
|
+
"id": {
|
|
9859
|
+
"type": "string",
|
|
9860
|
+
"format": "uuid"
|
|
9861
|
+
},
|
|
9862
|
+
"org_id": {
|
|
9863
|
+
"type": "string",
|
|
9864
|
+
"format": "uuid"
|
|
9865
|
+
},
|
|
9866
|
+
"slug": { "type": "string" },
|
|
9867
|
+
"name": { "type": "string" },
|
|
9868
|
+
"description": { "type": ["string", "null"] },
|
|
9869
|
+
"ownership_kind": {
|
|
9870
|
+
"type": "string",
|
|
9871
|
+
"enum": [
|
|
9872
|
+
"org",
|
|
9873
|
+
"personal",
|
|
9874
|
+
"external"
|
|
9875
|
+
]
|
|
9876
|
+
},
|
|
9877
|
+
"owner_user_id": {
|
|
9878
|
+
"type": "string",
|
|
9879
|
+
"format": "uuid"
|
|
9880
|
+
},
|
|
9881
|
+
"owner_label": { "type": ["string", "null"] },
|
|
9882
|
+
"owner_group_id": {
|
|
9883
|
+
"type": ["string", "null"],
|
|
9884
|
+
"format": "uuid"
|
|
9885
|
+
},
|
|
9886
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
9887
|
+
"operator_kind": {
|
|
9888
|
+
"type": "string",
|
|
9889
|
+
"enum": ["internal", "external_oauth"]
|
|
9890
|
+
},
|
|
9891
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
9892
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
9893
|
+
"status": {
|
|
9894
|
+
"type": "string",
|
|
9895
|
+
"enum": [
|
|
9896
|
+
"active",
|
|
9897
|
+
"paused",
|
|
9898
|
+
"retired"
|
|
9899
|
+
]
|
|
9900
|
+
},
|
|
9901
|
+
"paused_at": {
|
|
9902
|
+
"type": ["string", "null"],
|
|
9903
|
+
"format": "date-time"
|
|
9904
|
+
},
|
|
9905
|
+
"paused_by_user_id": {
|
|
9906
|
+
"type": ["string", "null"],
|
|
9907
|
+
"format": "uuid"
|
|
9908
|
+
},
|
|
9909
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
9910
|
+
"retired_at": {
|
|
9911
|
+
"type": ["string", "null"],
|
|
9912
|
+
"format": "date-time"
|
|
9913
|
+
},
|
|
9914
|
+
"retired_by_user_id": {
|
|
9915
|
+
"type": ["string", "null"],
|
|
9916
|
+
"format": "uuid"
|
|
9917
|
+
},
|
|
9918
|
+
"envelope_grant_id": {
|
|
9919
|
+
"type": ["string", "null"],
|
|
9920
|
+
"format": "uuid"
|
|
9921
|
+
},
|
|
9922
|
+
"addresses": {
|
|
9923
|
+
"type": "array",
|
|
9924
|
+
"items": {
|
|
9925
|
+
"type": "object",
|
|
9926
|
+
"additionalProperties": false,
|
|
9927
|
+
"required": [
|
|
9928
|
+
"id",
|
|
9929
|
+
"agent_id",
|
|
9930
|
+
"address",
|
|
9931
|
+
"display_name",
|
|
9932
|
+
"claimed_at",
|
|
9933
|
+
"claimed_by_user_id",
|
|
9934
|
+
"history_access_from",
|
|
9935
|
+
"released_at",
|
|
9936
|
+
"released_by_user_id",
|
|
9937
|
+
"created_at",
|
|
9938
|
+
"updated_at"
|
|
9939
|
+
],
|
|
9940
|
+
"properties": {
|
|
9941
|
+
"id": {
|
|
9942
|
+
"type": "string",
|
|
9943
|
+
"format": "uuid"
|
|
9944
|
+
},
|
|
9945
|
+
"agent_id": {
|
|
9946
|
+
"type": "string",
|
|
9947
|
+
"format": "uuid"
|
|
9948
|
+
},
|
|
9949
|
+
"address": { "type": "string" },
|
|
9950
|
+
"display_name": { "type": "string" },
|
|
9951
|
+
"claimed_at": {
|
|
9952
|
+
"type": "string",
|
|
9953
|
+
"format": "date-time"
|
|
9954
|
+
},
|
|
9955
|
+
"claimed_by_user_id": {
|
|
9956
|
+
"type": ["string", "null"],
|
|
9957
|
+
"format": "uuid"
|
|
9958
|
+
},
|
|
9959
|
+
"history_access_from": {
|
|
9960
|
+
"type": "string",
|
|
9961
|
+
"format": "date-time"
|
|
9962
|
+
},
|
|
9963
|
+
"released_at": {
|
|
9964
|
+
"type": ["string", "null"],
|
|
9965
|
+
"format": "date-time"
|
|
9966
|
+
},
|
|
9967
|
+
"released_by_user_id": {
|
|
9968
|
+
"type": ["string", "null"],
|
|
9969
|
+
"format": "uuid"
|
|
9970
|
+
},
|
|
9971
|
+
"created_at": {
|
|
9972
|
+
"type": "string",
|
|
9973
|
+
"format": "date-time"
|
|
9974
|
+
},
|
|
9975
|
+
"updated_at": {
|
|
9976
|
+
"type": "string",
|
|
9977
|
+
"format": "date-time"
|
|
9978
|
+
}
|
|
9979
|
+
}
|
|
9980
|
+
}
|
|
9981
|
+
},
|
|
9982
|
+
"credential_counts": {
|
|
9983
|
+
"type": "object",
|
|
9984
|
+
"additionalProperties": false,
|
|
9985
|
+
"required": [
|
|
9986
|
+
"api_keys",
|
|
9987
|
+
"oauth_grants",
|
|
9988
|
+
"connections"
|
|
9989
|
+
],
|
|
9990
|
+
"properties": {
|
|
9991
|
+
"api_keys": {
|
|
9992
|
+
"type": "integer",
|
|
9993
|
+
"minimum": 0
|
|
9994
|
+
},
|
|
9995
|
+
"oauth_grants": {
|
|
9996
|
+
"type": "integer",
|
|
9997
|
+
"minimum": 0
|
|
9998
|
+
},
|
|
9999
|
+
"connections": {
|
|
10000
|
+
"type": "integer",
|
|
10001
|
+
"minimum": 0
|
|
10002
|
+
}
|
|
10003
|
+
}
|
|
10004
|
+
},
|
|
10005
|
+
"created_by_user_id": {
|
|
10006
|
+
"type": ["string", "null"],
|
|
10007
|
+
"format": "uuid"
|
|
10008
|
+
},
|
|
10009
|
+
"created_at": {
|
|
10010
|
+
"type": "string",
|
|
10011
|
+
"format": "date-time"
|
|
10012
|
+
},
|
|
10013
|
+
"updated_at": {
|
|
10014
|
+
"type": "string",
|
|
10015
|
+
"format": "date-time"
|
|
10016
|
+
}
|
|
10017
|
+
}
|
|
10018
|
+
}
|
|
10019
|
+
} }
|
|
10020
|
+
},
|
|
10021
|
+
"sdkName": "listAgents",
|
|
10022
|
+
"summary": "List durable agent identities in the organization",
|
|
10023
|
+
"tag": "Agents",
|
|
10024
|
+
"tagCommand": "agents"
|
|
10025
|
+
},
|
|
10026
|
+
{
|
|
10027
|
+
"binaryResponse": false,
|
|
10028
|
+
"bodyRequired": false,
|
|
10029
|
+
"command": "pause-agent",
|
|
10030
|
+
"description": "Pauses the agent across all bound credentials (returning 403 agent_paused instead of 401), holds scheduled sends, pauses repeating sends and wake schedules, and holds pending drafts.",
|
|
10031
|
+
"hasJsonBody": true,
|
|
10032
|
+
"method": "POST",
|
|
10033
|
+
"operationId": "pauseAgent",
|
|
10034
|
+
"path": "/agents/{id}/pause",
|
|
10035
|
+
"pathParams": [{
|
|
10036
|
+
"description": "Agent identity UUID.",
|
|
10037
|
+
"enum": null,
|
|
10038
|
+
"name": "id",
|
|
10039
|
+
"required": true,
|
|
10040
|
+
"type": "string"
|
|
10041
|
+
}],
|
|
10042
|
+
"queryParams": [],
|
|
10043
|
+
"headerParams": [],
|
|
10044
|
+
"permissions": ["agent_connections:manage"],
|
|
10045
|
+
"access": null,
|
|
10046
|
+
"requestSchema": {
|
|
10047
|
+
"type": "object",
|
|
10048
|
+
"additionalProperties": false,
|
|
10049
|
+
"properties": { "reason": {
|
|
10050
|
+
"type": "string",
|
|
10051
|
+
"minLength": 1,
|
|
10052
|
+
"maxLength": 500
|
|
10053
|
+
} }
|
|
10054
|
+
},
|
|
10055
|
+
"responseSchema": {
|
|
10056
|
+
"type": "object",
|
|
10057
|
+
"additionalProperties": false,
|
|
10058
|
+
"required": ["agent", "held"],
|
|
10059
|
+
"properties": {
|
|
10060
|
+
"agent": {
|
|
10061
|
+
"type": "object",
|
|
10062
|
+
"additionalProperties": false,
|
|
10063
|
+
"required": [
|
|
10064
|
+
"id",
|
|
10065
|
+
"org_id",
|
|
10066
|
+
"slug",
|
|
10067
|
+
"name",
|
|
10068
|
+
"description",
|
|
10069
|
+
"ownership_kind",
|
|
10070
|
+
"owner_user_id",
|
|
10071
|
+
"owner_label",
|
|
10072
|
+
"owner_group_id",
|
|
10073
|
+
"owner_group_name",
|
|
10074
|
+
"operator_kind",
|
|
10075
|
+
"vendor_name",
|
|
10076
|
+
"vendor_contact_email",
|
|
10077
|
+
"status",
|
|
10078
|
+
"paused_at",
|
|
10079
|
+
"paused_by_user_id",
|
|
10080
|
+
"paused_reason",
|
|
10081
|
+
"retired_at",
|
|
10082
|
+
"retired_by_user_id",
|
|
10083
|
+
"envelope_grant_id",
|
|
10084
|
+
"addresses",
|
|
10085
|
+
"credential_counts",
|
|
10086
|
+
"created_by_user_id",
|
|
10087
|
+
"created_at",
|
|
10088
|
+
"updated_at",
|
|
10089
|
+
"credentials",
|
|
10090
|
+
"retired_addresses"
|
|
10091
|
+
],
|
|
10092
|
+
"properties": {
|
|
10093
|
+
"id": {
|
|
10094
|
+
"type": "string",
|
|
10095
|
+
"format": "uuid"
|
|
10096
|
+
},
|
|
10097
|
+
"org_id": {
|
|
10098
|
+
"type": "string",
|
|
10099
|
+
"format": "uuid"
|
|
10100
|
+
},
|
|
10101
|
+
"slug": { "type": "string" },
|
|
10102
|
+
"name": { "type": "string" },
|
|
10103
|
+
"description": { "type": ["string", "null"] },
|
|
10104
|
+
"ownership_kind": {
|
|
10105
|
+
"type": "string",
|
|
10106
|
+
"enum": [
|
|
10107
|
+
"org",
|
|
10108
|
+
"personal",
|
|
10109
|
+
"external"
|
|
10110
|
+
]
|
|
10111
|
+
},
|
|
10112
|
+
"owner_user_id": {
|
|
10113
|
+
"type": "string",
|
|
10114
|
+
"format": "uuid"
|
|
10115
|
+
},
|
|
10116
|
+
"owner_label": { "type": ["string", "null"] },
|
|
10117
|
+
"owner_group_id": {
|
|
10118
|
+
"type": ["string", "null"],
|
|
10119
|
+
"format": "uuid"
|
|
10120
|
+
},
|
|
10121
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
10122
|
+
"operator_kind": {
|
|
10123
|
+
"type": "string",
|
|
10124
|
+
"enum": ["internal", "external_oauth"]
|
|
10125
|
+
},
|
|
10126
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
10127
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
10128
|
+
"status": {
|
|
10129
|
+
"type": "string",
|
|
10130
|
+
"enum": [
|
|
10131
|
+
"active",
|
|
10132
|
+
"paused",
|
|
10133
|
+
"retired"
|
|
10134
|
+
]
|
|
10135
|
+
},
|
|
10136
|
+
"paused_at": {
|
|
10137
|
+
"type": ["string", "null"],
|
|
10138
|
+
"format": "date-time"
|
|
10139
|
+
},
|
|
10140
|
+
"paused_by_user_id": {
|
|
10141
|
+
"type": ["string", "null"],
|
|
10142
|
+
"format": "uuid"
|
|
10143
|
+
},
|
|
10144
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
10145
|
+
"retired_at": {
|
|
10146
|
+
"type": ["string", "null"],
|
|
10147
|
+
"format": "date-time"
|
|
10148
|
+
},
|
|
10149
|
+
"retired_by_user_id": {
|
|
10150
|
+
"type": ["string", "null"],
|
|
10151
|
+
"format": "uuid"
|
|
10152
|
+
},
|
|
10153
|
+
"envelope_grant_id": {
|
|
10154
|
+
"type": ["string", "null"],
|
|
10155
|
+
"format": "uuid"
|
|
10156
|
+
},
|
|
10157
|
+
"addresses": {
|
|
10158
|
+
"type": "array",
|
|
10159
|
+
"items": {
|
|
10160
|
+
"type": "object",
|
|
10161
|
+
"additionalProperties": false,
|
|
10162
|
+
"required": [
|
|
10163
|
+
"id",
|
|
10164
|
+
"agent_id",
|
|
10165
|
+
"address",
|
|
10166
|
+
"display_name",
|
|
10167
|
+
"claimed_at",
|
|
10168
|
+
"claimed_by_user_id",
|
|
10169
|
+
"history_access_from",
|
|
10170
|
+
"released_at",
|
|
10171
|
+
"released_by_user_id",
|
|
10172
|
+
"created_at",
|
|
10173
|
+
"updated_at"
|
|
10174
|
+
],
|
|
10175
|
+
"properties": {
|
|
10176
|
+
"id": {
|
|
10177
|
+
"type": "string",
|
|
10178
|
+
"format": "uuid"
|
|
10179
|
+
},
|
|
10180
|
+
"agent_id": {
|
|
10181
|
+
"type": "string",
|
|
10182
|
+
"format": "uuid"
|
|
10183
|
+
},
|
|
10184
|
+
"address": { "type": "string" },
|
|
10185
|
+
"display_name": { "type": "string" },
|
|
10186
|
+
"claimed_at": {
|
|
10187
|
+
"type": "string",
|
|
10188
|
+
"format": "date-time"
|
|
10189
|
+
},
|
|
10190
|
+
"claimed_by_user_id": {
|
|
10191
|
+
"type": ["string", "null"],
|
|
10192
|
+
"format": "uuid"
|
|
10193
|
+
},
|
|
10194
|
+
"history_access_from": {
|
|
10195
|
+
"type": "string",
|
|
10196
|
+
"format": "date-time"
|
|
10197
|
+
},
|
|
10198
|
+
"released_at": {
|
|
10199
|
+
"type": ["string", "null"],
|
|
10200
|
+
"format": "date-time"
|
|
10201
|
+
},
|
|
10202
|
+
"released_by_user_id": {
|
|
10203
|
+
"type": ["string", "null"],
|
|
10204
|
+
"format": "uuid"
|
|
10205
|
+
},
|
|
10206
|
+
"created_at": {
|
|
10207
|
+
"type": "string",
|
|
10208
|
+
"format": "date-time"
|
|
10209
|
+
},
|
|
10210
|
+
"updated_at": {
|
|
10211
|
+
"type": "string",
|
|
10212
|
+
"format": "date-time"
|
|
10213
|
+
}
|
|
10214
|
+
}
|
|
10215
|
+
}
|
|
10216
|
+
},
|
|
10217
|
+
"credential_counts": {
|
|
10218
|
+
"type": "object",
|
|
10219
|
+
"additionalProperties": false,
|
|
10220
|
+
"required": [
|
|
10221
|
+
"api_keys",
|
|
10222
|
+
"oauth_grants",
|
|
10223
|
+
"connections"
|
|
10224
|
+
],
|
|
10225
|
+
"properties": {
|
|
10226
|
+
"api_keys": {
|
|
10227
|
+
"type": "integer",
|
|
10228
|
+
"minimum": 0
|
|
10229
|
+
},
|
|
10230
|
+
"oauth_grants": {
|
|
10231
|
+
"type": "integer",
|
|
10232
|
+
"minimum": 0
|
|
10233
|
+
},
|
|
10234
|
+
"connections": {
|
|
10235
|
+
"type": "integer",
|
|
10236
|
+
"minimum": 0
|
|
10237
|
+
}
|
|
10238
|
+
}
|
|
10239
|
+
},
|
|
10240
|
+
"created_by_user_id": {
|
|
10241
|
+
"type": ["string", "null"],
|
|
10242
|
+
"format": "uuid"
|
|
10243
|
+
},
|
|
10244
|
+
"created_at": {
|
|
10245
|
+
"type": "string",
|
|
10246
|
+
"format": "date-time"
|
|
10247
|
+
},
|
|
10248
|
+
"updated_at": {
|
|
10249
|
+
"type": "string",
|
|
10250
|
+
"format": "date-time"
|
|
10251
|
+
},
|
|
10252
|
+
"credentials": {
|
|
10253
|
+
"type": "array",
|
|
10254
|
+
"items": {
|
|
10255
|
+
"type": "object",
|
|
10256
|
+
"additionalProperties": false,
|
|
10257
|
+
"required": [
|
|
10258
|
+
"kind",
|
|
10259
|
+
"id",
|
|
10260
|
+
"label",
|
|
10261
|
+
"prefix",
|
|
10262
|
+
"revoked_at",
|
|
10263
|
+
"created_at"
|
|
10264
|
+
],
|
|
10265
|
+
"properties": {
|
|
10266
|
+
"kind": {
|
|
10267
|
+
"type": "string",
|
|
10268
|
+
"enum": ["api_key", "oauth_grant"]
|
|
10269
|
+
},
|
|
10270
|
+
"id": {
|
|
10271
|
+
"type": "string",
|
|
10272
|
+
"format": "uuid"
|
|
10273
|
+
},
|
|
10274
|
+
"label": { "type": ["string", "null"] },
|
|
10275
|
+
"prefix": { "type": ["string", "null"] },
|
|
10276
|
+
"revoked_at": {
|
|
10277
|
+
"type": ["string", "null"],
|
|
10278
|
+
"format": "date-time"
|
|
10279
|
+
},
|
|
10280
|
+
"created_at": {
|
|
10281
|
+
"type": "string",
|
|
10282
|
+
"format": "date-time"
|
|
10283
|
+
}
|
|
10284
|
+
}
|
|
10285
|
+
}
|
|
10286
|
+
},
|
|
10287
|
+
"retired_addresses": {
|
|
10288
|
+
"type": "array",
|
|
10289
|
+
"items": {
|
|
10290
|
+
"type": "object",
|
|
10291
|
+
"additionalProperties": false,
|
|
10292
|
+
"required": [
|
|
10293
|
+
"id",
|
|
10294
|
+
"agent_id",
|
|
10295
|
+
"address",
|
|
10296
|
+
"display_name",
|
|
10297
|
+
"claimed_at",
|
|
10298
|
+
"claimed_by_user_id",
|
|
10299
|
+
"history_access_from",
|
|
10300
|
+
"released_at",
|
|
10301
|
+
"released_by_user_id",
|
|
10302
|
+
"created_at",
|
|
10303
|
+
"updated_at"
|
|
10304
|
+
],
|
|
10305
|
+
"properties": {
|
|
10306
|
+
"id": {
|
|
10307
|
+
"type": "string",
|
|
10308
|
+
"format": "uuid"
|
|
10309
|
+
},
|
|
10310
|
+
"agent_id": {
|
|
10311
|
+
"type": "string",
|
|
10312
|
+
"format": "uuid"
|
|
10313
|
+
},
|
|
10314
|
+
"address": { "type": "string" },
|
|
10315
|
+
"display_name": { "type": "string" },
|
|
10316
|
+
"claimed_at": {
|
|
10317
|
+
"type": "string",
|
|
10318
|
+
"format": "date-time"
|
|
10319
|
+
},
|
|
10320
|
+
"claimed_by_user_id": {
|
|
10321
|
+
"type": ["string", "null"],
|
|
10322
|
+
"format": "uuid"
|
|
10323
|
+
},
|
|
10324
|
+
"history_access_from": {
|
|
10325
|
+
"type": "string",
|
|
10326
|
+
"format": "date-time"
|
|
10327
|
+
},
|
|
10328
|
+
"released_at": {
|
|
10329
|
+
"type": ["string", "null"],
|
|
10330
|
+
"format": "date-time"
|
|
10331
|
+
},
|
|
10332
|
+
"released_by_user_id": {
|
|
10333
|
+
"type": ["string", "null"],
|
|
10334
|
+
"format": "uuid"
|
|
10335
|
+
},
|
|
10336
|
+
"created_at": {
|
|
10337
|
+
"type": "string",
|
|
10338
|
+
"format": "date-time"
|
|
10339
|
+
},
|
|
10340
|
+
"updated_at": {
|
|
10341
|
+
"type": "string",
|
|
10342
|
+
"format": "date-time"
|
|
10343
|
+
}
|
|
10344
|
+
}
|
|
10345
|
+
}
|
|
10346
|
+
}
|
|
10347
|
+
}
|
|
10348
|
+
},
|
|
10349
|
+
"held": {
|
|
10350
|
+
"type": "object",
|
|
10351
|
+
"additionalProperties": false,
|
|
10352
|
+
"required": [
|
|
10353
|
+
"scheduled_sends",
|
|
10354
|
+
"repeating_sends",
|
|
10355
|
+
"wake_schedules",
|
|
10356
|
+
"drafts"
|
|
10357
|
+
],
|
|
10358
|
+
"properties": {
|
|
10359
|
+
"scheduled_sends": {
|
|
10360
|
+
"type": "integer",
|
|
10361
|
+
"minimum": 0
|
|
10362
|
+
},
|
|
10363
|
+
"repeating_sends": {
|
|
10364
|
+
"type": "integer",
|
|
10365
|
+
"minimum": 0
|
|
10366
|
+
},
|
|
10367
|
+
"wake_schedules": {
|
|
10368
|
+
"type": "integer",
|
|
10369
|
+
"minimum": 0
|
|
10370
|
+
},
|
|
10371
|
+
"drafts": {
|
|
10372
|
+
"type": "integer",
|
|
10373
|
+
"minimum": 0
|
|
10374
|
+
}
|
|
10375
|
+
}
|
|
10376
|
+
}
|
|
10377
|
+
}
|
|
10378
|
+
},
|
|
10379
|
+
"sdkName": "pauseAgent",
|
|
10380
|
+
"summary": "Pause an agent identity and hold queued outbound work",
|
|
10381
|
+
"tag": "Agents",
|
|
10382
|
+
"tagCommand": "agents"
|
|
10383
|
+
},
|
|
10384
|
+
{
|
|
10385
|
+
"binaryResponse": false,
|
|
10386
|
+
"bodyRequired": false,
|
|
10387
|
+
"command": "release-agent-address",
|
|
10388
|
+
"description": "Releases an active claimed address from an agent identity and records it as retired.",
|
|
10389
|
+
"hasJsonBody": false,
|
|
10390
|
+
"method": "DELETE",
|
|
10391
|
+
"operationId": "releaseAgentAddress",
|
|
10392
|
+
"path": "/agents/{id}/addresses/{address_id}",
|
|
10393
|
+
"pathParams": [{
|
|
10394
|
+
"description": "Agent identity UUID.",
|
|
10395
|
+
"enum": null,
|
|
10396
|
+
"name": "id",
|
|
10397
|
+
"required": true,
|
|
10398
|
+
"type": "string"
|
|
10399
|
+
}, {
|
|
10400
|
+
"description": "Agent address claim UUID.",
|
|
10401
|
+
"enum": null,
|
|
10402
|
+
"name": "address_id",
|
|
10403
|
+
"required": true,
|
|
10404
|
+
"type": "string"
|
|
10405
|
+
}],
|
|
10406
|
+
"queryParams": [],
|
|
10407
|
+
"headerParams": [],
|
|
10408
|
+
"permissions": ["agent_connections:manage"],
|
|
10409
|
+
"access": null,
|
|
10410
|
+
"requestSchema": null,
|
|
10411
|
+
"responseSchema": {
|
|
10412
|
+
"type": "object",
|
|
10413
|
+
"additionalProperties": false,
|
|
10414
|
+
"required": ["address"],
|
|
10415
|
+
"properties": { "address": {
|
|
10416
|
+
"type": "object",
|
|
10417
|
+
"additionalProperties": false,
|
|
10418
|
+
"required": [
|
|
10419
|
+
"id",
|
|
10420
|
+
"agent_id",
|
|
10421
|
+
"address",
|
|
10422
|
+
"display_name",
|
|
10423
|
+
"claimed_at",
|
|
10424
|
+
"claimed_by_user_id",
|
|
10425
|
+
"history_access_from",
|
|
10426
|
+
"released_at",
|
|
10427
|
+
"released_by_user_id",
|
|
10428
|
+
"created_at",
|
|
10429
|
+
"updated_at"
|
|
10430
|
+
],
|
|
10431
|
+
"properties": {
|
|
10432
|
+
"id": {
|
|
10433
|
+
"type": "string",
|
|
10434
|
+
"format": "uuid"
|
|
10435
|
+
},
|
|
10436
|
+
"agent_id": {
|
|
10437
|
+
"type": "string",
|
|
10438
|
+
"format": "uuid"
|
|
10439
|
+
},
|
|
10440
|
+
"address": { "type": "string" },
|
|
10441
|
+
"display_name": { "type": "string" },
|
|
10442
|
+
"claimed_at": {
|
|
10443
|
+
"type": "string",
|
|
10444
|
+
"format": "date-time"
|
|
10445
|
+
},
|
|
10446
|
+
"claimed_by_user_id": {
|
|
10447
|
+
"type": ["string", "null"],
|
|
10448
|
+
"format": "uuid"
|
|
10449
|
+
},
|
|
10450
|
+
"history_access_from": {
|
|
10451
|
+
"type": "string",
|
|
10452
|
+
"format": "date-time"
|
|
10453
|
+
},
|
|
10454
|
+
"released_at": {
|
|
10455
|
+
"type": ["string", "null"],
|
|
10456
|
+
"format": "date-time"
|
|
10457
|
+
},
|
|
10458
|
+
"released_by_user_id": {
|
|
10459
|
+
"type": ["string", "null"],
|
|
10460
|
+
"format": "uuid"
|
|
10461
|
+
},
|
|
10462
|
+
"created_at": {
|
|
10463
|
+
"type": "string",
|
|
10464
|
+
"format": "date-time"
|
|
10465
|
+
},
|
|
10466
|
+
"updated_at": {
|
|
10467
|
+
"type": "string",
|
|
10468
|
+
"format": "date-time"
|
|
10469
|
+
}
|
|
10470
|
+
}
|
|
10471
|
+
} }
|
|
10472
|
+
},
|
|
10473
|
+
"sdkName": "releaseAgentAddress",
|
|
10474
|
+
"summary": "Release a claimed mailbox address from an agent identity",
|
|
10475
|
+
"tag": "Agents",
|
|
10476
|
+
"tagCommand": "agents"
|
|
10477
|
+
},
|
|
10478
|
+
{
|
|
10479
|
+
"binaryResponse": false,
|
|
10480
|
+
"bodyRequired": false,
|
|
10481
|
+
"command": "resume-agent",
|
|
10482
|
+
"description": "Returns a paused agent to active status, restoring paused wake schedules and held drafts. Held scheduled sends stay held unless release_held_sends is true.",
|
|
10483
|
+
"hasJsonBody": true,
|
|
10484
|
+
"method": "POST",
|
|
10485
|
+
"operationId": "resumeAgent",
|
|
10486
|
+
"path": "/agents/{id}/resume",
|
|
10487
|
+
"pathParams": [{
|
|
10488
|
+
"description": "Agent identity UUID.",
|
|
10489
|
+
"enum": null,
|
|
10490
|
+
"name": "id",
|
|
10491
|
+
"required": true,
|
|
10492
|
+
"type": "string"
|
|
10493
|
+
}],
|
|
10494
|
+
"queryParams": [],
|
|
10495
|
+
"headerParams": [],
|
|
10496
|
+
"permissions": ["agent_connections:manage"],
|
|
10497
|
+
"access": null,
|
|
10498
|
+
"requestSchema": {
|
|
10499
|
+
"type": "object",
|
|
10500
|
+
"additionalProperties": false,
|
|
10501
|
+
"properties": { "release_held_sends": {
|
|
10502
|
+
"type": "boolean",
|
|
10503
|
+
"default": false
|
|
10504
|
+
} }
|
|
10505
|
+
},
|
|
10506
|
+
"responseSchema": {
|
|
10507
|
+
"type": "object",
|
|
10508
|
+
"additionalProperties": false,
|
|
10509
|
+
"required": ["agent", "resumed"],
|
|
10510
|
+
"properties": {
|
|
10511
|
+
"agent": {
|
|
10512
|
+
"type": "object",
|
|
10513
|
+
"additionalProperties": false,
|
|
10514
|
+
"required": [
|
|
10515
|
+
"id",
|
|
10516
|
+
"org_id",
|
|
10517
|
+
"slug",
|
|
10518
|
+
"name",
|
|
10519
|
+
"description",
|
|
10520
|
+
"ownership_kind",
|
|
10521
|
+
"owner_user_id",
|
|
10522
|
+
"owner_label",
|
|
10523
|
+
"owner_group_id",
|
|
10524
|
+
"owner_group_name",
|
|
10525
|
+
"operator_kind",
|
|
10526
|
+
"vendor_name",
|
|
10527
|
+
"vendor_contact_email",
|
|
10528
|
+
"status",
|
|
10529
|
+
"paused_at",
|
|
10530
|
+
"paused_by_user_id",
|
|
10531
|
+
"paused_reason",
|
|
10532
|
+
"retired_at",
|
|
10533
|
+
"retired_by_user_id",
|
|
10534
|
+
"envelope_grant_id",
|
|
10535
|
+
"addresses",
|
|
10536
|
+
"credential_counts",
|
|
10537
|
+
"created_by_user_id",
|
|
10538
|
+
"created_at",
|
|
10539
|
+
"updated_at",
|
|
10540
|
+
"credentials",
|
|
10541
|
+
"retired_addresses"
|
|
10542
|
+
],
|
|
10543
|
+
"properties": {
|
|
10544
|
+
"id": {
|
|
10545
|
+
"type": "string",
|
|
10546
|
+
"format": "uuid"
|
|
10547
|
+
},
|
|
10548
|
+
"org_id": {
|
|
10549
|
+
"type": "string",
|
|
10550
|
+
"format": "uuid"
|
|
10551
|
+
},
|
|
10552
|
+
"slug": { "type": "string" },
|
|
10553
|
+
"name": { "type": "string" },
|
|
10554
|
+
"description": { "type": ["string", "null"] },
|
|
10555
|
+
"ownership_kind": {
|
|
10556
|
+
"type": "string",
|
|
10557
|
+
"enum": [
|
|
10558
|
+
"org",
|
|
10559
|
+
"personal",
|
|
10560
|
+
"external"
|
|
10561
|
+
]
|
|
10562
|
+
},
|
|
10563
|
+
"owner_user_id": {
|
|
10564
|
+
"type": "string",
|
|
10565
|
+
"format": "uuid"
|
|
10566
|
+
},
|
|
10567
|
+
"owner_label": { "type": ["string", "null"] },
|
|
10568
|
+
"owner_group_id": {
|
|
10569
|
+
"type": ["string", "null"],
|
|
10570
|
+
"format": "uuid"
|
|
10571
|
+
},
|
|
10572
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
10573
|
+
"operator_kind": {
|
|
10574
|
+
"type": "string",
|
|
10575
|
+
"enum": ["internal", "external_oauth"]
|
|
10576
|
+
},
|
|
10577
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
10578
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
10579
|
+
"status": {
|
|
10580
|
+
"type": "string",
|
|
10581
|
+
"enum": [
|
|
10582
|
+
"active",
|
|
10583
|
+
"paused",
|
|
10584
|
+
"retired"
|
|
10585
|
+
]
|
|
10586
|
+
},
|
|
10587
|
+
"paused_at": {
|
|
10588
|
+
"type": ["string", "null"],
|
|
10589
|
+
"format": "date-time"
|
|
10590
|
+
},
|
|
10591
|
+
"paused_by_user_id": {
|
|
10592
|
+
"type": ["string", "null"],
|
|
10593
|
+
"format": "uuid"
|
|
10594
|
+
},
|
|
10595
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
10596
|
+
"retired_at": {
|
|
10597
|
+
"type": ["string", "null"],
|
|
10598
|
+
"format": "date-time"
|
|
10599
|
+
},
|
|
10600
|
+
"retired_by_user_id": {
|
|
10601
|
+
"type": ["string", "null"],
|
|
10602
|
+
"format": "uuid"
|
|
10603
|
+
},
|
|
10604
|
+
"envelope_grant_id": {
|
|
10605
|
+
"type": ["string", "null"],
|
|
10606
|
+
"format": "uuid"
|
|
10607
|
+
},
|
|
10608
|
+
"addresses": {
|
|
10609
|
+
"type": "array",
|
|
10610
|
+
"items": {
|
|
10611
|
+
"type": "object",
|
|
10612
|
+
"additionalProperties": false,
|
|
10613
|
+
"required": [
|
|
10614
|
+
"id",
|
|
10615
|
+
"agent_id",
|
|
10616
|
+
"address",
|
|
10617
|
+
"display_name",
|
|
10618
|
+
"claimed_at",
|
|
10619
|
+
"claimed_by_user_id",
|
|
10620
|
+
"history_access_from",
|
|
10621
|
+
"released_at",
|
|
10622
|
+
"released_by_user_id",
|
|
10623
|
+
"created_at",
|
|
10624
|
+
"updated_at"
|
|
10625
|
+
],
|
|
10626
|
+
"properties": {
|
|
10627
|
+
"id": {
|
|
10628
|
+
"type": "string",
|
|
10629
|
+
"format": "uuid"
|
|
10630
|
+
},
|
|
10631
|
+
"agent_id": {
|
|
10632
|
+
"type": "string",
|
|
10633
|
+
"format": "uuid"
|
|
10634
|
+
},
|
|
10635
|
+
"address": { "type": "string" },
|
|
10636
|
+
"display_name": { "type": "string" },
|
|
10637
|
+
"claimed_at": {
|
|
10638
|
+
"type": "string",
|
|
10639
|
+
"format": "date-time"
|
|
10640
|
+
},
|
|
10641
|
+
"claimed_by_user_id": {
|
|
10642
|
+
"type": ["string", "null"],
|
|
10643
|
+
"format": "uuid"
|
|
10644
|
+
},
|
|
10645
|
+
"history_access_from": {
|
|
10646
|
+
"type": "string",
|
|
10647
|
+
"format": "date-time"
|
|
10648
|
+
},
|
|
10649
|
+
"released_at": {
|
|
10650
|
+
"type": ["string", "null"],
|
|
10651
|
+
"format": "date-time"
|
|
10652
|
+
},
|
|
10653
|
+
"released_by_user_id": {
|
|
10654
|
+
"type": ["string", "null"],
|
|
10655
|
+
"format": "uuid"
|
|
10656
|
+
},
|
|
10657
|
+
"created_at": {
|
|
10658
|
+
"type": "string",
|
|
10659
|
+
"format": "date-time"
|
|
10660
|
+
},
|
|
10661
|
+
"updated_at": {
|
|
10662
|
+
"type": "string",
|
|
10663
|
+
"format": "date-time"
|
|
10664
|
+
}
|
|
10665
|
+
}
|
|
10666
|
+
}
|
|
10667
|
+
},
|
|
10668
|
+
"credential_counts": {
|
|
10669
|
+
"type": "object",
|
|
10670
|
+
"additionalProperties": false,
|
|
10671
|
+
"required": [
|
|
10672
|
+
"api_keys",
|
|
10673
|
+
"oauth_grants",
|
|
10674
|
+
"connections"
|
|
10675
|
+
],
|
|
10676
|
+
"properties": {
|
|
10677
|
+
"api_keys": {
|
|
10678
|
+
"type": "integer",
|
|
10679
|
+
"minimum": 0
|
|
10680
|
+
},
|
|
10681
|
+
"oauth_grants": {
|
|
10682
|
+
"type": "integer",
|
|
10683
|
+
"minimum": 0
|
|
10684
|
+
},
|
|
10685
|
+
"connections": {
|
|
10686
|
+
"type": "integer",
|
|
10687
|
+
"minimum": 0
|
|
10688
|
+
}
|
|
10689
|
+
}
|
|
10690
|
+
},
|
|
10691
|
+
"created_by_user_id": {
|
|
10692
|
+
"type": ["string", "null"],
|
|
10693
|
+
"format": "uuid"
|
|
10694
|
+
},
|
|
10695
|
+
"created_at": {
|
|
10696
|
+
"type": "string",
|
|
10697
|
+
"format": "date-time"
|
|
10698
|
+
},
|
|
10699
|
+
"updated_at": {
|
|
10700
|
+
"type": "string",
|
|
10701
|
+
"format": "date-time"
|
|
10702
|
+
},
|
|
10703
|
+
"credentials": {
|
|
10704
|
+
"type": "array",
|
|
10705
|
+
"items": {
|
|
10706
|
+
"type": "object",
|
|
10707
|
+
"additionalProperties": false,
|
|
10708
|
+
"required": [
|
|
10709
|
+
"kind",
|
|
10710
|
+
"id",
|
|
10711
|
+
"label",
|
|
10712
|
+
"prefix",
|
|
10713
|
+
"revoked_at",
|
|
10714
|
+
"created_at"
|
|
10715
|
+
],
|
|
10716
|
+
"properties": {
|
|
10717
|
+
"kind": {
|
|
10718
|
+
"type": "string",
|
|
10719
|
+
"enum": ["api_key", "oauth_grant"]
|
|
10720
|
+
},
|
|
10721
|
+
"id": {
|
|
10722
|
+
"type": "string",
|
|
10723
|
+
"format": "uuid"
|
|
10724
|
+
},
|
|
10725
|
+
"label": { "type": ["string", "null"] },
|
|
10726
|
+
"prefix": { "type": ["string", "null"] },
|
|
10727
|
+
"revoked_at": {
|
|
10728
|
+
"type": ["string", "null"],
|
|
10729
|
+
"format": "date-time"
|
|
10730
|
+
},
|
|
10731
|
+
"created_at": {
|
|
10732
|
+
"type": "string",
|
|
10733
|
+
"format": "date-time"
|
|
10734
|
+
}
|
|
10735
|
+
}
|
|
10736
|
+
}
|
|
10737
|
+
},
|
|
10738
|
+
"retired_addresses": {
|
|
10739
|
+
"type": "array",
|
|
10740
|
+
"items": {
|
|
10741
|
+
"type": "object",
|
|
10742
|
+
"additionalProperties": false,
|
|
10743
|
+
"required": [
|
|
10744
|
+
"id",
|
|
10745
|
+
"agent_id",
|
|
10746
|
+
"address",
|
|
10747
|
+
"display_name",
|
|
10748
|
+
"claimed_at",
|
|
10749
|
+
"claimed_by_user_id",
|
|
10750
|
+
"history_access_from",
|
|
10751
|
+
"released_at",
|
|
10752
|
+
"released_by_user_id",
|
|
10753
|
+
"created_at",
|
|
10754
|
+
"updated_at"
|
|
10755
|
+
],
|
|
10756
|
+
"properties": {
|
|
10757
|
+
"id": {
|
|
10758
|
+
"type": "string",
|
|
10759
|
+
"format": "uuid"
|
|
10760
|
+
},
|
|
10761
|
+
"agent_id": {
|
|
10762
|
+
"type": "string",
|
|
10763
|
+
"format": "uuid"
|
|
10764
|
+
},
|
|
10765
|
+
"address": { "type": "string" },
|
|
10766
|
+
"display_name": { "type": "string" },
|
|
10767
|
+
"claimed_at": {
|
|
10768
|
+
"type": "string",
|
|
10769
|
+
"format": "date-time"
|
|
10770
|
+
},
|
|
10771
|
+
"claimed_by_user_id": {
|
|
10772
|
+
"type": ["string", "null"],
|
|
10773
|
+
"format": "uuid"
|
|
10774
|
+
},
|
|
10775
|
+
"history_access_from": {
|
|
10776
|
+
"type": "string",
|
|
10777
|
+
"format": "date-time"
|
|
10778
|
+
},
|
|
10779
|
+
"released_at": {
|
|
10780
|
+
"type": ["string", "null"],
|
|
10781
|
+
"format": "date-time"
|
|
10782
|
+
},
|
|
10783
|
+
"released_by_user_id": {
|
|
10784
|
+
"type": ["string", "null"],
|
|
10785
|
+
"format": "uuid"
|
|
10786
|
+
},
|
|
10787
|
+
"created_at": {
|
|
10788
|
+
"type": "string",
|
|
10789
|
+
"format": "date-time"
|
|
10790
|
+
},
|
|
10791
|
+
"updated_at": {
|
|
10792
|
+
"type": "string",
|
|
10793
|
+
"format": "date-time"
|
|
10794
|
+
}
|
|
10795
|
+
}
|
|
10796
|
+
}
|
|
10797
|
+
}
|
|
10798
|
+
}
|
|
10799
|
+
},
|
|
10800
|
+
"resumed": {
|
|
10801
|
+
"type": "object",
|
|
10802
|
+
"additionalProperties": false,
|
|
10803
|
+
"required": [
|
|
10804
|
+
"scheduled_sends",
|
|
10805
|
+
"repeating_sends",
|
|
10806
|
+
"wake_schedules",
|
|
10807
|
+
"drafts"
|
|
10808
|
+
],
|
|
10809
|
+
"properties": {
|
|
10810
|
+
"scheduled_sends": {
|
|
10811
|
+
"type": "integer",
|
|
10812
|
+
"minimum": 0
|
|
10813
|
+
},
|
|
10814
|
+
"repeating_sends": {
|
|
10815
|
+
"type": "integer",
|
|
10816
|
+
"minimum": 0
|
|
10817
|
+
},
|
|
10818
|
+
"wake_schedules": {
|
|
10819
|
+
"type": "integer",
|
|
10820
|
+
"minimum": 0
|
|
10821
|
+
},
|
|
10822
|
+
"drafts": {
|
|
10823
|
+
"type": "integer",
|
|
10824
|
+
"minimum": 0
|
|
10825
|
+
}
|
|
10826
|
+
}
|
|
10827
|
+
}
|
|
10828
|
+
}
|
|
10829
|
+
},
|
|
10830
|
+
"sdkName": "resumeAgent",
|
|
10831
|
+
"summary": "Resume a paused agent identity",
|
|
10832
|
+
"tag": "Agents",
|
|
10833
|
+
"tagCommand": "agents"
|
|
10834
|
+
},
|
|
10835
|
+
{
|
|
10836
|
+
"binaryResponse": false,
|
|
10837
|
+
"bodyRequired": false,
|
|
10838
|
+
"command": "retire-agent",
|
|
10839
|
+
"description": "Permanently retires the agent (bound credentials return 403 agent_retired), cancels queued sends, repeating sends, wake schedules, and pending drafts, and retires claimed addresses.",
|
|
10840
|
+
"hasJsonBody": false,
|
|
10841
|
+
"method": "POST",
|
|
10842
|
+
"operationId": "retireAgent",
|
|
10843
|
+
"path": "/agents/{id}/retire",
|
|
10844
|
+
"pathParams": [{
|
|
10845
|
+
"description": "Agent identity UUID.",
|
|
10846
|
+
"enum": null,
|
|
10847
|
+
"name": "id",
|
|
10848
|
+
"required": true,
|
|
10849
|
+
"type": "string"
|
|
10850
|
+
}],
|
|
10851
|
+
"queryParams": [],
|
|
10852
|
+
"headerParams": [],
|
|
10853
|
+
"permissions": ["agent_connections:manage"],
|
|
10854
|
+
"access": null,
|
|
10855
|
+
"requestSchema": null,
|
|
10856
|
+
"responseSchema": {
|
|
10857
|
+
"type": "object",
|
|
10858
|
+
"additionalProperties": false,
|
|
10859
|
+
"required": [
|
|
10860
|
+
"agent",
|
|
10861
|
+
"canceled",
|
|
10862
|
+
"released_addresses"
|
|
10863
|
+
],
|
|
10864
|
+
"properties": {
|
|
10865
|
+
"agent": {
|
|
10866
|
+
"type": "object",
|
|
10867
|
+
"additionalProperties": false,
|
|
10868
|
+
"required": [
|
|
10869
|
+
"id",
|
|
10870
|
+
"org_id",
|
|
10871
|
+
"slug",
|
|
10872
|
+
"name",
|
|
10873
|
+
"description",
|
|
10874
|
+
"ownership_kind",
|
|
10875
|
+
"owner_user_id",
|
|
10876
|
+
"owner_label",
|
|
10877
|
+
"owner_group_id",
|
|
10878
|
+
"owner_group_name",
|
|
10879
|
+
"operator_kind",
|
|
10880
|
+
"vendor_name",
|
|
10881
|
+
"vendor_contact_email",
|
|
10882
|
+
"status",
|
|
10883
|
+
"paused_at",
|
|
10884
|
+
"paused_by_user_id",
|
|
10885
|
+
"paused_reason",
|
|
10886
|
+
"retired_at",
|
|
10887
|
+
"retired_by_user_id",
|
|
10888
|
+
"envelope_grant_id",
|
|
10889
|
+
"addresses",
|
|
10890
|
+
"credential_counts",
|
|
10891
|
+
"created_by_user_id",
|
|
10892
|
+
"created_at",
|
|
10893
|
+
"updated_at",
|
|
10894
|
+
"credentials",
|
|
10895
|
+
"retired_addresses"
|
|
10896
|
+
],
|
|
10897
|
+
"properties": {
|
|
10898
|
+
"id": {
|
|
10899
|
+
"type": "string",
|
|
10900
|
+
"format": "uuid"
|
|
10901
|
+
},
|
|
10902
|
+
"org_id": {
|
|
10903
|
+
"type": "string",
|
|
10904
|
+
"format": "uuid"
|
|
10905
|
+
},
|
|
10906
|
+
"slug": { "type": "string" },
|
|
10907
|
+
"name": { "type": "string" },
|
|
10908
|
+
"description": { "type": ["string", "null"] },
|
|
10909
|
+
"ownership_kind": {
|
|
10910
|
+
"type": "string",
|
|
10911
|
+
"enum": [
|
|
10912
|
+
"org",
|
|
10913
|
+
"personal",
|
|
10914
|
+
"external"
|
|
10915
|
+
]
|
|
10916
|
+
},
|
|
10917
|
+
"owner_user_id": {
|
|
10918
|
+
"type": "string",
|
|
10919
|
+
"format": "uuid"
|
|
10920
|
+
},
|
|
10921
|
+
"owner_label": { "type": ["string", "null"] },
|
|
10922
|
+
"owner_group_id": {
|
|
10923
|
+
"type": ["string", "null"],
|
|
10924
|
+
"format": "uuid"
|
|
10925
|
+
},
|
|
10926
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
10927
|
+
"operator_kind": {
|
|
10928
|
+
"type": "string",
|
|
10929
|
+
"enum": ["internal", "external_oauth"]
|
|
10930
|
+
},
|
|
10931
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
10932
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
10933
|
+
"status": {
|
|
10934
|
+
"type": "string",
|
|
10935
|
+
"enum": [
|
|
10936
|
+
"active",
|
|
10937
|
+
"paused",
|
|
10938
|
+
"retired"
|
|
10939
|
+
]
|
|
10940
|
+
},
|
|
10941
|
+
"paused_at": {
|
|
10942
|
+
"type": ["string", "null"],
|
|
10943
|
+
"format": "date-time"
|
|
10944
|
+
},
|
|
10945
|
+
"paused_by_user_id": {
|
|
10946
|
+
"type": ["string", "null"],
|
|
10947
|
+
"format": "uuid"
|
|
10948
|
+
},
|
|
10949
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
10950
|
+
"retired_at": {
|
|
10951
|
+
"type": ["string", "null"],
|
|
10952
|
+
"format": "date-time"
|
|
10953
|
+
},
|
|
10954
|
+
"retired_by_user_id": {
|
|
10955
|
+
"type": ["string", "null"],
|
|
10956
|
+
"format": "uuid"
|
|
10957
|
+
},
|
|
10958
|
+
"envelope_grant_id": {
|
|
10959
|
+
"type": ["string", "null"],
|
|
10960
|
+
"format": "uuid"
|
|
10961
|
+
},
|
|
10962
|
+
"addresses": {
|
|
10963
|
+
"type": "array",
|
|
10964
|
+
"items": {
|
|
10965
|
+
"type": "object",
|
|
10966
|
+
"additionalProperties": false,
|
|
10967
|
+
"required": [
|
|
10968
|
+
"id",
|
|
10969
|
+
"agent_id",
|
|
10970
|
+
"address",
|
|
10971
|
+
"display_name",
|
|
10972
|
+
"claimed_at",
|
|
10973
|
+
"claimed_by_user_id",
|
|
10974
|
+
"history_access_from",
|
|
10975
|
+
"released_at",
|
|
10976
|
+
"released_by_user_id",
|
|
10977
|
+
"created_at",
|
|
10978
|
+
"updated_at"
|
|
10979
|
+
],
|
|
10980
|
+
"properties": {
|
|
10981
|
+
"id": {
|
|
10982
|
+
"type": "string",
|
|
10983
|
+
"format": "uuid"
|
|
10984
|
+
},
|
|
10985
|
+
"agent_id": {
|
|
10986
|
+
"type": "string",
|
|
10987
|
+
"format": "uuid"
|
|
10988
|
+
},
|
|
10989
|
+
"address": { "type": "string" },
|
|
10990
|
+
"display_name": { "type": "string" },
|
|
10991
|
+
"claimed_at": {
|
|
10992
|
+
"type": "string",
|
|
10993
|
+
"format": "date-time"
|
|
10994
|
+
},
|
|
10995
|
+
"claimed_by_user_id": {
|
|
10996
|
+
"type": ["string", "null"],
|
|
10997
|
+
"format": "uuid"
|
|
10998
|
+
},
|
|
10999
|
+
"history_access_from": {
|
|
11000
|
+
"type": "string",
|
|
11001
|
+
"format": "date-time"
|
|
11002
|
+
},
|
|
11003
|
+
"released_at": {
|
|
11004
|
+
"type": ["string", "null"],
|
|
11005
|
+
"format": "date-time"
|
|
11006
|
+
},
|
|
11007
|
+
"released_by_user_id": {
|
|
11008
|
+
"type": ["string", "null"],
|
|
11009
|
+
"format": "uuid"
|
|
11010
|
+
},
|
|
11011
|
+
"created_at": {
|
|
11012
|
+
"type": "string",
|
|
11013
|
+
"format": "date-time"
|
|
11014
|
+
},
|
|
11015
|
+
"updated_at": {
|
|
11016
|
+
"type": "string",
|
|
11017
|
+
"format": "date-time"
|
|
11018
|
+
}
|
|
11019
|
+
}
|
|
11020
|
+
}
|
|
11021
|
+
},
|
|
11022
|
+
"credential_counts": {
|
|
11023
|
+
"type": "object",
|
|
11024
|
+
"additionalProperties": false,
|
|
11025
|
+
"required": [
|
|
11026
|
+
"api_keys",
|
|
11027
|
+
"oauth_grants",
|
|
11028
|
+
"connections"
|
|
11029
|
+
],
|
|
11030
|
+
"properties": {
|
|
11031
|
+
"api_keys": {
|
|
11032
|
+
"type": "integer",
|
|
11033
|
+
"minimum": 0
|
|
11034
|
+
},
|
|
11035
|
+
"oauth_grants": {
|
|
11036
|
+
"type": "integer",
|
|
11037
|
+
"minimum": 0
|
|
11038
|
+
},
|
|
11039
|
+
"connections": {
|
|
11040
|
+
"type": "integer",
|
|
11041
|
+
"minimum": 0
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
},
|
|
11045
|
+
"created_by_user_id": {
|
|
11046
|
+
"type": ["string", "null"],
|
|
11047
|
+
"format": "uuid"
|
|
11048
|
+
},
|
|
11049
|
+
"created_at": {
|
|
11050
|
+
"type": "string",
|
|
11051
|
+
"format": "date-time"
|
|
11052
|
+
},
|
|
11053
|
+
"updated_at": {
|
|
11054
|
+
"type": "string",
|
|
11055
|
+
"format": "date-time"
|
|
11056
|
+
},
|
|
11057
|
+
"credentials": {
|
|
11058
|
+
"type": "array",
|
|
11059
|
+
"items": {
|
|
11060
|
+
"type": "object",
|
|
11061
|
+
"additionalProperties": false,
|
|
11062
|
+
"required": [
|
|
11063
|
+
"kind",
|
|
11064
|
+
"id",
|
|
11065
|
+
"label",
|
|
11066
|
+
"prefix",
|
|
11067
|
+
"revoked_at",
|
|
11068
|
+
"created_at"
|
|
11069
|
+
],
|
|
11070
|
+
"properties": {
|
|
11071
|
+
"kind": {
|
|
11072
|
+
"type": "string",
|
|
11073
|
+
"enum": ["api_key", "oauth_grant"]
|
|
11074
|
+
},
|
|
11075
|
+
"id": {
|
|
11076
|
+
"type": "string",
|
|
11077
|
+
"format": "uuid"
|
|
11078
|
+
},
|
|
11079
|
+
"label": { "type": ["string", "null"] },
|
|
11080
|
+
"prefix": { "type": ["string", "null"] },
|
|
11081
|
+
"revoked_at": {
|
|
11082
|
+
"type": ["string", "null"],
|
|
11083
|
+
"format": "date-time"
|
|
11084
|
+
},
|
|
11085
|
+
"created_at": {
|
|
11086
|
+
"type": "string",
|
|
11087
|
+
"format": "date-time"
|
|
11088
|
+
}
|
|
11089
|
+
}
|
|
11090
|
+
}
|
|
11091
|
+
},
|
|
11092
|
+
"retired_addresses": {
|
|
11093
|
+
"type": "array",
|
|
11094
|
+
"items": {
|
|
11095
|
+
"type": "object",
|
|
11096
|
+
"additionalProperties": false,
|
|
11097
|
+
"required": [
|
|
11098
|
+
"id",
|
|
11099
|
+
"agent_id",
|
|
11100
|
+
"address",
|
|
11101
|
+
"display_name",
|
|
11102
|
+
"claimed_at",
|
|
11103
|
+
"claimed_by_user_id",
|
|
11104
|
+
"history_access_from",
|
|
11105
|
+
"released_at",
|
|
11106
|
+
"released_by_user_id",
|
|
11107
|
+
"created_at",
|
|
11108
|
+
"updated_at"
|
|
11109
|
+
],
|
|
11110
|
+
"properties": {
|
|
11111
|
+
"id": {
|
|
11112
|
+
"type": "string",
|
|
11113
|
+
"format": "uuid"
|
|
11114
|
+
},
|
|
11115
|
+
"agent_id": {
|
|
11116
|
+
"type": "string",
|
|
11117
|
+
"format": "uuid"
|
|
11118
|
+
},
|
|
11119
|
+
"address": { "type": "string" },
|
|
11120
|
+
"display_name": { "type": "string" },
|
|
11121
|
+
"claimed_at": {
|
|
11122
|
+
"type": "string",
|
|
11123
|
+
"format": "date-time"
|
|
11124
|
+
},
|
|
11125
|
+
"claimed_by_user_id": {
|
|
11126
|
+
"type": ["string", "null"],
|
|
11127
|
+
"format": "uuid"
|
|
11128
|
+
},
|
|
11129
|
+
"history_access_from": {
|
|
11130
|
+
"type": "string",
|
|
11131
|
+
"format": "date-time"
|
|
11132
|
+
},
|
|
11133
|
+
"released_at": {
|
|
11134
|
+
"type": ["string", "null"],
|
|
11135
|
+
"format": "date-time"
|
|
11136
|
+
},
|
|
11137
|
+
"released_by_user_id": {
|
|
11138
|
+
"type": ["string", "null"],
|
|
11139
|
+
"format": "uuid"
|
|
11140
|
+
},
|
|
11141
|
+
"created_at": {
|
|
11142
|
+
"type": "string",
|
|
11143
|
+
"format": "date-time"
|
|
11144
|
+
},
|
|
11145
|
+
"updated_at": {
|
|
11146
|
+
"type": "string",
|
|
11147
|
+
"format": "date-time"
|
|
11148
|
+
}
|
|
11149
|
+
}
|
|
11150
|
+
}
|
|
11151
|
+
}
|
|
11152
|
+
}
|
|
11153
|
+
},
|
|
11154
|
+
"canceled": {
|
|
11155
|
+
"type": "object",
|
|
11156
|
+
"additionalProperties": false,
|
|
11157
|
+
"required": [
|
|
11158
|
+
"scheduled_sends",
|
|
11159
|
+
"repeating_sends",
|
|
11160
|
+
"wake_schedules",
|
|
11161
|
+
"drafts"
|
|
11162
|
+
],
|
|
11163
|
+
"properties": {
|
|
11164
|
+
"scheduled_sends": {
|
|
11165
|
+
"type": "integer",
|
|
11166
|
+
"minimum": 0
|
|
11167
|
+
},
|
|
11168
|
+
"repeating_sends": {
|
|
11169
|
+
"type": "integer",
|
|
11170
|
+
"minimum": 0
|
|
11171
|
+
},
|
|
11172
|
+
"wake_schedules": {
|
|
11173
|
+
"type": "integer",
|
|
11174
|
+
"minimum": 0
|
|
11175
|
+
},
|
|
11176
|
+
"drafts": {
|
|
11177
|
+
"type": "integer",
|
|
11178
|
+
"minimum": 0
|
|
11179
|
+
}
|
|
11180
|
+
}
|
|
11181
|
+
},
|
|
11182
|
+
"released_addresses": {
|
|
11183
|
+
"type": "array",
|
|
11184
|
+
"items": { "type": "string" }
|
|
11185
|
+
}
|
|
11186
|
+
}
|
|
11187
|
+
},
|
|
11188
|
+
"sdkName": "retireAgent",
|
|
11189
|
+
"summary": "Permanently retire an agent identity",
|
|
11190
|
+
"tag": "Agents",
|
|
11191
|
+
"tagCommand": "agents"
|
|
11192
|
+
},
|
|
11193
|
+
{
|
|
11194
|
+
"binaryResponse": false,
|
|
11195
|
+
"bodyRequired": false,
|
|
11196
|
+
"command": "unbind-agent-credential",
|
|
11197
|
+
"description": "Detaches an API key or OAuth grant from an agent identity while preserving historical ledger rows.",
|
|
11198
|
+
"hasJsonBody": false,
|
|
11199
|
+
"method": "DELETE",
|
|
11200
|
+
"operationId": "unbindAgentCredential",
|
|
11201
|
+
"path": "/agents/{id}/credentials/{credential_id}",
|
|
11202
|
+
"pathParams": [{
|
|
11203
|
+
"description": "Agent identity UUID.",
|
|
11204
|
+
"enum": null,
|
|
11205
|
+
"name": "id",
|
|
11206
|
+
"required": true,
|
|
11207
|
+
"type": "string"
|
|
11208
|
+
}, {
|
|
11209
|
+
"description": "Bound API key or OAuth grant UUID.",
|
|
11210
|
+
"enum": null,
|
|
11211
|
+
"name": "credential_id",
|
|
11212
|
+
"required": true,
|
|
11213
|
+
"type": "string"
|
|
11214
|
+
}],
|
|
11215
|
+
"queryParams": [{
|
|
11216
|
+
"description": "Credential kind being unbound (api_key or oauth_grant).",
|
|
11217
|
+
"enum": null,
|
|
11218
|
+
"name": "kind",
|
|
11219
|
+
"required": false,
|
|
11220
|
+
"type": "string"
|
|
11221
|
+
}],
|
|
8462
11222
|
"headerParams": [],
|
|
8463
|
-
"permissions": ["
|
|
11223
|
+
"permissions": ["agent_connections:manage"],
|
|
8464
11224
|
"access": null,
|
|
8465
|
-
"requestSchema":
|
|
8466
|
-
"type": "object",
|
|
8467
|
-
"properties": {
|
|
8468
|
-
"expectedVersion": {
|
|
8469
|
-
"type": "integer",
|
|
8470
|
-
"minimum": 1,
|
|
8471
|
-
"maximum": 2147483646
|
|
8472
|
-
},
|
|
8473
|
-
"status": {
|
|
8474
|
-
"type": "string",
|
|
8475
|
-
"const": "completed"
|
|
8476
|
-
}
|
|
8477
|
-
},
|
|
8478
|
-
"required": ["expectedVersion", "status"],
|
|
8479
|
-
"additionalProperties": false
|
|
8480
|
-
},
|
|
11225
|
+
"requestSchema": null,
|
|
8481
11226
|
"responseSchema": {
|
|
8482
11227
|
"type": "object",
|
|
11228
|
+
"additionalProperties": false,
|
|
11229
|
+
"required": [
|
|
11230
|
+
"unbound",
|
|
11231
|
+
"agent_id",
|
|
11232
|
+
"kind",
|
|
11233
|
+
"credential_id"
|
|
11234
|
+
],
|
|
8483
11235
|
"properties": {
|
|
8484
|
-
"
|
|
8485
|
-
"type": "
|
|
8486
|
-
"
|
|
11236
|
+
"unbound": {
|
|
11237
|
+
"type": "boolean",
|
|
11238
|
+
"const": true
|
|
8487
11239
|
},
|
|
8488
|
-
"
|
|
11240
|
+
"agent_id": {
|
|
8489
11241
|
"type": "string",
|
|
8490
11242
|
"format": "uuid"
|
|
8491
11243
|
},
|
|
8492
|
-
"
|
|
8493
|
-
"type": "integer",
|
|
8494
|
-
"exclusiveMinimum": 0,
|
|
8495
|
-
"maximum": 9007199254740991
|
|
8496
|
-
},
|
|
8497
|
-
"workTitle": { "type": ["string", "null"] },
|
|
8498
|
-
"workDetail": { "type": ["string", "null"] },
|
|
8499
|
-
"status": {
|
|
8500
|
-
"type": "string",
|
|
8501
|
-
"enum": [
|
|
8502
|
-
"active",
|
|
8503
|
-
"completed",
|
|
8504
|
-
"cancelled"
|
|
8505
|
-
]
|
|
8506
|
-
},
|
|
8507
|
-
"proposedDeadlineAt": {
|
|
8508
|
-
"type": ["string", "null"],
|
|
8509
|
-
"format": "date-time",
|
|
8510
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8511
|
-
},
|
|
8512
|
-
"deadline": {
|
|
8513
|
-
"type": ["object", "null"],
|
|
8514
|
-
"properties": {
|
|
8515
|
-
"id": {
|
|
8516
|
-
"type": "string",
|
|
8517
|
-
"format": "uuid"
|
|
8518
|
-
},
|
|
8519
|
-
"dueAt": {
|
|
8520
|
-
"type": "string",
|
|
8521
|
-
"format": "date-time",
|
|
8522
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8523
|
-
},
|
|
8524
|
-
"agreedAt": {
|
|
8525
|
-
"type": "string",
|
|
8526
|
-
"format": "date-time",
|
|
8527
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
8528
|
-
},
|
|
8529
|
-
"agreedByUserId": {
|
|
8530
|
-
"type": "string",
|
|
8531
|
-
"format": "uuid"
|
|
8532
|
-
},
|
|
8533
|
-
"workVersion": {
|
|
8534
|
-
"type": "integer",
|
|
8535
|
-
"minimum": 1,
|
|
8536
|
-
"maximum": 2147483646
|
|
8537
|
-
}
|
|
8538
|
-
},
|
|
8539
|
-
"required": [
|
|
8540
|
-
"id",
|
|
8541
|
-
"dueAt",
|
|
8542
|
-
"agreedAt",
|
|
8543
|
-
"agreedByUserId",
|
|
8544
|
-
"workVersion"
|
|
8545
|
-
]
|
|
8546
|
-
},
|
|
8547
|
-
"createdBy": {
|
|
8548
|
-
"type": "object",
|
|
8549
|
-
"properties": {
|
|
8550
|
-
"kind": {
|
|
8551
|
-
"type": "string",
|
|
8552
|
-
"enum": ["human", "agent"]
|
|
8553
|
-
},
|
|
8554
|
-
"id": {
|
|
8555
|
-
"type": "string",
|
|
8556
|
-
"format": "uuid"
|
|
8557
|
-
}
|
|
8558
|
-
},
|
|
8559
|
-
"required": ["kind", "id"]
|
|
8560
|
-
},
|
|
8561
|
-
"updatedBy": {
|
|
8562
|
-
"type": "object",
|
|
8563
|
-
"properties": {
|
|
8564
|
-
"kind": {
|
|
8565
|
-
"type": "string",
|
|
8566
|
-
"enum": ["human", "agent"]
|
|
8567
|
-
},
|
|
8568
|
-
"id": {
|
|
8569
|
-
"type": "string",
|
|
8570
|
-
"format": "uuid"
|
|
8571
|
-
}
|
|
8572
|
-
},
|
|
8573
|
-
"required": ["kind", "id"]
|
|
8574
|
-
},
|
|
8575
|
-
"createdAt": {
|
|
11244
|
+
"kind": {
|
|
8576
11245
|
"type": "string",
|
|
8577
|
-
"
|
|
8578
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
11246
|
+
"enum": ["api_key", "oauth_grant"]
|
|
8579
11247
|
},
|
|
8580
|
-
"
|
|
11248
|
+
"credential_id": {
|
|
8581
11249
|
"type": "string",
|
|
8582
|
-
"format": "
|
|
8583
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
11250
|
+
"format": "uuid"
|
|
8584
11251
|
}
|
|
8585
|
-
}
|
|
8586
|
-
"required": [
|
|
8587
|
-
"id",
|
|
8588
|
-
"agentId",
|
|
8589
|
-
"version",
|
|
8590
|
-
"workTitle",
|
|
8591
|
-
"workDetail",
|
|
8592
|
-
"status",
|
|
8593
|
-
"proposedDeadlineAt",
|
|
8594
|
-
"deadline",
|
|
8595
|
-
"createdBy",
|
|
8596
|
-
"updatedBy",
|
|
8597
|
-
"createdAt",
|
|
8598
|
-
"updatedAt"
|
|
8599
|
-
]
|
|
11252
|
+
}
|
|
8600
11253
|
},
|
|
8601
|
-
"sdkName": "
|
|
8602
|
-
"summary": "
|
|
8603
|
-
"tag": "
|
|
8604
|
-
"tagCommand": "
|
|
11254
|
+
"sdkName": "unbindAgentCredential",
|
|
11255
|
+
"summary": "Unbind a credential from an agent identity",
|
|
11256
|
+
"tag": "Agents",
|
|
11257
|
+
"tagCommand": "agents"
|
|
8605
11258
|
},
|
|
8606
11259
|
{
|
|
8607
11260
|
"binaryResponse": false,
|
|
8608
11261
|
"bodyRequired": true,
|
|
8609
|
-
"command": "agent
|
|
8610
|
-
"description": "
|
|
11262
|
+
"command": "update-agent",
|
|
11263
|
+
"description": "Updates an agent identity's name, description, accountable owner, owning group, vendor metadata, or upper-bound envelope grant.",
|
|
8611
11264
|
"hasJsonBody": true,
|
|
8612
|
-
"method": "
|
|
8613
|
-
"operationId": "
|
|
8614
|
-
"path": "/
|
|
11265
|
+
"method": "PATCH",
|
|
11266
|
+
"operationId": "updateAgent",
|
|
11267
|
+
"path": "/agents/{id}",
|
|
8615
11268
|
"pathParams": [{
|
|
8616
|
-
"description": "
|
|
8617
|
-
"enum": null,
|
|
8618
|
-
"name": "agentId",
|
|
8619
|
-
"required": true,
|
|
8620
|
-
"type": "string"
|
|
8621
|
-
}, {
|
|
8622
|
-
"description": "Work record UUID.",
|
|
11269
|
+
"description": "Agent identity UUID.",
|
|
8623
11270
|
"enum": null,
|
|
8624
|
-
"name": "
|
|
11271
|
+
"name": "id",
|
|
8625
11272
|
"required": true,
|
|
8626
11273
|
"type": "string"
|
|
8627
11274
|
}],
|
|
8628
11275
|
"queryParams": [],
|
|
8629
11276
|
"headerParams": [],
|
|
8630
|
-
"permissions": ["
|
|
11277
|
+
"permissions": ["agent_connections:manage"],
|
|
8631
11278
|
"access": null,
|
|
8632
11279
|
"requestSchema": {
|
|
8633
11280
|
"type": "object",
|
|
8634
|
-
"
|
|
8635
|
-
"type": "integer",
|
|
8636
|
-
"minimum": 1,
|
|
8637
|
-
"maximum": 2147483646
|
|
8638
|
-
} },
|
|
8639
|
-
"required": ["expectedVersion"],
|
|
8640
|
-
"additionalProperties": false
|
|
8641
|
-
},
|
|
8642
|
-
"responseSchema": {
|
|
8643
|
-
"type": "object",
|
|
11281
|
+
"additionalProperties": false,
|
|
8644
11282
|
"properties": {
|
|
8645
|
-
"
|
|
11283
|
+
"name": {
|
|
8646
11284
|
"type": "string",
|
|
8647
|
-
"
|
|
11285
|
+
"minLength": 1,
|
|
11286
|
+
"maxLength": 120
|
|
8648
11287
|
},
|
|
8649
|
-
"
|
|
11288
|
+
"description": {
|
|
11289
|
+
"type": ["string", "null"],
|
|
11290
|
+
"maxLength": 500
|
|
11291
|
+
},
|
|
11292
|
+
"owner_user_id": {
|
|
8650
11293
|
"type": "string",
|
|
8651
11294
|
"format": "uuid"
|
|
8652
11295
|
},
|
|
8653
|
-
"
|
|
8654
|
-
"type": "
|
|
8655
|
-
"
|
|
8656
|
-
"maximum": 9007199254740991
|
|
11296
|
+
"owner_group_id": {
|
|
11297
|
+
"type": ["string", "null"],
|
|
11298
|
+
"format": "uuid"
|
|
8657
11299
|
},
|
|
8658
|
-
"
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
"type": "string",
|
|
8662
|
-
"enum": [
|
|
8663
|
-
"active",
|
|
8664
|
-
"completed",
|
|
8665
|
-
"cancelled"
|
|
8666
|
-
]
|
|
11300
|
+
"vendor_name": {
|
|
11301
|
+
"type": ["string", "null"],
|
|
11302
|
+
"maxLength": 120
|
|
8667
11303
|
},
|
|
8668
|
-
"
|
|
11304
|
+
"vendor_contact_email": {
|
|
8669
11305
|
"type": ["string", "null"],
|
|
8670
|
-
"
|
|
8671
|
-
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
11306
|
+
"maxLength": 320
|
|
8672
11307
|
},
|
|
8673
|
-
"
|
|
8674
|
-
"type": ["
|
|
8675
|
-
"
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
11308
|
+
"envelope_grant_id": {
|
|
11309
|
+
"type": ["string", "null"],
|
|
11310
|
+
"format": "uuid"
|
|
11311
|
+
}
|
|
11312
|
+
}
|
|
11313
|
+
},
|
|
11314
|
+
"responseSchema": {
|
|
11315
|
+
"type": "object",
|
|
11316
|
+
"additionalProperties": false,
|
|
11317
|
+
"required": ["agent"],
|
|
11318
|
+
"properties": { "agent": {
|
|
11319
|
+
"type": "object",
|
|
11320
|
+
"additionalProperties": false,
|
|
11321
|
+
"required": [
|
|
11322
|
+
"id",
|
|
11323
|
+
"org_id",
|
|
11324
|
+
"slug",
|
|
11325
|
+
"name",
|
|
11326
|
+
"description",
|
|
11327
|
+
"ownership_kind",
|
|
11328
|
+
"owner_user_id",
|
|
11329
|
+
"owner_label",
|
|
11330
|
+
"owner_group_id",
|
|
11331
|
+
"owner_group_name",
|
|
11332
|
+
"operator_kind",
|
|
11333
|
+
"vendor_name",
|
|
11334
|
+
"vendor_contact_email",
|
|
11335
|
+
"status",
|
|
11336
|
+
"paused_at",
|
|
11337
|
+
"paused_by_user_id",
|
|
11338
|
+
"paused_reason",
|
|
11339
|
+
"retired_at",
|
|
11340
|
+
"retired_by_user_id",
|
|
11341
|
+
"envelope_grant_id",
|
|
11342
|
+
"addresses",
|
|
11343
|
+
"credential_counts",
|
|
11344
|
+
"created_by_user_id",
|
|
11345
|
+
"created_at",
|
|
11346
|
+
"updated_at",
|
|
11347
|
+
"credentials",
|
|
11348
|
+
"retired_addresses"
|
|
11349
|
+
],
|
|
11350
|
+
"properties": {
|
|
11351
|
+
"id": {
|
|
11352
|
+
"type": "string",
|
|
11353
|
+
"format": "uuid"
|
|
11354
|
+
},
|
|
11355
|
+
"org_id": {
|
|
11356
|
+
"type": "string",
|
|
11357
|
+
"format": "uuid"
|
|
11358
|
+
},
|
|
11359
|
+
"slug": { "type": "string" },
|
|
11360
|
+
"name": { "type": "string" },
|
|
11361
|
+
"description": { "type": ["string", "null"] },
|
|
11362
|
+
"ownership_kind": {
|
|
11363
|
+
"type": "string",
|
|
11364
|
+
"enum": [
|
|
11365
|
+
"org",
|
|
11366
|
+
"personal",
|
|
11367
|
+
"external"
|
|
11368
|
+
]
|
|
11369
|
+
},
|
|
11370
|
+
"owner_user_id": {
|
|
11371
|
+
"type": "string",
|
|
11372
|
+
"format": "uuid"
|
|
11373
|
+
},
|
|
11374
|
+
"owner_label": { "type": ["string", "null"] },
|
|
11375
|
+
"owner_group_id": {
|
|
11376
|
+
"type": ["string", "null"],
|
|
11377
|
+
"format": "uuid"
|
|
11378
|
+
},
|
|
11379
|
+
"owner_group_name": { "type": ["string", "null"] },
|
|
11380
|
+
"operator_kind": {
|
|
11381
|
+
"type": "string",
|
|
11382
|
+
"enum": ["internal", "external_oauth"]
|
|
11383
|
+
},
|
|
11384
|
+
"vendor_name": { "type": ["string", "null"] },
|
|
11385
|
+
"vendor_contact_email": { "type": ["string", "null"] },
|
|
11386
|
+
"status": {
|
|
11387
|
+
"type": "string",
|
|
11388
|
+
"enum": [
|
|
11389
|
+
"active",
|
|
11390
|
+
"paused",
|
|
11391
|
+
"retired"
|
|
11392
|
+
]
|
|
11393
|
+
},
|
|
11394
|
+
"paused_at": {
|
|
11395
|
+
"type": ["string", "null"],
|
|
11396
|
+
"format": "date-time"
|
|
11397
|
+
},
|
|
11398
|
+
"paused_by_user_id": {
|
|
11399
|
+
"type": ["string", "null"],
|
|
11400
|
+
"format": "uuid"
|
|
11401
|
+
},
|
|
11402
|
+
"paused_reason": { "type": ["string", "null"] },
|
|
11403
|
+
"retired_at": {
|
|
11404
|
+
"type": ["string", "null"],
|
|
11405
|
+
"format": "date-time"
|
|
11406
|
+
},
|
|
11407
|
+
"retired_by_user_id": {
|
|
11408
|
+
"type": ["string", "null"],
|
|
11409
|
+
"format": "uuid"
|
|
11410
|
+
},
|
|
11411
|
+
"envelope_grant_id": {
|
|
11412
|
+
"type": ["string", "null"],
|
|
11413
|
+
"format": "uuid"
|
|
11414
|
+
},
|
|
11415
|
+
"addresses": {
|
|
11416
|
+
"type": "array",
|
|
11417
|
+
"items": {
|
|
11418
|
+
"type": "object",
|
|
11419
|
+
"additionalProperties": false,
|
|
11420
|
+
"required": [
|
|
11421
|
+
"id",
|
|
11422
|
+
"agent_id",
|
|
11423
|
+
"address",
|
|
11424
|
+
"display_name",
|
|
11425
|
+
"claimed_at",
|
|
11426
|
+
"claimed_by_user_id",
|
|
11427
|
+
"history_access_from",
|
|
11428
|
+
"released_at",
|
|
11429
|
+
"released_by_user_id",
|
|
11430
|
+
"created_at",
|
|
11431
|
+
"updated_at"
|
|
11432
|
+
],
|
|
11433
|
+
"properties": {
|
|
11434
|
+
"id": {
|
|
11435
|
+
"type": "string",
|
|
11436
|
+
"format": "uuid"
|
|
11437
|
+
},
|
|
11438
|
+
"agent_id": {
|
|
11439
|
+
"type": "string",
|
|
11440
|
+
"format": "uuid"
|
|
11441
|
+
},
|
|
11442
|
+
"address": { "type": "string" },
|
|
11443
|
+
"display_name": { "type": "string" },
|
|
11444
|
+
"claimed_at": {
|
|
11445
|
+
"type": "string",
|
|
11446
|
+
"format": "date-time"
|
|
11447
|
+
},
|
|
11448
|
+
"claimed_by_user_id": {
|
|
11449
|
+
"type": ["string", "null"],
|
|
11450
|
+
"format": "uuid"
|
|
11451
|
+
},
|
|
11452
|
+
"history_access_from": {
|
|
11453
|
+
"type": "string",
|
|
11454
|
+
"format": "date-time"
|
|
11455
|
+
},
|
|
11456
|
+
"released_at": {
|
|
11457
|
+
"type": ["string", "null"],
|
|
11458
|
+
"format": "date-time"
|
|
11459
|
+
},
|
|
11460
|
+
"released_by_user_id": {
|
|
11461
|
+
"type": ["string", "null"],
|
|
11462
|
+
"format": "uuid"
|
|
11463
|
+
},
|
|
11464
|
+
"created_at": {
|
|
11465
|
+
"type": "string",
|
|
11466
|
+
"format": "date-time"
|
|
11467
|
+
},
|
|
11468
|
+
"updated_at": {
|
|
11469
|
+
"type": "string",
|
|
11470
|
+
"format": "date-time"
|
|
11471
|
+
}
|
|
11472
|
+
}
|
|
8698
11473
|
}
|
|
8699
11474
|
},
|
|
8700
|
-
"
|
|
8701
|
-
"
|
|
8702
|
-
"
|
|
8703
|
-
"
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
"
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
"
|
|
11475
|
+
"credential_counts": {
|
|
11476
|
+
"type": "object",
|
|
11477
|
+
"additionalProperties": false,
|
|
11478
|
+
"required": [
|
|
11479
|
+
"api_keys",
|
|
11480
|
+
"oauth_grants",
|
|
11481
|
+
"connections"
|
|
11482
|
+
],
|
|
11483
|
+
"properties": {
|
|
11484
|
+
"api_keys": {
|
|
11485
|
+
"type": "integer",
|
|
11486
|
+
"minimum": 0
|
|
11487
|
+
},
|
|
11488
|
+
"oauth_grants": {
|
|
11489
|
+
"type": "integer",
|
|
11490
|
+
"minimum": 0
|
|
11491
|
+
},
|
|
11492
|
+
"connections": {
|
|
11493
|
+
"type": "integer",
|
|
11494
|
+
"minimum": 0
|
|
11495
|
+
}
|
|
8718
11496
|
}
|
|
8719
11497
|
},
|
|
8720
|
-
"
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
"
|
|
8725
|
-
"
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
"
|
|
8730
|
-
|
|
8731
|
-
|
|
11498
|
+
"created_by_user_id": {
|
|
11499
|
+
"type": ["string", "null"],
|
|
11500
|
+
"format": "uuid"
|
|
11501
|
+
},
|
|
11502
|
+
"created_at": {
|
|
11503
|
+
"type": "string",
|
|
11504
|
+
"format": "date-time"
|
|
11505
|
+
},
|
|
11506
|
+
"updated_at": {
|
|
11507
|
+
"type": "string",
|
|
11508
|
+
"format": "date-time"
|
|
11509
|
+
},
|
|
11510
|
+
"credentials": {
|
|
11511
|
+
"type": "array",
|
|
11512
|
+
"items": {
|
|
11513
|
+
"type": "object",
|
|
11514
|
+
"additionalProperties": false,
|
|
11515
|
+
"required": [
|
|
11516
|
+
"kind",
|
|
11517
|
+
"id",
|
|
11518
|
+
"label",
|
|
11519
|
+
"prefix",
|
|
11520
|
+
"revoked_at",
|
|
11521
|
+
"created_at"
|
|
11522
|
+
],
|
|
11523
|
+
"properties": {
|
|
11524
|
+
"kind": {
|
|
11525
|
+
"type": "string",
|
|
11526
|
+
"enum": ["api_key", "oauth_grant"]
|
|
11527
|
+
},
|
|
11528
|
+
"id": {
|
|
11529
|
+
"type": "string",
|
|
11530
|
+
"format": "uuid"
|
|
11531
|
+
},
|
|
11532
|
+
"label": { "type": ["string", "null"] },
|
|
11533
|
+
"prefix": { "type": ["string", "null"] },
|
|
11534
|
+
"revoked_at": {
|
|
11535
|
+
"type": ["string", "null"],
|
|
11536
|
+
"format": "date-time"
|
|
11537
|
+
},
|
|
11538
|
+
"created_at": {
|
|
11539
|
+
"type": "string",
|
|
11540
|
+
"format": "date-time"
|
|
11541
|
+
}
|
|
11542
|
+
}
|
|
8732
11543
|
}
|
|
8733
11544
|
},
|
|
8734
|
-
"
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
11545
|
+
"retired_addresses": {
|
|
11546
|
+
"type": "array",
|
|
11547
|
+
"items": {
|
|
11548
|
+
"type": "object",
|
|
11549
|
+
"additionalProperties": false,
|
|
11550
|
+
"required": [
|
|
11551
|
+
"id",
|
|
11552
|
+
"agent_id",
|
|
11553
|
+
"address",
|
|
11554
|
+
"display_name",
|
|
11555
|
+
"claimed_at",
|
|
11556
|
+
"claimed_by_user_id",
|
|
11557
|
+
"history_access_from",
|
|
11558
|
+
"released_at",
|
|
11559
|
+
"released_by_user_id",
|
|
11560
|
+
"created_at",
|
|
11561
|
+
"updated_at"
|
|
11562
|
+
],
|
|
11563
|
+
"properties": {
|
|
11564
|
+
"id": {
|
|
11565
|
+
"type": "string",
|
|
11566
|
+
"format": "uuid"
|
|
11567
|
+
},
|
|
11568
|
+
"agent_id": {
|
|
11569
|
+
"type": "string",
|
|
11570
|
+
"format": "uuid"
|
|
11571
|
+
},
|
|
11572
|
+
"address": { "type": "string" },
|
|
11573
|
+
"display_name": { "type": "string" },
|
|
11574
|
+
"claimed_at": {
|
|
11575
|
+
"type": "string",
|
|
11576
|
+
"format": "date-time"
|
|
11577
|
+
},
|
|
11578
|
+
"claimed_by_user_id": {
|
|
11579
|
+
"type": ["string", "null"],
|
|
11580
|
+
"format": "uuid"
|
|
11581
|
+
},
|
|
11582
|
+
"history_access_from": {
|
|
11583
|
+
"type": "string",
|
|
11584
|
+
"format": "date-time"
|
|
11585
|
+
},
|
|
11586
|
+
"released_at": {
|
|
11587
|
+
"type": ["string", "null"],
|
|
11588
|
+
"format": "date-time"
|
|
11589
|
+
},
|
|
11590
|
+
"released_by_user_id": {
|
|
11591
|
+
"type": ["string", "null"],
|
|
11592
|
+
"format": "uuid"
|
|
11593
|
+
},
|
|
11594
|
+
"created_at": {
|
|
11595
|
+
"type": "string",
|
|
11596
|
+
"format": "date-time"
|
|
11597
|
+
},
|
|
11598
|
+
"updated_at": {
|
|
11599
|
+
"type": "string",
|
|
11600
|
+
"format": "date-time"
|
|
11601
|
+
}
|
|
11602
|
+
}
|
|
11603
|
+
}
|
|
11604
|
+
}
|
|
8745
11605
|
}
|
|
8746
|
-
}
|
|
8747
|
-
"required": [
|
|
8748
|
-
"id",
|
|
8749
|
-
"agentId",
|
|
8750
|
-
"version",
|
|
8751
|
-
"workTitle",
|
|
8752
|
-
"workDetail",
|
|
8753
|
-
"status",
|
|
8754
|
-
"proposedDeadlineAt",
|
|
8755
|
-
"deadline",
|
|
8756
|
-
"createdBy",
|
|
8757
|
-
"updatedBy",
|
|
8758
|
-
"createdAt",
|
|
8759
|
-
"updatedAt"
|
|
8760
|
-
]
|
|
11606
|
+
} }
|
|
8761
11607
|
},
|
|
8762
|
-
"sdkName": "
|
|
8763
|
-
"summary": "
|
|
8764
|
-
"tag": "
|
|
8765
|
-
"tagCommand": "
|
|
11608
|
+
"sdkName": "updateAgent",
|
|
11609
|
+
"summary": "Update a durable agent identity",
|
|
11610
|
+
"tag": "Agents",
|
|
11611
|
+
"tagCommand": "agents"
|
|
8766
11612
|
},
|
|
8767
11613
|
{
|
|
8768
11614
|
"binaryResponse": false,
|
|
@@ -12180,6 +15026,15 @@ const operationManifest = [
|
|
|
12180
15026
|
"all_members",
|
|
12181
15027
|
"off"
|
|
12182
15028
|
]
|
|
15029
|
+
},
|
|
15030
|
+
"mail_activity_work_visibility": {
|
|
15031
|
+
"type": "string",
|
|
15032
|
+
"enum": [
|
|
15033
|
+
"everyone_on_thread",
|
|
15034
|
+
"mailbox_and_admins",
|
|
15035
|
+
"admins_only"
|
|
15036
|
+
],
|
|
15037
|
+
"description": "Controls who can view agent-logged work summaries on threads."
|
|
12183
15038
|
}
|
|
12184
15039
|
},
|
|
12185
15040
|
"required": [
|
|
@@ -13711,6 +16566,15 @@ const operationManifest = [
|
|
|
13711
16566
|
"all_members",
|
|
13712
16567
|
"off"
|
|
13713
16568
|
]
|
|
16569
|
+
},
|
|
16570
|
+
"mail_activity_work_visibility": {
|
|
16571
|
+
"type": "string",
|
|
16572
|
+
"enum": [
|
|
16573
|
+
"everyone_on_thread",
|
|
16574
|
+
"mailbox_and_admins",
|
|
16575
|
+
"admins_only"
|
|
16576
|
+
],
|
|
16577
|
+
"description": "Controls who can view agent-logged work summaries on threads."
|
|
13714
16578
|
}
|
|
13715
16579
|
},
|
|
13716
16580
|
"additionalProperties": false
|
|
@@ -13742,6 +16606,15 @@ const operationManifest = [
|
|
|
13742
16606
|
"all_members",
|
|
13743
16607
|
"off"
|
|
13744
16608
|
]
|
|
16609
|
+
},
|
|
16610
|
+
"mail_activity_work_visibility": {
|
|
16611
|
+
"type": "string",
|
|
16612
|
+
"enum": [
|
|
16613
|
+
"everyone_on_thread",
|
|
16614
|
+
"mailbox_and_admins",
|
|
16615
|
+
"admins_only"
|
|
16616
|
+
],
|
|
16617
|
+
"description": "Controls who can view agent-logged work summaries on threads."
|
|
13745
16618
|
}
|
|
13746
16619
|
},
|
|
13747
16620
|
"required": [
|
|
@@ -28275,6 +31148,11 @@ const operationManifest = [
|
|
|
28275
31148
|
"type": ["string", "null"],
|
|
28276
31149
|
"format": "uuid"
|
|
28277
31150
|
},
|
|
31151
|
+
"agent_id": {
|
|
31152
|
+
"type": ["string", "null"],
|
|
31153
|
+
"format": "uuid",
|
|
31154
|
+
"description": "Durable Agent identity UUID when this actor is bound to an agent identity."
|
|
31155
|
+
},
|
|
28278
31156
|
"oauth_client_id": { "type": ["string", "null"] }
|
|
28279
31157
|
}
|
|
28280
31158
|
},
|
|
@@ -28394,6 +31272,11 @@ const operationManifest = [
|
|
|
28394
31272
|
"type": ["string", "null"],
|
|
28395
31273
|
"format": "date-time"
|
|
28396
31274
|
},
|
|
31275
|
+
"claim_expires_at": {
|
|
31276
|
+
"type": ["string", "null"],
|
|
31277
|
+
"format": "date-time",
|
|
31278
|
+
"description": "Optional expiry timestamp for an active started claim lease."
|
|
31279
|
+
},
|
|
28397
31280
|
"updated_by": { "oneOf": [{
|
|
28398
31281
|
"type": "object",
|
|
28399
31282
|
"additionalProperties": false,
|
|
@@ -28422,6 +31305,10 @@ const operationManifest = [
|
|
|
28422
31305
|
"occurred_at": {
|
|
28423
31306
|
"type": "string",
|
|
28424
31307
|
"format": "date-time"
|
|
31308
|
+
},
|
|
31309
|
+
"internals_redacted": {
|
|
31310
|
+
"type": "boolean",
|
|
31311
|
+
"description": "True when operational internals (detail, data, trace_url, run_id, status_history, actor owner fields) were stripped for this viewer."
|
|
28425
31312
|
}
|
|
28426
31313
|
}
|
|
28427
31314
|
}
|
|
@@ -62599,7 +65486,7 @@ function savedConnectedProfiles(configDir, exclude) {
|
|
|
62599
65486
|
*/
|
|
62600
65487
|
async function otherProfiles(configDir, session, current) {
|
|
62601
65488
|
if (session) try {
|
|
62602
|
-
const { connectedProfilesForSession } = await import("./machine-session-
|
|
65489
|
+
const { connectedProfilesForSession } = await import("./machine-session-B8Z4GZ6-.js").then((n) => n.s);
|
|
62603
65490
|
return {
|
|
62604
65491
|
inSession: true,
|
|
62605
65492
|
profiles: connectedProfilesForSession(configDir, session, current)
|
|
@@ -63355,7 +66242,10 @@ function extractErrorCode(payload) {
|
|
|
63355
66242
|
const ERROR_CODE_HINTS = {
|
|
63356
66243
|
[API_ERROR_CODES.unauthorized]: "Hint: run `primitive signin`, pass --api-key explicitly, or set PRIMITIVE_API_KEY in your environment. `primitive whoami` is the fastest way to verify auth is live.",
|
|
63357
66244
|
access_reason_required: "Hint: this organization requires an access reason on mail requests. Pass --reason \"...\" or set PRIMITIVE_REASON.",
|
|
63358
|
-
activity_header_invalid: "Hint: X-Primitive-Reason must be 1 to 500 printable ASCII characters without newlines; X-Primitive-Run-Id must be 1 to 128 characters matching [A-Za-z0-9._:/-]."
|
|
66245
|
+
activity_header_invalid: "Hint: X-Primitive-Reason must be 1 to 500 printable ASCII characters without newlines; X-Primitive-Run-Id must be 1 to 128 characters matching [A-Za-z0-9._:/-].",
|
|
66246
|
+
agent_paused: "Hint: this agent identity is paused. Do not rotate or discard your credential; wait for the agent owner or an org admin to resume it (`primitive agents resume --id <agent-id>`).",
|
|
66247
|
+
agent_retired: "Hint: this agent identity has been permanently retired and its bound credentials can no longer be used.",
|
|
66248
|
+
display_name_mismatch: "Hint: this address is claimed by an agent identity with a canonical From display name. Omit the display name (send the bare address) or match the agent's canonical display name."
|
|
63359
66249
|
};
|
|
63360
66250
|
const NETWORK_ERROR_HINTS = {
|
|
63361
66251
|
ENETUNREACH: "Hint: the network is unreachable. If you're behind a proxy and set HTTP(S)_PROXY, re-run with NODE_USE_ENV_PROXY=1 (Node 22+ ignores those env vars by default). `primitive doctor` reports the local environment in one shot.",
|