primcli 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/oclif/index.js +1423 -128
- package/package.json +4 -1
package/dist/oclif/index.js
CHANGED
|
@@ -37,6 +37,9 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
37
37
|
createFunction: () => createFunction,
|
|
38
38
|
createFunctionSecret: () => createFunctionSecret,
|
|
39
39
|
createOrgSecret: () => createOrgSecret,
|
|
40
|
+
createRegistry: () => createRegistry,
|
|
41
|
+
decideRegistryRequest: () => decideRegistryRequest,
|
|
42
|
+
defineAgent: () => defineAgent,
|
|
40
43
|
deleteDomain: () => deleteDomain,
|
|
41
44
|
deleteEmail: () => deleteEmail,
|
|
42
45
|
deleteEndpoint: () => deleteEndpoint,
|
|
@@ -49,6 +52,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
49
52
|
downloadDomainZoneFile: () => downloadDomainZoneFile,
|
|
50
53
|
downloadRawEmail: () => downloadRawEmail,
|
|
51
54
|
getAccount: () => getAccount,
|
|
55
|
+
getAgent: () => getAgent,
|
|
52
56
|
getChallenge: () => getChallenge,
|
|
53
57
|
getConversation: () => getConversation,
|
|
54
58
|
getEmail: () => getEmail,
|
|
@@ -57,6 +61,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
57
61
|
getFunctionTestRunTrace: () => getFunctionTestRunTrace,
|
|
58
62
|
getInboxStatus: () => getInboxStatus,
|
|
59
63
|
getOrgRoutingTopology: () => getOrgRoutingTopology,
|
|
64
|
+
getRegistry: () => getRegistry,
|
|
60
65
|
getSendPermissions: () => getSendPermissions,
|
|
61
66
|
getSentEmail: () => getSentEmail,
|
|
62
67
|
getSpendPolicy: () => getSpendPolicy,
|
|
@@ -74,15 +79,20 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
74
79
|
listFunctions: () => listFunctions,
|
|
75
80
|
listOrgSecrets: () => listOrgSecrets,
|
|
76
81
|
listPayoutAddresses: () => listPayoutAddresses,
|
|
82
|
+
listRegistries: () => listRegistries,
|
|
83
|
+
listRegistryAgents: () => listRegistryAgents,
|
|
84
|
+
listRegistryRequests: () => listRegistryRequests,
|
|
77
85
|
listSentEmails: () => listSentEmails,
|
|
78
86
|
payChallenge: () => payChallenge,
|
|
79
87
|
pollCliLogin: () => pollCliLogin,
|
|
88
|
+
publishAgent: () => publishAgent,
|
|
80
89
|
registerPayoutAddress: () => registerPayoutAddress,
|
|
81
90
|
replayDelivery: () => replayDelivery,
|
|
82
91
|
replayEmailWebhooks: () => replayEmailWebhooks,
|
|
83
92
|
replyToEmail: () => replyToEmail,
|
|
84
93
|
resendAgentSignupVerification: () => resendAgentSignupVerification,
|
|
85
94
|
resendCliSignupVerification: () => resendCliSignupVerification,
|
|
95
|
+
resolveRegistryHandle: () => resolveRegistryHandle,
|
|
86
96
|
rotateWebhookSecret: () => rotateWebhookSecret,
|
|
87
97
|
searchEmails: () => searchEmails,
|
|
88
98
|
semanticSearch: () => semanticSearch,
|
|
@@ -96,12 +106,14 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
96
106
|
startCliSignup: () => startCliSignup,
|
|
97
107
|
testEndpoint: () => testEndpoint,
|
|
98
108
|
testFunction: () => testFunction,
|
|
109
|
+
unpublishAgent: () => unpublishAgent,
|
|
99
110
|
unsetFunctionRoute: () => unsetFunctionRoute,
|
|
100
111
|
updateAccount: () => updateAccount,
|
|
101
112
|
updateDomain: () => updateDomain,
|
|
102
113
|
updateEndpoint: () => updateEndpoint,
|
|
103
114
|
updateFilter: () => updateFilter,
|
|
104
115
|
updateFunction: () => updateFunction,
|
|
116
|
+
updateRegistry: () => updateRegistry,
|
|
105
117
|
updateSpendPolicy: () => updateSpendPolicy,
|
|
106
118
|
verifyAgentClaim: () => verifyAgentClaim,
|
|
107
119
|
verifyAgentSignup: () => verifyAgentSignup,
|
|
@@ -1819,6 +1831,142 @@ const listDeclinedPayments = (options) => (options?.client ?? client).get({
|
|
|
1819
1831
|
url: "/x402/declined-payments",
|
|
1820
1832
|
...options
|
|
1821
1833
|
});
|
|
1834
|
+
/**
|
|
1835
|
+
* List the registries you own
|
|
1836
|
+
*/
|
|
1837
|
+
const listRegistries = (options) => (options?.client ?? client).get({
|
|
1838
|
+
security: [{
|
|
1839
|
+
scheme: "bearer",
|
|
1840
|
+
type: "http"
|
|
1841
|
+
}],
|
|
1842
|
+
url: "/registries",
|
|
1843
|
+
...options
|
|
1844
|
+
});
|
|
1845
|
+
/**
|
|
1846
|
+
* Create a registry
|
|
1847
|
+
*/
|
|
1848
|
+
const createRegistry = (options) => (options.client ?? client).post({
|
|
1849
|
+
security: [{
|
|
1850
|
+
scheme: "bearer",
|
|
1851
|
+
type: "http"
|
|
1852
|
+
}],
|
|
1853
|
+
url: "/registries",
|
|
1854
|
+
...options,
|
|
1855
|
+
headers: {
|
|
1856
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
1857
|
+
...options.headers
|
|
1858
|
+
}
|
|
1859
|
+
});
|
|
1860
|
+
/**
|
|
1861
|
+
* Get a public registry's metadata
|
|
1862
|
+
*/
|
|
1863
|
+
const getRegistry = (options) => (options.client ?? client).get({
|
|
1864
|
+
url: "/registries/{slug}",
|
|
1865
|
+
...options
|
|
1866
|
+
});
|
|
1867
|
+
/**
|
|
1868
|
+
* Update a registry you own
|
|
1869
|
+
*/
|
|
1870
|
+
const updateRegistry = (options) => (options.client ?? client).patch({
|
|
1871
|
+
security: [{
|
|
1872
|
+
scheme: "bearer",
|
|
1873
|
+
type: "http"
|
|
1874
|
+
}],
|
|
1875
|
+
url: "/registries/{slug}",
|
|
1876
|
+
...options,
|
|
1877
|
+
headers: {
|
|
1878
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
1879
|
+
...options.headers
|
|
1880
|
+
}
|
|
1881
|
+
});
|
|
1882
|
+
/**
|
|
1883
|
+
* List agents in a registry
|
|
1884
|
+
*/
|
|
1885
|
+
const listRegistryAgents = (options) => (options.client ?? client).get({
|
|
1886
|
+
url: "/registries/{slug}/agents",
|
|
1887
|
+
...options
|
|
1888
|
+
});
|
|
1889
|
+
/**
|
|
1890
|
+
* Publish an agent into a registry
|
|
1891
|
+
*/
|
|
1892
|
+
const publishAgent = (options) => (options.client ?? client).post({
|
|
1893
|
+
security: [{
|
|
1894
|
+
scheme: "bearer",
|
|
1895
|
+
type: "http"
|
|
1896
|
+
}],
|
|
1897
|
+
url: "/registries/{slug}/agents",
|
|
1898
|
+
...options,
|
|
1899
|
+
headers: {
|
|
1900
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
1901
|
+
...options.headers
|
|
1902
|
+
}
|
|
1903
|
+
});
|
|
1904
|
+
/**
|
|
1905
|
+
* Unpublish an agent from a registry
|
|
1906
|
+
*/
|
|
1907
|
+
const unpublishAgent = (options) => (options.client ?? client).delete({
|
|
1908
|
+
security: [{
|
|
1909
|
+
scheme: "bearer",
|
|
1910
|
+
type: "http"
|
|
1911
|
+
}],
|
|
1912
|
+
url: "/registries/{slug}/agents/{handle}",
|
|
1913
|
+
...options
|
|
1914
|
+
});
|
|
1915
|
+
/**
|
|
1916
|
+
* Resolve a registry handle to its agent
|
|
1917
|
+
*/
|
|
1918
|
+
const resolveRegistryHandle = (options) => (options.client ?? client).get({
|
|
1919
|
+
url: "/registries/{slug}/agents/{handle}",
|
|
1920
|
+
...options
|
|
1921
|
+
});
|
|
1922
|
+
/**
|
|
1923
|
+
* List pending publication requests
|
|
1924
|
+
*/
|
|
1925
|
+
const listRegistryRequests = (options) => (options.client ?? client).get({
|
|
1926
|
+
security: [{
|
|
1927
|
+
scheme: "bearer",
|
|
1928
|
+
type: "http"
|
|
1929
|
+
}],
|
|
1930
|
+
url: "/registries/{slug}/requests",
|
|
1931
|
+
...options
|
|
1932
|
+
});
|
|
1933
|
+
/**
|
|
1934
|
+
* Approve or reject a publication request
|
|
1935
|
+
*/
|
|
1936
|
+
const decideRegistryRequest = (options) => (options.client ?? client).post({
|
|
1937
|
+
security: [{
|
|
1938
|
+
scheme: "bearer",
|
|
1939
|
+
type: "http"
|
|
1940
|
+
}],
|
|
1941
|
+
url: "/registries/{slug}/requests/{id}",
|
|
1942
|
+
...options,
|
|
1943
|
+
headers: {
|
|
1944
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
1945
|
+
...options.headers
|
|
1946
|
+
}
|
|
1947
|
+
});
|
|
1948
|
+
/**
|
|
1949
|
+
* Define an agent identity
|
|
1950
|
+
*/
|
|
1951
|
+
const defineAgent = (options) => (options.client ?? client).post({
|
|
1952
|
+
security: [{
|
|
1953
|
+
scheme: "bearer",
|
|
1954
|
+
type: "http"
|
|
1955
|
+
}],
|
|
1956
|
+
url: "/agents",
|
|
1957
|
+
...options,
|
|
1958
|
+
headers: {
|
|
1959
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
1960
|
+
...options.headers
|
|
1961
|
+
}
|
|
1962
|
+
});
|
|
1963
|
+
/**
|
|
1964
|
+
* Get an agent's public profile by address
|
|
1965
|
+
*/
|
|
1966
|
+
const getAgent = (options) => (options.client ?? client).get({
|
|
1967
|
+
url: "/agents/{address}",
|
|
1968
|
+
...options
|
|
1969
|
+
});
|
|
1822
1970
|
//#endregion
|
|
1823
1971
|
//#region ../packages/api-core/src/openapi/openapi.generated.ts
|
|
1824
1972
|
/**
|
|
@@ -1906,6 +2054,10 @@ const openapiDocument = {
|
|
|
1906
2054
|
{
|
|
1907
2055
|
"name": "Functions",
|
|
1908
2056
|
"description": "Deploy JavaScript handlers that run on inbound mail. Each function\nis a single ESM module whose default export is an object with an\nasync `fetch(request, env)` method, in the shape of a Workers-style\nhandler. Primitive signs each delivery and forwards the\n`Primitive-Signature` header to the handler; verify the raw request\nbody with `PRIMITIVE_WEBHOOK_SECRET` before trusting the parsed event.\nThe `event` field is `email.received` for normal inbound mail, or a\nmachine-mail type (`email.bounced`, `email.tls_report`,\n`email.dmarc_report`, `email.dmarc_failure`) for bounces and reports;\nthe payload shape is otherwise identical. Code runs on\nPrimitive's edge runtime; there is no infrastructure to manage.\nSecrets land in `env` as encrypted bindings and are refreshed on\nevery redeploy.\n"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"name": "Registries",
|
|
2060
|
+
"description": "The Agent Registry: ownable directories of agents, addressable by a\nregistry-scoped handle. A registry's publish policy (owner_only, request,\nor open) decides whether a publish lists immediately or pends owner\napproval. An agent is defined once with a globally unique,\nreachability-verified address, then published into any registry under a\nhandle. Discovery reads (list, resolve, get) are public for public\nregistries; managing a registry and moderating requests use the owner's\nAPI key.\n"
|
|
1909
2061
|
}
|
|
1910
2062
|
],
|
|
1911
2063
|
"paths": {
|
|
@@ -4377,107 +4529,416 @@ const openapiDocument = {
|
|
|
4377
4529
|
"403": { "$ref": "#/components/responses/Forbidden" },
|
|
4378
4530
|
"429": { "$ref": "#/components/responses/RateLimited" }
|
|
4379
4531
|
}
|
|
4380
|
-
} }
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
"
|
|
4386
|
-
"
|
|
4387
|
-
|
|
4532
|
+
} },
|
|
4533
|
+
"/registries": {
|
|
4534
|
+
"get": {
|
|
4535
|
+
"operationId": "listRegistries",
|
|
4536
|
+
"summary": "List the registries you own",
|
|
4537
|
+
"tags": ["Registries"],
|
|
4538
|
+
"responses": {
|
|
4539
|
+
"200": {
|
|
4540
|
+
"description": "Registries owned by the caller",
|
|
4541
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4542
|
+
"type": "array",
|
|
4543
|
+
"items": { "$ref": "#/components/schemas/Registry" }
|
|
4544
|
+
} } }] } } }
|
|
4545
|
+
},
|
|
4546
|
+
"401": { "$ref": "#/components/responses/Unauthorized" }
|
|
4547
|
+
}
|
|
4388
4548
|
},
|
|
4389
|
-
"
|
|
4390
|
-
"
|
|
4391
|
-
"
|
|
4392
|
-
"
|
|
4393
|
-
"
|
|
4549
|
+
"post": {
|
|
4550
|
+
"operationId": "createRegistry",
|
|
4551
|
+
"summary": "Create a registry",
|
|
4552
|
+
"tags": ["Registries"],
|
|
4553
|
+
"requestBody": {
|
|
4554
|
+
"required": true,
|
|
4555
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRegistryInput" } } }
|
|
4556
|
+
},
|
|
4557
|
+
"responses": {
|
|
4558
|
+
"201": {
|
|
4559
|
+
"description": "Registry created",
|
|
4560
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4561
|
+
"type": "object",
|
|
4562
|
+
"properties": {
|
|
4563
|
+
"id": {
|
|
4564
|
+
"type": "string",
|
|
4565
|
+
"format": "uuid"
|
|
4566
|
+
},
|
|
4567
|
+
"slug": { "type": "string" }
|
|
4568
|
+
},
|
|
4569
|
+
"required": ["id", "slug"]
|
|
4570
|
+
} } }] } } }
|
|
4571
|
+
},
|
|
4572
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4573
|
+
"403": { "$ref": "#/components/responses/Forbidden" },
|
|
4574
|
+
"409": { "$ref": "#/components/responses/Conflict" },
|
|
4575
|
+
"422": { "$ref": "#/components/responses/ValidationError" }
|
|
4576
|
+
}
|
|
4394
4577
|
}
|
|
4395
4578
|
},
|
|
4396
|
-
"
|
|
4397
|
-
"
|
|
4398
|
-
"name": "
|
|
4579
|
+
"/registries/{slug}": {
|
|
4580
|
+
"parameters": [{
|
|
4581
|
+
"name": "slug",
|
|
4399
4582
|
"in": "path",
|
|
4400
4583
|
"required": true,
|
|
4401
|
-
"schema": {
|
|
4402
|
-
"type": "string",
|
|
4403
|
-
"format": "uuid"
|
|
4404
|
-
},
|
|
4405
|
-
"description": "Resource UUID"
|
|
4406
|
-
},
|
|
4407
|
-
"IdempotencyKey": {
|
|
4408
|
-
"name": "idempotency-key",
|
|
4409
|
-
"in": "header",
|
|
4410
|
-
"required": false,
|
|
4411
|
-
"schema": {
|
|
4412
|
-
"type": "string",
|
|
4413
|
-
"maxLength": 255
|
|
4414
|
-
},
|
|
4415
|
-
"description": "Optional idempotency key. Retrying a request with the same key returns\nthe original result instead of repeating the side effect (for\n`createEmailChallenge`, re-sending the email).\n"
|
|
4416
|
-
},
|
|
4417
|
-
"Cursor": {
|
|
4418
|
-
"name": "cursor",
|
|
4419
|
-
"in": "query",
|
|
4420
4584
|
"schema": { "type": "string" },
|
|
4421
|
-
"description": "
|
|
4585
|
+
"description": "The registry slug"
|
|
4586
|
+
}],
|
|
4587
|
+
"get": {
|
|
4588
|
+
"operationId": "getRegistry",
|
|
4589
|
+
"summary": "Get a public registry's metadata",
|
|
4590
|
+
"tags": ["Registries"],
|
|
4591
|
+
"security": [],
|
|
4592
|
+
"responses": {
|
|
4593
|
+
"200": {
|
|
4594
|
+
"description": "Registry metadata",
|
|
4595
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": { "$ref": "#/components/schemas/Registry" } } }] } } }
|
|
4596
|
+
},
|
|
4597
|
+
"404": { "$ref": "#/components/responses/NotFound" }
|
|
4598
|
+
}
|
|
4422
4599
|
},
|
|
4423
|
-
"
|
|
4424
|
-
"
|
|
4425
|
-
"
|
|
4426
|
-
"
|
|
4427
|
-
|
|
4428
|
-
"
|
|
4429
|
-
"
|
|
4430
|
-
"default": 50
|
|
4600
|
+
"patch": {
|
|
4601
|
+
"operationId": "updateRegistry",
|
|
4602
|
+
"summary": "Update a registry you own",
|
|
4603
|
+
"tags": ["Registries"],
|
|
4604
|
+
"requestBody": {
|
|
4605
|
+
"required": true,
|
|
4606
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateRegistryInput" } } }
|
|
4431
4607
|
},
|
|
4432
|
-
"
|
|
4608
|
+
"responses": {
|
|
4609
|
+
"200": {
|
|
4610
|
+
"description": "Registry updated",
|
|
4611
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4612
|
+
"type": "object",
|
|
4613
|
+
"properties": { "id": {
|
|
4614
|
+
"type": "string",
|
|
4615
|
+
"format": "uuid"
|
|
4616
|
+
} },
|
|
4617
|
+
"required": ["id"]
|
|
4618
|
+
} } }] } } }
|
|
4619
|
+
},
|
|
4620
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4621
|
+
"403": { "$ref": "#/components/responses/Forbidden" },
|
|
4622
|
+
"404": { "$ref": "#/components/responses/NotFound" },
|
|
4623
|
+
"422": { "$ref": "#/components/responses/ValidationError" }
|
|
4624
|
+
}
|
|
4433
4625
|
}
|
|
4434
4626
|
},
|
|
4435
|
-
"
|
|
4436
|
-
"
|
|
4437
|
-
"
|
|
4438
|
-
"
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
"
|
|
4455
|
-
"error": {
|
|
4456
|
-
"code": "forbidden",
|
|
4457
|
-
"message": "Insufficient permissions"
|
|
4458
|
-
}
|
|
4459
|
-
}
|
|
4460
|
-
} }
|
|
4461
|
-
},
|
|
4462
|
-
"NotFound": {
|
|
4463
|
-
"description": "Resource not found",
|
|
4464
|
-
"content": { "application/json": {
|
|
4465
|
-
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
4466
|
-
"example": {
|
|
4467
|
-
"success": false,
|
|
4468
|
-
"error": {
|
|
4469
|
-
"code": "not_found",
|
|
4470
|
-
"message": "Resource not found"
|
|
4471
|
-
}
|
|
4627
|
+
"/registries/{slug}/agents": {
|
|
4628
|
+
"parameters": [{
|
|
4629
|
+
"name": "slug",
|
|
4630
|
+
"in": "path",
|
|
4631
|
+
"required": true,
|
|
4632
|
+
"schema": { "type": "string" }
|
|
4633
|
+
}],
|
|
4634
|
+
"get": {
|
|
4635
|
+
"operationId": "listRegistryAgents",
|
|
4636
|
+
"summary": "List agents in a registry",
|
|
4637
|
+
"tags": ["Registries"],
|
|
4638
|
+
"security": [],
|
|
4639
|
+
"parameters": [{
|
|
4640
|
+
"name": "limit",
|
|
4641
|
+
"in": "query",
|
|
4642
|
+
"required": false,
|
|
4643
|
+
"schema": {
|
|
4644
|
+
"type": "integer",
|
|
4645
|
+
"minimum": 1,
|
|
4646
|
+
"maximum": 200
|
|
4472
4647
|
}
|
|
4648
|
+
}, {
|
|
4649
|
+
"name": "cursor",
|
|
4650
|
+
"in": "query",
|
|
4651
|
+
"required": false,
|
|
4652
|
+
"schema": { "type": "string" },
|
|
4653
|
+
"description": "The address of the last agent from the previous page."
|
|
4654
|
+
}],
|
|
4655
|
+
"responses": { "200": {
|
|
4656
|
+
"description": "Approved, reachable agents. Empty for an unknown or private registry.",
|
|
4657
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/ListEnvelope" }, { "properties": { "data": {
|
|
4658
|
+
"type": "array",
|
|
4659
|
+
"items": { "$ref": "#/components/schemas/RegistryAgent" }
|
|
4660
|
+
} } }] } } }
|
|
4473
4661
|
} }
|
|
4474
4662
|
},
|
|
4475
|
-
"
|
|
4476
|
-
"
|
|
4477
|
-
"
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4663
|
+
"post": {
|
|
4664
|
+
"operationId": "publishAgent",
|
|
4665
|
+
"summary": "Publish an agent into a registry",
|
|
4666
|
+
"tags": ["Registries"],
|
|
4667
|
+
"requestBody": {
|
|
4668
|
+
"required": true,
|
|
4669
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublishAgentInput" } } }
|
|
4670
|
+
},
|
|
4671
|
+
"responses": {
|
|
4672
|
+
"200": {
|
|
4673
|
+
"description": "Idempotent replay of an existing publication",
|
|
4674
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": { "$ref": "#/components/schemas/PublishAgentResult" } } }] } } }
|
|
4675
|
+
},
|
|
4676
|
+
"201": {
|
|
4677
|
+
"description": "Published (approved) or request created (requested)",
|
|
4678
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": { "$ref": "#/components/schemas/PublishAgentResult" } } }] } } }
|
|
4679
|
+
},
|
|
4680
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4681
|
+
"403": { "$ref": "#/components/responses/Forbidden" },
|
|
4682
|
+
"404": { "$ref": "#/components/responses/NotFound" },
|
|
4683
|
+
"409": { "$ref": "#/components/responses/Conflict" },
|
|
4684
|
+
"422": { "$ref": "#/components/responses/ValidationError" }
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4688
|
+
"/registries/{slug}/agents/{handle}": {
|
|
4689
|
+
"parameters": [{
|
|
4690
|
+
"name": "slug",
|
|
4691
|
+
"in": "path",
|
|
4692
|
+
"required": true,
|
|
4693
|
+
"schema": { "type": "string" }
|
|
4694
|
+
}, {
|
|
4695
|
+
"name": "handle",
|
|
4696
|
+
"in": "path",
|
|
4697
|
+
"required": true,
|
|
4698
|
+
"schema": { "type": "string" }
|
|
4699
|
+
}],
|
|
4700
|
+
"get": {
|
|
4701
|
+
"operationId": "resolveRegistryHandle",
|
|
4702
|
+
"summary": "Resolve a registry handle to its agent",
|
|
4703
|
+
"tags": ["Registries"],
|
|
4704
|
+
"security": [],
|
|
4705
|
+
"responses": {
|
|
4706
|
+
"200": {
|
|
4707
|
+
"description": "The agent listing under the handle",
|
|
4708
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": { "$ref": "#/components/schemas/RegistryAgent" } } }] } } }
|
|
4709
|
+
},
|
|
4710
|
+
"404": { "$ref": "#/components/responses/NotFound" }
|
|
4711
|
+
}
|
|
4712
|
+
},
|
|
4713
|
+
"delete": {
|
|
4714
|
+
"operationId": "unpublishAgent",
|
|
4715
|
+
"summary": "Unpublish an agent from a registry",
|
|
4716
|
+
"tags": ["Registries"],
|
|
4717
|
+
"responses": {
|
|
4718
|
+
"200": { "$ref": "#/components/responses/Deleted" },
|
|
4719
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4720
|
+
"404": { "$ref": "#/components/responses/NotFound" }
|
|
4721
|
+
}
|
|
4722
|
+
}
|
|
4723
|
+
},
|
|
4724
|
+
"/registries/{slug}/requests": {
|
|
4725
|
+
"parameters": [{
|
|
4726
|
+
"name": "slug",
|
|
4727
|
+
"in": "path",
|
|
4728
|
+
"required": true,
|
|
4729
|
+
"schema": { "type": "string" }
|
|
4730
|
+
}],
|
|
4731
|
+
"get": {
|
|
4732
|
+
"operationId": "listRegistryRequests",
|
|
4733
|
+
"summary": "List pending publication requests",
|
|
4734
|
+
"tags": ["Registries"],
|
|
4735
|
+
"parameters": [{
|
|
4736
|
+
"name": "limit",
|
|
4737
|
+
"in": "query",
|
|
4738
|
+
"required": false,
|
|
4739
|
+
"schema": {
|
|
4740
|
+
"type": "integer",
|
|
4741
|
+
"minimum": 1,
|
|
4742
|
+
"maximum": 200
|
|
4743
|
+
}
|
|
4744
|
+
}],
|
|
4745
|
+
"responses": {
|
|
4746
|
+
"200": {
|
|
4747
|
+
"description": "Pending requests for a registry you own",
|
|
4748
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4749
|
+
"type": "array",
|
|
4750
|
+
"items": { "$ref": "#/components/schemas/RegistryRequest" }
|
|
4751
|
+
} } }] } } }
|
|
4752
|
+
},
|
|
4753
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4754
|
+
"404": { "$ref": "#/components/responses/NotFound" }
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4757
|
+
},
|
|
4758
|
+
"/registries/{slug}/requests/{id}": {
|
|
4759
|
+
"parameters": [{
|
|
4760
|
+
"name": "slug",
|
|
4761
|
+
"in": "path",
|
|
4762
|
+
"required": true,
|
|
4763
|
+
"schema": { "type": "string" }
|
|
4764
|
+
}, { "$ref": "#/components/parameters/ResourceId" }],
|
|
4765
|
+
"post": {
|
|
4766
|
+
"operationId": "decideRegistryRequest",
|
|
4767
|
+
"summary": "Approve or reject a publication request",
|
|
4768
|
+
"tags": ["Registries"],
|
|
4769
|
+
"requestBody": {
|
|
4770
|
+
"required": true,
|
|
4771
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecideRegistryRequestInput" } } }
|
|
4772
|
+
},
|
|
4773
|
+
"responses": {
|
|
4774
|
+
"200": {
|
|
4775
|
+
"description": "Decision applied",
|
|
4776
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4777
|
+
"type": "object",
|
|
4778
|
+
"properties": { "status": {
|
|
4779
|
+
"type": "string",
|
|
4780
|
+
"enum": ["approved", "rejected"]
|
|
4781
|
+
} },
|
|
4782
|
+
"required": ["status"]
|
|
4783
|
+
} } }] } } }
|
|
4784
|
+
},
|
|
4785
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4786
|
+
"404": { "$ref": "#/components/responses/NotFound" },
|
|
4787
|
+
"409": { "$ref": "#/components/responses/Conflict" },
|
|
4788
|
+
"422": { "$ref": "#/components/responses/ValidationError" }
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
},
|
|
4792
|
+
"/agents": { "post": {
|
|
4793
|
+
"operationId": "defineAgent",
|
|
4794
|
+
"summary": "Define an agent identity",
|
|
4795
|
+
"tags": ["Registries"],
|
|
4796
|
+
"requestBody": {
|
|
4797
|
+
"required": true,
|
|
4798
|
+
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/DefineAgentInput" } } }
|
|
4799
|
+
},
|
|
4800
|
+
"responses": {
|
|
4801
|
+
"201": {
|
|
4802
|
+
"description": "Agent defined",
|
|
4803
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": {
|
|
4804
|
+
"type": "object",
|
|
4805
|
+
"properties": {
|
|
4806
|
+
"id": {
|
|
4807
|
+
"type": "string",
|
|
4808
|
+
"format": "uuid"
|
|
4809
|
+
},
|
|
4810
|
+
"address": { "type": "string" }
|
|
4811
|
+
},
|
|
4812
|
+
"required": ["id", "address"]
|
|
4813
|
+
} } }] } } }
|
|
4814
|
+
},
|
|
4815
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
4816
|
+
"409": { "$ref": "#/components/responses/Conflict" },
|
|
4817
|
+
"422": { "$ref": "#/components/responses/ValidationError" }
|
|
4818
|
+
}
|
|
4819
|
+
} },
|
|
4820
|
+
"/agents/{address}": {
|
|
4821
|
+
"parameters": [{
|
|
4822
|
+
"name": "address",
|
|
4823
|
+
"in": "path",
|
|
4824
|
+
"required": true,
|
|
4825
|
+
"schema": { "type": "string" },
|
|
4826
|
+
"description": "The agent's email address (URL-encoded)."
|
|
4827
|
+
}],
|
|
4828
|
+
"get": {
|
|
4829
|
+
"operationId": "getAgent",
|
|
4830
|
+
"summary": "Get an agent's public profile by address",
|
|
4831
|
+
"tags": ["Registries"],
|
|
4832
|
+
"security": [],
|
|
4833
|
+
"responses": {
|
|
4834
|
+
"200": {
|
|
4835
|
+
"description": "The agent's public profile",
|
|
4836
|
+
"content": { "application/json": { "schema": { "allOf": [{ "$ref": "#/components/schemas/SuccessEnvelope" }, { "properties": { "data": { "$ref": "#/components/schemas/RegistryAgent" } } }] } } }
|
|
4837
|
+
},
|
|
4838
|
+
"404": { "$ref": "#/components/responses/NotFound" }
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
},
|
|
4843
|
+
"components": {
|
|
4844
|
+
"securitySchemes": {
|
|
4845
|
+
"BearerAuth": {
|
|
4846
|
+
"type": "http",
|
|
4847
|
+
"scheme": "bearer",
|
|
4848
|
+
"description": "API key with `prim_` prefix: `Authorization: Bearer prim_<key>`"
|
|
4849
|
+
},
|
|
4850
|
+
"DownloadToken": {
|
|
4851
|
+
"type": "apiKey",
|
|
4852
|
+
"in": "query",
|
|
4853
|
+
"name": "token",
|
|
4854
|
+
"description": "Signed download token provided in webhook payloads"
|
|
4855
|
+
}
|
|
4856
|
+
},
|
|
4857
|
+
"parameters": {
|
|
4858
|
+
"ResourceId": {
|
|
4859
|
+
"name": "id",
|
|
4860
|
+
"in": "path",
|
|
4861
|
+
"required": true,
|
|
4862
|
+
"schema": {
|
|
4863
|
+
"type": "string",
|
|
4864
|
+
"format": "uuid"
|
|
4865
|
+
},
|
|
4866
|
+
"description": "Resource UUID"
|
|
4867
|
+
},
|
|
4868
|
+
"IdempotencyKey": {
|
|
4869
|
+
"name": "idempotency-key",
|
|
4870
|
+
"in": "header",
|
|
4871
|
+
"required": false,
|
|
4872
|
+
"schema": {
|
|
4873
|
+
"type": "string",
|
|
4874
|
+
"maxLength": 255
|
|
4875
|
+
},
|
|
4876
|
+
"description": "Optional idempotency key. Retrying a request with the same key returns\nthe original result instead of repeating the side effect (for\n`createEmailChallenge`, re-sending the email).\n"
|
|
4877
|
+
},
|
|
4878
|
+
"Cursor": {
|
|
4879
|
+
"name": "cursor",
|
|
4880
|
+
"in": "query",
|
|
4881
|
+
"schema": { "type": "string" },
|
|
4882
|
+
"description": "Pagination cursor from a previous response's `meta.cursor` field.\nFormat: `{ISO-datetime}|{id}`\n"
|
|
4883
|
+
},
|
|
4884
|
+
"Limit": {
|
|
4885
|
+
"name": "limit",
|
|
4886
|
+
"in": "query",
|
|
4887
|
+
"schema": {
|
|
4888
|
+
"type": "integer",
|
|
4889
|
+
"minimum": 1,
|
|
4890
|
+
"maximum": 100,
|
|
4891
|
+
"default": 50
|
|
4892
|
+
},
|
|
4893
|
+
"description": "Number of results per page"
|
|
4894
|
+
}
|
|
4895
|
+
},
|
|
4896
|
+
"responses": {
|
|
4897
|
+
"Unauthorized": {
|
|
4898
|
+
"description": "Invalid or missing API key",
|
|
4899
|
+
"content": { "application/json": {
|
|
4900
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
4901
|
+
"example": {
|
|
4902
|
+
"success": false,
|
|
4903
|
+
"error": {
|
|
4904
|
+
"code": "unauthorized",
|
|
4905
|
+
"message": "Invalid or missing API key"
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
} }
|
|
4909
|
+
},
|
|
4910
|
+
"Forbidden": {
|
|
4911
|
+
"description": "Authenticated caller lacks permission for the operation",
|
|
4912
|
+
"content": { "application/json": {
|
|
4913
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
4914
|
+
"example": {
|
|
4915
|
+
"success": false,
|
|
4916
|
+
"error": {
|
|
4917
|
+
"code": "forbidden",
|
|
4918
|
+
"message": "Insufficient permissions"
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
} }
|
|
4922
|
+
},
|
|
4923
|
+
"NotFound": {
|
|
4924
|
+
"description": "Resource not found",
|
|
4925
|
+
"content": { "application/json": {
|
|
4926
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
4927
|
+
"example": {
|
|
4928
|
+
"success": false,
|
|
4929
|
+
"error": {
|
|
4930
|
+
"code": "not_found",
|
|
4931
|
+
"message": "Resource not found"
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
} }
|
|
4935
|
+
},
|
|
4936
|
+
"ValidationError": {
|
|
4937
|
+
"description": "Invalid request parameters",
|
|
4938
|
+
"content": { "application/json": {
|
|
4939
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
4940
|
+
"example": {
|
|
4941
|
+
"success": false,
|
|
4481
4942
|
"error": {
|
|
4482
4943
|
"code": "validation_error",
|
|
4483
4944
|
"message": "Invalid domain format"
|
|
@@ -4596,51 +5057,249 @@ const openapiDocument = {
|
|
|
4596
5057
|
}
|
|
4597
5058
|
},
|
|
4598
5059
|
"schemas": {
|
|
4599
|
-
"
|
|
5060
|
+
"PublishPolicy": {
|
|
5061
|
+
"type": "string",
|
|
5062
|
+
"enum": [
|
|
5063
|
+
"owner_only",
|
|
5064
|
+
"request",
|
|
5065
|
+
"open"
|
|
5066
|
+
],
|
|
5067
|
+
"description": "Who may publish into a registry. owner_only: only the registry owner.\nrequest: anyone may request and the owner approves. open: anyone may\npublish and it lists immediately (no approval step).\n"
|
|
5068
|
+
},
|
|
5069
|
+
"Registry": {
|
|
4600
5070
|
"type": "object",
|
|
4601
|
-
"additionalProperties": false,
|
|
4602
5071
|
"properties": {
|
|
4603
|
-
"
|
|
4604
|
-
"type": "string",
|
|
4605
|
-
"pattern": "^0x[0-9a-fA-F]{40}$",
|
|
4606
|
-
"description": "The payout address (your signer's own EVM address), 0x-prefixed."
|
|
4607
|
-
},
|
|
4608
|
-
"network": {
|
|
4609
|
-
"type": "string",
|
|
4610
|
-
"enum": ["base", "base-sepolia"],
|
|
4611
|
-
"description": "The chain the address receives on."
|
|
4612
|
-
},
|
|
4613
|
-
"signature": {
|
|
4614
|
-
"type": "string",
|
|
4615
|
-
"pattern": "^0x[0-9a-fA-F]+$",
|
|
4616
|
-
"description": "A `personal_sign` signature over the org-bound message produced by\nthe SDK helper `buildPayoutRegistrationMessage`. Recovered and\nchecked against `address`; the org id is bound into the signed bytes.\n"
|
|
4617
|
-
},
|
|
4618
|
-
"issued_at": {
|
|
5072
|
+
"id": {
|
|
4619
5073
|
"type": "string",
|
|
4620
|
-
"format": "
|
|
4621
|
-
"description": "ISO-8601 timestamp embedded in the signed message. Must be within a\nshort freshness window (about 10 minutes) of server time.\n"
|
|
5074
|
+
"format": "uuid"
|
|
4622
5075
|
},
|
|
4623
|
-
"
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
}
|
|
5076
|
+
"slug": { "type": "string" },
|
|
5077
|
+
"name": { "type": "string" },
|
|
5078
|
+
"description": { "type": ["string", "null"] },
|
|
5079
|
+
"is_public": { "type": "boolean" },
|
|
5080
|
+
"publish_policy": { "$ref": "#/components/schemas/PublishPolicy" }
|
|
4628
5081
|
},
|
|
4629
5082
|
"required": [
|
|
4630
|
-
"
|
|
4631
|
-
"
|
|
4632
|
-
"
|
|
4633
|
-
"
|
|
5083
|
+
"id",
|
|
5084
|
+
"slug",
|
|
5085
|
+
"name",
|
|
5086
|
+
"description",
|
|
5087
|
+
"is_public",
|
|
5088
|
+
"publish_policy"
|
|
4634
5089
|
]
|
|
4635
5090
|
},
|
|
4636
|
-
"
|
|
5091
|
+
"RegistryAgent": {
|
|
4637
5092
|
"type": "object",
|
|
5093
|
+
"description": "An agent's public directory profile.",
|
|
4638
5094
|
"properties": {
|
|
4639
|
-
"
|
|
4640
|
-
|
|
4641
|
-
|
|
5095
|
+
"address": { "type": "string" },
|
|
5096
|
+
"display_name": { "type": "string" },
|
|
5097
|
+
"title": { "type": ["string", "null"] },
|
|
5098
|
+
"description": { "type": ["string", "null"] },
|
|
5099
|
+
"tags": {
|
|
5100
|
+
"type": "array",
|
|
5101
|
+
"items": { "type": "string" }
|
|
4642
5102
|
},
|
|
4643
|
-
"
|
|
5103
|
+
"handle": {
|
|
5104
|
+
"type": ["string", "null"],
|
|
5105
|
+
"description": "The registry-scoped name. Null on the global by-address read."
|
|
5106
|
+
}
|
|
5107
|
+
},
|
|
5108
|
+
"required": [
|
|
5109
|
+
"address",
|
|
5110
|
+
"display_name",
|
|
5111
|
+
"title",
|
|
5112
|
+
"description",
|
|
5113
|
+
"tags",
|
|
5114
|
+
"handle"
|
|
5115
|
+
]
|
|
5116
|
+
},
|
|
5117
|
+
"RegistryRequest": {
|
|
5118
|
+
"type": "object",
|
|
5119
|
+
"description": "A pending publication request, as the registry owner sees it.",
|
|
5120
|
+
"properties": {
|
|
5121
|
+
"id": {
|
|
5122
|
+
"type": "string",
|
|
5123
|
+
"format": "uuid"
|
|
5124
|
+
},
|
|
5125
|
+
"address": { "type": "string" },
|
|
5126
|
+
"display_name": { "type": "string" },
|
|
5127
|
+
"handle": { "type": ["string", "null"] },
|
|
5128
|
+
"requested_at": {
|
|
5129
|
+
"type": "string",
|
|
5130
|
+
"format": "date-time"
|
|
5131
|
+
}
|
|
5132
|
+
},
|
|
5133
|
+
"required": [
|
|
5134
|
+
"id",
|
|
5135
|
+
"address",
|
|
5136
|
+
"display_name",
|
|
5137
|
+
"handle",
|
|
5138
|
+
"requested_at"
|
|
5139
|
+
]
|
|
5140
|
+
},
|
|
5141
|
+
"CreateRegistryInput": {
|
|
5142
|
+
"type": "object",
|
|
5143
|
+
"properties": {
|
|
5144
|
+
"slug": {
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
5147
|
+
"description": "Lowercase slug, unique across registries."
|
|
5148
|
+
},
|
|
5149
|
+
"name": {
|
|
5150
|
+
"type": "string",
|
|
5151
|
+
"minLength": 1,
|
|
5152
|
+
"maxLength": 120
|
|
5153
|
+
},
|
|
5154
|
+
"description": {
|
|
5155
|
+
"type": ["string", "null"],
|
|
5156
|
+
"maxLength": 2e3
|
|
5157
|
+
},
|
|
5158
|
+
"is_public": { "type": "boolean" },
|
|
5159
|
+
"publish_policy": { "$ref": "#/components/schemas/PublishPolicy" }
|
|
5160
|
+
},
|
|
5161
|
+
"required": ["slug", "name"]
|
|
5162
|
+
},
|
|
5163
|
+
"UpdateRegistryInput": {
|
|
5164
|
+
"type": "object",
|
|
5165
|
+
"minProperties": 1,
|
|
5166
|
+
"properties": {
|
|
5167
|
+
"name": {
|
|
5168
|
+
"type": "string",
|
|
5169
|
+
"minLength": 1,
|
|
5170
|
+
"maxLength": 120
|
|
5171
|
+
},
|
|
5172
|
+
"description": {
|
|
5173
|
+
"type": ["string", "null"],
|
|
5174
|
+
"maxLength": 2e3
|
|
5175
|
+
},
|
|
5176
|
+
"is_public": { "type": "boolean" },
|
|
5177
|
+
"publish_policy": { "$ref": "#/components/schemas/PublishPolicy" }
|
|
5178
|
+
}
|
|
5179
|
+
},
|
|
5180
|
+
"DefineAgentInput": {
|
|
5181
|
+
"type": "object",
|
|
5182
|
+
"properties": {
|
|
5183
|
+
"address": {
|
|
5184
|
+
"type": "string",
|
|
5185
|
+
"description": "The agent's globally unique email address; must route to the endpoint."
|
|
5186
|
+
},
|
|
5187
|
+
"endpoint_id": {
|
|
5188
|
+
"type": "string",
|
|
5189
|
+
"format": "uuid"
|
|
5190
|
+
},
|
|
5191
|
+
"display_name": {
|
|
5192
|
+
"type": "string",
|
|
5193
|
+
"minLength": 1,
|
|
5194
|
+
"maxLength": 120
|
|
5195
|
+
},
|
|
5196
|
+
"title": {
|
|
5197
|
+
"type": ["string", "null"],
|
|
5198
|
+
"maxLength": 120
|
|
5199
|
+
},
|
|
5200
|
+
"description": {
|
|
5201
|
+
"type": ["string", "null"],
|
|
5202
|
+
"maxLength": 2e3
|
|
5203
|
+
},
|
|
5204
|
+
"tags": {
|
|
5205
|
+
"type": "array",
|
|
5206
|
+
"items": {
|
|
5207
|
+
"type": "string",
|
|
5208
|
+
"maxLength": 40
|
|
5209
|
+
},
|
|
5210
|
+
"maxItems": 20
|
|
5211
|
+
}
|
|
5212
|
+
},
|
|
5213
|
+
"required": [
|
|
5214
|
+
"address",
|
|
5215
|
+
"endpoint_id",
|
|
5216
|
+
"display_name"
|
|
5217
|
+
]
|
|
5218
|
+
},
|
|
5219
|
+
"PublishAgentInput": {
|
|
5220
|
+
"type": "object",
|
|
5221
|
+
"properties": {
|
|
5222
|
+
"address": { "type": "string" },
|
|
5223
|
+
"handle": {
|
|
5224
|
+
"type": "string",
|
|
5225
|
+
"description": "The registry-scoped name to list the agent under."
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
"required": ["address", "handle"]
|
|
5229
|
+
},
|
|
5230
|
+
"PublishAgentResult": {
|
|
5231
|
+
"type": "object",
|
|
5232
|
+
"properties": {
|
|
5233
|
+
"status": {
|
|
5234
|
+
"type": "string",
|
|
5235
|
+
"enum": ["approved", "requested"],
|
|
5236
|
+
"description": "approved lists immediately; requested pends owner approval."
|
|
5237
|
+
},
|
|
5238
|
+
"handle": { "type": "string" },
|
|
5239
|
+
"idempotent_replay": {
|
|
5240
|
+
"type": "boolean",
|
|
5241
|
+
"description": "True when the publish matched an existing identical publication."
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5244
|
+
"required": [
|
|
5245
|
+
"status",
|
|
5246
|
+
"handle",
|
|
5247
|
+
"idempotent_replay"
|
|
5248
|
+
]
|
|
5249
|
+
},
|
|
5250
|
+
"DecideRegistryRequestInput": {
|
|
5251
|
+
"type": "object",
|
|
5252
|
+
"properties": { "decision": {
|
|
5253
|
+
"type": "string",
|
|
5254
|
+
"enum": ["approved", "rejected"]
|
|
5255
|
+
} },
|
|
5256
|
+
"required": ["decision"]
|
|
5257
|
+
},
|
|
5258
|
+
"RegisterPayoutAddressInput": {
|
|
5259
|
+
"type": "object",
|
|
5260
|
+
"additionalProperties": false,
|
|
5261
|
+
"properties": {
|
|
5262
|
+
"address": {
|
|
5263
|
+
"type": "string",
|
|
5264
|
+
"pattern": "^0x[0-9a-fA-F]{40}$",
|
|
5265
|
+
"description": "The payout address (your signer's own EVM address), 0x-prefixed."
|
|
5266
|
+
},
|
|
5267
|
+
"network": {
|
|
5268
|
+
"type": "string",
|
|
5269
|
+
"enum": ["base", "base-sepolia"],
|
|
5270
|
+
"description": "The chain the address receives on."
|
|
5271
|
+
},
|
|
5272
|
+
"signature": {
|
|
5273
|
+
"type": "string",
|
|
5274
|
+
"pattern": "^0x[0-9a-fA-F]+$",
|
|
5275
|
+
"description": "A `personal_sign` signature over the org-bound message produced by\nthe SDK helper `buildPayoutRegistrationMessage`. Recovered and\nchecked against `address`; the org id is bound into the signed bytes.\n"
|
|
5276
|
+
},
|
|
5277
|
+
"issued_at": {
|
|
5278
|
+
"type": "string",
|
|
5279
|
+
"format": "date-time",
|
|
5280
|
+
"description": "ISO-8601 timestamp embedded in the signed message. Must be within a\nshort freshness window (about 10 minutes) of server time.\n"
|
|
5281
|
+
},
|
|
5282
|
+
"label": {
|
|
5283
|
+
"type": "string",
|
|
5284
|
+
"maxLength": 80,
|
|
5285
|
+
"description": "Optional human-readable label."
|
|
5286
|
+
}
|
|
5287
|
+
},
|
|
5288
|
+
"required": [
|
|
5289
|
+
"address",
|
|
5290
|
+
"network",
|
|
5291
|
+
"signature",
|
|
5292
|
+
"issued_at"
|
|
5293
|
+
]
|
|
5294
|
+
},
|
|
5295
|
+
"X402PayoutAddress": {
|
|
5296
|
+
"type": "object",
|
|
5297
|
+
"properties": {
|
|
5298
|
+
"id": {
|
|
5299
|
+
"type": "string",
|
|
5300
|
+
"format": "uuid"
|
|
5301
|
+
},
|
|
5302
|
+
"address": {
|
|
4644
5303
|
"type": "string",
|
|
4645
5304
|
"description": "The checksummed payout address."
|
|
4646
5305
|
},
|
|
@@ -4872,7 +5531,7 @@ const openapiDocument = {
|
|
|
4872
5531
|
"amount": {
|
|
4873
5532
|
"type": "string",
|
|
4874
5533
|
"pattern": "^[1-9][0-9]{0,38}$",
|
|
4875
|
-
"description": "Amount to collect, in token base units. USDC has 6 decimals, so
|
|
5534
|
+
"description": "Amount to collect, in token base units (unlike the `charge` CLI\ncommand, which also accepts `--amount-usdc`, this field takes base\nunits only). USDC has 6 decimals, so `\"10000\"` is 0.01 USDC:\nmultiply a human USDC amount by 1,000,000 (0.01 USDC -> `\"10000\"`).\n"
|
|
4876
5535
|
},
|
|
4877
5536
|
"network": {
|
|
4878
5537
|
"type": "string",
|
|
@@ -4882,7 +5541,7 @@ const openapiDocument = {
|
|
|
4882
5541
|
"type": "integer",
|
|
4883
5542
|
"minimum": 60,
|
|
4884
5543
|
"maximum": 86400,
|
|
4885
|
-
"description": "Seconds until the challenge expires. Defaults to
|
|
5544
|
+
"description": "Seconds until the challenge expires. Defaults to 300."
|
|
4886
5545
|
},
|
|
4887
5546
|
"resource": {
|
|
4888
5547
|
"type": "string",
|
|
@@ -14819,7 +15478,7 @@ const operationManifest = [
|
|
|
14819
15478
|
"amount": {
|
|
14820
15479
|
"type": "string",
|
|
14821
15480
|
"pattern": "^[1-9][0-9]{0,38}$",
|
|
14822
|
-
"description": "Amount to collect, in token base units. USDC has 6 decimals, so
|
|
15481
|
+
"description": "Amount to collect, in token base units (unlike the `charge` CLI\ncommand, which also accepts `--amount-usdc`, this field takes base\nunits only). USDC has 6 decimals, so `\"10000\"` is 0.01 USDC:\nmultiply a human USDC amount by 1,000,000 (0.01 USDC -> `\"10000\"`).\n"
|
|
14823
15482
|
},
|
|
14824
15483
|
"network": {
|
|
14825
15484
|
"type": "string",
|
|
@@ -14829,7 +15488,7 @@ const operationManifest = [
|
|
|
14829
15488
|
"type": "integer",
|
|
14830
15489
|
"minimum": 60,
|
|
14831
15490
|
"maximum": 86400,
|
|
14832
|
-
"description": "Seconds until the challenge expires. Defaults to
|
|
15491
|
+
"description": "Seconds until the challenge expires. Defaults to 300."
|
|
14833
15492
|
},
|
|
14834
15493
|
"resource": {
|
|
14835
15494
|
"type": "string",
|
|
@@ -15566,6 +16225,642 @@ const operationManifest = [
|
|
|
15566
16225
|
"tag": "Payments",
|
|
15567
16226
|
"tagCommand": "payments"
|
|
15568
16227
|
},
|
|
16228
|
+
{
|
|
16229
|
+
"binaryResponse": false,
|
|
16230
|
+
"bodyRequired": true,
|
|
16231
|
+
"command": "create-registry",
|
|
16232
|
+
"description": null,
|
|
16233
|
+
"hasJsonBody": true,
|
|
16234
|
+
"method": "POST",
|
|
16235
|
+
"operationId": "createRegistry",
|
|
16236
|
+
"path": "/registries",
|
|
16237
|
+
"pathParams": [],
|
|
16238
|
+
"queryParams": [],
|
|
16239
|
+
"requestSchema": {
|
|
16240
|
+
"type": "object",
|
|
16241
|
+
"properties": {
|
|
16242
|
+
"slug": {
|
|
16243
|
+
"type": "string",
|
|
16244
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
16245
|
+
"description": "Lowercase slug, unique across registries."
|
|
16246
|
+
},
|
|
16247
|
+
"name": {
|
|
16248
|
+
"type": "string",
|
|
16249
|
+
"minLength": 1,
|
|
16250
|
+
"maxLength": 120
|
|
16251
|
+
},
|
|
16252
|
+
"description": {
|
|
16253
|
+
"type": ["string", "null"],
|
|
16254
|
+
"maxLength": 2e3
|
|
16255
|
+
},
|
|
16256
|
+
"is_public": { "type": "boolean" },
|
|
16257
|
+
"publish_policy": {
|
|
16258
|
+
"type": "string",
|
|
16259
|
+
"enum": [
|
|
16260
|
+
"owner_only",
|
|
16261
|
+
"request",
|
|
16262
|
+
"open"
|
|
16263
|
+
],
|
|
16264
|
+
"description": "Who may publish into a registry. owner_only: only the registry owner.\nrequest: anyone may request and the owner approves. open: anyone may\npublish and it lists immediately (no approval step).\n"
|
|
16265
|
+
}
|
|
16266
|
+
},
|
|
16267
|
+
"required": ["slug", "name"]
|
|
16268
|
+
},
|
|
16269
|
+
"responseSchema": {
|
|
16270
|
+
"type": "object",
|
|
16271
|
+
"properties": {
|
|
16272
|
+
"id": {
|
|
16273
|
+
"type": "string",
|
|
16274
|
+
"format": "uuid"
|
|
16275
|
+
},
|
|
16276
|
+
"slug": { "type": "string" }
|
|
16277
|
+
},
|
|
16278
|
+
"required": ["id", "slug"]
|
|
16279
|
+
},
|
|
16280
|
+
"sdkName": "createRegistry",
|
|
16281
|
+
"summary": "Create a registry",
|
|
16282
|
+
"tag": "Registries",
|
|
16283
|
+
"tagCommand": "registries"
|
|
16284
|
+
},
|
|
16285
|
+
{
|
|
16286
|
+
"binaryResponse": false,
|
|
16287
|
+
"bodyRequired": true,
|
|
16288
|
+
"command": "decide-registry-request",
|
|
16289
|
+
"description": null,
|
|
16290
|
+
"hasJsonBody": true,
|
|
16291
|
+
"method": "POST",
|
|
16292
|
+
"operationId": "decideRegistryRequest",
|
|
16293
|
+
"path": "/registries/{slug}/requests/{id}",
|
|
16294
|
+
"pathParams": [{
|
|
16295
|
+
"description": null,
|
|
16296
|
+
"enum": null,
|
|
16297
|
+
"name": "slug",
|
|
16298
|
+
"required": true,
|
|
16299
|
+
"type": "string"
|
|
16300
|
+
}, {
|
|
16301
|
+
"description": "Resource UUID",
|
|
16302
|
+
"enum": null,
|
|
16303
|
+
"name": "id",
|
|
16304
|
+
"required": true,
|
|
16305
|
+
"type": "string"
|
|
16306
|
+
}],
|
|
16307
|
+
"queryParams": [],
|
|
16308
|
+
"requestSchema": {
|
|
16309
|
+
"type": "object",
|
|
16310
|
+
"properties": { "decision": {
|
|
16311
|
+
"type": "string",
|
|
16312
|
+
"enum": ["approved", "rejected"]
|
|
16313
|
+
} },
|
|
16314
|
+
"required": ["decision"]
|
|
16315
|
+
},
|
|
16316
|
+
"responseSchema": {
|
|
16317
|
+
"type": "object",
|
|
16318
|
+
"properties": { "status": {
|
|
16319
|
+
"type": "string",
|
|
16320
|
+
"enum": ["approved", "rejected"]
|
|
16321
|
+
} },
|
|
16322
|
+
"required": ["status"]
|
|
16323
|
+
},
|
|
16324
|
+
"sdkName": "decideRegistryRequest",
|
|
16325
|
+
"summary": "Approve or reject a publication request",
|
|
16326
|
+
"tag": "Registries",
|
|
16327
|
+
"tagCommand": "registries"
|
|
16328
|
+
},
|
|
16329
|
+
{
|
|
16330
|
+
"binaryResponse": false,
|
|
16331
|
+
"bodyRequired": true,
|
|
16332
|
+
"command": "define-agent",
|
|
16333
|
+
"description": null,
|
|
16334
|
+
"hasJsonBody": true,
|
|
16335
|
+
"method": "POST",
|
|
16336
|
+
"operationId": "defineAgent",
|
|
16337
|
+
"path": "/agents",
|
|
16338
|
+
"pathParams": [],
|
|
16339
|
+
"queryParams": [],
|
|
16340
|
+
"requestSchema": {
|
|
16341
|
+
"type": "object",
|
|
16342
|
+
"properties": {
|
|
16343
|
+
"address": {
|
|
16344
|
+
"type": "string",
|
|
16345
|
+
"description": "The agent's globally unique email address; must route to the endpoint."
|
|
16346
|
+
},
|
|
16347
|
+
"endpoint_id": {
|
|
16348
|
+
"type": "string",
|
|
16349
|
+
"format": "uuid"
|
|
16350
|
+
},
|
|
16351
|
+
"display_name": {
|
|
16352
|
+
"type": "string",
|
|
16353
|
+
"minLength": 1,
|
|
16354
|
+
"maxLength": 120
|
|
16355
|
+
},
|
|
16356
|
+
"title": {
|
|
16357
|
+
"type": ["string", "null"],
|
|
16358
|
+
"maxLength": 120
|
|
16359
|
+
},
|
|
16360
|
+
"description": {
|
|
16361
|
+
"type": ["string", "null"],
|
|
16362
|
+
"maxLength": 2e3
|
|
16363
|
+
},
|
|
16364
|
+
"tags": {
|
|
16365
|
+
"type": "array",
|
|
16366
|
+
"items": {
|
|
16367
|
+
"type": "string",
|
|
16368
|
+
"maxLength": 40
|
|
16369
|
+
},
|
|
16370
|
+
"maxItems": 20
|
|
16371
|
+
}
|
|
16372
|
+
},
|
|
16373
|
+
"required": [
|
|
16374
|
+
"address",
|
|
16375
|
+
"endpoint_id",
|
|
16376
|
+
"display_name"
|
|
16377
|
+
]
|
|
16378
|
+
},
|
|
16379
|
+
"responseSchema": {
|
|
16380
|
+
"type": "object",
|
|
16381
|
+
"properties": {
|
|
16382
|
+
"id": {
|
|
16383
|
+
"type": "string",
|
|
16384
|
+
"format": "uuid"
|
|
16385
|
+
},
|
|
16386
|
+
"address": { "type": "string" }
|
|
16387
|
+
},
|
|
16388
|
+
"required": ["id", "address"]
|
|
16389
|
+
},
|
|
16390
|
+
"sdkName": "defineAgent",
|
|
16391
|
+
"summary": "Define an agent identity",
|
|
16392
|
+
"tag": "Registries",
|
|
16393
|
+
"tagCommand": "registries"
|
|
16394
|
+
},
|
|
16395
|
+
{
|
|
16396
|
+
"binaryResponse": false,
|
|
16397
|
+
"bodyRequired": false,
|
|
16398
|
+
"command": "get-agent",
|
|
16399
|
+
"description": null,
|
|
16400
|
+
"hasJsonBody": false,
|
|
16401
|
+
"method": "GET",
|
|
16402
|
+
"operationId": "getAgent",
|
|
16403
|
+
"path": "/agents/{address}",
|
|
16404
|
+
"pathParams": [{
|
|
16405
|
+
"description": "The agent's email address (URL-encoded).",
|
|
16406
|
+
"enum": null,
|
|
16407
|
+
"name": "address",
|
|
16408
|
+
"required": true,
|
|
16409
|
+
"type": "string"
|
|
16410
|
+
}],
|
|
16411
|
+
"queryParams": [],
|
|
16412
|
+
"requestSchema": null,
|
|
16413
|
+
"responseSchema": {
|
|
16414
|
+
"type": "object",
|
|
16415
|
+
"description": "An agent's public directory profile.",
|
|
16416
|
+
"properties": {
|
|
16417
|
+
"address": { "type": "string" },
|
|
16418
|
+
"display_name": { "type": "string" },
|
|
16419
|
+
"title": { "type": ["string", "null"] },
|
|
16420
|
+
"description": { "type": ["string", "null"] },
|
|
16421
|
+
"tags": {
|
|
16422
|
+
"type": "array",
|
|
16423
|
+
"items": { "type": "string" }
|
|
16424
|
+
},
|
|
16425
|
+
"handle": {
|
|
16426
|
+
"type": ["string", "null"],
|
|
16427
|
+
"description": "The registry-scoped name. Null on the global by-address read."
|
|
16428
|
+
}
|
|
16429
|
+
},
|
|
16430
|
+
"required": [
|
|
16431
|
+
"address",
|
|
16432
|
+
"display_name",
|
|
16433
|
+
"title",
|
|
16434
|
+
"description",
|
|
16435
|
+
"tags",
|
|
16436
|
+
"handle"
|
|
16437
|
+
]
|
|
16438
|
+
},
|
|
16439
|
+
"sdkName": "getAgent",
|
|
16440
|
+
"summary": "Get an agent's public profile by address",
|
|
16441
|
+
"tag": "Registries",
|
|
16442
|
+
"tagCommand": "registries"
|
|
16443
|
+
},
|
|
16444
|
+
{
|
|
16445
|
+
"binaryResponse": false,
|
|
16446
|
+
"bodyRequired": false,
|
|
16447
|
+
"command": "get-registry",
|
|
16448
|
+
"description": null,
|
|
16449
|
+
"hasJsonBody": false,
|
|
16450
|
+
"method": "GET",
|
|
16451
|
+
"operationId": "getRegistry",
|
|
16452
|
+
"path": "/registries/{slug}",
|
|
16453
|
+
"pathParams": [{
|
|
16454
|
+
"description": "The registry slug",
|
|
16455
|
+
"enum": null,
|
|
16456
|
+
"name": "slug",
|
|
16457
|
+
"required": true,
|
|
16458
|
+
"type": "string"
|
|
16459
|
+
}],
|
|
16460
|
+
"queryParams": [],
|
|
16461
|
+
"requestSchema": null,
|
|
16462
|
+
"responseSchema": {
|
|
16463
|
+
"type": "object",
|
|
16464
|
+
"properties": {
|
|
16465
|
+
"id": {
|
|
16466
|
+
"type": "string",
|
|
16467
|
+
"format": "uuid"
|
|
16468
|
+
},
|
|
16469
|
+
"slug": { "type": "string" },
|
|
16470
|
+
"name": { "type": "string" },
|
|
16471
|
+
"description": { "type": ["string", "null"] },
|
|
16472
|
+
"is_public": { "type": "boolean" },
|
|
16473
|
+
"publish_policy": {
|
|
16474
|
+
"type": "string",
|
|
16475
|
+
"enum": [
|
|
16476
|
+
"owner_only",
|
|
16477
|
+
"request",
|
|
16478
|
+
"open"
|
|
16479
|
+
],
|
|
16480
|
+
"description": "Who may publish into a registry. owner_only: only the registry owner.\nrequest: anyone may request and the owner approves. open: anyone may\npublish and it lists immediately (no approval step).\n"
|
|
16481
|
+
}
|
|
16482
|
+
},
|
|
16483
|
+
"required": [
|
|
16484
|
+
"id",
|
|
16485
|
+
"slug",
|
|
16486
|
+
"name",
|
|
16487
|
+
"description",
|
|
16488
|
+
"is_public",
|
|
16489
|
+
"publish_policy"
|
|
16490
|
+
]
|
|
16491
|
+
},
|
|
16492
|
+
"sdkName": "getRegistry",
|
|
16493
|
+
"summary": "Get a public registry's metadata",
|
|
16494
|
+
"tag": "Registries",
|
|
16495
|
+
"tagCommand": "registries"
|
|
16496
|
+
},
|
|
16497
|
+
{
|
|
16498
|
+
"binaryResponse": false,
|
|
16499
|
+
"bodyRequired": false,
|
|
16500
|
+
"command": "list-registries",
|
|
16501
|
+
"description": null,
|
|
16502
|
+
"hasJsonBody": false,
|
|
16503
|
+
"method": "GET",
|
|
16504
|
+
"operationId": "listRegistries",
|
|
16505
|
+
"path": "/registries",
|
|
16506
|
+
"pathParams": [],
|
|
16507
|
+
"queryParams": [],
|
|
16508
|
+
"requestSchema": null,
|
|
16509
|
+
"responseSchema": {
|
|
16510
|
+
"type": "array",
|
|
16511
|
+
"items": {
|
|
16512
|
+
"type": "object",
|
|
16513
|
+
"properties": {
|
|
16514
|
+
"id": {
|
|
16515
|
+
"type": "string",
|
|
16516
|
+
"format": "uuid"
|
|
16517
|
+
},
|
|
16518
|
+
"slug": { "type": "string" },
|
|
16519
|
+
"name": { "type": "string" },
|
|
16520
|
+
"description": { "type": ["string", "null"] },
|
|
16521
|
+
"is_public": { "type": "boolean" },
|
|
16522
|
+
"publish_policy": {
|
|
16523
|
+
"type": "string",
|
|
16524
|
+
"enum": [
|
|
16525
|
+
"owner_only",
|
|
16526
|
+
"request",
|
|
16527
|
+
"open"
|
|
16528
|
+
],
|
|
16529
|
+
"description": "Who may publish into a registry. owner_only: only the registry owner.\nrequest: anyone may request and the owner approves. open: anyone may\npublish and it lists immediately (no approval step).\n"
|
|
16530
|
+
}
|
|
16531
|
+
},
|
|
16532
|
+
"required": [
|
|
16533
|
+
"id",
|
|
16534
|
+
"slug",
|
|
16535
|
+
"name",
|
|
16536
|
+
"description",
|
|
16537
|
+
"is_public",
|
|
16538
|
+
"publish_policy"
|
|
16539
|
+
]
|
|
16540
|
+
}
|
|
16541
|
+
},
|
|
16542
|
+
"sdkName": "listRegistries",
|
|
16543
|
+
"summary": "List the registries you own",
|
|
16544
|
+
"tag": "Registries",
|
|
16545
|
+
"tagCommand": "registries"
|
|
16546
|
+
},
|
|
16547
|
+
{
|
|
16548
|
+
"binaryResponse": false,
|
|
16549
|
+
"bodyRequired": false,
|
|
16550
|
+
"command": "list-registry-agents",
|
|
16551
|
+
"description": null,
|
|
16552
|
+
"hasJsonBody": false,
|
|
16553
|
+
"method": "GET",
|
|
16554
|
+
"operationId": "listRegistryAgents",
|
|
16555
|
+
"path": "/registries/{slug}/agents",
|
|
16556
|
+
"pathParams": [{
|
|
16557
|
+
"description": null,
|
|
16558
|
+
"enum": null,
|
|
16559
|
+
"name": "slug",
|
|
16560
|
+
"required": true,
|
|
16561
|
+
"type": "string"
|
|
16562
|
+
}],
|
|
16563
|
+
"queryParams": [{
|
|
16564
|
+
"description": null,
|
|
16565
|
+
"enum": null,
|
|
16566
|
+
"maximum": 200,
|
|
16567
|
+
"minimum": 1,
|
|
16568
|
+
"name": "limit",
|
|
16569
|
+
"required": false,
|
|
16570
|
+
"type": "integer"
|
|
16571
|
+
}, {
|
|
16572
|
+
"description": "The address of the last agent from the previous page.",
|
|
16573
|
+
"enum": null,
|
|
16574
|
+
"name": "cursor",
|
|
16575
|
+
"required": false,
|
|
16576
|
+
"type": "string"
|
|
16577
|
+
}],
|
|
16578
|
+
"requestSchema": null,
|
|
16579
|
+
"responseSchema": {
|
|
16580
|
+
"type": "array",
|
|
16581
|
+
"items": {
|
|
16582
|
+
"type": "object",
|
|
16583
|
+
"description": "An agent's public directory profile.",
|
|
16584
|
+
"properties": {
|
|
16585
|
+
"address": { "type": "string" },
|
|
16586
|
+
"display_name": { "type": "string" },
|
|
16587
|
+
"title": { "type": ["string", "null"] },
|
|
16588
|
+
"description": { "type": ["string", "null"] },
|
|
16589
|
+
"tags": {
|
|
16590
|
+
"type": "array",
|
|
16591
|
+
"items": { "type": "string" }
|
|
16592
|
+
},
|
|
16593
|
+
"handle": {
|
|
16594
|
+
"type": ["string", "null"],
|
|
16595
|
+
"description": "The registry-scoped name. Null on the global by-address read."
|
|
16596
|
+
}
|
|
16597
|
+
},
|
|
16598
|
+
"required": [
|
|
16599
|
+
"address",
|
|
16600
|
+
"display_name",
|
|
16601
|
+
"title",
|
|
16602
|
+
"description",
|
|
16603
|
+
"tags",
|
|
16604
|
+
"handle"
|
|
16605
|
+
]
|
|
16606
|
+
}
|
|
16607
|
+
},
|
|
16608
|
+
"sdkName": "listRegistryAgents",
|
|
16609
|
+
"summary": "List agents in a registry",
|
|
16610
|
+
"tag": "Registries",
|
|
16611
|
+
"tagCommand": "registries"
|
|
16612
|
+
},
|
|
16613
|
+
{
|
|
16614
|
+
"binaryResponse": false,
|
|
16615
|
+
"bodyRequired": false,
|
|
16616
|
+
"command": "list-registry-requests",
|
|
16617
|
+
"description": null,
|
|
16618
|
+
"hasJsonBody": false,
|
|
16619
|
+
"method": "GET",
|
|
16620
|
+
"operationId": "listRegistryRequests",
|
|
16621
|
+
"path": "/registries/{slug}/requests",
|
|
16622
|
+
"pathParams": [{
|
|
16623
|
+
"description": null,
|
|
16624
|
+
"enum": null,
|
|
16625
|
+
"name": "slug",
|
|
16626
|
+
"required": true,
|
|
16627
|
+
"type": "string"
|
|
16628
|
+
}],
|
|
16629
|
+
"queryParams": [{
|
|
16630
|
+
"description": null,
|
|
16631
|
+
"enum": null,
|
|
16632
|
+
"maximum": 200,
|
|
16633
|
+
"minimum": 1,
|
|
16634
|
+
"name": "limit",
|
|
16635
|
+
"required": false,
|
|
16636
|
+
"type": "integer"
|
|
16637
|
+
}],
|
|
16638
|
+
"requestSchema": null,
|
|
16639
|
+
"responseSchema": {
|
|
16640
|
+
"type": "array",
|
|
16641
|
+
"items": {
|
|
16642
|
+
"type": "object",
|
|
16643
|
+
"description": "A pending publication request, as the registry owner sees it.",
|
|
16644
|
+
"properties": {
|
|
16645
|
+
"id": {
|
|
16646
|
+
"type": "string",
|
|
16647
|
+
"format": "uuid"
|
|
16648
|
+
},
|
|
16649
|
+
"address": { "type": "string" },
|
|
16650
|
+
"display_name": { "type": "string" },
|
|
16651
|
+
"handle": { "type": ["string", "null"] },
|
|
16652
|
+
"requested_at": {
|
|
16653
|
+
"type": "string",
|
|
16654
|
+
"format": "date-time"
|
|
16655
|
+
}
|
|
16656
|
+
},
|
|
16657
|
+
"required": [
|
|
16658
|
+
"id",
|
|
16659
|
+
"address",
|
|
16660
|
+
"display_name",
|
|
16661
|
+
"handle",
|
|
16662
|
+
"requested_at"
|
|
16663
|
+
]
|
|
16664
|
+
}
|
|
16665
|
+
},
|
|
16666
|
+
"sdkName": "listRegistryRequests",
|
|
16667
|
+
"summary": "List pending publication requests",
|
|
16668
|
+
"tag": "Registries",
|
|
16669
|
+
"tagCommand": "registries"
|
|
16670
|
+
},
|
|
16671
|
+
{
|
|
16672
|
+
"binaryResponse": false,
|
|
16673
|
+
"bodyRequired": true,
|
|
16674
|
+
"command": "publish-agent",
|
|
16675
|
+
"description": null,
|
|
16676
|
+
"hasJsonBody": true,
|
|
16677
|
+
"method": "POST",
|
|
16678
|
+
"operationId": "publishAgent",
|
|
16679
|
+
"path": "/registries/{slug}/agents",
|
|
16680
|
+
"pathParams": [{
|
|
16681
|
+
"description": null,
|
|
16682
|
+
"enum": null,
|
|
16683
|
+
"name": "slug",
|
|
16684
|
+
"required": true,
|
|
16685
|
+
"type": "string"
|
|
16686
|
+
}],
|
|
16687
|
+
"queryParams": [],
|
|
16688
|
+
"requestSchema": {
|
|
16689
|
+
"type": "object",
|
|
16690
|
+
"properties": {
|
|
16691
|
+
"address": { "type": "string" },
|
|
16692
|
+
"handle": {
|
|
16693
|
+
"type": "string",
|
|
16694
|
+
"description": "The registry-scoped name to list the agent under."
|
|
16695
|
+
}
|
|
16696
|
+
},
|
|
16697
|
+
"required": ["address", "handle"]
|
|
16698
|
+
},
|
|
16699
|
+
"responseSchema": {
|
|
16700
|
+
"type": "object",
|
|
16701
|
+
"properties": {
|
|
16702
|
+
"status": {
|
|
16703
|
+
"type": "string",
|
|
16704
|
+
"enum": ["approved", "requested"],
|
|
16705
|
+
"description": "approved lists immediately; requested pends owner approval."
|
|
16706
|
+
},
|
|
16707
|
+
"handle": { "type": "string" },
|
|
16708
|
+
"idempotent_replay": {
|
|
16709
|
+
"type": "boolean",
|
|
16710
|
+
"description": "True when the publish matched an existing identical publication."
|
|
16711
|
+
}
|
|
16712
|
+
},
|
|
16713
|
+
"required": [
|
|
16714
|
+
"status",
|
|
16715
|
+
"handle",
|
|
16716
|
+
"idempotent_replay"
|
|
16717
|
+
]
|
|
16718
|
+
},
|
|
16719
|
+
"sdkName": "publishAgent",
|
|
16720
|
+
"summary": "Publish an agent into a registry",
|
|
16721
|
+
"tag": "Registries",
|
|
16722
|
+
"tagCommand": "registries"
|
|
16723
|
+
},
|
|
16724
|
+
{
|
|
16725
|
+
"binaryResponse": false,
|
|
16726
|
+
"bodyRequired": false,
|
|
16727
|
+
"command": "resolve-registry-handle",
|
|
16728
|
+
"description": null,
|
|
16729
|
+
"hasJsonBody": false,
|
|
16730
|
+
"method": "GET",
|
|
16731
|
+
"operationId": "resolveRegistryHandle",
|
|
16732
|
+
"path": "/registries/{slug}/agents/{handle}",
|
|
16733
|
+
"pathParams": [{
|
|
16734
|
+
"description": null,
|
|
16735
|
+
"enum": null,
|
|
16736
|
+
"name": "slug",
|
|
16737
|
+
"required": true,
|
|
16738
|
+
"type": "string"
|
|
16739
|
+
}, {
|
|
16740
|
+
"description": null,
|
|
16741
|
+
"enum": null,
|
|
16742
|
+
"name": "handle",
|
|
16743
|
+
"required": true,
|
|
16744
|
+
"type": "string"
|
|
16745
|
+
}],
|
|
16746
|
+
"queryParams": [],
|
|
16747
|
+
"requestSchema": null,
|
|
16748
|
+
"responseSchema": {
|
|
16749
|
+
"type": "object",
|
|
16750
|
+
"description": "An agent's public directory profile.",
|
|
16751
|
+
"properties": {
|
|
16752
|
+
"address": { "type": "string" },
|
|
16753
|
+
"display_name": { "type": "string" },
|
|
16754
|
+
"title": { "type": ["string", "null"] },
|
|
16755
|
+
"description": { "type": ["string", "null"] },
|
|
16756
|
+
"tags": {
|
|
16757
|
+
"type": "array",
|
|
16758
|
+
"items": { "type": "string" }
|
|
16759
|
+
},
|
|
16760
|
+
"handle": {
|
|
16761
|
+
"type": ["string", "null"],
|
|
16762
|
+
"description": "The registry-scoped name. Null on the global by-address read."
|
|
16763
|
+
}
|
|
16764
|
+
},
|
|
16765
|
+
"required": [
|
|
16766
|
+
"address",
|
|
16767
|
+
"display_name",
|
|
16768
|
+
"title",
|
|
16769
|
+
"description",
|
|
16770
|
+
"tags",
|
|
16771
|
+
"handle"
|
|
16772
|
+
]
|
|
16773
|
+
},
|
|
16774
|
+
"sdkName": "resolveRegistryHandle",
|
|
16775
|
+
"summary": "Resolve a registry handle to its agent",
|
|
16776
|
+
"tag": "Registries",
|
|
16777
|
+
"tagCommand": "registries"
|
|
16778
|
+
},
|
|
16779
|
+
{
|
|
16780
|
+
"binaryResponse": false,
|
|
16781
|
+
"bodyRequired": false,
|
|
16782
|
+
"command": "unpublish-agent",
|
|
16783
|
+
"description": null,
|
|
16784
|
+
"hasJsonBody": false,
|
|
16785
|
+
"method": "DELETE",
|
|
16786
|
+
"operationId": "unpublishAgent",
|
|
16787
|
+
"path": "/registries/{slug}/agents/{handle}",
|
|
16788
|
+
"pathParams": [{
|
|
16789
|
+
"description": null,
|
|
16790
|
+
"enum": null,
|
|
16791
|
+
"name": "slug",
|
|
16792
|
+
"required": true,
|
|
16793
|
+
"type": "string"
|
|
16794
|
+
}, {
|
|
16795
|
+
"description": null,
|
|
16796
|
+
"enum": null,
|
|
16797
|
+
"name": "handle",
|
|
16798
|
+
"required": true,
|
|
16799
|
+
"type": "string"
|
|
16800
|
+
}],
|
|
16801
|
+
"queryParams": [],
|
|
16802
|
+
"requestSchema": null,
|
|
16803
|
+
"responseSchema": null,
|
|
16804
|
+
"sdkName": "unpublishAgent",
|
|
16805
|
+
"summary": "Unpublish an agent from a registry",
|
|
16806
|
+
"tag": "Registries",
|
|
16807
|
+
"tagCommand": "registries"
|
|
16808
|
+
},
|
|
16809
|
+
{
|
|
16810
|
+
"binaryResponse": false,
|
|
16811
|
+
"bodyRequired": true,
|
|
16812
|
+
"command": "update-registry",
|
|
16813
|
+
"description": null,
|
|
16814
|
+
"hasJsonBody": true,
|
|
16815
|
+
"method": "PATCH",
|
|
16816
|
+
"operationId": "updateRegistry",
|
|
16817
|
+
"path": "/registries/{slug}",
|
|
16818
|
+
"pathParams": [{
|
|
16819
|
+
"description": "The registry slug",
|
|
16820
|
+
"enum": null,
|
|
16821
|
+
"name": "slug",
|
|
16822
|
+
"required": true,
|
|
16823
|
+
"type": "string"
|
|
16824
|
+
}],
|
|
16825
|
+
"queryParams": [],
|
|
16826
|
+
"requestSchema": {
|
|
16827
|
+
"type": "object",
|
|
16828
|
+
"minProperties": 1,
|
|
16829
|
+
"properties": {
|
|
16830
|
+
"name": {
|
|
16831
|
+
"type": "string",
|
|
16832
|
+
"minLength": 1,
|
|
16833
|
+
"maxLength": 120
|
|
16834
|
+
},
|
|
16835
|
+
"description": {
|
|
16836
|
+
"type": ["string", "null"],
|
|
16837
|
+
"maxLength": 2e3
|
|
16838
|
+
},
|
|
16839
|
+
"is_public": { "type": "boolean" },
|
|
16840
|
+
"publish_policy": {
|
|
16841
|
+
"type": "string",
|
|
16842
|
+
"enum": [
|
|
16843
|
+
"owner_only",
|
|
16844
|
+
"request",
|
|
16845
|
+
"open"
|
|
16846
|
+
],
|
|
16847
|
+
"description": "Who may publish into a registry. owner_only: only the registry owner.\nrequest: anyone may request and the owner approves. open: anyone may\npublish and it lists immediately (no approval step).\n"
|
|
16848
|
+
}
|
|
16849
|
+
}
|
|
16850
|
+
},
|
|
16851
|
+
"responseSchema": {
|
|
16852
|
+
"type": "object",
|
|
16853
|
+
"properties": { "id": {
|
|
16854
|
+
"type": "string",
|
|
16855
|
+
"format": "uuid"
|
|
16856
|
+
} },
|
|
16857
|
+
"required": ["id"]
|
|
16858
|
+
},
|
|
16859
|
+
"sdkName": "updateRegistry",
|
|
16860
|
+
"summary": "Update a registry you own",
|
|
16861
|
+
"tag": "Registries",
|
|
16862
|
+
"tagCommand": "registries"
|
|
16863
|
+
},
|
|
15569
16864
|
{
|
|
15570
16865
|
"binaryResponse": false,
|
|
15571
16866
|
"bodyRequired": true,
|
|
@@ -21353,8 +22648,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
21353
22648
|
name: "Primitive Team",
|
|
21354
22649
|
url: "https://primitive.dev"
|
|
21355
22650
|
};
|
|
21356
|
-
const SDK_VERSION_RANGE = "^1.
|
|
21357
|
-
const CLI_VERSION_RANGE = "^1.
|
|
22651
|
+
const SDK_VERSION_RANGE = "^1.10.0";
|
|
22652
|
+
const CLI_VERSION_RANGE = "^1.10.0";
|
|
21358
22653
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
21359
22654
|
function renderHandler() {
|
|
21360
22655
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|