@relyon/kit 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/AGENTS.md +75 -0
  2. package/CHANGELOG.md +1053 -0
  3. package/LICENSE +21 -0
  4. package/QUICKSTART.md +239 -0
  5. package/README.md +117 -2
  6. package/dist/adapters/express.d.ts +39 -0
  7. package/dist/adapters/express.js +106 -0
  8. package/dist/adapters/hono.d.ts +16 -0
  9. package/dist/adapters/hono.js +15 -0
  10. package/dist/adapters/next.d.ts +29 -0
  11. package/dist/adapters/next.js +38 -0
  12. package/dist/agent-card.d.ts +14 -0
  13. package/dist/agent-card.js +58 -0
  14. package/dist/agent-docs.d.ts +36 -0
  15. package/dist/agent-docs.js +78 -0
  16. package/dist/agent-hooks.d.ts +66 -0
  17. package/dist/agent-hooks.js +280 -0
  18. package/dist/agents.d.ts +24 -0
  19. package/dist/agents.js +120 -0
  20. package/dist/api-key.d.ts +6 -0
  21. package/dist/api-key.js +33 -0
  22. package/dist/cache.d.ts +46 -0
  23. package/dist/cache.js +86 -0
  24. package/dist/cart-tokens.d.ts +31 -0
  25. package/dist/cart-tokens.js +58 -0
  26. package/dist/cart-transfer.d.ts +95 -0
  27. package/dist/cart-transfer.js +387 -0
  28. package/dist/catalog-enrichment.d.ts +6 -0
  29. package/dist/catalog-enrichment.js +71 -0
  30. package/dist/catalog-reads.d.ts +126 -0
  31. package/dist/catalog-reads.js +104 -0
  32. package/dist/catalog.d.ts +78 -0
  33. package/dist/catalog.js +288 -0
  34. package/dist/charge-claims.d.ts +11 -0
  35. package/dist/charge-claims.js +47 -0
  36. package/dist/check.d.ts +44 -0
  37. package/dist/check.js +152 -0
  38. package/dist/checklist-manifest.d.ts +72 -0
  39. package/dist/checklist-manifest.js +341 -0
  40. package/dist/checkout.d.ts +222 -0
  41. package/dist/checkout.js +353 -0
  42. package/dist/cli.d.ts +2 -0
  43. package/dist/cli.js +727 -0
  44. package/dist/confirmation.d.ts +78 -0
  45. package/dist/confirmation.js +124 -0
  46. package/dist/context.d.ts +81 -0
  47. package/dist/context.js +10 -0
  48. package/dist/discovery.d.ts +151 -0
  49. package/dist/discovery.js +346 -0
  50. package/dist/doctor-cart-transfer.d.ts +33 -0
  51. package/dist/doctor-cart-transfer.js +186 -0
  52. package/dist/doctor-catalog.d.ts +8 -0
  53. package/dist/doctor-catalog.js +47 -0
  54. package/dist/doctor-evidence.d.ts +22 -0
  55. package/dist/doctor-evidence.js +57 -0
  56. package/dist/doctor-merchant.d.ts +48 -0
  57. package/dist/doctor-merchant.js +74 -0
  58. package/dist/doctor-source.d.ts +5 -0
  59. package/dist/doctor-source.js +142 -0
  60. package/dist/doctor-variants.d.ts +70 -0
  61. package/dist/doctor-variants.js +102 -0
  62. package/dist/doctor.d.ts +215 -0
  63. package/dist/doctor.js +1689 -0
  64. package/dist/events.d.ts +95 -0
  65. package/dist/events.js +200 -0
  66. package/dist/feed-mapping.d.ts +114 -0
  67. package/dist/feed-mapping.js +152 -0
  68. package/dist/feed-values.d.ts +13 -0
  69. package/dist/feed-values.js +40 -0
  70. package/dist/feeds.d.ts +104 -0
  71. package/dist/feeds.js +366 -0
  72. package/dist/identify.d.ts +102 -0
  73. package/dist/identify.js +124 -0
  74. package/dist/identity.d.ts +37 -0
  75. package/dist/identity.js +54 -0
  76. package/dist/index.d.ts +42 -0
  77. package/dist/index.js +41 -0
  78. package/dist/init.d.ts +157 -0
  79. package/dist/init.js +912 -0
  80. package/dist/kit-config.d.ts +19 -0
  81. package/dist/kit-config.js +43 -0
  82. package/dist/kit-environment.d.ts +20 -0
  83. package/dist/kit-environment.js +32 -0
  84. package/dist/kit-updates.d.ts +47 -0
  85. package/dist/kit-updates.js +77 -0
  86. package/dist/kit-version-project.d.ts +18 -0
  87. package/dist/kit-version-project.js +214 -0
  88. package/dist/kit-version.d.ts +37 -0
  89. package/dist/kit-version.js +162 -0
  90. package/dist/kit.d.ts +516 -0
  91. package/dist/kit.js +1309 -0
  92. package/dist/layers/pages.d.ts +3 -0
  93. package/dist/layers/pages.js +5 -0
  94. package/dist/layers/payments.d.ts +7 -0
  95. package/dist/layers/payments.js +9 -0
  96. package/dist/layers/products.d.ts +10 -0
  97. package/dist/layers/products.js +13 -0
  98. package/dist/live.d.ts +13 -0
  99. package/dist/live.js +52 -0
  100. package/dist/mcp.d.ts +270 -0
  101. package/dist/mcp.js +312 -0
  102. package/dist/next-steps.d.ts +101 -0
  103. package/dist/next-steps.js +257 -0
  104. package/dist/order-pending.d.ts +57 -0
  105. package/dist/order-pending.js +127 -0
  106. package/dist/orders.d.ts +12 -0
  107. package/dist/orders.js +21 -0
  108. package/dist/payments-init.d.ts +19 -0
  109. package/dist/payments-init.js +70 -0
  110. package/dist/payments-routes.d.ts +54 -0
  111. package/dist/payments-routes.js +123 -0
  112. package/dist/payments.d.ts +165 -0
  113. package/dist/payments.js +192 -0
  114. package/dist/pnpm-workspace.d.ts +58 -0
  115. package/dist/pnpm-workspace.js +250 -0
  116. package/dist/policies.d.ts +111 -0
  117. package/dist/policies.js +317 -0
  118. package/dist/preview-hosts.d.ts +64 -0
  119. package/dist/preview-hosts.js +175 -0
  120. package/dist/private-config.d.ts +169 -0
  121. package/dist/private-config.js +820 -0
  122. package/dist/progress.d.ts +54 -0
  123. package/dist/progress.js +153 -0
  124. package/dist/protocol-inputs.d.ts +22 -0
  125. package/dist/protocol-inputs.js +151 -0
  126. package/dist/public-origin.d.ts +50 -0
  127. package/dist/public-origin.js +180 -0
  128. package/dist/refusals.d.ts +86 -0
  129. package/dist/refusals.js +157 -0
  130. package/dist/relay.d.ts +107 -0
  131. package/dist/relay.js +655 -0
  132. package/dist/release-notes.d.ts +2 -0
  133. package/dist/release-notes.js +290 -0
  134. package/dist/relyon-cart-tokens.d.ts +101 -0
  135. package/dist/relyon-cart-tokens.js +521 -0
  136. package/dist/relyon.d.ts +141 -0
  137. package/dist/relyon.js +238 -0
  138. package/dist/robots.d.ts +27 -0
  139. package/dist/robots.js +127 -0
  140. package/dist/rules.d.ts +144 -0
  141. package/dist/rules.js +347 -0
  142. package/dist/sdk/generated/public-api.d.ts +4816 -0
  143. package/dist/sdk/generated/public-api.js +1 -0
  144. package/dist/sdk/index.d.ts +24 -0
  145. package/dist/sdk/index.js +34 -0
  146. package/dist/sdk/signatures.d.ts +17 -0
  147. package/dist/sdk/signatures.js +33 -0
  148. package/dist/setup.d.ts +37 -0
  149. package/dist/setup.js +94 -0
  150. package/dist/signatures.d.ts +112 -0
  151. package/dist/signatures.js +443 -0
  152. package/dist/state.d.ts +185 -0
  153. package/dist/state.js +96 -0
  154. package/dist/store-payments.d.ts +48 -0
  155. package/dist/store-payments.js +143 -0
  156. package/dist/structured-fields.d.ts +26 -0
  157. package/dist/structured-fields.js +200 -0
  158. package/dist/templates.d.ts +19 -0
  159. package/dist/templates.js +193 -0
  160. package/dist/test-checkout-command.d.ts +32 -0
  161. package/dist/test-checkout-command.js +161 -0
  162. package/dist/test-checkout.d.ts +88 -0
  163. package/dist/test-checkout.js +292 -0
  164. package/dist/types.d.ts +103 -0
  165. package/dist/types.js +18 -0
  166. package/dist/ucp-versions.d.ts +57 -0
  167. package/dist/ucp-versions.js +129 -0
  168. package/dist/util.d.ts +23 -0
  169. package/dist/util.js +68 -0
  170. package/dist/variants.d.ts +67 -0
  171. package/dist/variants.js +146 -0
  172. package/dist/version.d.ts +9 -0
  173. package/dist/version.js +10 -0
  174. package/dist/waiting.d.ts +43 -0
  175. package/dist/waiting.js +57 -0
  176. package/dist/webhook-command.d.ts +48 -0
  177. package/dist/webhook-command.js +367 -0
  178. package/dist/webhook-registration.d.ts +47 -0
  179. package/dist/webhook-registration.js +69 -0
  180. package/dist/webmcp-schema.d.ts +14 -0
  181. package/dist/webmcp-schema.js +140 -0
  182. package/dist/webmcp-script.d.ts +3 -0
  183. package/dist/webmcp-script.js +176 -0
  184. package/dist/webmcp-store.d.ts +102 -0
  185. package/dist/webmcp-store.js +116 -0
  186. package/dist/webmcp.d.ts +242 -0
  187. package/dist/webmcp.js +866 -0
  188. package/dist/wire-names.d.ts +85 -0
  189. package/dist/wire-names.js +109 -0
  190. package/package.json +118 -4
  191. package/release-notes.json +290 -0
  192. package/scripts/install-notice.cjs +7 -0
  193. package/skills/relyon-agents/SKILL.md +327 -0
  194. package/skills/relyon-catalog/SKILL.md +499 -0
  195. package/skills/relyon-catalog/references/example-store.md +218 -0
  196. package/skills/relyon-checkout/SKILL.md +603 -0
  197. package/skills/relyon-checkout/references/checkout-flow.md +257 -0
  198. package/skills/relyon-checkout/references/checkout-page.md +315 -0
  199. package/skills/relyon-go-live/SKILL.md +344 -0
  200. package/skills/relyon-orders/SKILL.md +191 -0
  201. package/skills/relyon-orders/references/webhook-receiver.md +113 -0
  202. package/skills/relyon-payments/SKILL.md +117 -0
  203. package/skills/relyon-setup/SKILL.md +1061 -0
  204. package/skills/relyon-setup/references/QUICKSTART.md +239 -0
  205. package/skills/relyon-setup/references/durable-state.md +209 -0
  206. package/skills/relyon-setup/references/express-server.md +388 -0
  207. package/skills/relyon-setup/references/next-app-router.md +251 -0
  208. package/templates/common/STORE-README.md +67 -0
  209. package/templates/common/gitignore +8 -0
  210. package/templates/common/scripts/check-pricing.ts +22 -0
  211. package/templates/common/scripts/serve.mjs +13 -0
  212. package/templates/common/server/catalog.ts +79 -0
  213. package/templates/common/server/checkout-flow.d.ts +34 -0
  214. package/templates/common/server/pages.ts +184 -0
  215. package/templates/common/server/storage.ts +114 -0
  216. package/templates/common/server/store.ts +67 -0
  217. package/templates/express/server/express.ts +20 -0
  218. package/templates/express/tsconfig.build.json +6 -0
  219. package/templates/express/tsconfig.json +9 -0
  220. package/templates/next/app/[[...path]]/route.ts +24 -0
  221. package/templates/next/next.config.mjs +19 -0
  222. package/templates/next/tsconfig.json +12 -0
  223. package/templates/payments/express.ts +39 -0
  224. package/templates/payments/next.ts +38 -0
  225. package/templates/payments/node.ts +39 -0
@@ -0,0 +1,4816 @@
1
+ export interface paths {
2
+ "/.well-known/ucp": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /**
10
+ * Discover one trusted store's configured Relyon services
11
+ * @description By default this describes the Relyon platform itself: the fixed store
12
+ * `relyon` in the Test environment, advertising only the merchant-agnostic
13
+ * `dev.relyon.checkout` service (the key-authenticated
14
+ * POST /v1/checkout_sessions; the caller's key, not this document, selects
15
+ * the merchant). Its spec link is the public /v1/openapi.yaml and its
16
+ * schema link is a public JSON Schema for checkout sessions. Advertised URLs
17
+ * use the server-configured application origin. A deployment may instead
18
+ * bind a single server-owned store, organization and environment to this
19
+ * router. Host, forwarding headers, query parameters and environment headers
20
+ * never select the store. Test is the default; Live requires explicit
21
+ * exposure approval. This is a UCP 2026-08-25 business profile with
22
+ * namespaced Relyon capabilities, not native UCP shopping operations.
23
+ * Checkout requires a human handoff using the checkout_url returned by the
24
+ * existing authenticated session-create API. No credentials or internal
25
+ * organization identifiers are disclosed.
26
+ */
27
+ get: operations["getStoreUcpManifest"];
28
+ put?: never;
29
+ post?: never;
30
+ delete?: never;
31
+ options?: never;
32
+ head?: never;
33
+ patch?: never;
34
+ trace?: never;
35
+ };
36
+ "/v1/public/merchants/{merchant_id}/feeds/acp.jsonl": {
37
+ parameters: {
38
+ query?: never;
39
+ header?: never;
40
+ path?: never;
41
+ cookie?: never;
42
+ };
43
+ /**
44
+ * Generate a store-scoped ACP discovery JSONL feed
45
+ * @description Integration-ready but UNMOUNTED in the application. Anonymous when explicitly
46
+ * mounted. Only published agent-visible catalog_entries are read. The server's
47
+ * explicit merchant configuration chooses one organization and environment;
48
+ * Test is default, Live must be configured. Host, headers and query cannot
49
+ * override scope. Unknown and unconfigured merchants share the same 404.
50
+ * UTF-8 JSONL, one FeedAcpProduct per line, trailing newline, empty string for
51
+ * no eligible products. Current ACP discovery dialect uses item_id and url.
52
+ * from_price is display discovery data, never a locked quote or authorization.
53
+ * Configurable/minimum-only rows are omitted because ACP requires an actual
54
+ * item price; non-configurable rows require an explicit merchant exact-price
55
+ * assertion. Missing required target fields produce internal diagnostics only.
56
+ * No pricing endpoints are called. Cache freshness is at most 240 seconds
57
+ * from snapshot-read start; scoped injected events invalidate all formats.
58
+ * This is not a deployed refresh or external ingestion latency guarantee.
59
+ */
60
+ get: operations["getMerchantAcpFeed"];
61
+ put?: never;
62
+ post?: never;
63
+ delete?: never;
64
+ options?: never;
65
+ head?: never;
66
+ patch?: never;
67
+ trace?: never;
68
+ };
69
+ "/v1/public/merchants/{merchant_id}/feeds/google.xml": {
70
+ parameters: {
71
+ query?: never;
72
+ header?: never;
73
+ path?: never;
74
+ cookie?: never;
75
+ };
76
+ /**
77
+ * Generate a store-scoped Google Merchant RSS XML feed
78
+ * @description UNMOUNTED integration router. Same explicit server-owned organization and
79
+ * Test-default environment scope as the ACP feed; no request scope overrides.
80
+ * RSS 2.0 XML with namespace http://base.google.com/ns/1.0 and g:id, g:title,
81
+ * g:description, g:link, g:image_link, g:price, g:availability and g:condition.
82
+ * Requires a truthful exact item price, positive amount, explicit condition,
83
+ * and assigned GTIN or brand plus MPN. Never fabricate condition, identifiers,
84
+ * policies or buyability. Configurable/minimum-only products, restricted items,
85
+ * and preorder/backorder without availability dates are omitted with internal
86
+ * diagnostics. Empty catalogs retain a valid RSS channel. Decimal prices use
87
+ * explicit supported ISO 4217 precision. Google prices requiring a nonzero
88
+ * third decimal are omitted rather than rounded. Display only, not a locked quote.
89
+ * No URL fetching, merchant pricing, submission or external approval guarantee.
90
+ * All formats share a coherent snapshot and at most 240-second origin freshness;
91
+ * actual application wiring and durable catalog-change delivery are not included.
92
+ */
93
+ get: operations["getMerchantGoogleFeed"];
94
+ put?: never;
95
+ post?: never;
96
+ delete?: never;
97
+ options?: never;
98
+ head?: never;
99
+ patch?: never;
100
+ trace?: never;
101
+ };
102
+ "/v1/public/merchants/{merchant_id}/feeds/products.jsonld": {
103
+ parameters: {
104
+ query?: never;
105
+ header?: never;
106
+ path?: never;
107
+ cookie?: never;
108
+ };
109
+ /**
110
+ * Generate store-scoped schema.org Product JSON-LD
111
+ * @description UNMOUNTED integration router. Explicit server-owned merchant configuration
112
+ * resolves exactly one organization/environment, default Test, explicit Live.
113
+ * Only published agent-visible index entries. Host, headers and query cannot
114
+ * change scope. Coherent snapshot shared by all three formats; maximum 240-second
115
+ * TTL from read start plus explicit scoped invalidation interface, not connected
116
+ * event delivery. No deployed refresh or external ingestion latency guarantee.
117
+ * Graph of schema.org Product nodes; empty catalog is an empty graph.
118
+ * Minimum/configurable from_price uses AggregateOffer.lowPrice without an
119
+ * invented highPrice or offerCount. Explicitly asserted non-configurable actual
120
+ * item prices use Offer.price. Discovery only, never a locked quote or payment
121
+ * authorization. No merchant pricing call. Less-than, greater-than, ampersand
122
+ * and Unicode line separators are JSON-escaped for safe script embedding.
123
+ */
124
+ get: operations["getMerchantProductsJsonLdFeed"];
125
+ put?: never;
126
+ post?: never;
127
+ delete?: never;
128
+ options?: never;
129
+ head?: never;
130
+ patch?: never;
131
+ trace?: never;
132
+ };
133
+ "/v1/public/merchants/{merchant_id}/products": {
134
+ parameters: {
135
+ query?: never;
136
+ header?: never;
137
+ path?: never;
138
+ cookie?: never;
139
+ };
140
+ /**
141
+ * Browse a store's sanitized display catalog without credentials
142
+ * @description Integration-ready Phase 2.1 browsing; the router is not mounted in the
143
+ * current application. No API key, Clerk session, signature or version
144
+ * header is required. The server maps merchant_id to exactly one
145
+ * organization and environment; Test is the default and Live requires
146
+ * explicit server configuration. Host and caller environment hints grant
147
+ * no authority. Unknown query parameters and repeated parameters are refused.
148
+ * Only published, agent-visible index records are returned, in ascending
149
+ * catalog ID order. starting_after is an exclusive ID boundary, not an
150
+ * offset or a lookup of another record; changing filters starts a new search.
151
+ * q is literal case-insensitive title/description search, not a wildcard
152
+ * expression. Empty q lists all visible entries. Maximum q length is 200;
153
+ * control characters are refused. Default page size is 20, maximum 50.
154
+ * from_price is display-only and never an authoritative payable price.
155
+ * Options are sanitized untrusted display data, not agent instructions.
156
+ * Paused stores remain browsable. No purchasing is enabled.
157
+ * All three browsing operations share merchant-wide and merchant/client
158
+ * rate limits. Client identity is req.ip under server-configured proxy
159
+ * trust, not a directly trusted forwarding header.
160
+ */
161
+ get: operations["searchPublicMerchantProducts"];
162
+ put?: never;
163
+ post?: never;
164
+ delete?: never;
165
+ options?: never;
166
+ head?: never;
167
+ patch?: never;
168
+ trace?: never;
169
+ };
170
+ "/v1/public/merchants/{merchant_id}/products/{product_id}": {
171
+ parameters: {
172
+ query?: never;
173
+ header?: never;
174
+ path?: never;
175
+ cookie?: never;
176
+ };
177
+ /**
178
+ * Read a visible index product without credentials
179
+ * @description Uses only the server-configured merchant/environment and stable catalog
180
+ * product ID. Hidden, rejected, cross-merchant, cross-environment and absent
181
+ * records return indistinguishable not_found responses. Legacy invoicing
182
+ * products and offers are never resolved. from_price is display-only.
183
+ * No query parameters are accepted. Paused stores remain browsable.
184
+ * Shares the search and policies rate-limit budgets. Integration-ready;
185
+ * the router is deliberately not mounted in the current application.
186
+ */
187
+ get: operations["getPublicMerchantProduct"];
188
+ put?: never;
189
+ post?: never;
190
+ delete?: never;
191
+ options?: never;
192
+ head?: never;
193
+ patch?: never;
194
+ trace?: never;
195
+ };
196
+ "/v1/public/merchants/{merchant_id}/policies": {
197
+ parameters: {
198
+ query?: never;
199
+ header?: never;
200
+ path?: never;
201
+ cookie?: never;
202
+ };
203
+ /**
204
+ * Read explicitly configured sanitized store policies without credentials
205
+ * @description The server-configured merchant/environment controls resolution, never Host,
206
+ * headers or query. No query parameters are accepted. Seller metadata and
207
+ * privacy, terms and returns text come only from explicit store configuration.
208
+ * No invoice terms, organization serialization, product-level returns
209
+ * fallback or policy URL fetching. Missing or empty-after-sanitization text
210
+ * is null with status not_configured. Missing seller name is also explicit.
211
+ * Paused and unpaused merchants have identical browsing permission.
212
+ * Shares the product operations' rate limits. Integration-ready; the router
213
+ * is deliberately not mounted in the current application.
214
+ */
215
+ get: operations["getPublicMerchantPolicies"];
216
+ put?: never;
217
+ post?: never;
218
+ delete?: never;
219
+ options?: never;
220
+ head?: never;
221
+ patch?: never;
222
+ trace?: never;
223
+ };
224
+ "/v1/sandboxes": {
225
+ parameters: {
226
+ query?: never;
227
+ header?: never;
228
+ path?: never;
229
+ cookie?: never;
230
+ };
231
+ get?: never;
232
+ put?: never;
233
+ /**
234
+ * Create a Test-mode sandbox on the caller's own organization
235
+ * @description Phase 1.5 sandbox provisioning for coding agents and the Dev MCP server.
236
+ * Authenticated: a Test API key holding the sandboxes:write grant (full or
237
+ * store-scoped), or a dashboard session. The Relyon-Version header is not
238
+ * read. The sandbox is the caller's own organization — no new or floating
239
+ * organization is ever created. The first call registers the organization
240
+ * as Test-only (born-claimed; there is no claim link for this path) and
241
+ * every call returns one fresh publishable key and one fresh restricted
242
+ * key whose scopes never exceed the caller's own. Both plaintext keys are
243
+ * returned exactly once in this response and never again. A workspace that
244
+ * already holds Live keys and is not a registered sandbox is refused with
245
+ * 409 invalid_request. Field names are camelCase on this operation only.
246
+ *
247
+ * The body is optional. When present it must be a JSON object whose only
248
+ * accepted field is name. Any other field or a non-object body is refused
249
+ * with invalid_value. Requests are rate limited per client IP plus a global
250
+ * cap before authentication, and per caller organization after it; every
251
+ * response from the operation handler carries X-RateLimit-Limit and
252
+ * X-RateLimit-Remaining. Over the limit the response is 429 rate_limited.
253
+ * A body that is not valid JSON is refused with 400 invalid_request before
254
+ * rate limiting. Missing authentication is 401 authentication_required;
255
+ * an authenticated caller without the grant or the admin role is 403
256
+ * permission_denied.
257
+ */
258
+ post: operations["createSandbox"];
259
+ delete?: never;
260
+ options?: never;
261
+ head?: never;
262
+ patch?: never;
263
+ trace?: never;
264
+ };
265
+ "/v1/connect/codes": {
266
+ parameters: {
267
+ query?: never;
268
+ header?: never;
269
+ path?: never;
270
+ cookie?: never;
271
+ };
272
+ get?: never;
273
+ put?: never;
274
+ /**
275
+ * Issue a one-time project space connect code
276
+ * @description The Relyon side of a store plugin's "Connect to Relyon" redirect flow
277
+ * (WooCommerce build plan, phase 2). Authenticated as a dashboard session
278
+ * only: Bearer transport (never an ambient cookie), an Origin header, a
279
+ * workspace admin, never an impersonation grant, and the Test environment
280
+ * — keys limited to one project space are Test-only, so Live issuance is
281
+ * refused with 403 permission_denied. The Relyon-Version header is not read.
282
+ *
283
+ * The body must be a JSON object whose only field is project_space_id, a
284
+ * project space of the caller's own workspace that is not archived (`prj_`,
285
+ * or the deprecated `st_` form of the same ID). The deprecated field name
286
+ * store_id is accepted instead during the rename window. The response carries
287
+ * the plaintext code exactly once (only its hash is stored); it expires
288
+ * ten minutes after issuance and redeems exactly once at
289
+ * POST /v1/connect/exchange. Requests are rate limited per caller
290
+ * workspace (X-RateLimit-Limit and X-RateLimit-Remaining on the
291
+ * response). Every issuance is audited; the code itself never is.
292
+ */
293
+ post: operations["createProjectSpaceConnectCode"];
294
+ delete?: never;
295
+ options?: never;
296
+ head?: never;
297
+ patch?: never;
298
+ trace?: never;
299
+ };
300
+ "/v1/connect/exchange": {
301
+ parameters: {
302
+ query?: never;
303
+ header?: never;
304
+ path?: never;
305
+ cookie?: never;
306
+ };
307
+ get?: never;
308
+ put?: never;
309
+ /**
310
+ * Exchange a one-time connect code for a restricted key limited to one project space
311
+ * @description Redeems a code from POST /v1/connect/codes for a Test restricted key
312
+ * limited to the project space the code was issued for. Unauthenticated: the
313
+ * single-use code itself is the credential. The Relyon-Version header is
314
+ * not read.
315
+ *
316
+ * The body must be a JSON object whose only field is code. Unknown,
317
+ * malformed, expired and already-used codes share one 400 refusal, so the
318
+ * endpoint reveals nothing about which codes exist. The key's plaintext
319
+ * is returned exactly once in this response; only its hash is stored. A
320
+ * project space archived between issuance and exchange refuses the exchange and
321
+ * mints nothing. Requests are rate limited per client IP first, then
322
+ * globally; over the limit the response is 429 rate_limited with a
323
+ * Retry-After header. The response is never cached (Cache-Control:
324
+ * no-store).
325
+ */
326
+ post: operations["exchangeProjectSpaceConnectCode"];
327
+ delete?: never;
328
+ options?: never;
329
+ head?: never;
330
+ patch?: never;
331
+ trace?: never;
332
+ };
333
+ "/v1/doctor": {
334
+ parameters: {
335
+ query?: never;
336
+ header?: never;
337
+ path?: never;
338
+ cookie?: never;
339
+ };
340
+ /**
341
+ * Diagnose this organization's integration in the key's environment
342
+ * @description Phase 1.4 integration diagnostics. Uses the normal dated version convention
343
+ * and secret-key authentication; publishable-only access and support
344
+ * impersonation are refused. An organization member session may also run
345
+ * this operation. A merchant key needs catalog:read to invoke it. Probes
346
+ * additionally need webhooks:manage, pricing:manage and checkout:write;
347
+ * missing capabilities are reported, never granted or bypassed.
348
+ *
349
+ * Completed diagnostics return 200, including failures. status is pass
350
+ * exactly when failures is empty. All five checks are evaluated. A probe
351
+ * without authority or a usable product returns a diagnostic failure rather
352
+ * than silently passing. Responses use Cache-Control: no-store and contain
353
+ * no credentials, endpoint URLs, merchant response bodies or challenges.
354
+ * The operation accepts no query parameters or request body.
355
+ *
356
+ * Bounded diagnostic side effects only: one active endpoint (lowest endpoint
357
+ * ID) receives one doctor.challenge POST, even if not subscribed to ordinary
358
+ * event types. There is no event-log insertion, retry or change to ordinary
359
+ * webhook delivery. The body is DoctorChallenge. X-Relyon-Event is
360
+ * doctor.challenge. X-Relyon-Signature is t=<created>,v1=<hex HMAC-SHA256 of
361
+ * "<created>.<raw body>" using that endpoint's signing secret>. The endpoint
362
+ * must verify this signature and return a 2xx response with header
363
+ * Relyon-Doctor-Acknowledgement containing the lowercase hex HMAC-SHA256 of
364
+ * "relyon.doctor.ack.v1\n<id>\n<challenge>\n<created>" using the same secret.
365
+ * No trailing newline. A plain 2xx, reflected request signature or previous
366
+ * acknowledgement is not sufficient. Each request uses a fresh random
367
+ * 256-bit challenge, unique event ID and wall-clock timestamp; acknowledgement
368
+ * comparison is constant-time. The HTTPS destination is public-address checked
369
+ * and DNS-pinned, redirects are refused, headers limited to 8 KiB, and the
370
+ * entire challenge has a five-second budget. No response body is read.
371
+ *
372
+ * Pricing checks the pricing that checkout sessions still use. Since revision
373
+ * 2026-10-19 the store prices every cart itself and that pricing is no longer
374
+ * part of this contract; the check stays only until checkout sessions stop
375
+ * pricing carts. No payment is submitted, and pricing saves and ordinary
376
+ * checkout behavior are unchanged.
377
+ *
378
+ * Checkout creates at most one system-owned temporary session from a valid
379
+ * published product. It deliberately lacks a shipping address and locked
380
+ * quote, so hosted loading cannot initialize payment. It expires after one
381
+ * minute and is removed on every exit; cleanup failures are reported. The
382
+ * probe verifies the hosted application and its checkout route asset plus
383
+ * actual public session loading at trusted application destinations,
384
+ * never caller-supplied destinations. Development uses the invoicing service
385
+ * port; production uses the configured application origin served by the
386
+ * static router. Session loading uses the API's own configured listening
387
+ * port. Redirects are not followed. No charge, paid order or payment
388
+ * gateway operation is performed. No Idempotency-Key is needed for this
389
+ * bounded diagnostic GET. HEAD returns headers only, without running probes.
390
+ */
391
+ get: operations["runIntegrationDoctor"];
392
+ put?: never;
393
+ post?: never;
394
+ delete?: never;
395
+ options?: never;
396
+ head?: never;
397
+ patch?: never;
398
+ trace?: never;
399
+ };
400
+ "/v1/products": {
401
+ parameters: {
402
+ query?: never;
403
+ header?: never;
404
+ path?: never;
405
+ cookie?: never;
406
+ };
407
+ /** List synced products */
408
+ get: operations["listProducts"];
409
+ put?: never;
410
+ post?: never;
411
+ delete?: never;
412
+ options?: never;
413
+ head?: never;
414
+ patch?: never;
415
+ trace?: never;
416
+ };
417
+ "/v1/products/{id}": {
418
+ parameters: {
419
+ query?: never;
420
+ header?: {
421
+ /** @description Defaults to the key's pinned version. */
422
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
423
+ };
424
+ path: {
425
+ /** @description The app's own stable product ID. */
426
+ id: components["parameters"]["ProductId"];
427
+ };
428
+ cookie?: never;
429
+ };
430
+ /** Retrieve a product */
431
+ get: operations["getProduct"];
432
+ /**
433
+ * Create or replace an index entry by the merchant's own ID
434
+ * @description Writes one entry in Relyon's index. The merchant's system stays the source of
435
+ * truth; the index holds discovery fields only and is never used to charge in
436
+ * `merchant` pricing mode. A product missing a required field is stored with
437
+ * `status: rejected`, the response lists the errors, and a `catalog.rejected` event
438
+ * is emitted. Missing recommended fields only lower the readiness score. Text is
439
+ * sanitized on the way in. Core's own enrichment survives every re-sync.
440
+ */
441
+ put: operations["upsertProduct"];
442
+ post?: never;
443
+ /**
444
+ * Remove a product from every feed
445
+ * @description Open checkout sessions that contain it can no longer be paid.
446
+ */
447
+ delete: operations["deleteProduct"];
448
+ options?: never;
449
+ head?: never;
450
+ patch?: never;
451
+ trace?: never;
452
+ };
453
+ "/v1/products/batch": {
454
+ parameters: {
455
+ query?: never;
456
+ header?: never;
457
+ path?: never;
458
+ cookie?: never;
459
+ };
460
+ get?: never;
461
+ put?: never;
462
+ /**
463
+ * Create or replace up to 500 products at once
464
+ * @description Each product is validated on its own, so one bad row never blocks the rest.
465
+ */
466
+ post: operations["upsertProductsBatch"];
467
+ delete?: never;
468
+ options?: never;
469
+ head?: never;
470
+ patch?: never;
471
+ trace?: never;
472
+ };
473
+ "/v1/catalog/validate": {
474
+ parameters: {
475
+ query?: never;
476
+ header?: never;
477
+ path?: never;
478
+ cookie?: never;
479
+ };
480
+ get?: never;
481
+ put?: never;
482
+ /**
483
+ * Check products against the schema without storing them
484
+ * @description The same code runs here, in `relyon doctor`, in the `validate_catalog` MCP tool and on every sync.
485
+ */
486
+ post: operations["validateCatalog"];
487
+ delete?: never;
488
+ options?: never;
489
+ head?: never;
490
+ patch?: never;
491
+ trace?: never;
492
+ };
493
+ "/v1/checkout_sessions": {
494
+ parameters: {
495
+ query?: never;
496
+ header?: never;
497
+ path?: never;
498
+ cookie?: never;
499
+ };
500
+ get?: never;
501
+ put?: never;
502
+ /**
503
+ * Create a checkout session
504
+ * @description Amounts never come from the request. The store's prices are locked as the
505
+ * session's `quote`. The session starts in `not_ready_for_payment` until everything
506
+ * needed to lock a quote is present. Since revision 2026-10-19 the store prices
507
+ * every cart itself and charges it with `createPaymentSession` and `createPayment`
508
+ * on its own checkout page; hosted checkout sessions remain for existing
509
+ * integrations.
510
+ */
511
+ post: operations["createCheckoutSession"];
512
+ delete?: never;
513
+ options?: never;
514
+ head?: never;
515
+ patch?: never;
516
+ trace?: never;
517
+ };
518
+ "/v1/checkout_sessions/{id}": {
519
+ parameters: {
520
+ query?: never;
521
+ header?: {
522
+ /** @description Defaults to the key's pinned version. */
523
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
524
+ };
525
+ path: {
526
+ id: components["parameters"]["SessionId"];
527
+ };
528
+ cookie?: never;
529
+ };
530
+ /** Retrieve a checkout session */
531
+ get: operations["getCheckoutSession"];
532
+ put?: never;
533
+ /**
534
+ * Update items, address, shipping choice or options
535
+ * @description Allowed only in `not_ready_for_payment` and `ready_for_payment`. Any change discards the locked quote and asks for a new one.
536
+ */
537
+ post: operations["updateCheckoutSession"];
538
+ delete?: never;
539
+ options?: never;
540
+ head?: never;
541
+ patch?: never;
542
+ trace?: never;
543
+ };
544
+ "/v1/checkout_sessions/{id}/cancel": {
545
+ parameters: {
546
+ query?: never;
547
+ header?: never;
548
+ path?: never;
549
+ cookie?: never;
550
+ };
551
+ get?: never;
552
+ put?: never;
553
+ /** Cancel a session that has not started payment */
554
+ post: operations["cancelCheckoutSession"];
555
+ delete?: never;
556
+ options?: never;
557
+ head?: never;
558
+ patch?: never;
559
+ trace?: never;
560
+ };
561
+ "/v1/orders/{id}": {
562
+ parameters: {
563
+ query?: never;
564
+ header?: never;
565
+ path?: never;
566
+ cookie?: never;
567
+ };
568
+ /** Retrieve an order */
569
+ get: operations["getOrder"];
570
+ put?: never;
571
+ post?: never;
572
+ delete?: never;
573
+ options?: never;
574
+ head?: never;
575
+ patch?: never;
576
+ trace?: never;
577
+ };
578
+ "/v1/orders/{id}/fulfillment": {
579
+ parameters: {
580
+ query?: never;
581
+ header?: never;
582
+ path?: never;
583
+ cookie?: never;
584
+ };
585
+ get?: never;
586
+ put?: never;
587
+ /**
588
+ * Report shipped, delivered or canceled
589
+ * @description Shopping agents and dispute evidence both read this.
590
+ */
591
+ post: operations["updateOrderFulfillment"];
592
+ delete?: never;
593
+ options?: never;
594
+ head?: never;
595
+ patch?: never;
596
+ trace?: never;
597
+ };
598
+ "/v1/events": {
599
+ parameters: {
600
+ query?: never;
601
+ header?: never;
602
+ path?: never;
603
+ cookie?: never;
604
+ };
605
+ /** List events from the log, newest first */
606
+ get: operations["listEvents"];
607
+ put?: never;
608
+ post?: never;
609
+ delete?: never;
610
+ options?: never;
611
+ head?: never;
612
+ patch?: never;
613
+ trace?: never;
614
+ };
615
+ "/v1/events/{id}": {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ /** Retrieve one event */
623
+ get: operations["getEvent"];
624
+ put?: never;
625
+ post?: never;
626
+ delete?: never;
627
+ options?: never;
628
+ head?: never;
629
+ patch?: never;
630
+ trace?: never;
631
+ };
632
+ "/v1/events/{id}/replay": {
633
+ parameters: {
634
+ query?: never;
635
+ header?: never;
636
+ path?: never;
637
+ cookie?: never;
638
+ };
639
+ get?: never;
640
+ put?: never;
641
+ /**
642
+ * Deliver an event again to every enabled endpoint
643
+ * @description The replayed delivery has the same event `id`, so a correct app ignores it if already handled.
644
+ */
645
+ post: operations["replayEvent"];
646
+ delete?: never;
647
+ options?: never;
648
+ head?: never;
649
+ patch?: never;
650
+ trace?: never;
651
+ };
652
+ "/v1/webhook_endpoints": {
653
+ parameters: {
654
+ query?: never;
655
+ header?: never;
656
+ path?: never;
657
+ cookie?: never;
658
+ };
659
+ /** List webhook endpoints */
660
+ get: operations["listWebhookEndpoints"];
661
+ put?: never;
662
+ /**
663
+ * Register an endpoint
664
+ * @description The signing `secret` is returned once, in this response only.
665
+ */
666
+ post: operations["createWebhookEndpoint"];
667
+ delete?: never;
668
+ options?: never;
669
+ head?: never;
670
+ patch?: never;
671
+ trace?: never;
672
+ };
673
+ "/v1/agent_policy": {
674
+ parameters: {
675
+ query?: never;
676
+ header?: never;
677
+ path?: never;
678
+ cookie?: never;
679
+ };
680
+ /** Read the merchant's rules for shopping agents */
681
+ get: operations["getAgentPolicy"];
682
+ /**
683
+ * Replace the merchant's rules for shopping agents
684
+ * @description Applied by the agent gateway on every Commerce MCP request after signature and
685
+ * tier checks. Restricted keys can't call this; it needs a full secret key from the dashboard.
686
+ */
687
+ put: operations["replaceAgentPolicy"];
688
+ post?: never;
689
+ delete?: never;
690
+ options?: never;
691
+ head?: never;
692
+ patch?: never;
693
+ trace?: never;
694
+ };
695
+ "/v1/project_space_policies": {
696
+ parameters: {
697
+ query?: never;
698
+ header?: never;
699
+ path?: never;
700
+ cookie?: never;
701
+ };
702
+ /**
703
+ * Read the workspace's return, support and consumer-notice policies
704
+ * @description These are the workspace-level project space policies that agent surfaces
705
+ * (Google, ChatGPT and MCP checkouts) show the shopper before payment. They
706
+ * are workspace-level: no project space header is needed. They are separate
707
+ * from the anonymous `/v1/public/merchants/{merchant_id}/policies` browsing
708
+ * operation, which is unchanged. `complete` is true exactly when `missing`
709
+ * is empty. While the policies are incomplete, connecting a channel or
710
+ * starting a checkout from an agent surface is refused with
711
+ * `project_space_policy_incomplete`.
712
+ */
713
+ get: operations["getProjectSpacePolicies"];
714
+ /**
715
+ * Replace the workspace's return, support and consumer-notice policies
716
+ * @description Replaces every field; an omitted field is cleared. Incomplete policies
717
+ * are stored and reported through `complete` and `missing` rather than
718
+ * refused. Text is sanitized on the way in, as for the catalog.
719
+ */
720
+ put: operations["replaceProjectSpacePolicies"];
721
+ post?: never;
722
+ delete?: never;
723
+ options?: never;
724
+ head?: never;
725
+ patch?: never;
726
+ trace?: never;
727
+ };
728
+ "/v1/store_policies": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path?: never;
733
+ cookie?: never;
734
+ };
735
+ /**
736
+ * Deprecated alias of getProjectSpacePolicies
737
+ * @deprecated
738
+ * @description Deprecated alias of `GET /v1/project_space_policies`, kept for a short
739
+ * window and answered with a `Deprecation` header. It keeps returning
740
+ * `object: store_policies` for pinned clients.
741
+ *
742
+ * These are the store-level policies that agent surfaces (Google, ChatGPT
743
+ * and MCP checkouts) show the shopper before payment. They are separate
744
+ * from the anonymous `/v1/public/merchants/{merchant_id}/policies` browsing
745
+ * operation, which is unchanged. `complete` is true exactly when `missing`
746
+ * is empty. While the policies are incomplete, connecting a channel or
747
+ * starting a checkout from an agent surface is refused with
748
+ * `store_policy_incomplete`.
749
+ */
750
+ get: operations["getStorePolicies"];
751
+ /**
752
+ * Deprecated alias of replaceProjectSpacePolicies
753
+ * @deprecated
754
+ * @description Deprecated alias of `PUT /v1/project_space_policies`, kept for a short
755
+ * window and answered with a `Deprecation` header. It keeps returning
756
+ * `object: store_policies` for pinned clients.
757
+ *
758
+ * Replaces every field; an omitted field is cleared. Incomplete policies
759
+ * are stored and reported through `complete` and `missing` rather than
760
+ * refused. Text is sanitized on the way in, as for the catalog.
761
+ */
762
+ put: operations["replaceStorePolicies"];
763
+ post?: never;
764
+ delete?: never;
765
+ options?: never;
766
+ head?: never;
767
+ patch?: never;
768
+ trace?: never;
769
+ };
770
+ "/v1/domains": {
771
+ parameters: {
772
+ query?: never;
773
+ header?: never;
774
+ path?: never;
775
+ cookie?: never;
776
+ };
777
+ /** List the store's domains, newest first */
778
+ get: operations["listDomains"];
779
+ put?: never;
780
+ /**
781
+ * Add a domain the store owns
782
+ * @description The domain starts `pending` with DNS TXT verification instructions.
783
+ * Publish the record, then call verifyDomain. Discovery and channels that
784
+ * need a verified domain are refused with `domain_not_verified` until then.
785
+ * The response's `forwarding.secret` signs requests the store forwards to
786
+ * Relyon. It is returned only here, once, and can't be shown again.
787
+ */
788
+ post: operations["createDomain"];
789
+ delete?: never;
790
+ options?: never;
791
+ head?: never;
792
+ patch?: never;
793
+ trace?: never;
794
+ };
795
+ "/v1/domains/{id}": {
796
+ parameters: {
797
+ query?: never;
798
+ header?: {
799
+ /** @description Defaults to the key's pinned version. */
800
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
801
+ };
802
+ path: {
803
+ id: components["parameters"]["DomainId"];
804
+ };
805
+ cookie?: never;
806
+ };
807
+ /** Retrieve a domain */
808
+ get: operations["getDomain"];
809
+ put?: never;
810
+ post?: never;
811
+ delete?: never;
812
+ options?: never;
813
+ head?: never;
814
+ patch?: never;
815
+ trace?: never;
816
+ };
817
+ "/v1/domains/{id}/verify": {
818
+ parameters: {
819
+ query?: never;
820
+ header?: never;
821
+ path?: never;
822
+ cookie?: never;
823
+ };
824
+ get?: never;
825
+ put?: never;
826
+ /**
827
+ * Check the domain's DNS TXT record now
828
+ * @description A completed check returns 200 with the domain, whether it passed or not.
829
+ * On success the status becomes `verified` and `domain.verified` is sent.
830
+ * On failure the status becomes `failed`, `failure_reason` says why and
831
+ * `domain.failed` is sent. A failed domain can be verified again.
832
+ */
833
+ post: operations["verifyDomain"];
834
+ delete?: never;
835
+ options?: never;
836
+ head?: never;
837
+ patch?: never;
838
+ trace?: never;
839
+ };
840
+ "/v1/channels": {
841
+ parameters: {
842
+ query?: never;
843
+ header?: never;
844
+ path?: never;
845
+ cookie?: never;
846
+ };
847
+ /**
848
+ * List the store's Google and ChatGPT channels
849
+ * @description Defined in the contract but not implemented by the server yet.
850
+ * Always lists every channel name, including channels that are not connected.
851
+ */
852
+ get: operations["listChannels"];
853
+ put?: never;
854
+ post?: never;
855
+ delete?: never;
856
+ options?: never;
857
+ head?: never;
858
+ patch?: never;
859
+ trace?: never;
860
+ };
861
+ "/v1/channels/{name}": {
862
+ parameters: {
863
+ query?: never;
864
+ header?: {
865
+ /** @description Defaults to the key's pinned version. */
866
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
867
+ };
868
+ path: {
869
+ name: components["parameters"]["ChannelName"];
870
+ };
871
+ cookie?: never;
872
+ };
873
+ /**
874
+ * Retrieve one channel
875
+ * @description Defined in the contract but not implemented by the server yet.
876
+ */
877
+ get: operations["getChannel"];
878
+ put?: never;
879
+ post?: never;
880
+ delete?: never;
881
+ options?: never;
882
+ head?: never;
883
+ patch?: never;
884
+ trace?: never;
885
+ };
886
+ "/v1/channels/{name}/pause": {
887
+ parameters: {
888
+ query?: never;
889
+ header?: never;
890
+ path?: never;
891
+ cookie?: never;
892
+ };
893
+ get?: never;
894
+ put?: never;
895
+ /**
896
+ * Stop new checkouts from a connected channel
897
+ * @description Defined in the contract but not implemented by the server yet.
898
+ * While paused, checkouts from that surface are refused with `channel_paused`.
899
+ * Pausing a paused channel returns it unchanged. A channel that is not
900
+ * connected is refused with `channel_not_connected`.
901
+ */
902
+ post: operations["pauseChannel"];
903
+ delete?: never;
904
+ options?: never;
905
+ head?: never;
906
+ patch?: never;
907
+ trace?: never;
908
+ };
909
+ "/v1/channels/{name}/resume": {
910
+ parameters: {
911
+ query?: never;
912
+ header?: never;
913
+ path?: never;
914
+ cookie?: never;
915
+ };
916
+ get?: never;
917
+ put?: never;
918
+ /**
919
+ * Accept checkouts from a paused channel again
920
+ * @description Defined in the contract but not implemented by the server yet.
921
+ * Resuming a connected channel returns it unchanged. A channel that is not
922
+ * connected is refused with `channel_not_connected`.
923
+ */
924
+ post: operations["resumeChannel"];
925
+ delete?: never;
926
+ options?: never;
927
+ head?: never;
928
+ patch?: never;
929
+ trace?: never;
930
+ };
931
+ "/v1/payment_sessions": {
932
+ parameters: {
933
+ query?: never;
934
+ header?: never;
935
+ path?: never;
936
+ cookie?: never;
937
+ };
938
+ get?: never;
939
+ put?: never;
940
+ /**
941
+ * Start hosted card fields for one store checkout
942
+ * @description Creates a hosted card-field session for one checkout on the store's own page and
943
+ * returns a `client_token` for the `<relyon-card-fields>` iframe. Card numbers go
944
+ * from the shopper's browser to the processor through the iframe; neither the store
945
+ * nor Relyon's API sees them. Charge the session with `createPayment` and
946
+ * `payment_method.kind: hosted_card`. A session is single use and expires at
947
+ * `expires_at`. Defined in revision 2026-10-19; not implemented yet.
948
+ */
949
+ post: operations["createPaymentSession"];
950
+ delete?: never;
951
+ options?: never;
952
+ head?: never;
953
+ patch?: never;
954
+ trace?: never;
955
+ };
956
+ "/v1/payments": {
957
+ parameters: {
958
+ query?: never;
959
+ header?: never;
960
+ path?: never;
961
+ cookie?: never;
962
+ };
963
+ get?: never;
964
+ put?: never;
965
+ /**
966
+ * Charge the final amount of a cart the store priced
967
+ * @description The store sends the final `amount` with the `cart` snapshot exactly as it computed
968
+ * it. Relyon checks that the cart adds up and charges exactly `amount` on the
969
+ * store's own processor account; it never re-prices. The checks: every line's
970
+ * `amount` sums to `totals.subtotal`, `discounts` sum to `totals.discount`,
971
+ * `totals.total` equals subtotal − discount + shipping + tax, and `amount` equals
972
+ * `totals.total`. Any mismatch is refused with `amount_mismatch` (`param` names
973
+ * the field) and nothing is charged. A currency that differs between `currency`,
974
+ * `cart.currency` and `cart.totals.currency` is refused with `currency_mismatch`.
975
+ *
976
+ * A completed attempt returns 201 with the `Payment`, whether it `succeeded` or
977
+ * `failed` (declined); `payment.succeeded` or `payment.failed` is sent with the
978
+ * `Payment` as `data.object`. Other refusals: `processor_not_configured` when
979
+ * the environment has no working processor account, `provider_not_available`
980
+ * when the account's provider can't take payments yet, `agent_refused` when
981
+ * the agent rules refuse the agent behind `agent_checkout_id`, `mandate_required`
982
+ * when the agent policy needs a Checkout Mandate the payment doesn't carry, and
983
+ * `cart_changed` when `cart` differs from the cart last signed for
984
+ * `agent_checkout_id`. `Idempotency-Key` replays return the first result.
985
+ * Defined in revision 2026-10-19; not implemented yet.
986
+ */
987
+ post: operations["createPayment"];
988
+ delete?: never;
989
+ options?: never;
990
+ head?: never;
991
+ patch?: never;
992
+ trace?: never;
993
+ };
994
+ "/v1/payments/{id}/refund": {
995
+ parameters: {
996
+ query?: never;
997
+ header?: never;
998
+ path?: never;
999
+ cookie?: never;
1000
+ };
1001
+ get?: never;
1002
+ put?: never;
1003
+ /**
1004
+ * Refund a payment, in part or in full
1005
+ * @description Refunds the store's own succeeded payment with the same secret key that charged it
1006
+ * (`checkout:write`). An omitted `amount` refunds the whole remaining balance; partial
1007
+ * refunds accumulate up to the payment's amount, and `refund_exceeds_payment` refuses
1008
+ * anything beyond the refundable remainder. `payment_not_refundable` refuses a payment
1009
+ * that never succeeded. The processor moves the money first: a processor that can't
1010
+ * refund through Relyon is refused with `refund_not_supported` and nothing is recorded.
1011
+ * `refund.created` and `refund.succeeded` are sent with the `Refund` as `data.object`.
1012
+ * `Idempotency-Key` replays return the first result. Added in revision 2026-11-06
1013
+ * (WooCommerce gateway, build-plan phase 3).
1014
+ */
1015
+ post: operations["refundPayment"];
1016
+ delete?: never;
1017
+ options?: never;
1018
+ head?: never;
1019
+ patch?: never;
1020
+ trace?: never;
1021
+ };
1022
+ "/v1/agent_checkouts/{protocol}/{operation}": {
1023
+ parameters: {
1024
+ query?: never;
1025
+ header?: never;
1026
+ path: {
1027
+ /** @description The agent protocol the store received the request in. */
1028
+ protocol: components["parameters"]["AgentProtocol"];
1029
+ /** @description The checkout step the agent asked for. */
1030
+ operation: components["parameters"]["AgentCheckoutOperation"];
1031
+ };
1032
+ cookie?: never;
1033
+ };
1034
+ get?: never;
1035
+ put?: never;
1036
+ /**
1037
+ * Handle one agent checkout step the store received
1038
+ * @description The store calls this at each agent checkout step, after it received the agent's
1039
+ * request on its own domain and priced the cart. The body carries the agent's raw
1040
+ * request and, for `create`, `update` and `complete`, the store's priced `cart`
1041
+ * with its shipping options. Relyon verifies the caller (UCP profile and RFC 9421
1042
+ * signature, ACP `Signature` and `Timestamp`, and Visa TAP or Mastercard Agent
1043
+ * Pay signatures when present), applies the agent rules and the merchant's agent
1044
+ * policy, records the step, and renders the protocol response from the store's
1045
+ * cart, signed with the merchant's key.
1046
+ *
1047
+ * With a Test key, `request.url` may be on any preview address; plain http and
1048
+ * a port are accepted only for loopback. With a Live key it must be on the
1049
+ * store's own verified Live domain; every other hostname gets the same
1050
+ * `domain_not_found`.
1051
+ *
1052
+ * On `complete` Relyon verifies the AP2 Checkout Mandate when present or required,
1053
+ * checks that the cart equals the one last signed for this checkout, and charges
1054
+ * it as `createPayment` would when the agent supplied a payment token; `payment`
1055
+ * then holds the `Payment`. Without a token the protocol response hands the
1056
+ * shopper to the store's own checkout.
1057
+ *
1058
+ * Agent refusals are not HTTP errors: the response is 200 with `decision:
1059
+ * refused`, a `reason`, and `status`, `headers` and `body` in the protocol's own
1060
+ * error format. The store returns `status`, `headers` and `body` to the agent
1061
+ * unchanged and, on a paid complete, creates its own order. Problems are used only
1062
+ * for the store's own request (authentication, validation, idempotency).
1063
+ * Defined in revision 2026-10-19; not implemented yet.
1064
+ */
1065
+ post: operations["handleAgentCheckout"];
1066
+ delete?: never;
1067
+ options?: never;
1068
+ head?: never;
1069
+ patch?: never;
1070
+ trace?: never;
1071
+ };
1072
+ "/v1/agent_profiles/ucp": {
1073
+ parameters: {
1074
+ query?: never;
1075
+ header?: never;
1076
+ path?: never;
1077
+ cookie?: never;
1078
+ };
1079
+ /**
1080
+ * Read the store's UCP profile to serve at /.well-known/ucp
1081
+ * @description The merchant's UCP 2026-08-25 business profile for one of its verified domains,
1082
+ * with every service endpoint on that domain and the merchant's current public
1083
+ * signing keys. The store serves the body unchanged at
1084
+ * `https://<hostname>/.well-known/ucp` and may cache it for the `max-age` in
1085
+ * `Cache-Control`. With a Live key, a hostname that is not a verified domain of
1086
+ * the store is refused with `domain_not_verified`. With a Test key, any other
1087
+ * hostname (a DNS name, or loopback) is served as the key's own Test store on
1088
+ * that address, a preview address; IP literals and Relyon's own hostnames are
1089
+ * refused with `domain_not_verified`. Preview addresses are never exclusive,
1090
+ * never verified domains and never serve Live.
1091
+ * Defined in revision 2026-10-19; not implemented yet.
1092
+ */
1093
+ get: operations["getUcpAgentProfile"];
1094
+ put?: never;
1095
+ post?: never;
1096
+ delete?: never;
1097
+ options?: never;
1098
+ head?: never;
1099
+ patch?: never;
1100
+ trace?: never;
1101
+ };
1102
+ "/v1/agent_events": {
1103
+ parameters: {
1104
+ query?: never;
1105
+ header?: never;
1106
+ path?: never;
1107
+ cookie?: never;
1108
+ };
1109
+ get?: never;
1110
+ put?: never;
1111
+ /**
1112
+ * Report agent activity the store saw without needing a decision
1113
+ * @description A batch of agent requests the store handled itself: crawler visits, UCP profile,
1114
+ * feed and `llms.txt` reads, MCP tool calls such as searches, and hand-off landings
1115
+ * on the store's checkout. Checkout steps and payments are recorded by Relyon
1116
+ * directly from `handleAgentCheckout` and `createPayment`, so they are not sent here.
1117
+ * Relyon names the agent behind each event (verified or claimed) for the dashboard.
1118
+ * Each event's `id` is de-duplicated per store and environment, so a batch can be
1119
+ * resent after a failure; duplicates are counted, not stored again.
1120
+ * Defined in revision 2026-10-19; not implemented yet.
1121
+ */
1122
+ post: operations["recordAgentEvents"];
1123
+ delete?: never;
1124
+ options?: never;
1125
+ head?: never;
1126
+ patch?: never;
1127
+ trace?: never;
1128
+ };
1129
+ "/v1/agent_rules": {
1130
+ parameters: {
1131
+ query?: never;
1132
+ header?: never;
1133
+ path?: never;
1134
+ cookie?: never;
1135
+ };
1136
+ /**
1137
+ * Read the merged platform and merchant agent rules
1138
+ * @description The rules Relyon applies to agents for this store: Relyon's platform rules merged
1139
+ * with the merchant's own, which can only narrow them. The store kit caches them
1140
+ * for fast local checks, refreshing every `refresh_seconds` and whenever an
1141
+ * `agent_rules.updated` event arrives, and refuses blocked agents at the edge.
1142
+ * Relyon still enforces every rule on `handleAgentCheckout` and `createPayment`.
1143
+ * Defined in revision 2026-10-19; not implemented yet.
1144
+ */
1145
+ get: operations["getAgentRules"];
1146
+ put?: never;
1147
+ post?: never;
1148
+ delete?: never;
1149
+ options?: never;
1150
+ head?: never;
1151
+ patch?: never;
1152
+ trace?: never;
1153
+ };
1154
+ "/v1/processor_account": {
1155
+ parameters: {
1156
+ query?: never;
1157
+ header?: never;
1158
+ path?: never;
1159
+ cookie?: never;
1160
+ };
1161
+ /**
1162
+ * Read the store's processor account in the key's environment
1163
+ * @description Each store is its own merchant with its own processor account and MID per
1164
+ * environment. Relyon staff enter the account; the store can only read it. The
1165
+ * response shows the provider, status, the last 4 characters of the MID and the
1166
+ * fee schedule, never credentials. Before an account is entered it reads as
1167
+ * `not_configured`. Defined in revision 2026-10-19; not implemented yet.
1168
+ */
1169
+ get: operations["getProcessorAccount"];
1170
+ put?: never;
1171
+ post?: never;
1172
+ delete?: never;
1173
+ options?: never;
1174
+ head?: never;
1175
+ patch?: never;
1176
+ trace?: never;
1177
+ };
1178
+ }
1179
+ export interface webhooks {
1180
+ event: {
1181
+ parameters: {
1182
+ query?: never;
1183
+ header?: never;
1184
+ path?: never;
1185
+ cookie?: never;
1186
+ };
1187
+ get?: never;
1188
+ put?: never;
1189
+ /**
1190
+ * Relyon sends an event to your endpoint
1191
+ * @description Verify `Relyon-Signature` before acting: `t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.raw_body">`
1192
+ * with the endpoint secret. Reject anything older than 5 minutes. Return 2xx quickly.
1193
+ * Relyon retries non-2xx with exponential backoff for 72 hours. The same event can arrive
1194
+ * twice or out of order, so de-duplicate on `id` and re-fetch the object when order matters.
1195
+ * Unlock access only on `payment.succeeded`, never on a redirect.
1196
+ */
1197
+ post: {
1198
+ parameters: {
1199
+ query?: never;
1200
+ header: {
1201
+ "Relyon-Signature": string;
1202
+ };
1203
+ path?: never;
1204
+ cookie?: never;
1205
+ };
1206
+ requestBody: {
1207
+ content: {
1208
+ "application/json": components["schemas"]["Event"];
1209
+ };
1210
+ };
1211
+ responses: {
1212
+ /** @description Any 2xx acknowledges delivery */
1213
+ 200: {
1214
+ headers: {
1215
+ [name: string]: unknown;
1216
+ };
1217
+ content?: never;
1218
+ };
1219
+ };
1220
+ };
1221
+ delete?: never;
1222
+ options?: never;
1223
+ head?: never;
1224
+ patch?: never;
1225
+ trace?: never;
1226
+ };
1227
+ }
1228
+ export interface components {
1229
+ schemas: {
1230
+ StoreUcpManifest: {
1231
+ ucp: {
1232
+ /** @constant */
1233
+ version: "2026-08-25";
1234
+ services: {
1235
+ [key: string]: components["schemas"]["StoreUcpBinding"][];
1236
+ };
1237
+ capabilities: {
1238
+ [key: string]: components["schemas"]["StoreUcpEntity"][];
1239
+ };
1240
+ payment_handlers: Record<string, unknown>;
1241
+ };
1242
+ "dev.relyon.store": components["schemas"]["StoreUcpIdentity"];
1243
+ };
1244
+ StoreUcpIdentity: {
1245
+ merchant_id: string;
1246
+ /** @enum {unknown} */
1247
+ environment: "test" | "live";
1248
+ };
1249
+ StoreUcpEntity: {
1250
+ /** @constant */
1251
+ version: "2026-10-30";
1252
+ /** Format: uri */
1253
+ spec: string;
1254
+ /** Format: uri */
1255
+ schema: string;
1256
+ };
1257
+ StoreUcpBinding: {
1258
+ /** @constant */
1259
+ version: "2026-10-30";
1260
+ /** Format: uri */
1261
+ spec: string;
1262
+ /** Format: uri */
1263
+ schema: string;
1264
+ /** @enum {unknown} */
1265
+ transport: "rest" | "mcp";
1266
+ /** Format: uri */
1267
+ endpoint: string;
1268
+ config: {
1269
+ merchant_id: string;
1270
+ /** @enum {unknown} */
1271
+ environment: "test" | "live";
1272
+ /** @enum {unknown} */
1273
+ authentication: "none" | "agent_bearer" | "relyon_key";
1274
+ /** @enum {unknown} */
1275
+ method: "GET" | "POST";
1276
+ /** Format: uri-template */
1277
+ product_detail_template?: string;
1278
+ /** @constant */
1279
+ human_checkout_required?: true;
1280
+ /** @constant */
1281
+ handoff?: "response.checkout_url";
1282
+ };
1283
+ } & (unknown & unknown);
1284
+ StoreUcpProblem: {
1285
+ title: string;
1286
+ status: number;
1287
+ code: string;
1288
+ detail: string;
1289
+ } & ({
1290
+ /** @constant */
1291
+ title?: "Not found";
1292
+ /** @constant */
1293
+ status?: 404;
1294
+ /** @constant */
1295
+ code?: "not_found";
1296
+ /** @constant */
1297
+ detail?: "Discovery is not configured.";
1298
+ } | {
1299
+ /** @constant */
1300
+ title?: "Discovery unavailable";
1301
+ /** @constant */
1302
+ status?: 503;
1303
+ /** @constant */
1304
+ code?: "discovery_unavailable";
1305
+ /** @constant */
1306
+ detail?: "Discovery is temporarily unavailable.";
1307
+ });
1308
+ FeedProblem: {
1309
+ /** Format: uri */
1310
+ type: string;
1311
+ title: string;
1312
+ /** @enum {unknown} */
1313
+ status: 404 | 503;
1314
+ detail: string;
1315
+ /** @enum {unknown} */
1316
+ code: "not_found" | "feed_unavailable";
1317
+ request_id: string;
1318
+ };
1319
+ FeedAcpProduct: {
1320
+ item_id: components["schemas"]["ProductId"];
1321
+ title: string;
1322
+ description: string;
1323
+ /** Format: uri */
1324
+ url: string;
1325
+ brand: string;
1326
+ seller_name: string;
1327
+ /** Format: uri */
1328
+ seller_url: string;
1329
+ /** Format: uri */
1330
+ image_url: string;
1331
+ price: string;
1332
+ availability: components["schemas"]["Availability"];
1333
+ /** @constant */
1334
+ is_eligible_search: true;
1335
+ /** @constant */
1336
+ is_eligible_checkout: false;
1337
+ gtin?: string;
1338
+ mpn?: string;
1339
+ };
1340
+ FeedProductGraph: {
1341
+ /** @constant */
1342
+ "@context": "https://schema.org";
1343
+ "@graph": components["schemas"]["FeedSchemaProduct"][];
1344
+ };
1345
+ FeedSchemaProduct: {
1346
+ /** @constant */
1347
+ "@type": "Product";
1348
+ /** Format: uri */
1349
+ "@id": string;
1350
+ sku: components["schemas"]["ProductId"];
1351
+ name: string;
1352
+ description: string;
1353
+ /** Format: uri */
1354
+ url: string;
1355
+ image: string[];
1356
+ brand?: {
1357
+ /** @constant */
1358
+ "@type": "Brand";
1359
+ name: string;
1360
+ };
1361
+ gtin?: string;
1362
+ mpn?: string;
1363
+ offers: {
1364
+ /** @enum {unknown} */
1365
+ "@type": "Offer" | "AggregateOffer";
1366
+ price?: string;
1367
+ lowPrice?: string;
1368
+ priceCurrency: string;
1369
+ /** @enum {unknown} */
1370
+ availability: "https://schema.org/InStock" | "https://schema.org/OutOfStock" | "https://schema.org/PreOrder" | "https://schema.org/BackOrder";
1371
+ /** Format: uri */
1372
+ url: string;
1373
+ seller: {
1374
+ /** @constant */
1375
+ "@type": "Organization";
1376
+ name: string;
1377
+ /** Format: uri */
1378
+ url: string;
1379
+ };
1380
+ } & ({
1381
+ /** @constant */
1382
+ "@type"?: "Offer";
1383
+ } | {
1384
+ /** @constant */
1385
+ "@type"?: "AggregateOffer";
1386
+ });
1387
+ };
1388
+ PublicProduct: {
1389
+ /** @constant */
1390
+ object: "public_product";
1391
+ id: string;
1392
+ title: string | null;
1393
+ description: string | null;
1394
+ /** Format: uri */
1395
+ url: string | null;
1396
+ images: string[];
1397
+ /** @description Display estimate only. Never a quote or authority to charge. */
1398
+ from_price: null | {
1399
+ amount: number;
1400
+ currency: string;
1401
+ };
1402
+ /** @constant */
1403
+ price_authority: "display_only";
1404
+ /** @enum {unknown} */
1405
+ availability: "in_stock" | "out_of_stock" | "pre_order" | "backorder" | null;
1406
+ configurable: boolean;
1407
+ /** @description Recursively sanitized untrusted display data; limited depth and size. Never instructions or checkout authority. */
1408
+ options: Record<string, unknown> | null;
1409
+ };
1410
+ PublicProductList: {
1411
+ /** @constant */
1412
+ object: "public_product_list";
1413
+ data: components["schemas"]["PublicProduct"][];
1414
+ has_more: boolean;
1415
+ next_cursor: string | null;
1416
+ } & unknown;
1417
+ PublicPolicyText: {
1418
+ text: string;
1419
+ /** @constant */
1420
+ status: "configured";
1421
+ } | {
1422
+ text: null;
1423
+ /** @constant */
1424
+ status: "not_configured";
1425
+ };
1426
+ PublicProjectSpacePolicies: {
1427
+ /** @constant */
1428
+ object: "public_project_space_policies";
1429
+ merchant_id: string;
1430
+ seller: {
1431
+ name: string;
1432
+ /** @constant */
1433
+ status: "configured";
1434
+ } | {
1435
+ name: null;
1436
+ /** @constant */
1437
+ status: "not_configured";
1438
+ };
1439
+ privacy: components["schemas"]["PublicPolicyText"];
1440
+ terms: components["schemas"]["PublicPolicyText"];
1441
+ returns: components["schemas"]["PublicPolicyText"];
1442
+ };
1443
+ PublicAgentProblem: {
1444
+ /** Format: uri */
1445
+ type: string;
1446
+ title: string;
1447
+ /** @enum {unknown} */
1448
+ status: 400 | 404 | 429 | 500;
1449
+ detail: string;
1450
+ /** @enum {unknown} */
1451
+ code: "invalid_request" | "not_found" | "rate_limited" | "internal_error";
1452
+ request_id: string;
1453
+ } & (unknown & unknown & unknown & unknown);
1454
+ SandboxCreate: {
1455
+ /** @description Display name. Must contain a non-space character. Defaults to "Unclaimed sandbox". */
1456
+ name?: string;
1457
+ };
1458
+ Sandbox: {
1459
+ /** @constant */
1460
+ object: "sandbox";
1461
+ id: string;
1462
+ name: string;
1463
+ /** @constant */
1464
+ livemode: false;
1465
+ /** @description Test publishable key. Returned once. */
1466
+ publishableKey: string;
1467
+ /** @description Test restricted key whose scopes never exceed the caller's. Server side only. Returned once. */
1468
+ restrictedKey: string;
1469
+ /**
1470
+ * Format: date-time
1471
+ * @description Registry expiry of the sandbox. Inert for this caller-attached path, which is born-claimed.
1472
+ */
1473
+ expiresAt: string;
1474
+ };
1475
+ /**
1476
+ * @description Problem details for createSandbox. Identical to Problem except that code
1477
+ * also admits invalid_value, which this operation uses for refused bodies.
1478
+ */
1479
+ SandboxProblem: {
1480
+ /** Format: uri */
1481
+ type: string;
1482
+ title: string;
1483
+ status: number;
1484
+ detail?: string;
1485
+ code: components["schemas"]["ErrorCode"] | "invalid_value";
1486
+ param?: string;
1487
+ request_id: string;
1488
+ errors?: {
1489
+ param: string;
1490
+ code: string;
1491
+ message: string;
1492
+ }[];
1493
+ };
1494
+ /** @description Exactly one of project_space_id or the deprecated store_id. */
1495
+ ProjectSpaceConnectCodeCreate: {
1496
+ project_space_id?: components["schemas"]["ProjectSpaceId"];
1497
+ /**
1498
+ * @deprecated
1499
+ * @description Deprecated alias of project_space_id, accepted during the rename window.
1500
+ */
1501
+ store_id?: components["schemas"]["ProjectSpaceId"];
1502
+ };
1503
+ /** @description A project space in the workspace of the caller. Responses use `prj_`; the deprecated `st_` form of the same ID is accepted on input. */
1504
+ ProjectSpaceId: string;
1505
+ ProjectSpaceConnectCode: {
1506
+ /** @constant */
1507
+ object: "project_space_connect_code";
1508
+ id: string;
1509
+ /** @description The one-time connect code. Returned exactly once; only its hash is stored. Expires ten minutes after issuance. */
1510
+ code: string;
1511
+ /** @constant */
1512
+ environment: "test";
1513
+ project_space_id: string;
1514
+ /**
1515
+ * @deprecated
1516
+ * @description Deprecated alias of project_space_id (the same project space), returned during the rename window.
1517
+ */
1518
+ store_id: string;
1519
+ /** Format: date-time */
1520
+ expires_at: string;
1521
+ };
1522
+ ProjectSpaceConnectCodeExchange: {
1523
+ /** @description The one-time connect code received from the connect redirect. */
1524
+ code: string;
1525
+ };
1526
+ ProjectSpaceConnectKey: {
1527
+ /** @constant */
1528
+ object: "project_space_connect_key";
1529
+ id: string;
1530
+ /** @constant */
1531
+ environment: "test";
1532
+ project_space_id: string;
1533
+ /**
1534
+ * @deprecated
1535
+ * @description Deprecated alias of project_space_id (the same project space), returned during the rename window.
1536
+ */
1537
+ store_id: string;
1538
+ prefix: string;
1539
+ last_four: string;
1540
+ scopes: string[];
1541
+ /** @description The restricted key, limited to this project space. Returned exactly once; store it immediately. */
1542
+ plaintext_key: string;
1543
+ /** Format: date-time */
1544
+ created_at: string;
1545
+ };
1546
+ /**
1547
+ * @description Problem details for the project space connect operations. Identical to Problem
1548
+ * except that code also admits invalid_value, which these operations use
1549
+ * for refused bodies.
1550
+ */
1551
+ ConnectProblem: {
1552
+ /** Format: uri */
1553
+ type: string;
1554
+ title: string;
1555
+ status: number;
1556
+ detail?: string;
1557
+ code: components["schemas"]["ErrorCode"] | "invalid_value";
1558
+ param?: string;
1559
+ request_id: string;
1560
+ errors?: {
1561
+ param: string;
1562
+ code: string;
1563
+ message: string;
1564
+ }[];
1565
+ };
1566
+ DoctorChallenge: {
1567
+ id: string;
1568
+ /** @constant */
1569
+ object: "doctor_challenge";
1570
+ /** @constant */
1571
+ type: "doctor.challenge";
1572
+ livemode: boolean;
1573
+ created: number;
1574
+ challenge: string;
1575
+ };
1576
+ /** @enum {string} */
1577
+ DoctorCheck: "keys" | "webhook" | "catalog" | "pricing" | "checkout";
1578
+ DoctorFailure: {
1579
+ check: components["schemas"]["DoctorCheck"];
1580
+ /** @enum {string} */
1581
+ code: "keys_missing" | "scopes_missing" | "webhook_missing" | "webhook_unavailable" | "webhook_ack_invalid" | "webhook_signature_mismatch" | "catalog_invalid" | "catalog_empty" | "pricing_configuration_invalid" | "pricing_timeout" | "pricing_quote_invalid" | "pricing_unavailable" | "checkout_unavailable" | "hosted_page_unavailable" | "checkout_cleanup_failed" | "check_unavailable";
1582
+ explanation: string;
1583
+ fix: string;
1584
+ };
1585
+ DoctorResult: {
1586
+ /** @constant */
1587
+ object: "integration_doctor";
1588
+ livemode: boolean;
1589
+ /** @enum {unknown} */
1590
+ status: "pass" | "fail";
1591
+ checks: [
1592
+ "keys",
1593
+ "webhook",
1594
+ "catalog",
1595
+ "pricing",
1596
+ "checkout"
1597
+ ];
1598
+ failures: components["schemas"]["DoctorFailure"][];
1599
+ } & ({
1600
+ /** @constant */
1601
+ status?: "pass";
1602
+ failures?: unknown;
1603
+ } | {
1604
+ /** @constant */
1605
+ status?: "fail";
1606
+ failures?: unknown;
1607
+ });
1608
+ /** @description false in sandbox, true in live. */
1609
+ Livemode: boolean;
1610
+ /** @description Unix seconds. */
1611
+ Timestamp: number;
1612
+ /** @description ISO 4217, upper case. */
1613
+ Currency: string;
1614
+ Money: {
1615
+ /** @description Minor units. */
1616
+ amount: number;
1617
+ currency: components["schemas"]["Currency"];
1618
+ };
1619
+ /** @description Your own key/value pairs. Never shown to shopping agents. */
1620
+ Metadata: {
1621
+ [key: string]: string;
1622
+ };
1623
+ ProductId: string;
1624
+ /**
1625
+ * @description `rejected` products are stored but appear in no feed and can't be sold.
1626
+ * @enum {unknown}
1627
+ */
1628
+ ProductStatus: "published" | "rejected";
1629
+ /** @enum {unknown} */
1630
+ Availability: "in_stock" | "out_of_stock" | "pre_order" | "backorder";
1631
+ /** @description Our addition to the ACP fields. Tells a shopping agent what it may do without guessing. */
1632
+ ProductAgent: {
1633
+ /**
1634
+ * @description false hides the product from agent search, the store's agent feeds and the manifest. Web checkout is unaffected.
1635
+ * @default true
1636
+ */
1637
+ visible: boolean;
1638
+ /**
1639
+ * @description false keeps the product browsable by agents but out of quote_cart.
1640
+ * @default true
1641
+ */
1642
+ purchasable: boolean;
1643
+ /** @description Options the agent has to confirm with the shopper before quoting, such as size or engraving text. Answers go in the line item's `options`. */
1644
+ must_ask?: {
1645
+ name: string;
1646
+ prompt: string;
1647
+ choices?: string[];
1648
+ }[];
1649
+ /** @description Per order, for agent-channel sessions only. */
1650
+ max_quantity?: number;
1651
+ restrictions?: {
1652
+ min_age?: number;
1653
+ allowed_countries?: string[];
1654
+ /** @description The agent may quote but the shopper must complete checkout themselves. Always true until delegated payments ship. */
1655
+ human_checkout_only?: boolean;
1656
+ };
1657
+ };
1658
+ /**
1659
+ * @description Opaque to Relyon. Your own description of a configurable item's choices (bundle
1660
+ * contents, add-ons, engraving, plan) on a product, or the choices made on a line
1661
+ * item. Relyon stores it and passes it on untouched, so your own system can price the
1662
+ * choices. It never prices from it. String values shown to agents are sanitized, and a value
1663
+ * that looks like card data is refused with `card_data_rejected`. At most 8 KB as JSON.
1664
+ */
1665
+ Options: Record<string, unknown>;
1666
+ /**
1667
+ * @description One entry in Relyon's index: discovery fields only. Required fields (title,
1668
+ * description, url, images, from_price, availability) are enforced by Core on sync,
1669
+ * not by schema rejection: a product missing one is stored as `rejected` with an
1670
+ * issue per field, so the app sees every problem at once. Unknown fields are refused.
1671
+ */
1672
+ ProductInput: components["schemas"]["ProductFields"];
1673
+ ProductFields: {
1674
+ /** @description The ID your own system understands. Defaults to the index `id`. Relyon maps an agent's pick to this ID, and carts the store sends name products by it. */
1675
+ merchant_product_id?: components["schemas"]["ProductId"];
1676
+ /** @description Shared by every variant of one item. */
1677
+ group_id?: string;
1678
+ title: string;
1679
+ /** @description Plain text. */
1680
+ description?: string;
1681
+ /** Format: uri */
1682
+ url?: string;
1683
+ brand?: string;
1684
+ /** @description The first image is the main one. */
1685
+ images?: string[];
1686
+ /**
1687
+ * @description Display only: the lowest price a shopper could pay, shown as "from" in feeds and
1688
+ * agent search. Never charged; the store prices every cart itself.
1689
+ */
1690
+ from_price?: components["schemas"]["Money"];
1691
+ availability?: components["schemas"]["Availability"];
1692
+ /**
1693
+ * @description true when the shopper must make choices your system prices (bundles, add-ons, plans). Agents see `options` and must pass choices on the line item.
1694
+ * @default false
1695
+ */
1696
+ configurable: boolean;
1697
+ options?: components["schemas"]["Options"];
1698
+ gtin?: string;
1699
+ mpn?: string;
1700
+ category?: string;
1701
+ attributes?: {
1702
+ color?: string;
1703
+ size?: string;
1704
+ material?: string;
1705
+ /** @enum {unknown} */
1706
+ gender?: "male" | "female" | "unisex";
1707
+ /** @enum {unknown} */
1708
+ age_group?: "newborn" | "infant" | "toddler" | "kids" | "adult";
1709
+ };
1710
+ dimensions?: {
1711
+ length: number;
1712
+ width: number;
1713
+ height: number;
1714
+ /** @enum {unknown} */
1715
+ unit: "cm" | "in";
1716
+ };
1717
+ weight?: {
1718
+ value: number;
1719
+ /** @enum {unknown} */
1720
+ unit: "g" | "kg" | "oz" | "lb";
1721
+ };
1722
+ /** @description Display only. The store prices shipping in each cart itself. */
1723
+ shipping?: {
1724
+ country: string;
1725
+ region?: string;
1726
+ service?: string;
1727
+ price: components["schemas"]["Money"];
1728
+ }[];
1729
+ returns?: {
1730
+ days?: number;
1731
+ /** Format: uri */
1732
+ policy_url?: string;
1733
+ };
1734
+ agent?: components["schemas"]["ProductAgent"];
1735
+ metadata?: components["schemas"]["Metadata"];
1736
+ /**
1737
+ * @description Omitted means false. True when buying this product starts a recurring charge, such as a membership or a
1738
+ * subscribe-and-save plan. Agent surfaces can't sell subscriptions, so the product is not
1739
+ * checkout-eligible on any channel. Added in revision 2026-10-18.
1740
+ */
1741
+ subscription?: boolean;
1742
+ /**
1743
+ * @description Omitted means false. True when each unit is made to the shopper's order, such as engraving or custom
1744
+ * printing. Not checkout-eligible on any channel. Added in revision 2026-10-18.
1745
+ */
1746
+ personalized?: boolean;
1747
+ /**
1748
+ * @description Omitted means false. True when the law limits who may buy this product (alcohol, tobacco, knives and the
1749
+ * like). Agent surfaces can't verify age, so the product is not checkout-eligible on any
1750
+ * channel. A product with `agent.restrictions.min_age` above 0 is treated as age
1751
+ * restricted too, whatever this flag says; `min_age` keeps its own meaning for agent
1752
+ * quotes. Added in revision 2026-10-18.
1753
+ */
1754
+ age_restricted?: boolean;
1755
+ };
1756
+ Product: components["schemas"]["ProductFields"] & {
1757
+ id: components["schemas"]["ProductId"];
1758
+ /** @constant */
1759
+ object: "product";
1760
+ livemode: components["schemas"]["Livemode"];
1761
+ status: components["schemas"]["ProductStatus"];
1762
+ issues: components["schemas"]["CatalogIssue"][];
1763
+ /** @description Share of recommended fields filled. */
1764
+ readiness: number;
1765
+ created: components["schemas"]["Timestamp"];
1766
+ updated: components["schemas"]["Timestamp"];
1767
+ checkout_eligible?: components["schemas"]["ChannelCheckoutEligible"];
1768
+ checkout_ineligible_reasons?: components["schemas"]["ChannelCheckoutIneligibleReasons"];
1769
+ };
1770
+ /**
1771
+ * @description Why a product can't be bought through a channel. Added in revision 2026-10-18.
1772
+ * `subscription`, `personalized` and `age_restricted` come from the product's flags
1773
+ * (`age_restricted` also from `agent.restrictions.min_age` above 0). `pre_order` and
1774
+ * `out_of_stock` come from `availability`; `backorder` counts as `out_of_stock`. `missing_fields`
1775
+ * means a field the channel requires is missing (the channel's issues in
1776
+ * `/v1/catalog/validate` name each one). `store_policy_incomplete` means the store
1777
+ * policies are not complete (`StorePolicies.complete` is false), which makes every product
1778
+ * ineligible on every channel.
1779
+ * @enum {unknown}
1780
+ */
1781
+ CheckoutIneligibleReason: "subscription" | "pre_order" | "personalized" | "age_restricted" | "missing_fields" | "out_of_stock" | "store_policy_incomplete";
1782
+ /**
1783
+ * @description Read-only. Whether the product can be bought through each channel, computed on every
1784
+ * read from the product, the merchant's flags and the store policies. Added in revision
1785
+ * 2026-10-18.
1786
+ */
1787
+ ChannelCheckoutEligible: {
1788
+ google: boolean;
1789
+ chatgpt: boolean;
1790
+ };
1791
+ /**
1792
+ * @description Read-only. Every reason the product can't be bought through each channel; empty for a
1793
+ * channel where it is eligible. Added in revision 2026-10-18.
1794
+ */
1795
+ ChannelCheckoutIneligibleReasons: {
1796
+ google: components["schemas"]["CheckoutIneligibleReason"][];
1797
+ chatgpt: components["schemas"]["CheckoutIneligibleReason"][];
1798
+ };
1799
+ ProductList: {
1800
+ /** @constant */
1801
+ object: "list";
1802
+ data: components["schemas"]["Product"][];
1803
+ has_more: boolean;
1804
+ };
1805
+ CatalogIssue: {
1806
+ product_id?: components["schemas"]["ProductId"];
1807
+ /**
1808
+ * @description Errors block publishing; warnings lower readiness.
1809
+ * @enum {unknown}
1810
+ */
1811
+ severity: "error" | "warning";
1812
+ /** @description JSON path inside the product, such as `price.currency`. */
1813
+ field: string;
1814
+ /** @enum {unknown} */
1815
+ code: "required_field_missing" | "invalid_value" | "too_long" | "currency_mismatch" | "configurable_needs_merchant_pricing" | "recommended_field_missing" | "instruction_like_text_removed" | "seller_details_missing" | "product_not_checkout_eligible" | "store_policy_incomplete";
1816
+ message: string;
1817
+ };
1818
+ CatalogValidation: {
1819
+ /** @constant */
1820
+ object: "catalog_validation";
1821
+ /** @description true when there are no errors. */
1822
+ valid: boolean;
1823
+ readiness: number;
1824
+ issues: components["schemas"]["CatalogIssue"][];
1825
+ /**
1826
+ * @description The same checks per channel, added in revision 2026-10-18. They never change
1827
+ * the top-level `valid`, `readiness` or `issues`.
1828
+ */
1829
+ channels?: {
1830
+ google: components["schemas"]["CatalogChannelValidation"];
1831
+ chatgpt: components["schemas"]["CatalogChannelValidation"];
1832
+ };
1833
+ };
1834
+ /**
1835
+ * @description One channel's view of the checked products, with the same error/warning model as the
1836
+ * catalog. Errors make a product ineligible for checkout on the channel; warnings only
1837
+ * lower the channel's readiness. Store-policy issues have no `product_id` because they
1838
+ * apply to every product. Added in revision 2026-10-18.
1839
+ */
1840
+ CatalogChannelValidation: {
1841
+ /** @description true when the channel has no errors, so every checked product is checkout-eligible there. */
1842
+ valid: boolean;
1843
+ /** @description Share of the channel's recommended fields filled, averaged over the checked products. */
1844
+ readiness: number;
1845
+ issues: components["schemas"]["CatalogIssue"][];
1846
+ };
1847
+ Address: {
1848
+ name: string;
1849
+ line1: string;
1850
+ line2?: string;
1851
+ city: string;
1852
+ region?: string;
1853
+ postal_code: string;
1854
+ country: string;
1855
+ };
1856
+ LineItemInput: {
1857
+ product_id: components["schemas"]["ProductId"];
1858
+ quantity: number;
1859
+ /** @description The shopper's choices, including answers to `agent.must_ask`. Passed on untouched. */
1860
+ options?: components["schemas"]["Options"];
1861
+ };
1862
+ /** @description Copied from the locked quote. Never set by the caller. */
1863
+ LineItem: {
1864
+ id: string;
1865
+ product_id: components["schemas"]["ProductId"];
1866
+ merchant_product_id: components["schemas"]["ProductId"];
1867
+ title: string;
1868
+ quantity: number;
1869
+ options?: components["schemas"]["Options"];
1870
+ /** @description As quoted. Omitted when the merchant prices the line only as a whole, such as a bundle. */
1871
+ unit_amount?: number;
1872
+ /** @description Line-level discount as quoted. */
1873
+ discount?: number;
1874
+ /** @description The line's total as quoted, after line discounts. */
1875
+ amount: number;
1876
+ };
1877
+ /** @description All minor units. total = subtotal − discount + shipping + tax. `total` is the grand total charged. */
1878
+ Totals: {
1879
+ currency: components["schemas"]["Currency"];
1880
+ subtotal: number;
1881
+ discount: number;
1882
+ shipping: number;
1883
+ tax: number;
1884
+ total: number;
1885
+ };
1886
+ ShippingOption: {
1887
+ id: string;
1888
+ label: string;
1889
+ amount: number;
1890
+ /**
1891
+ * @description How the shopper receives the order, using the UCP 2026-08-25 fulfillment
1892
+ * types. `pickup` means the shopper collects it. Omitted means shipping.
1893
+ * @enum {unknown}
1894
+ */
1895
+ fulfillment_type?: "shipping" | "pickup";
1896
+ delivery_estimate?: components["schemas"]["DeliveryEstimate"];
1897
+ };
1898
+ /**
1899
+ * @description When a shipped order is expected to arrive, or when a pickup order is
1900
+ * expected to be ready to collect. `latest` is never before `earliest`.
1901
+ * Display only; it is not a delivery guarantee.
1902
+ */
1903
+ DeliveryEstimate: {
1904
+ earliest: components["schemas"]["Timestamp"];
1905
+ latest: components["schemas"]["Timestamp"];
1906
+ };
1907
+ /**
1908
+ * @description Same states as ACP checkout sessions.
1909
+ * not_ready_for_payment → ready_for_payment | canceled | expired.
1910
+ * ready_for_payment → processing | not_ready_for_payment (after an update) | canceled | expired.
1911
+ * processing → completed | ready_for_payment (on decline).
1912
+ * completed, canceled and expired are final.
1913
+ * @enum {unknown}
1914
+ */
1915
+ CheckoutStatus: "not_ready_for_payment" | "ready_for_payment" | "processing" | "completed" | "canceled" | "expired";
1916
+ MissingDetail: {
1917
+ /** @description Such as `shipping_address` or `line_items[0].options.size`. */
1918
+ field: string;
1919
+ /** @enum {unknown} */
1920
+ code: "required" | "choose_one" | "unavailable" | "options_required";
1921
+ message?: string;
1922
+ };
1923
+ /** @description Set by the agent gateway, never by the caller. */
1924
+ AgentIdentity: {
1925
+ /** @enum {unknown} */
1926
+ tier: "verified" | "known" | "unverified";
1927
+ /** @enum {unknown} */
1928
+ network?: "visa_tap" | "mastercard_agent_pay" | "relyon";
1929
+ key_id?: string;
1930
+ /** @description Self-declared; informational only. */
1931
+ agent_name?: string;
1932
+ };
1933
+ /** @description Passed on as typed. Relyon doesn't check or apply them; the store does when it prices the cart. */
1934
+ CouponCodes: string[];
1935
+ /** @description Carries no amounts. Prices, discounts, tax and shipping come from the locked quote; a request with an amount field is refused with `unknown_field`. */
1936
+ CheckoutSessionCreate: {
1937
+ line_items: components["schemas"]["LineItemInput"][];
1938
+ currency?: components["schemas"]["Currency"];
1939
+ /** Format: email */
1940
+ customer_email?: string;
1941
+ shipping_address?: components["schemas"]["Address"];
1942
+ shipping_option_id?: string;
1943
+ /**
1944
+ * @description How the shopper receives the order. Omitted means shipping. `pickup`
1945
+ * needs no `shipping_address`; it needs a pickup `shipping_option_id` and
1946
+ * `customer_phone` or `customer_email`.
1947
+ * @enum {unknown}
1948
+ */
1949
+ fulfillment_type?: "shipping" | "pickup";
1950
+ /** @description The shopper's phone number in E.164 format. */
1951
+ customer_phone?: string;
1952
+ coupon_codes?: components["schemas"]["CouponCodes"];
1953
+ /** Format: uri */
1954
+ success_url?: string;
1955
+ /** Format: uri */
1956
+ cancel_url?: string;
1957
+ /** @description Your own order or cart ID, echoed on the order and events. */
1958
+ client_reference_id?: string;
1959
+ metadata?: components["schemas"]["Metadata"];
1960
+ };
1961
+ CheckoutSessionUpdate: {
1962
+ line_items?: components["schemas"]["LineItemInput"][];
1963
+ /** Format: email */
1964
+ customer_email?: string;
1965
+ shipping_address?: components["schemas"]["Address"];
1966
+ shipping_option_id?: string;
1967
+ /**
1968
+ * @description How the shopper receives the order. Omitted means shipping. `pickup`
1969
+ * needs no `shipping_address`; it needs a pickup `shipping_option_id` and
1970
+ * `customer_phone` or `customer_email`.
1971
+ * @enum {unknown}
1972
+ */
1973
+ fulfillment_type?: "shipping" | "pickup";
1974
+ /** @description The shopper's phone number in E.164 format. */
1975
+ customer_phone?: string;
1976
+ coupon_codes?: components["schemas"]["CouponCodes"];
1977
+ metadata?: components["schemas"]["Metadata"];
1978
+ };
1979
+ CheckoutSession: {
1980
+ id: string;
1981
+ /** @constant */
1982
+ object: "checkout_session";
1983
+ livemode: components["schemas"]["Livemode"];
1984
+ status: components["schemas"]["CheckoutStatus"];
1985
+ /** @enum {unknown} */
1986
+ channel: "web" | "agent";
1987
+ /**
1988
+ * @description Where the shopper or agent started this checkout. null for the
1989
+ * merchant's own web checkout. Set by Relyon, never by the caller.
1990
+ * @enum {unknown}
1991
+ */
1992
+ surface?: "google" | "chatgpt" | "mcp" | null;
1993
+ /**
1994
+ * @description The protocol the session was created through. `relyon` is the
1995
+ * /v1 API itself. Set by Relyon, never by the caller.
1996
+ * @enum {unknown}
1997
+ */
1998
+ protocol?: "ucp" | "acp" | "mcp" | "relyon";
1999
+ line_items: components["schemas"]["LineItem"][];
2000
+ /** @description Copied from `quote.totals` once a quote is locked; zeros before that. */
2001
+ totals: components["schemas"]["Totals"];
2002
+ /** @description Set when status becomes ready_for_payment. Payment charges exactly quote.totals.total. If a re-price before payment differs, payment is refused with `quote_changed`. */
2003
+ quote: components["schemas"]["LockedQuote"] | null;
2004
+ /** @description Same as quote.locked_at. Kept for ACP mapping. */
2005
+ totals_locked_at?: components["schemas"]["Timestamp"] | null;
2006
+ coupon_codes?: components["schemas"]["CouponCodes"];
2007
+ /** @description Empty exactly when status is ready_for_payment or later. */
2008
+ missing: components["schemas"]["MissingDetail"][];
2009
+ /** Format: email */
2010
+ customer_email?: string;
2011
+ shipping_address?: components["schemas"]["Address"];
2012
+ shipping_options?: components["schemas"]["ShippingOption"][];
2013
+ shipping_option_id?: string;
2014
+ /**
2015
+ * @description How the shopper receives the order. Omitted means shipping.
2016
+ * @enum {unknown}
2017
+ */
2018
+ fulfillment_type?: "shipping" | "pickup";
2019
+ /** @description The shopper's phone number in E.164 format. */
2020
+ customer_phone?: string;
2021
+ /**
2022
+ * Format: uri
2023
+ * @description Hosted payment page. The only place card details are entered.
2024
+ */
2025
+ checkout_url: string;
2026
+ /** Format: uri */
2027
+ success_url?: string;
2028
+ /** Format: uri */
2029
+ cancel_url?: string;
2030
+ expires_at: components["schemas"]["Timestamp"];
2031
+ order_id?: string | null;
2032
+ agent?: components["schemas"]["AgentIdentity"];
2033
+ client_reference_id?: string;
2034
+ metadata?: components["schemas"]["Metadata"];
2035
+ created: components["schemas"]["Timestamp"];
2036
+ };
2037
+ /** @enum {unknown} */
2038
+ FulfillmentStatus: "unfulfilled" | "shipped" | "delivered" | "canceled";
2039
+ FulfillmentUpdate: {
2040
+ /** @enum {unknown} */
2041
+ status: "shipped" | "delivered" | "canceled";
2042
+ carrier?: string;
2043
+ tracking_number?: string;
2044
+ /** Format: uri */
2045
+ tracking_url?: string;
2046
+ };
2047
+ Order: {
2048
+ id: string;
2049
+ /** @constant */
2050
+ object: "order";
2051
+ livemode: components["schemas"]["Livemode"];
2052
+ checkout_session_id: string;
2053
+ /** @enum {unknown} */
2054
+ channel: "web" | "agent";
2055
+ line_items: components["schemas"]["LineItem"][];
2056
+ totals: components["schemas"]["Totals"];
2057
+ /** @description The quote that was charged, kept for refunds, disputes and reconciliation. */
2058
+ quote: components["schemas"]["LockedQuote"];
2059
+ /** @enum {unknown} */
2060
+ payment_status: "paid" | "partially_refunded" | "refunded" | "disputed";
2061
+ payment_id?: string;
2062
+ /**
2063
+ * @description How the payment reached the gateway. `hosted_card` is the hosted page's card fields, `wallet_token` a Google Pay token, `delegated_token` is reserved. Matches the payment ledger and the `payment_method_kind` in this order's payment events. Absent when unknown.
2064
+ * @enum {unknown}
2065
+ */
2066
+ payment_method_kind?: "hosted_card" | "wallet_token" | "delegated_token";
2067
+ fulfillment_status: components["schemas"]["FulfillmentStatus"];
2068
+ fulfillment?: {
2069
+ carrier?: string;
2070
+ tracking_number?: string;
2071
+ /** Format: uri */
2072
+ tracking_url?: string;
2073
+ updated?: components["schemas"]["Timestamp"];
2074
+ };
2075
+ shipping_address?: components["schemas"]["Address"];
2076
+ /** Format: email */
2077
+ customer_email?: string;
2078
+ agent?: components["schemas"]["AgentIdentity"];
2079
+ client_reference_id?: string;
2080
+ /** @description One ID per order through the app, Core and processor calls. */
2081
+ tracking_id?: string;
2082
+ metadata?: components["schemas"]["Metadata"];
2083
+ created: components["schemas"]["Timestamp"];
2084
+ };
2085
+ /** @enum {unknown} */
2086
+ EventType: "checkout.completed" | "payment.succeeded" | "payment.failed" | "refund.created" | "refund.succeeded" | "dispute.opened" | "dispute.closed" | "catalog.synced" | "catalog.rejected" | "order.fulfillment_updated" | "agent.blocked" | "merchant.approved" | "domain.verified" | "domain.failed" | "channel.connected" | "channel.paused" | "channel.resumed" | "channel.disconnected" | "channel.product_issue" | "catalog.drift_detected" | "agent_rules.updated";
2087
+ Event: {
2088
+ /** @description Same on every retry and replay. De-duplicate on this. */
2089
+ id: string;
2090
+ /** @constant */
2091
+ object: "event";
2092
+ type: components["schemas"]["EventType"];
2093
+ created: components["schemas"]["Timestamp"];
2094
+ api_version: string;
2095
+ livemode: components["schemas"]["Livemode"];
2096
+ data: {
2097
+ /** @description A snapshot of the object when the event happened. Re-fetch it when order matters. */
2098
+ object: {
2099
+ id: string;
2100
+ object: string;
2101
+ };
2102
+ };
2103
+ };
2104
+ EventList: {
2105
+ /** @constant */
2106
+ object: "list";
2107
+ data: components["schemas"]["Event"][];
2108
+ has_more: boolean;
2109
+ };
2110
+ WebhookEndpoint: {
2111
+ id: string;
2112
+ /** @constant */
2113
+ object: "webhook_endpoint";
2114
+ livemode: components["schemas"]["Livemode"];
2115
+ /** Format: uri */
2116
+ url: string;
2117
+ events: string[];
2118
+ description?: string;
2119
+ /** @enum {unknown} */
2120
+ status: "enabled" | "disabled";
2121
+ /** @description Last time the endpoint accepted a signed test event. doctor fails while null. */
2122
+ last_verified_at?: components["schemas"]["Timestamp"] | null;
2123
+ created: components["schemas"]["Timestamp"];
2124
+ };
2125
+ /** @enum {unknown} */
2126
+ AgentTier: "verified" | "known" | "unverified";
2127
+ /** @description An agent as the gateway identifies it. Omit `key_id` to match every agent on that network. */
2128
+ AgentRef: {
2129
+ /** @enum {unknown} */
2130
+ network: "visa_tap" | "mastercard_agent_pay" | "relyon";
2131
+ key_id?: string;
2132
+ };
2133
+ AgentPolicyInput: components["schemas"]["AgentPolicyFields"];
2134
+ AgentPolicyFields: {
2135
+ /** @description false turns off the Commerce MCP endpoint and feeds stay up. */
2136
+ enabled: boolean;
2137
+ /**
2138
+ * @description Global pause. While true, agents can still browse but every quote and checkout hand-off from an agent is refused with `agent_policy_denied`. Web checkout is unaffected.
2139
+ * @default false
2140
+ */
2141
+ paused: boolean;
2142
+ /** @description When non-empty, only these agents may quote and hand off checkout (still subject to `allowed_tiers`). Empty means any agent in an allowed tier. */
2143
+ allowed_agents?: components["schemas"]["AgentRef"][];
2144
+ /** @description Never allowed to quote or hand off checkout, whatever their tier. Wins over `allowed_agents`. */
2145
+ blocked_agents?: components["schemas"]["AgentRef"][];
2146
+ /** @description Tiers that may quote and hand off checkout. `[verified]` means verified agents only. Unverified agents can always browse, rate-limited. */
2147
+ allowed_tiers: components["schemas"]["AgentTier"][];
2148
+ per_order_limit?: components["schemas"]["Money"];
2149
+ /** @description Across all agent-channel sessions per agent key per day. */
2150
+ daily_limit?: components["schemas"]["Money"];
2151
+ max_quantity_per_item?: number;
2152
+ /** @description Visible to agents but never purchasable by them. To hide a product from agents, set its `agent.visible` to false. */
2153
+ blocked_product_ids?: components["schemas"]["ProductId"][];
2154
+ /** @description Shipping destinations agents may quote. Empty means all. */
2155
+ allowed_countries?: string[];
2156
+ /**
2157
+ * @description Fixed until delegated payments ship (Phase 4). Agents hand off checkout_url; a person pays.
2158
+ * @default true
2159
+ * @constant
2160
+ */
2161
+ require_human_checkout: true;
2162
+ /** @description Optional AP2 v0.2 Checkout Mandate requirement. Absent means false. Session administrators only may change agent policy. When true, UCP complete requires a verified mandate; ACP completes and Commerce MCP checkout links are refused with mandate_required because they cannot carry mandates. Never bypasses require_human_checkout. */
2163
+ require_checkout_mandate?: boolean;
2164
+ /** @description Optional narrowing of Relyon's environment-specific managed AP2 trust list. Entries are exact platform profile origins or SD-JWT issuer identifiers already on that list; unknown entries are refused on save. Absent accepts all managed sources; empty accepts none. Both platform and issuer must be accepted. Only organization session administrators may change this setting. */
2165
+ accepted_mandate_sources?: string[];
2166
+ };
2167
+ AgentPolicy: components["schemas"]["AgentPolicyFields"] & {
2168
+ /** @constant */
2169
+ object: "agent_policy";
2170
+ livemode: components["schemas"]["Livemode"];
2171
+ updated: components["schemas"]["Timestamp"];
2172
+ };
2173
+ /**
2174
+ * @description Who priced a checkout session's locked quote. Always `merchant`: the store prices
2175
+ * every cart itself. Flat pricing from the index was removed in revision 2026-10-19.
2176
+ * @enum {unknown}
2177
+ */
2178
+ PricingMode: "merchant";
2179
+ /** @description Terms the shopper agrees to, frozen with the quote and shown on the payment page. */
2180
+ QuoteTerms: {
2181
+ /** @description Plain text, sanitized. Such as delivery estimate or what a bundle includes. */
2182
+ summary?: string;
2183
+ /** Format: uri */
2184
+ terms_url?: string;
2185
+ returns?: {
2186
+ days?: number;
2187
+ /** Format: uri */
2188
+ policy_url?: string;
2189
+ };
2190
+ };
2191
+ /** @description The frozen answer Relyon charges. Never changes after `locked_at`; a re-price makes a new quote. */
2192
+ LockedQuote: {
2193
+ id: string;
2194
+ /** @constant */
2195
+ object: "quote";
2196
+ pricing_mode: components["schemas"]["PricingMode"];
2197
+ /** @description The store's own reference for the priced cart, or null. */
2198
+ merchant_reference: string | null;
2199
+ totals: components["schemas"]["Totals"];
2200
+ discounts?: {
2201
+ code?: string;
2202
+ label: string;
2203
+ amount: number;
2204
+ }[];
2205
+ terms: components["schemas"]["QuoteTerms"];
2206
+ locked_at: components["schemas"]["Timestamp"];
2207
+ expires_at: components["schemas"]["Timestamp"];
2208
+ };
2209
+ /**
2210
+ * @description Stable machine-readable error codes. Messages may change; codes don't.
2211
+ * @enum {unknown}
2212
+ */
2213
+ ErrorCode: "authentication_required" | "invalid_api_key" | "key_environment_mismatch" | "permission_denied" | "invalid_request" | "unknown_field" | "not_found" | "idempotency_key_required" | "idempotency_key_reused" | "card_data_rejected" | "unsupported_version" | "rate_limited" | "product_not_purchasable" | "product_rejected" | "checkout_not_ready" | "quote_changed" | "checkout_expired" | "checkout_already_final" | "currency_mismatch" | "agent_policy_denied" | "agent_signature_invalid" | "agent_limit_exceeded" | "internal_error" | "domain_not_verified" | "channel_not_connected" | "channel_paused" | "product_not_checkout_eligible" | "store_policy_incomplete" | "amount_mismatch" | "processor_not_configured" | "provider_not_available" | "agent_refused" | "mandate_required" | "cart_changed" | "project_space_policy_incomplete" | "project_space_archived" | "project_space_required" | "live_not_available";
2214
+ Problem: {
2215
+ /**
2216
+ * Format: uri
2217
+ * @description https://docs.relyon.dev/errors/<code>
2218
+ */
2219
+ type: string;
2220
+ title: string;
2221
+ status: number;
2222
+ detail?: string;
2223
+ code: components["schemas"]["ErrorCode"];
2224
+ /** @description The request field at fault, as a JSON path. */
2225
+ param?: string;
2226
+ request_id: string;
2227
+ /** @description Every field problem at once, for validation failures. */
2228
+ errors?: {
2229
+ param: string;
2230
+ code: string;
2231
+ message: string;
2232
+ }[];
2233
+ };
2234
+ StoreReturnPolicy: {
2235
+ /** @description Days after delivery or pickup that a return is accepted. 0 means no returns. */
2236
+ window_days: number;
2237
+ /**
2238
+ * @description Who pays for a return. `free`: the store does. `buyer_pays`: the shopper
2239
+ * pays their own return shipping. `fixed`: the shopper pays `cost_amount`.
2240
+ * @enum {unknown}
2241
+ */
2242
+ cost: "free" | "buyer_pays" | "fixed";
2243
+ /** @description Required when `cost` is `fixed`; not allowed otherwise. */
2244
+ cost_amount?: components["schemas"]["Money"];
2245
+ /** Format: uri */
2246
+ policy_url?: string;
2247
+ /**
2248
+ * @description Optional return scope. Absent retains legacy behavior, including zero days
2249
+ * meaning no returns. all applies to any item; zero still means no returns.
2250
+ * defective_only qualifies the window and cost to items arriving defective
2251
+ * or damaged only, never general returns. At zero days no reporting period
2252
+ * is promised; consult the policy and conditions. none accepts no returns
2253
+ * and requires window_days zero; cost fields do not advertise an offer.
2254
+ * @enum {string}
2255
+ */
2256
+ scope?: "all" | "defective_only" | "none";
2257
+ /** @description Plain-text return conditions. HTML and script markup are refused. */
2258
+ conditions?: string;
2259
+ } & unknown;
2260
+ /** @description How shoppers reach the store. Agent surfaces show these after a purchase. */
2261
+ StoreSupportContact: {
2262
+ /** Format: email */
2263
+ email?: string;
2264
+ /** @description E.164 format. */
2265
+ phone?: string;
2266
+ /** Format: uri */
2267
+ url?: string;
2268
+ };
2269
+ /** @description A notice the store must show shoppers, such as a legally required warning. */
2270
+ ConsumerNotice: {
2271
+ /** @description Show only to shoppers in this country. Omit to show everywhere. */
2272
+ country?: string;
2273
+ /** @description Plain text. Sanitized. */
2274
+ text: string;
2275
+ };
2276
+ StorePoliciesFields: {
2277
+ returns?: components["schemas"]["StoreReturnPolicy"];
2278
+ support?: components["schemas"]["StoreSupportContact"];
2279
+ consumer_notices?: components["schemas"]["ConsumerNotice"][];
2280
+ /**
2281
+ * Format: uri
2282
+ * @description Absolute HTTPS shipping policy URL without credentials. Optional; not part of completeness.
2283
+ */
2284
+ shipping_policy_url?: string;
2285
+ /**
2286
+ * Format: uri
2287
+ * @description Absolute HTTPS privacy policy URL without credentials. Optional; not part of completeness.
2288
+ */
2289
+ privacy_policy_url?: string;
2290
+ /**
2291
+ * Format: uri
2292
+ * @description Absolute HTTPS terms URL without credentials. Optional; not part of completeness.
2293
+ */
2294
+ terms_url?: string;
2295
+ };
2296
+ ProjectSpacePoliciesInput: components["schemas"]["StorePoliciesFields"];
2297
+ /**
2298
+ * @deprecated
2299
+ * @description Deprecated alias of ProjectSpacePoliciesInput.
2300
+ */
2301
+ StorePoliciesInput: components["schemas"]["StorePoliciesFields"];
2302
+ ProjectSpacePolicies: components["schemas"]["StorePoliciesFields"] & {
2303
+ /** @constant */
2304
+ object: "project_space_policies";
2305
+ livemode: components["schemas"]["Livemode"];
2306
+ /** @description true exactly when `missing` is empty. */
2307
+ complete: boolean;
2308
+ /**
2309
+ * @description What agent surfaces still need. `returns` and `returns.policy_url`
2310
+ * are needed for every surface. `support` means neither a support
2311
+ * email nor a support URL is set.
2312
+ */
2313
+ missing: ("returns" | "returns.policy_url" | "support")[];
2314
+ updated: components["schemas"]["Timestamp"];
2315
+ };
2316
+ /**
2317
+ * @deprecated
2318
+ * @description Deprecated legacy shape returned only by the deprecated `/v1/store_policies` alias.
2319
+ */
2320
+ StorePolicies: components["schemas"]["StorePoliciesFields"] & {
2321
+ /** @constant */
2322
+ object: "store_policies";
2323
+ livemode: components["schemas"]["Livemode"];
2324
+ /** @description true exactly when `missing` is empty. */
2325
+ complete: boolean;
2326
+ /**
2327
+ * @description What agent surfaces still need. `returns` and `returns.policy_url`
2328
+ * are needed for every surface. `support` means neither a support
2329
+ * email nor a support URL is set.
2330
+ */
2331
+ missing: ("returns" | "returns.policy_url" | "support")[];
2332
+ updated: components["schemas"]["Timestamp"];
2333
+ };
2334
+ /** @description Lower-case ASCII hostname (punycode for international names). No scheme, port or path. For loopback, use `127.0.0.1`. */
2335
+ Hostname: string;
2336
+ DomainCreate: {
2337
+ hostname: components["schemas"]["Hostname"];
2338
+ };
2339
+ /** @description Publish this DNS TXT record on the domain, then call verifyDomain. */
2340
+ DomainVerification: {
2341
+ /** @constant */
2342
+ type: "dns_txt";
2343
+ record_name: string;
2344
+ record_value: string;
2345
+ };
2346
+ /**
2347
+ * @description How the store forwards `/.well-known/ucp` and every path under `path_prefix` to
2348
+ * Relyon. Each forwarded request goes to `endpoint` followed by the original path and
2349
+ * query, and carries `header`, signed with the domain's forwarding secret. Relyon
2350
+ * identifies the store only from that signed header.
2351
+ */
2352
+ DomainForwarding: {
2353
+ /** @description The request header that carries the forwarding signature. */
2354
+ header: string;
2355
+ /** @description The reserved path prefix on the store's hostname that is forwarded to Relyon. */
2356
+ path_prefix: string;
2357
+ /**
2358
+ * Format: uri
2359
+ * @description Relyon's forwarding endpoint. Append the original path and query to it.
2360
+ */
2361
+ endpoint: string;
2362
+ /**
2363
+ * @description The forwarding secret. Returned only in the createDomain response, once, and
2364
+ * never by getDomain, listDomains, verifyDomain or events. It can't be shown again.
2365
+ */
2366
+ secret?: string;
2367
+ };
2368
+ Domain: {
2369
+ id: string;
2370
+ /** @constant */
2371
+ object: "domain";
2372
+ livemode: components["schemas"]["Livemode"];
2373
+ hostname: components["schemas"]["Hostname"];
2374
+ /** @enum {unknown} */
2375
+ status: "pending" | "verified" | "failed";
2376
+ verification: components["schemas"]["DomainVerification"];
2377
+ forwarding?: components["schemas"]["DomainForwarding"];
2378
+ /**
2379
+ * @description Why the last check failed. null unless `status` is `failed`.
2380
+ * @enum {unknown}
2381
+ */
2382
+ failure_reason: "txt_record_not_found" | "txt_record_mismatch" | "dns_lookup_failed" | "hostname_in_use" | null;
2383
+ /** @description When the domain last passed verification. */
2384
+ verified_at: components["schemas"]["Timestamp"] | null;
2385
+ created: components["schemas"]["Timestamp"];
2386
+ updated: components["schemas"]["Timestamp"];
2387
+ } & (unknown & unknown);
2388
+ DomainList: {
2389
+ /** @constant */
2390
+ object: "list";
2391
+ data: components["schemas"]["Domain"][];
2392
+ has_more: boolean;
2393
+ };
2394
+ /** @enum {unknown} */
2395
+ ChannelName: "google" | "chatgpt";
2396
+ /** @description A summary of how the channel judged the store's published products. */
2397
+ ChannelProductIssues: {
2398
+ /** @description Products the channel accepts. */
2399
+ eligible: number;
2400
+ /** @description Products the channel rejected or flagged. */
2401
+ with_issues: number;
2402
+ /** @description null until the channel has reviewed the catalog. */
2403
+ last_checked_at: components["schemas"]["Timestamp"] | null;
2404
+ };
2405
+ Channel: {
2406
+ /** @description Stable per store and environment. Used as the event object ID. */
2407
+ id: string;
2408
+ /** @constant */
2409
+ object: "channel";
2410
+ name: components["schemas"]["ChannelName"];
2411
+ /**
2412
+ * @description `not_connected`: never connected. `connected`: accepting checkouts.
2413
+ * `paused`: listed but refusing checkouts. `disconnected`: was connected
2414
+ * and no longer is.
2415
+ * @enum {unknown}
2416
+ */
2417
+ status: "not_connected" | "connected" | "paused" | "disconnected";
2418
+ product_issues: components["schemas"]["ChannelProductIssues"];
2419
+ livemode: components["schemas"]["Livemode"];
2420
+ /** @description When the channel was last connected. */
2421
+ connected_at: components["schemas"]["Timestamp"] | null;
2422
+ /** @description Set while `status` is `paused`. null otherwise. */
2423
+ paused_at: components["schemas"]["Timestamp"] | null;
2424
+ updated: components["schemas"]["Timestamp"];
2425
+ };
2426
+ ChannelList: {
2427
+ /** @constant */
2428
+ object: "list";
2429
+ data: components["schemas"]["Channel"][];
2430
+ /** @description Always false; every channel fits on one page. */
2431
+ has_more: boolean;
2432
+ };
2433
+ /**
2434
+ * @description Where the shopper or agent paid from. `web` is the store's own checkout page with
2435
+ * no agent involved; `google`, `chatgpt` and `mcp` are those agent surfaces; `agent`
2436
+ * is any other agent. Added in revision 2026-10-19.
2437
+ * @enum {unknown}
2438
+ */
2439
+ PaymentChannel: "web" | "google" | "chatgpt" | "mcp" | "agent";
2440
+ /**
2441
+ * @description How the payment reached the processor. `hosted_card`: card details entered in a
2442
+ * payment session's hosted card fields. `wallet_token`: a wallet token such as Google
2443
+ * Pay. `delegated_token`: a payment token delegated by an agent. Added in revision
2444
+ * 2026-10-19.
2445
+ * @enum {unknown}
2446
+ */
2447
+ PaymentMethodKind: "hosted_card" | "wallet_token" | "delegated_token";
2448
+ /** @description The store's own order or cart reference. Shown on the payment and in reconciliation. */
2449
+ StoreOrderReference: string;
2450
+ /** @description One line of the store's priced cart. Added in revision 2026-10-19. */
2451
+ CartLine: {
2452
+ /** @description The store's own line ID. Echoed in protocol responses when given. */
2453
+ id?: string;
2454
+ /** @description The store's own product ID, the same one the catalog index holds as `merchant_product_id`. */
2455
+ merchant_product_id: components["schemas"]["ProductId"];
2456
+ title: string;
2457
+ quantity: number;
2458
+ options?: components["schemas"]["Options"];
2459
+ /** @description Omitted when the store prices the line only as a whole, such as a bundle. */
2460
+ unit_amount?: number;
2461
+ /** @description Line-level discount, already taken off `amount`. */
2462
+ discount?: number;
2463
+ /** @description The line's total after line discounts. */
2464
+ amount: number;
2465
+ };
2466
+ CartDiscount: {
2467
+ code?: string;
2468
+ label: string;
2469
+ amount: number;
2470
+ };
2471
+ /**
2472
+ * @description The cart exactly as the store priced it. Relyon never re-prices it; it only checks
2473
+ * that it adds up: the lines' `amount` sum to `totals.subtotal`, `discounts` sum to
2474
+ * `totals.discount` (no discounts means 0), and `totals.total` is subtotal − discount
2475
+ * + shipping + tax. `currency` and `totals.currency` match. Kept as the payment's
2476
+ * snapshot for refunds, disputes and reconciliation. Added in revision 2026-10-19.
2477
+ */
2478
+ Cart: {
2479
+ currency: components["schemas"]["Currency"];
2480
+ lines: components["schemas"]["CartLine"][];
2481
+ /** @description Cart-level discounts. Their sum is `totals.discount`. */
2482
+ discounts?: components["schemas"]["CartDiscount"][];
2483
+ /** @description The choices the store offers for this cart. Agent checkouts render them for the agent. */
2484
+ shipping_options?: components["schemas"]["ShippingOption"][];
2485
+ /** @description The chosen entry of `shipping_options`, when one was chosen. */
2486
+ shipping_option_id?: string;
2487
+ shipping_address?: components["schemas"]["Address"];
2488
+ terms?: components["schemas"]["QuoteTerms"];
2489
+ totals: components["schemas"]["Totals"];
2490
+ };
2491
+ /** @description Added in revision 2026-10-19. */
2492
+ PaymentSessionCreate: {
2493
+ /** @description The amount the card fields will be used to pay. `createPayment` must charge this amount. */
2494
+ amount: number;
2495
+ currency: components["schemas"]["Currency"];
2496
+ order_reference?: components["schemas"]["StoreOrderReference"];
2497
+ metadata?: components["schemas"]["Metadata"];
2498
+ };
2499
+ /** @description Hosted card fields for one store checkout. Added in revision 2026-10-19. */
2500
+ PaymentSession: {
2501
+ id: string;
2502
+ /** @constant */
2503
+ object: "payment_session";
2504
+ livemode: components["schemas"]["Livemode"];
2505
+ /**
2506
+ * @description `open` → `used` (charged by `createPayment`) | `expired`. `used` and `expired` are final.
2507
+ * @enum {unknown}
2508
+ */
2509
+ status: "open" | "used" | "expired";
2510
+ amount: number;
2511
+ currency: components["schemas"]["Currency"];
2512
+ /**
2513
+ * @description Give this to the `<relyon-card-fields>` web component on the store's checkout
2514
+ * page. It only opens the card fields for this session; it is not an API key and
2515
+ * can't read or charge anything. Single use.
2516
+ */
2517
+ client_token: string;
2518
+ order_reference?: components["schemas"]["StoreOrderReference"];
2519
+ metadata?: components["schemas"]["Metadata"];
2520
+ expires_at: components["schemas"]["Timestamp"];
2521
+ created: components["schemas"]["Timestamp"];
2522
+ };
2523
+ HostedCardPaymentMethod: {
2524
+ /** @constant */
2525
+ kind: "hosted_card";
2526
+ /** @description An `open` payment session whose card fields the shopper filled in. */
2527
+ payment_session: string;
2528
+ };
2529
+ WalletTokenPaymentMethod: {
2530
+ /** @constant */
2531
+ kind: "wallet_token";
2532
+ /** @enum {unknown} */
2533
+ wallet: "google_pay";
2534
+ /** @description The wallet's encrypted payment token, passed through unchanged. */
2535
+ token: string;
2536
+ };
2537
+ DelegatedTokenPaymentMethod: {
2538
+ /** @constant */
2539
+ kind: "delegated_token";
2540
+ /** @description The payment token the agent delegated, passed through unchanged. */
2541
+ token: string;
2542
+ };
2543
+ /** @description Exactly one way to pay, chosen by `kind`. Added in revision 2026-10-19. */
2544
+ PaymentMethodInput: components["schemas"]["HostedCardPaymentMethod"] | components["schemas"]["WalletTokenPaymentMethod"] | components["schemas"]["DelegatedTokenPaymentMethod"];
2545
+ /** @description Added in revision 2026-10-19. */
2546
+ PaymentCreate: {
2547
+ /** @description The final amount to charge. Must equal `cart.totals.total`. */
2548
+ amount: number;
2549
+ currency: components["schemas"]["Currency"];
2550
+ cart: components["schemas"]["Cart"];
2551
+ payment_method: components["schemas"]["PaymentMethodInput"];
2552
+ channel: components["schemas"]["PaymentChannel"];
2553
+ /** @description The agent checkout this payment completes, for a shopper an agent handed to the store's checkout. Attributes the payment to the agent and applies the agent rules. */
2554
+ agent_checkout_id?: string;
2555
+ order_reference?: components["schemas"]["StoreOrderReference"];
2556
+ metadata?: components["schemas"]["Metadata"];
2557
+ };
2558
+ /**
2559
+ * @description One charge of a store-priced cart. Sent as `data.object` of `payment.succeeded` and
2560
+ * `payment.failed`. Added in revision 2026-10-19.
2561
+ */
2562
+ Payment: {
2563
+ id: string;
2564
+ /** @constant */
2565
+ object: "payment";
2566
+ livemode: components["schemas"]["Livemode"];
2567
+ /**
2568
+ * @description `succeeded`: authorized and captured. `failed`: declined or not completed; nothing was charged.
2569
+ * @enum {unknown}
2570
+ */
2571
+ status: "succeeded" | "failed";
2572
+ amount: number;
2573
+ currency: components["schemas"]["Currency"];
2574
+ /** @description The cart snapshot as the store sent it. */
2575
+ cart: components["schemas"]["Cart"];
2576
+ payment_method_kind: components["schemas"]["PaymentMethodKind"];
2577
+ /** @description Present when the processor reported the card. */
2578
+ card?: {
2579
+ brand: string;
2580
+ last4: string;
2581
+ };
2582
+ channel: components["schemas"]["PaymentChannel"];
2583
+ agent_checkout_id: string | null;
2584
+ agent?: components["schemas"]["AgentIdentity"];
2585
+ order_reference: components["schemas"]["StoreOrderReference"] | null;
2586
+ /** @description The store's processor account that took the payment. */
2587
+ processor_account?: string;
2588
+ /** @description Why a `failed` payment failed, such as `card_declined`. null when `succeeded`. */
2589
+ failure_code: string | null;
2590
+ /** @description Safe to show the shopper. null when `succeeded`. */
2591
+ failure_message: string | null;
2592
+ metadata?: components["schemas"]["Metadata"];
2593
+ created: components["schemas"]["Timestamp"];
2594
+ };
2595
+ /** @description Added in revision 2026-11-06 (WooCommerce gateway, build-plan phase 3). */
2596
+ PaymentRefundCreate: {
2597
+ /** @description Minor units to refund. Omitted refunds the whole remaining balance. */
2598
+ amount?: number;
2599
+ /** @description Merchant-facing note; never card data. */
2600
+ reason?: string;
2601
+ };
2602
+ /**
2603
+ * @description Money returned against one payment. Sent as `data.object` of `refund.created` and
2604
+ * `refund.succeeded`. Added in revision 2026-11-06 (WooCommerce gateway, build-plan phase 3).
2605
+ */
2606
+ Refund: {
2607
+ id: string;
2608
+ /** @constant */
2609
+ object: "refund";
2610
+ payment_id: string;
2611
+ order_id: string | null;
2612
+ amount: number;
2613
+ currency: components["schemas"]["Currency"];
2614
+ /**
2615
+ * @description Only `succeeded` exists; a refund the processor refuses is a synchronous error and is never recorded.
2616
+ * @enum {unknown}
2617
+ */
2618
+ status: "succeeded";
2619
+ reason?: string;
2620
+ /** @description The processor's refund reference, when it reported one. */
2621
+ processor_ref?: string;
2622
+ /** @description The payment's refunded minor units after this refund. In the endpoint response, not the webhook payload. */
2623
+ refunded_total?: number;
2624
+ /**
2625
+ * @description The payment's status after this refund. In the endpoint response, not the webhook payload.
2626
+ * @enum {unknown}
2627
+ */
2628
+ payment_status?: "succeeded" | "partially_refunded" | "refunded";
2629
+ created: components["schemas"]["Timestamp"];
2630
+ };
2631
+ /**
2632
+ * @description Added in revision 2026-10-19.
2633
+ * @enum {unknown}
2634
+ */
2635
+ AgentProtocol: "ucp" | "acp" | "mcp";
2636
+ /**
2637
+ * @description Added in revision 2026-10-19.
2638
+ * @enum {unknown}
2639
+ */
2640
+ AgentCheckoutOperation: "create" | "update" | "complete" | "cancel" | "get";
2641
+ /** @description The agent's request exactly as the store received it. Signatures are checked over these values, so pass them unchanged. */
2642
+ AgentRawRequest: {
2643
+ /** @enum {unknown} */
2644
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2645
+ /**
2646
+ * Format: uri
2647
+ * @description The full URL on the store's own domain. With a Test key, `request.url` may be on any preview address; plain http and a port are accepted only for loopback. With a Live key it must be on the store's own verified Live domain; every other hostname gets the same `domain_not_found`.
2648
+ */
2649
+ url: string;
2650
+ /** @description Every request header, names in lower case. Repeated headers are joined with ", ". */
2651
+ headers: {
2652
+ [key: string]: string;
2653
+ };
2654
+ /** @description The raw request body as received (UTF-8). Omitted when the request had none. */
2655
+ body?: string;
2656
+ };
2657
+ /** @description Added in revision 2026-10-19. */
2658
+ AgentCheckoutRequest: {
2659
+ request: components["schemas"]["AgentRawRequest"];
2660
+ /** @description The store's priced cart for this step, with its shipping options. Required for `create`, `update` and `complete`; omitted for `get` and `cancel`. */
2661
+ cart?: components["schemas"]["Cart"];
2662
+ };
2663
+ /**
2664
+ * @description Relyon's decision and the protocol response for the store to send the agent
2665
+ * unchanged. Added in revision 2026-10-19.
2666
+ */
2667
+ AgentCheckoutResult: {
2668
+ /** @constant */
2669
+ object: "agent_checkout_result";
2670
+ livemode: components["schemas"]["Livemode"];
2671
+ /**
2672
+ * @description `refused` when Relyon turned the agent away; `status` and `body` then carry the protocol's own error.
2673
+ * @enum {unknown}
2674
+ */
2675
+ decision: "allowed" | "refused";
2676
+ /** @description Why the step was refused, such as `agent_refused`, `mandate_required` or `cart_changed`. null when allowed. */
2677
+ reason: components["schemas"]["ErrorCode"] | null;
2678
+ /** @description Relyon's ID for this agent checkout. Pass it to `createPayment` when the shopper pays on the store's checkout. null when a `create` was refused. */
2679
+ agent_checkout_id: string | null;
2680
+ /** @description The HTTP status to answer the agent with. */
2681
+ status: number;
2682
+ /** @description The response headers to send the agent, including Relyon's signature headers. */
2683
+ headers: {
2684
+ [key: string]: string;
2685
+ };
2686
+ /** @description The exact response body to send the agent. Empty when there is none. */
2687
+ body: string;
2688
+ /** @description The payment, on a `complete` where the agent supplied a payment token. Create the store's order when it `succeeded`. */
2689
+ payment: components["schemas"]["Payment"] | null;
2690
+ };
2691
+ /**
2692
+ * @description A UCP 2026-08-25 business profile, defined by the UCP specification. Relyon fills in
2693
+ * the merchant's services, capabilities, payment handlers and public signing keys;
2694
+ * every endpoint is on the requested hostname. Added in revision 2026-10-19.
2695
+ */
2696
+ UcpAgentProfile: {
2697
+ ucp: {
2698
+ version: string;
2699
+ services: Record<string, unknown>;
2700
+ capabilities: Record<string, unknown>;
2701
+ payment_handlers?: Record<string, unknown>;
2702
+ };
2703
+ /** @description The merchant's public signing keys as JWKs. */
2704
+ keys?: {
2705
+ kid: string;
2706
+ kty: string;
2707
+ }[];
2708
+ };
2709
+ /**
2710
+ * @description `profile_read` is a read of `/.well-known/ucp`. `mcp_tool_call` includes searches.
2711
+ * `handoff_landing` is a shopper arriving on the store's checkout from an agent.
2712
+ * Added in revision 2026-10-19.
2713
+ * @enum {unknown}
2714
+ */
2715
+ AgentEventType: "crawler_visit" | "profile_read" | "feed_read" | "llms_txt_read" | "mcp_tool_call" | "handoff_landing";
2716
+ AgentEventInput: {
2717
+ /** @description The store's own unique ID for the event. Used to de-duplicate. */
2718
+ id: string;
2719
+ type: components["schemas"]["AgentEventType"];
2720
+ occurred_at: components["schemas"]["Timestamp"];
2721
+ request: {
2722
+ /** @enum {unknown} */
2723
+ method: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
2724
+ /** Format: uri */
2725
+ url: string;
2726
+ user_agent?: string;
2727
+ /** @description The client IP the store saw. */
2728
+ ip?: string;
2729
+ /** @description Identifying headers only, names in lower case, such as `signature`, `signature-input`, `signature-agent` and `ucp-agent`. */
2730
+ headers?: {
2731
+ [key: string]: string;
2732
+ };
2733
+ };
2734
+ /** @description The HTTP status the store answered with. */
2735
+ status?: number;
2736
+ /** @description For `mcp_tool_call`. */
2737
+ mcp_tool?: string;
2738
+ /** @description The MCP client info, for `mcp_tool_call`. */
2739
+ mcp_client?: {
2740
+ name: string;
2741
+ version?: string;
2742
+ };
2743
+ /** @description For `handoff_landing`: the `relyon_cart` token the shopper arrived with. */
2744
+ cart_token?: string;
2745
+ agent_checkout_id?: string;
2746
+ };
2747
+ /** @description Added in revision 2026-10-19. */
2748
+ AgentEventBatch: {
2749
+ events: components["schemas"]["AgentEventInput"][];
2750
+ };
2751
+ /** @description `received` = `stored` + `duplicates`. Added in revision 2026-10-19. */
2752
+ AgentEventBatchResult: {
2753
+ /** @constant */
2754
+ object: "agent_event_batch";
2755
+ livemode: components["schemas"]["Livemode"];
2756
+ received: number;
2757
+ stored: number;
2758
+ duplicates: number;
2759
+ };
2760
+ /**
2761
+ * @description The agent names Relyon reports and rules can match. Added in revision 2026-10-19.
2762
+ * @enum {unknown}
2763
+ */
2764
+ AgentName: "chatgpt" | "claude" | "gemini" | "copilot" | "perplexity" | "muse" | "other_known" | "unknown";
2765
+ /** @description An agent a rule matches, by name, by network key, or both. */
2766
+ AgentRuleAgent: {
2767
+ name?: components["schemas"]["AgentName"];
2768
+ /** @enum {unknown} */
2769
+ network?: "visa_tap" | "mastercard_agent_pay" | "relyon";
2770
+ key_id?: string;
2771
+ /**
2772
+ * @description `platform`: set by Relyon for every merchant. `merchant`: the store's own narrowing.
2773
+ * @enum {unknown}
2774
+ */
2775
+ source: "platform" | "merchant";
2776
+ } | unknown | unknown;
2777
+ /**
2778
+ * @description Platform rules merged with the merchant's. Merchants can only narrow platform rules,
2779
+ * so a merged value is always the stricter one. Added in revision 2026-10-19.
2780
+ */
2781
+ AgentRules: {
2782
+ /** @description Stable per store and environment. Used as the event object ID. */
2783
+ id: string;
2784
+ /** @constant */
2785
+ object: "agent_rules";
2786
+ livemode: components["schemas"]["Livemode"];
2787
+ /** @description Changes whenever any rule changes. */
2788
+ version: string;
2789
+ /** @description How long a cached copy may be used before reading again. */
2790
+ refresh_seconds: number;
2791
+ minimum_tier: components["schemas"]["AgentTier"];
2792
+ /** @description Refused everywhere. Wins over `allowed_agents`. */
2793
+ blocked_agents: components["schemas"]["AgentRuleAgent"][];
2794
+ /** @description When non-empty, only these agents may check out. Empty means any agent at or above `minimum_tier`. */
2795
+ allowed_agents: components["schemas"]["AgentRuleAgent"][];
2796
+ limits: {
2797
+ per_order: components["schemas"]["Money"] | null;
2798
+ /** @description Per agent per day. */
2799
+ daily: components["schemas"]["Money"] | null;
2800
+ /** @description Per agent. */
2801
+ orders_per_hour: number | null;
2802
+ };
2803
+ /** @description Every agent channel is paused. */
2804
+ paused: boolean;
2805
+ paused_channels: ("google" | "chatgpt" | "mcp" | "agent")[];
2806
+ updated: components["schemas"]["Timestamp"];
2807
+ };
2808
+ FeeSchedule: {
2809
+ currency: components["schemas"]["Currency"];
2810
+ items: {
2811
+ /** @description Such as `Visa and Mastercard` or `Refund`. */
2812
+ label: string;
2813
+ /** @description Percentage fee in basis points (290 is 2.90%). */
2814
+ percent_bps: number;
2815
+ /** @description Fixed fee per transaction, in minor units. */
2816
+ fixed_amount: number;
2817
+ }[];
2818
+ };
2819
+ /**
2820
+ * @description The store's own processor account and MID in one environment. Credentials are
2821
+ * never returned. Added in revision 2026-10-19.
2822
+ */
2823
+ ProcessorAccount: {
2824
+ /** @description null while `not_configured`. */
2825
+ id: string | null;
2826
+ /** @constant */
2827
+ object: "processor_account";
2828
+ livemode: components["schemas"]["Livemode"];
2829
+ /**
2830
+ * @description null while `not_configured`.
2831
+ * @enum {unknown}
2832
+ */
2833
+ provider: "trx" | "fiserv" | null;
2834
+ /**
2835
+ * @description `not_configured`: no account entered. `pending`: entered, connection not tested
2836
+ * yet. `active`: the last connection test passed, so payments can be taken.
2837
+ * `failed`: the last connection test failed. Live payments are refused with
2838
+ * `processor_not_configured` unless `active`.
2839
+ * @enum {unknown}
2840
+ */
2841
+ status: "not_configured" | "pending" | "active" | "failed";
2842
+ mid_last4: string | null;
2843
+ fee_schedule: components["schemas"]["FeeSchedule"] | null;
2844
+ connection_tested_at: components["schemas"]["Timestamp"] | null;
2845
+ updated: components["schemas"]["Timestamp"] | null;
2846
+ };
2847
+ };
2848
+ responses: {
2849
+ /** @description Unknown or unconfigured merchant; identical public response */
2850
+ FeedNotFound: {
2851
+ headers: {
2852
+ "Cache-Control"?: "no-store";
2853
+ [name: string]: unknown;
2854
+ };
2855
+ content: {
2856
+ "application/problem+json": components["schemas"]["FeedProblem"] & {
2857
+ /** @constant */
2858
+ status?: 404;
2859
+ /** @constant */
2860
+ code?: "not_found";
2861
+ };
2862
+ };
2863
+ };
2864
+ /** @description Index read or generation failed; no expired data is served */
2865
+ FeedUnavailable: {
2866
+ headers: {
2867
+ "Cache-Control"?: "no-store";
2868
+ [name: string]: unknown;
2869
+ };
2870
+ content: {
2871
+ "application/problem+json": components["schemas"]["FeedProblem"] & {
2872
+ /** @constant */
2873
+ status?: 503;
2874
+ /** @constant */
2875
+ code?: "feed_unavailable";
2876
+ };
2877
+ };
2878
+ };
2879
+ /** @description Invalid or unknown browsing parameters */
2880
+ PublicAgentBadRequest: {
2881
+ headers: {
2882
+ [name: string]: unknown;
2883
+ };
2884
+ content: {
2885
+ "application/problem+json": components["schemas"]["PublicAgentProblem"];
2886
+ };
2887
+ };
2888
+ /** @description Merchant not configured or product not visible in this store and environment */
2889
+ PublicAgentNotFound: {
2890
+ headers: {
2891
+ [name: string]: unknown;
2892
+ };
2893
+ content: {
2894
+ "application/problem+json": components["schemas"]["PublicAgentProblem"];
2895
+ };
2896
+ };
2897
+ /** @description Shared merchant or merchant/client browsing budget exceeded, or limiter capacity reached */
2898
+ PublicAgentRateLimited: {
2899
+ headers: {
2900
+ /** @description Positive whole seconds before retrying. */
2901
+ "Retry-After": string;
2902
+ [name: string]: unknown;
2903
+ };
2904
+ content: {
2905
+ "application/problem+json": components["schemas"]["PublicAgentProblem"];
2906
+ };
2907
+ };
2908
+ /** @description Internal failure with no merchant configuration or database detail exposed */
2909
+ PublicAgentFailure: {
2910
+ headers: {
2911
+ [name: string]: unknown;
2912
+ };
2913
+ content: {
2914
+ "application/problem+json": components["schemas"]["PublicAgentProblem"];
2915
+ };
2916
+ };
2917
+ /** @description An error, as RFC 9457 problem details */
2918
+ Problem: {
2919
+ headers: {
2920
+ [name: string]: unknown;
2921
+ };
2922
+ content: {
2923
+ "application/problem+json": components["schemas"]["Problem"];
2924
+ };
2925
+ };
2926
+ };
2927
+ parameters: {
2928
+ /** @description Public configured store identifier; never an organization ID or environment selector. */
2929
+ FeedMerchantId: string;
2930
+ /** @description Server-configured public store identifier; not a caller-selected organization. */
2931
+ PublicMerchantId: string;
2932
+ /** @description Stable catalog index ID within the configured merchant and environment. */
2933
+ PublicProductId: string;
2934
+ /** @description Defaults to the key's pinned version. */
2935
+ RelyonVersion: string;
2936
+ /**
2937
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
2938
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
2939
+ * when the workspace has more than one active project space and the key is
2940
+ * not limited to one. A key limited to one project space that names another
2941
+ * is refused with "This key is limited to <project space name>."
2942
+ */
2943
+ ProjectSpace: string;
2944
+ /**
2945
+ * @description Picks the project space through one of its verified domains, when
2946
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
2947
+ * deprecated alias, accepted during the rename window.
2948
+ */
2949
+ ProjectSpaceHostname: components["schemas"]["Hostname"];
2950
+ /** @description Unique per logical operation. Kept for 24 hours. */
2951
+ IdempotencyKey: string;
2952
+ Limit: number;
2953
+ /** @description Cursor; the `id` of the last item on the previous page. */
2954
+ StartingAfter: string;
2955
+ /** @description The app's own stable product ID. */
2956
+ ProductId: components["schemas"]["ProductId"];
2957
+ SessionId: string;
2958
+ OrderId: string;
2959
+ EventId: string;
2960
+ PaymentId: string;
2961
+ DomainId: string;
2962
+ ChannelName: components["schemas"]["ChannelName"];
2963
+ /** @description The agent protocol the store received the request in. */
2964
+ AgentProtocol: components["schemas"]["AgentProtocol"];
2965
+ /** @description The checkout step the agent asked for. */
2966
+ AgentCheckoutOperation: components["schemas"]["AgentCheckoutOperation"];
2967
+ /** @description A verified domain of the store, such as `shop.example.com`, or with a Test key any preview address, whose endpoints the profile lists. */
2968
+ ProfileHostname: components["schemas"]["Hostname"];
2969
+ };
2970
+ requestBodies: never;
2971
+ headers: never;
2972
+ pathItems: never;
2973
+ }
2974
+ export type $defs = Record<string, never>;
2975
+ export interface operations {
2976
+ getStoreUcpManifest: {
2977
+ parameters: {
2978
+ query?: never;
2979
+ header?: never;
2980
+ path?: never;
2981
+ cookie?: never;
2982
+ };
2983
+ requestBody?: never;
2984
+ responses: {
2985
+ /** @description Store-scoped UCP business profile */
2986
+ 200: {
2987
+ headers: {
2988
+ "Cache-Control"?: "no-store";
2989
+ [name: string]: unknown;
2990
+ };
2991
+ content: {
2992
+ "application/json": components["schemas"]["StoreUcpManifest"];
2993
+ };
2994
+ };
2995
+ /** @description No trusted store configured */
2996
+ 404: {
2997
+ headers: {
2998
+ "Cache-Control"?: "no-store";
2999
+ [name: string]: unknown;
3000
+ };
3001
+ content: {
3002
+ "application/problem+json": components["schemas"]["StoreUcpProblem"];
3003
+ };
3004
+ };
3005
+ /** @description Discovery configuration or resolver unavailable */
3006
+ 503: {
3007
+ headers: {
3008
+ "Cache-Control"?: "no-store";
3009
+ [name: string]: unknown;
3010
+ };
3011
+ content: {
3012
+ "application/problem+json": components["schemas"]["StoreUcpProblem"];
3013
+ };
3014
+ };
3015
+ };
3016
+ };
3017
+ getMerchantAcpFeed: {
3018
+ parameters: {
3019
+ query?: never;
3020
+ header?: never;
3021
+ path: {
3022
+ /** @description Public configured store identifier; never an organization ID or environment selector. */
3023
+ merchant_id: components["parameters"]["FeedMerchantId"];
3024
+ };
3025
+ cookie?: never;
3026
+ };
3027
+ requestBody?: never;
3028
+ responses: {
3029
+ /** @description Current merchant discovery feed, not payment authority */
3030
+ 200: {
3031
+ headers: {
3032
+ "Cache-Control"?: "no-store";
3033
+ [name: string]: unknown;
3034
+ };
3035
+ content: {
3036
+ "application/x-ndjson": string;
3037
+ };
3038
+ };
3039
+ 404: components["responses"]["FeedNotFound"];
3040
+ 503: components["responses"]["FeedUnavailable"];
3041
+ };
3042
+ };
3043
+ getMerchantGoogleFeed: {
3044
+ parameters: {
3045
+ query?: never;
3046
+ header?: never;
3047
+ path: {
3048
+ /** @description Public configured store identifier; never an organization ID or environment selector. */
3049
+ merchant_id: components["parameters"]["FeedMerchantId"];
3050
+ };
3051
+ cookie?: never;
3052
+ };
3053
+ requestBody?: never;
3054
+ responses: {
3055
+ /** @description UTF-8 RSS 2.0 Google Merchant namespace XML */
3056
+ 200: {
3057
+ headers: {
3058
+ "Cache-Control"?: "no-store";
3059
+ [name: string]: unknown;
3060
+ };
3061
+ content: {
3062
+ "application/xml": string;
3063
+ };
3064
+ };
3065
+ 404: components["responses"]["FeedNotFound"];
3066
+ 503: components["responses"]["FeedUnavailable"];
3067
+ };
3068
+ };
3069
+ getMerchantProductsJsonLdFeed: {
3070
+ parameters: {
3071
+ query?: never;
3072
+ header?: never;
3073
+ path: {
3074
+ /** @description Public configured store identifier; never an organization ID or environment selector. */
3075
+ merchant_id: components["parameters"]["FeedMerchantId"];
3076
+ };
3077
+ cookie?: never;
3078
+ };
3079
+ requestBody?: never;
3080
+ responses: {
3081
+ /** @description Script-safe UTF-8 schema.org Product graph */
3082
+ 200: {
3083
+ headers: {
3084
+ "Cache-Control"?: "no-store";
3085
+ [name: string]: unknown;
3086
+ };
3087
+ content: {
3088
+ "application/ld+json": components["schemas"]["FeedProductGraph"];
3089
+ };
3090
+ };
3091
+ 404: components["responses"]["FeedNotFound"];
3092
+ 503: components["responses"]["FeedUnavailable"];
3093
+ };
3094
+ };
3095
+ searchPublicMerchantProducts: {
3096
+ parameters: {
3097
+ query?: {
3098
+ q?: string;
3099
+ limit?: number;
3100
+ starting_after?: string;
3101
+ };
3102
+ header?: never;
3103
+ path: {
3104
+ /** @description Server-configured public store identifier; not a caller-selected organization. */
3105
+ merchant_id: components["parameters"]["PublicMerchantId"];
3106
+ };
3107
+ cookie?: never;
3108
+ };
3109
+ requestBody?: never;
3110
+ responses: {
3111
+ /** @description A bounded display-only catalog page */
3112
+ 200: {
3113
+ headers: {
3114
+ [name: string]: unknown;
3115
+ };
3116
+ content: {
3117
+ "application/json": components["schemas"]["PublicProductList"];
3118
+ };
3119
+ };
3120
+ 400: components["responses"]["PublicAgentBadRequest"];
3121
+ 404: components["responses"]["PublicAgentNotFound"];
3122
+ 429: components["responses"]["PublicAgentRateLimited"];
3123
+ 500: components["responses"]["PublicAgentFailure"];
3124
+ };
3125
+ };
3126
+ getPublicMerchantProduct: {
3127
+ parameters: {
3128
+ query?: never;
3129
+ header?: never;
3130
+ path: {
3131
+ /** @description Server-configured public store identifier; not a caller-selected organization. */
3132
+ merchant_id: components["parameters"]["PublicMerchantId"];
3133
+ /** @description Stable catalog index ID within the configured merchant and environment. */
3134
+ product_id: components["parameters"]["PublicProductId"];
3135
+ };
3136
+ cookie?: never;
3137
+ };
3138
+ requestBody?: never;
3139
+ responses: {
3140
+ /** @description A sanitized display-only product */
3141
+ 200: {
3142
+ headers: {
3143
+ [name: string]: unknown;
3144
+ };
3145
+ content: {
3146
+ "application/json": components["schemas"]["PublicProduct"];
3147
+ };
3148
+ };
3149
+ 400: components["responses"]["PublicAgentBadRequest"];
3150
+ 404: components["responses"]["PublicAgentNotFound"];
3151
+ 429: components["responses"]["PublicAgentRateLimited"];
3152
+ 500: components["responses"]["PublicAgentFailure"];
3153
+ };
3154
+ };
3155
+ getPublicMerchantPolicies: {
3156
+ parameters: {
3157
+ query?: never;
3158
+ header?: never;
3159
+ path: {
3160
+ /** @description Server-configured public store identifier; not a caller-selected organization. */
3161
+ merchant_id: components["parameters"]["PublicMerchantId"];
3162
+ };
3163
+ cookie?: never;
3164
+ };
3165
+ requestBody?: never;
3166
+ responses: {
3167
+ /** @description Sanitized project space policies and seller metadata */
3168
+ 200: {
3169
+ headers: {
3170
+ [name: string]: unknown;
3171
+ };
3172
+ content: {
3173
+ "application/json": components["schemas"]["PublicProjectSpacePolicies"];
3174
+ };
3175
+ };
3176
+ 400: components["responses"]["PublicAgentBadRequest"];
3177
+ 404: components["responses"]["PublicAgentNotFound"];
3178
+ 429: components["responses"]["PublicAgentRateLimited"];
3179
+ 500: components["responses"]["PublicAgentFailure"];
3180
+ };
3181
+ };
3182
+ createSandbox: {
3183
+ parameters: {
3184
+ query?: never;
3185
+ header?: never;
3186
+ path?: never;
3187
+ cookie?: never;
3188
+ };
3189
+ requestBody?: {
3190
+ content: {
3191
+ "application/json": components["schemas"]["SandboxCreate"];
3192
+ };
3193
+ };
3194
+ responses: {
3195
+ /** @description The sandbox and its one-time Test credentials */
3196
+ 201: {
3197
+ headers: {
3198
+ "X-RateLimit-Limit"?: string;
3199
+ "X-RateLimit-Remaining"?: string;
3200
+ [name: string]: unknown;
3201
+ };
3202
+ content: {
3203
+ "application/json": components["schemas"]["Sandbox"];
3204
+ };
3205
+ };
3206
+ /** @description The body was refused */
3207
+ 400: {
3208
+ headers: {
3209
+ [name: string]: unknown;
3210
+ };
3211
+ content: {
3212
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3213
+ };
3214
+ };
3215
+ /** @description No usable authentication was presented */
3216
+ 401: {
3217
+ headers: {
3218
+ [name: string]: unknown;
3219
+ };
3220
+ content: {
3221
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3222
+ };
3223
+ };
3224
+ /** @description The caller lacks the grant, role or environment for sandbox creation */
3225
+ 403: {
3226
+ headers: {
3227
+ [name: string]: unknown;
3228
+ };
3229
+ content: {
3230
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3231
+ };
3232
+ };
3233
+ /** @description The workspace already holds Live keys and cannot become a sandbox */
3234
+ 409: {
3235
+ headers: {
3236
+ [name: string]: unknown;
3237
+ };
3238
+ content: {
3239
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3240
+ };
3241
+ };
3242
+ /** @description Too many sandbox creation requests from this client or overall */
3243
+ 429: {
3244
+ headers: {
3245
+ "X-RateLimit-Limit"?: string;
3246
+ "X-RateLimit-Remaining"?: string;
3247
+ [name: string]: unknown;
3248
+ };
3249
+ content: {
3250
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3251
+ };
3252
+ };
3253
+ /** @description An unexpected error */
3254
+ default: {
3255
+ headers: {
3256
+ [name: string]: unknown;
3257
+ };
3258
+ content: {
3259
+ "application/problem+json": components["schemas"]["SandboxProblem"];
3260
+ };
3261
+ };
3262
+ };
3263
+ };
3264
+ createProjectSpaceConnectCode: {
3265
+ parameters: {
3266
+ query?: never;
3267
+ header?: never;
3268
+ path?: never;
3269
+ cookie?: never;
3270
+ };
3271
+ requestBody: {
3272
+ content: {
3273
+ "application/json": components["schemas"]["ProjectSpaceConnectCodeCreate"];
3274
+ };
3275
+ };
3276
+ responses: {
3277
+ /** @description The one-time connect code, returned exactly once */
3278
+ 201: {
3279
+ headers: {
3280
+ "X-RateLimit-Limit"?: string;
3281
+ "X-RateLimit-Remaining"?: string;
3282
+ [name: string]: unknown;
3283
+ };
3284
+ content: {
3285
+ "application/json": components["schemas"]["ProjectSpaceConnectCode"];
3286
+ };
3287
+ };
3288
+ /** @description The body was refused (unknown field, bad value, archived project space) */
3289
+ 400: {
3290
+ headers: {
3291
+ [name: string]: unknown;
3292
+ };
3293
+ content: {
3294
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3295
+ };
3296
+ };
3297
+ /** @description No usable session was presented */
3298
+ 401: {
3299
+ headers: {
3300
+ [name: string]: unknown;
3301
+ };
3302
+ content: {
3303
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3304
+ };
3305
+ };
3306
+ /** @description The caller is not a workspace admin, is impersonating, sent no Origin, or asked for Live */
3307
+ 403: {
3308
+ headers: {
3309
+ [name: string]: unknown;
3310
+ };
3311
+ content: {
3312
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3313
+ };
3314
+ };
3315
+ /** @description The project space is not in the caller's own workspace */
3316
+ 404: {
3317
+ headers: {
3318
+ [name: string]: unknown;
3319
+ };
3320
+ content: {
3321
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3322
+ };
3323
+ };
3324
+ /** @description Too many connect codes requested by this workspace */
3325
+ 429: {
3326
+ headers: {
3327
+ "X-RateLimit-Limit"?: string;
3328
+ "X-RateLimit-Remaining"?: string;
3329
+ [name: string]: unknown;
3330
+ };
3331
+ content: {
3332
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3333
+ };
3334
+ };
3335
+ /** @description An unexpected error */
3336
+ default: {
3337
+ headers: {
3338
+ [name: string]: unknown;
3339
+ };
3340
+ content: {
3341
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3342
+ };
3343
+ };
3344
+ };
3345
+ };
3346
+ exchangeProjectSpaceConnectCode: {
3347
+ parameters: {
3348
+ query?: never;
3349
+ header?: never;
3350
+ path?: never;
3351
+ cookie?: never;
3352
+ };
3353
+ requestBody: {
3354
+ content: {
3355
+ "application/json": components["schemas"]["ProjectSpaceConnectCodeExchange"];
3356
+ };
3357
+ };
3358
+ responses: {
3359
+ /** @description The restricted key limited to the project space, plaintext returned exactly once */
3360
+ 201: {
3361
+ headers: {
3362
+ [name: string]: unknown;
3363
+ };
3364
+ content: {
3365
+ "application/json": components["schemas"]["ProjectSpaceConnectKey"];
3366
+ };
3367
+ };
3368
+ /** @description The code is invalid, expired or was already used, or the body was refused */
3369
+ 400: {
3370
+ headers: {
3371
+ [name: string]: unknown;
3372
+ };
3373
+ content: {
3374
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3375
+ };
3376
+ };
3377
+ /** @description Too many exchange attempts from this client or overall */
3378
+ 429: {
3379
+ headers: {
3380
+ "Retry-After"?: string;
3381
+ [name: string]: unknown;
3382
+ };
3383
+ content: {
3384
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3385
+ };
3386
+ };
3387
+ /** @description An unexpected error */
3388
+ default: {
3389
+ headers: {
3390
+ [name: string]: unknown;
3391
+ };
3392
+ content: {
3393
+ "application/problem+json": components["schemas"]["ConnectProblem"];
3394
+ };
3395
+ };
3396
+ };
3397
+ };
3398
+ runIntegrationDoctor: {
3399
+ parameters: {
3400
+ query?: never;
3401
+ header?: {
3402
+ /**
3403
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3404
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3405
+ * when the workspace has more than one active project space and the key is
3406
+ * not limited to one. A key limited to one project space that names another
3407
+ * is refused with "This key is limited to <project space name>."
3408
+ */
3409
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3410
+ /**
3411
+ * @description Picks the project space through one of its verified domains, when
3412
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3413
+ * deprecated alias, accepted during the rename window.
3414
+ */
3415
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3416
+ /** @description Defaults to the key's pinned version. */
3417
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3418
+ };
3419
+ path?: never;
3420
+ cookie?: never;
3421
+ };
3422
+ requestBody?: never;
3423
+ responses: {
3424
+ /** @description Completed diagnostics; pass only with no failures */
3425
+ 200: {
3426
+ headers: {
3427
+ "Cache-Control"?: "no-store";
3428
+ [name: string]: unknown;
3429
+ };
3430
+ content: {
3431
+ "application/json": components["schemas"]["DoctorResult"];
3432
+ };
3433
+ };
3434
+ default: components["responses"]["Problem"];
3435
+ };
3436
+ };
3437
+ listProducts: {
3438
+ parameters: {
3439
+ query?: {
3440
+ limit?: components["parameters"]["Limit"];
3441
+ /** @description Cursor; the `id` of the last item on the previous page. */
3442
+ starting_after?: components["parameters"]["StartingAfter"];
3443
+ group_id?: string;
3444
+ /** @description Publishable keys only see `published` products. */
3445
+ status?: components["schemas"]["ProductStatus"];
3446
+ };
3447
+ header?: {
3448
+ /**
3449
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3450
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3451
+ * when the workspace has more than one active project space and the key is
3452
+ * not limited to one. A key limited to one project space that names another
3453
+ * is refused with "This key is limited to <project space name>."
3454
+ */
3455
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3456
+ /**
3457
+ * @description Picks the project space through one of its verified domains, when
3458
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3459
+ * deprecated alias, accepted during the rename window.
3460
+ */
3461
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3462
+ /** @description Defaults to the key's pinned version. */
3463
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3464
+ };
3465
+ path?: never;
3466
+ cookie?: never;
3467
+ };
3468
+ requestBody?: never;
3469
+ responses: {
3470
+ /** @description A page of products, newest first */
3471
+ 200: {
3472
+ headers: {
3473
+ [name: string]: unknown;
3474
+ };
3475
+ content: {
3476
+ "application/json": components["schemas"]["ProductList"];
3477
+ };
3478
+ };
3479
+ default: components["responses"]["Problem"];
3480
+ };
3481
+ };
3482
+ getProduct: {
3483
+ parameters: {
3484
+ query?: never;
3485
+ header?: {
3486
+ /** @description Defaults to the key's pinned version. */
3487
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3488
+ /**
3489
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3490
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3491
+ * when the workspace has more than one active project space and the key is
3492
+ * not limited to one. A key limited to one project space that names another
3493
+ * is refused with "This key is limited to <project space name>."
3494
+ */
3495
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3496
+ /**
3497
+ * @description Picks the project space through one of its verified domains, when
3498
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3499
+ * deprecated alias, accepted during the rename window.
3500
+ */
3501
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3502
+ };
3503
+ path: {
3504
+ /** @description The app's own stable product ID. */
3505
+ id: components["parameters"]["ProductId"];
3506
+ };
3507
+ cookie?: never;
3508
+ };
3509
+ requestBody?: never;
3510
+ responses: {
3511
+ /** @description The product */
3512
+ 200: {
3513
+ headers: {
3514
+ [name: string]: unknown;
3515
+ };
3516
+ content: {
3517
+ "application/json": components["schemas"]["Product"];
3518
+ };
3519
+ };
3520
+ default: components["responses"]["Problem"];
3521
+ };
3522
+ };
3523
+ upsertProduct: {
3524
+ parameters: {
3525
+ query?: never;
3526
+ header: {
3527
+ /** @description Defaults to the key's pinned version. */
3528
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3529
+ /**
3530
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3531
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3532
+ * when the workspace has more than one active project space and the key is
3533
+ * not limited to one. A key limited to one project space that names another
3534
+ * is refused with "This key is limited to <project space name>."
3535
+ */
3536
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3537
+ /**
3538
+ * @description Picks the project space through one of its verified domains, when
3539
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3540
+ * deprecated alias, accepted during the rename window.
3541
+ */
3542
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3543
+ /** @description Unique per logical operation. Kept for 24 hours. */
3544
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3545
+ };
3546
+ path: {
3547
+ /** @description The app's own stable product ID. */
3548
+ id: components["parameters"]["ProductId"];
3549
+ };
3550
+ cookie?: never;
3551
+ };
3552
+ requestBody: {
3553
+ content: {
3554
+ "application/json": components["schemas"]["ProductInput"];
3555
+ };
3556
+ };
3557
+ responses: {
3558
+ /** @description The stored product with its validation result */
3559
+ 200: {
3560
+ headers: {
3561
+ [name: string]: unknown;
3562
+ };
3563
+ content: {
3564
+ "application/json": components["schemas"]["Product"];
3565
+ };
3566
+ };
3567
+ default: components["responses"]["Problem"];
3568
+ };
3569
+ };
3570
+ deleteProduct: {
3571
+ parameters: {
3572
+ query?: never;
3573
+ header: {
3574
+ /** @description Defaults to the key's pinned version. */
3575
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3576
+ /**
3577
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3578
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3579
+ * when the workspace has more than one active project space and the key is
3580
+ * not limited to one. A key limited to one project space that names another
3581
+ * is refused with "This key is limited to <project space name>."
3582
+ */
3583
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3584
+ /**
3585
+ * @description Picks the project space through one of its verified domains, when
3586
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3587
+ * deprecated alias, accepted during the rename window.
3588
+ */
3589
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3590
+ /** @description Unique per logical operation. Kept for 24 hours. */
3591
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3592
+ };
3593
+ path: {
3594
+ /** @description The app's own stable product ID. */
3595
+ id: components["parameters"]["ProductId"];
3596
+ };
3597
+ cookie?: never;
3598
+ };
3599
+ requestBody?: never;
3600
+ responses: {
3601
+ /** @description Deleted */
3602
+ 200: {
3603
+ headers: {
3604
+ [name: string]: unknown;
3605
+ };
3606
+ content: {
3607
+ "application/json": {
3608
+ id: string;
3609
+ /** @constant */
3610
+ object: "product";
3611
+ /** @constant */
3612
+ deleted: true;
3613
+ };
3614
+ };
3615
+ };
3616
+ default: components["responses"]["Problem"];
3617
+ };
3618
+ };
3619
+ upsertProductsBatch: {
3620
+ parameters: {
3621
+ query?: never;
3622
+ header: {
3623
+ /**
3624
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3625
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3626
+ * when the workspace has more than one active project space and the key is
3627
+ * not limited to one. A key limited to one project space that names another
3628
+ * is refused with "This key is limited to <project space name>."
3629
+ */
3630
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3631
+ /**
3632
+ * @description Picks the project space through one of its verified domains, when
3633
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3634
+ * deprecated alias, accepted during the rename window.
3635
+ */
3636
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3637
+ /** @description Defaults to the key's pinned version. */
3638
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3639
+ /** @description Unique per logical operation. Kept for 24 hours. */
3640
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3641
+ };
3642
+ path?: never;
3643
+ cookie?: never;
3644
+ };
3645
+ requestBody: {
3646
+ content: {
3647
+ "application/json": {
3648
+ products: components["schemas"]["ProductInput"][];
3649
+ /**
3650
+ * @description `full` also deletes products absent from this batch (nightly drift check). Default `upsert`.
3651
+ * @default upsert
3652
+ * @enum {unknown}
3653
+ */
3654
+ mode?: "upsert" | "full";
3655
+ };
3656
+ };
3657
+ };
3658
+ responses: {
3659
+ /** @description Per-product results */
3660
+ 200: {
3661
+ headers: {
3662
+ [name: string]: unknown;
3663
+ };
3664
+ content: {
3665
+ "application/json": {
3666
+ /** @constant */
3667
+ object: "catalog_sync";
3668
+ results: {
3669
+ id: string;
3670
+ status: components["schemas"]["ProductStatus"];
3671
+ issues?: components["schemas"]["CatalogIssue"][];
3672
+ checkout_eligible?: components["schemas"]["ChannelCheckoutEligible"];
3673
+ checkout_ineligible_reasons?: components["schemas"]["ChannelCheckoutIneligibleReasons"];
3674
+ }[];
3675
+ deleted?: string[];
3676
+ };
3677
+ };
3678
+ };
3679
+ default: components["responses"]["Problem"];
3680
+ };
3681
+ };
3682
+ validateCatalog: {
3683
+ parameters: {
3684
+ query?: never;
3685
+ header?: {
3686
+ /**
3687
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3688
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3689
+ * when the workspace has more than one active project space and the key is
3690
+ * not limited to one. A key limited to one project space that names another
3691
+ * is refused with "This key is limited to <project space name>."
3692
+ */
3693
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3694
+ /**
3695
+ * @description Picks the project space through one of its verified domains, when
3696
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3697
+ * deprecated alias, accepted during the rename window.
3698
+ */
3699
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3700
+ /** @description Defaults to the key's pinned version. */
3701
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3702
+ };
3703
+ path?: never;
3704
+ cookie?: never;
3705
+ };
3706
+ requestBody: {
3707
+ content: {
3708
+ "application/json": {
3709
+ /** @description Omit to validate the stored catalog. */
3710
+ products?: components["schemas"]["ProductInput"][];
3711
+ };
3712
+ };
3713
+ };
3714
+ responses: {
3715
+ /** @description Validation result */
3716
+ 200: {
3717
+ headers: {
3718
+ [name: string]: unknown;
3719
+ };
3720
+ content: {
3721
+ "application/json": components["schemas"]["CatalogValidation"];
3722
+ };
3723
+ };
3724
+ default: components["responses"]["Problem"];
3725
+ };
3726
+ };
3727
+ createCheckoutSession: {
3728
+ parameters: {
3729
+ query?: never;
3730
+ header: {
3731
+ /**
3732
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
3733
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
3734
+ * when the workspace has more than one active project space and the key is
3735
+ * not limited to one. A key limited to one project space that names another
3736
+ * is refused with "This key is limited to <project space name>."
3737
+ */
3738
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
3739
+ /**
3740
+ * @description Picks the project space through one of its verified domains, when
3741
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
3742
+ * deprecated alias, accepted during the rename window.
3743
+ */
3744
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
3745
+ /** @description Defaults to the key's pinned version. */
3746
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3747
+ /** @description Unique per logical operation. Kept for 24 hours. */
3748
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3749
+ };
3750
+ path?: never;
3751
+ cookie?: never;
3752
+ };
3753
+ requestBody: {
3754
+ content: {
3755
+ "application/json": components["schemas"]["CheckoutSessionCreate"];
3756
+ };
3757
+ };
3758
+ responses: {
3759
+ /** @description The new session */
3760
+ 201: {
3761
+ headers: {
3762
+ [name: string]: unknown;
3763
+ };
3764
+ content: {
3765
+ "application/json": components["schemas"]["CheckoutSession"];
3766
+ };
3767
+ };
3768
+ default: components["responses"]["Problem"];
3769
+ };
3770
+ };
3771
+ getCheckoutSession: {
3772
+ parameters: {
3773
+ query?: never;
3774
+ header?: {
3775
+ /** @description Defaults to the key's pinned version. */
3776
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3777
+ };
3778
+ path: {
3779
+ id: components["parameters"]["SessionId"];
3780
+ };
3781
+ cookie?: never;
3782
+ };
3783
+ requestBody?: never;
3784
+ responses: {
3785
+ /** @description The session */
3786
+ 200: {
3787
+ headers: {
3788
+ [name: string]: unknown;
3789
+ };
3790
+ content: {
3791
+ "application/json": components["schemas"]["CheckoutSession"];
3792
+ };
3793
+ };
3794
+ default: components["responses"]["Problem"];
3795
+ };
3796
+ };
3797
+ updateCheckoutSession: {
3798
+ parameters: {
3799
+ query?: never;
3800
+ header: {
3801
+ /** @description Defaults to the key's pinned version. */
3802
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3803
+ /** @description Unique per logical operation. Kept for 24 hours. */
3804
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3805
+ };
3806
+ path: {
3807
+ id: components["parameters"]["SessionId"];
3808
+ };
3809
+ cookie?: never;
3810
+ };
3811
+ requestBody: {
3812
+ content: {
3813
+ "application/json": components["schemas"]["CheckoutSessionUpdate"];
3814
+ };
3815
+ };
3816
+ responses: {
3817
+ /** @description The updated session */
3818
+ 200: {
3819
+ headers: {
3820
+ [name: string]: unknown;
3821
+ };
3822
+ content: {
3823
+ "application/json": components["schemas"]["CheckoutSession"];
3824
+ };
3825
+ };
3826
+ default: components["responses"]["Problem"];
3827
+ };
3828
+ };
3829
+ cancelCheckoutSession: {
3830
+ parameters: {
3831
+ query?: never;
3832
+ header: {
3833
+ /** @description Defaults to the key's pinned version. */
3834
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3835
+ /** @description Unique per logical operation. Kept for 24 hours. */
3836
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3837
+ };
3838
+ path: {
3839
+ id: components["parameters"]["SessionId"];
3840
+ };
3841
+ cookie?: never;
3842
+ };
3843
+ requestBody?: never;
3844
+ responses: {
3845
+ /** @description The canceled session */
3846
+ 200: {
3847
+ headers: {
3848
+ [name: string]: unknown;
3849
+ };
3850
+ content: {
3851
+ "application/json": components["schemas"]["CheckoutSession"];
3852
+ };
3853
+ };
3854
+ default: components["responses"]["Problem"];
3855
+ };
3856
+ };
3857
+ getOrder: {
3858
+ parameters: {
3859
+ query?: never;
3860
+ header?: {
3861
+ /** @description Defaults to the key's pinned version. */
3862
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3863
+ };
3864
+ path: {
3865
+ id: components["parameters"]["OrderId"];
3866
+ };
3867
+ cookie?: never;
3868
+ };
3869
+ requestBody?: never;
3870
+ responses: {
3871
+ /** @description The order */
3872
+ 200: {
3873
+ headers: {
3874
+ [name: string]: unknown;
3875
+ };
3876
+ content: {
3877
+ "application/json": components["schemas"]["Order"];
3878
+ };
3879
+ };
3880
+ default: components["responses"]["Problem"];
3881
+ };
3882
+ };
3883
+ updateOrderFulfillment: {
3884
+ parameters: {
3885
+ query?: never;
3886
+ header: {
3887
+ /** @description Defaults to the key's pinned version. */
3888
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3889
+ /** @description Unique per logical operation. Kept for 24 hours. */
3890
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3891
+ };
3892
+ path: {
3893
+ id: components["parameters"]["OrderId"];
3894
+ };
3895
+ cookie?: never;
3896
+ };
3897
+ requestBody: {
3898
+ content: {
3899
+ "application/json": components["schemas"]["FulfillmentUpdate"];
3900
+ };
3901
+ };
3902
+ responses: {
3903
+ /** @description The updated order */
3904
+ 200: {
3905
+ headers: {
3906
+ [name: string]: unknown;
3907
+ };
3908
+ content: {
3909
+ "application/json": components["schemas"]["Order"];
3910
+ };
3911
+ };
3912
+ default: components["responses"]["Problem"];
3913
+ };
3914
+ };
3915
+ listEvents: {
3916
+ parameters: {
3917
+ query?: {
3918
+ limit?: components["parameters"]["Limit"];
3919
+ /** @description Cursor; the `id` of the last item on the previous page. */
3920
+ starting_after?: components["parameters"]["StartingAfter"];
3921
+ type?: components["schemas"]["EventType"];
3922
+ };
3923
+ header?: {
3924
+ /** @description Defaults to the key's pinned version. */
3925
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3926
+ };
3927
+ path?: never;
3928
+ cookie?: never;
3929
+ };
3930
+ requestBody?: never;
3931
+ responses: {
3932
+ /** @description A page of events */
3933
+ 200: {
3934
+ headers: {
3935
+ [name: string]: unknown;
3936
+ };
3937
+ content: {
3938
+ "application/json": components["schemas"]["EventList"];
3939
+ };
3940
+ };
3941
+ default: components["responses"]["Problem"];
3942
+ };
3943
+ };
3944
+ getEvent: {
3945
+ parameters: {
3946
+ query?: never;
3947
+ header?: {
3948
+ /** @description Defaults to the key's pinned version. */
3949
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3950
+ };
3951
+ path: {
3952
+ id: components["parameters"]["EventId"];
3953
+ };
3954
+ cookie?: never;
3955
+ };
3956
+ requestBody?: never;
3957
+ responses: {
3958
+ /** @description The event */
3959
+ 200: {
3960
+ headers: {
3961
+ [name: string]: unknown;
3962
+ };
3963
+ content: {
3964
+ "application/json": components["schemas"]["Event"];
3965
+ };
3966
+ };
3967
+ default: components["responses"]["Problem"];
3968
+ };
3969
+ };
3970
+ replayEvent: {
3971
+ parameters: {
3972
+ query?: never;
3973
+ header: {
3974
+ /** @description Defaults to the key's pinned version. */
3975
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
3976
+ /** @description Unique per logical operation. Kept for 24 hours. */
3977
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
3978
+ };
3979
+ path: {
3980
+ id: components["parameters"]["EventId"];
3981
+ };
3982
+ cookie?: never;
3983
+ };
3984
+ requestBody?: never;
3985
+ responses: {
3986
+ /** @description Queued for delivery */
3987
+ 202: {
3988
+ headers: {
3989
+ [name: string]: unknown;
3990
+ };
3991
+ content: {
3992
+ "application/json": components["schemas"]["Event"];
3993
+ };
3994
+ };
3995
+ default: components["responses"]["Problem"];
3996
+ };
3997
+ };
3998
+ listWebhookEndpoints: {
3999
+ parameters: {
4000
+ query?: never;
4001
+ header?: {
4002
+ /**
4003
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4004
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4005
+ * when the workspace has more than one active project space and the key is
4006
+ * not limited to one. A key limited to one project space that names another
4007
+ * is refused with "This key is limited to <project space name>."
4008
+ */
4009
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4010
+ /**
4011
+ * @description Picks the project space through one of its verified domains, when
4012
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4013
+ * deprecated alias, accepted during the rename window.
4014
+ */
4015
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4016
+ /** @description Defaults to the key's pinned version. */
4017
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4018
+ };
4019
+ path?: never;
4020
+ cookie?: never;
4021
+ };
4022
+ requestBody?: never;
4023
+ responses: {
4024
+ /** @description All endpoints */
4025
+ 200: {
4026
+ headers: {
4027
+ [name: string]: unknown;
4028
+ };
4029
+ content: {
4030
+ "application/json": {
4031
+ /** @constant */
4032
+ object: "list";
4033
+ data: components["schemas"]["WebhookEndpoint"][];
4034
+ };
4035
+ };
4036
+ };
4037
+ default: components["responses"]["Problem"];
4038
+ };
4039
+ };
4040
+ createWebhookEndpoint: {
4041
+ parameters: {
4042
+ query?: never;
4043
+ header: {
4044
+ /**
4045
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4046
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4047
+ * when the workspace has more than one active project space and the key is
4048
+ * not limited to one. A key limited to one project space that names another
4049
+ * is refused with "This key is limited to <project space name>."
4050
+ */
4051
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4052
+ /**
4053
+ * @description Picks the project space through one of its verified domains, when
4054
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4055
+ * deprecated alias, accepted during the rename window.
4056
+ */
4057
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4058
+ /** @description Defaults to the key's pinned version. */
4059
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4060
+ /** @description Unique per logical operation. Kept for 24 hours. */
4061
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4062
+ };
4063
+ path?: never;
4064
+ cookie?: never;
4065
+ };
4066
+ requestBody: {
4067
+ content: {
4068
+ "application/json": {
4069
+ /** Format: uri */
4070
+ url: string;
4071
+ events: (components["schemas"]["EventType"] | "*")[];
4072
+ description?: string;
4073
+ };
4074
+ };
4075
+ };
4076
+ responses: {
4077
+ /** @description The endpoint, with its secret */
4078
+ 201: {
4079
+ headers: {
4080
+ [name: string]: unknown;
4081
+ };
4082
+ content: {
4083
+ "application/json": components["schemas"]["WebhookEndpoint"] & {
4084
+ secret: string;
4085
+ };
4086
+ };
4087
+ };
4088
+ default: components["responses"]["Problem"];
4089
+ };
4090
+ };
4091
+ getAgentPolicy: {
4092
+ parameters: {
4093
+ query?: never;
4094
+ header?: {
4095
+ /** @description Defaults to the key's pinned version. */
4096
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4097
+ };
4098
+ path?: never;
4099
+ cookie?: never;
4100
+ };
4101
+ requestBody?: never;
4102
+ responses: {
4103
+ /** @description The policy */
4104
+ 200: {
4105
+ headers: {
4106
+ [name: string]: unknown;
4107
+ };
4108
+ content: {
4109
+ "application/json": components["schemas"]["AgentPolicy"];
4110
+ };
4111
+ };
4112
+ default: components["responses"]["Problem"];
4113
+ };
4114
+ };
4115
+ replaceAgentPolicy: {
4116
+ parameters: {
4117
+ query?: never;
4118
+ header: {
4119
+ /** @description Defaults to the key's pinned version. */
4120
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4121
+ /** @description Unique per logical operation. Kept for 24 hours. */
4122
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4123
+ };
4124
+ path?: never;
4125
+ cookie?: never;
4126
+ };
4127
+ requestBody: {
4128
+ content: {
4129
+ "application/json": components["schemas"]["AgentPolicyInput"];
4130
+ };
4131
+ };
4132
+ responses: {
4133
+ /** @description The stored policy */
4134
+ 200: {
4135
+ headers: {
4136
+ [name: string]: unknown;
4137
+ };
4138
+ content: {
4139
+ "application/json": components["schemas"]["AgentPolicy"];
4140
+ };
4141
+ };
4142
+ default: components["responses"]["Problem"];
4143
+ };
4144
+ };
4145
+ getProjectSpacePolicies: {
4146
+ parameters: {
4147
+ query?: never;
4148
+ header?: {
4149
+ /** @description Defaults to the key's pinned version. */
4150
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4151
+ };
4152
+ path?: never;
4153
+ cookie?: never;
4154
+ };
4155
+ requestBody?: never;
4156
+ responses: {
4157
+ /** @description The project space policies */
4158
+ 200: {
4159
+ headers: {
4160
+ [name: string]: unknown;
4161
+ };
4162
+ content: {
4163
+ "application/json": components["schemas"]["ProjectSpacePolicies"];
4164
+ };
4165
+ };
4166
+ default: components["responses"]["Problem"];
4167
+ };
4168
+ };
4169
+ replaceProjectSpacePolicies: {
4170
+ parameters: {
4171
+ query?: never;
4172
+ header: {
4173
+ /** @description Defaults to the key's pinned version. */
4174
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4175
+ /** @description Unique per logical operation. Kept for 24 hours. */
4176
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4177
+ };
4178
+ path?: never;
4179
+ cookie?: never;
4180
+ };
4181
+ requestBody: {
4182
+ content: {
4183
+ "application/json": components["schemas"]["ProjectSpacePoliciesInput"];
4184
+ };
4185
+ };
4186
+ responses: {
4187
+ /** @description The stored policies */
4188
+ 200: {
4189
+ headers: {
4190
+ [name: string]: unknown;
4191
+ };
4192
+ content: {
4193
+ "application/json": components["schemas"]["ProjectSpacePolicies"];
4194
+ };
4195
+ };
4196
+ default: components["responses"]["Problem"];
4197
+ };
4198
+ };
4199
+ getStorePolicies: {
4200
+ parameters: {
4201
+ query?: never;
4202
+ header?: {
4203
+ /** @description Defaults to the key's pinned version. */
4204
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4205
+ };
4206
+ path?: never;
4207
+ cookie?: never;
4208
+ };
4209
+ requestBody?: never;
4210
+ responses: {
4211
+ /** @description The store policies */
4212
+ 200: {
4213
+ headers: {
4214
+ [name: string]: unknown;
4215
+ };
4216
+ content: {
4217
+ "application/json": components["schemas"]["StorePolicies"];
4218
+ };
4219
+ };
4220
+ default: components["responses"]["Problem"];
4221
+ };
4222
+ };
4223
+ replaceStorePolicies: {
4224
+ parameters: {
4225
+ query?: never;
4226
+ header: {
4227
+ /** @description Defaults to the key's pinned version. */
4228
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4229
+ /** @description Unique per logical operation. Kept for 24 hours. */
4230
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4231
+ };
4232
+ path?: never;
4233
+ cookie?: never;
4234
+ };
4235
+ requestBody: {
4236
+ content: {
4237
+ "application/json": components["schemas"]["StorePoliciesInput"];
4238
+ };
4239
+ };
4240
+ responses: {
4241
+ /** @description The stored policies */
4242
+ 200: {
4243
+ headers: {
4244
+ [name: string]: unknown;
4245
+ };
4246
+ content: {
4247
+ "application/json": components["schemas"]["StorePolicies"];
4248
+ };
4249
+ };
4250
+ default: components["responses"]["Problem"];
4251
+ };
4252
+ };
4253
+ listDomains: {
4254
+ parameters: {
4255
+ query?: {
4256
+ limit?: components["parameters"]["Limit"];
4257
+ /** @description Cursor; the `id` of the last item on the previous page. */
4258
+ starting_after?: components["parameters"]["StartingAfter"];
4259
+ };
4260
+ header?: {
4261
+ /**
4262
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4263
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4264
+ * when the workspace has more than one active project space and the key is
4265
+ * not limited to one. A key limited to one project space that names another
4266
+ * is refused with "This key is limited to <project space name>."
4267
+ */
4268
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4269
+ /**
4270
+ * @description Picks the project space through one of its verified domains, when
4271
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4272
+ * deprecated alias, accepted during the rename window.
4273
+ */
4274
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4275
+ /** @description Defaults to the key's pinned version. */
4276
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4277
+ };
4278
+ path?: never;
4279
+ cookie?: never;
4280
+ };
4281
+ requestBody?: never;
4282
+ responses: {
4283
+ /** @description A page of domains */
4284
+ 200: {
4285
+ headers: {
4286
+ [name: string]: unknown;
4287
+ };
4288
+ content: {
4289
+ "application/json": components["schemas"]["DomainList"];
4290
+ };
4291
+ };
4292
+ default: components["responses"]["Problem"];
4293
+ };
4294
+ };
4295
+ createDomain: {
4296
+ parameters: {
4297
+ query?: never;
4298
+ header: {
4299
+ /**
4300
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4301
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4302
+ * when the workspace has more than one active project space and the key is
4303
+ * not limited to one. A key limited to one project space that names another
4304
+ * is refused with "This key is limited to <project space name>."
4305
+ */
4306
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4307
+ /**
4308
+ * @description Picks the project space through one of its verified domains, when
4309
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4310
+ * deprecated alias, accepted during the rename window.
4311
+ */
4312
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4313
+ /** @description Defaults to the key's pinned version. */
4314
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4315
+ /** @description Unique per logical operation. Kept for 24 hours. */
4316
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4317
+ };
4318
+ path?: never;
4319
+ cookie?: never;
4320
+ };
4321
+ requestBody: {
4322
+ content: {
4323
+ "application/json": components["schemas"]["DomainCreate"];
4324
+ };
4325
+ };
4326
+ responses: {
4327
+ /** @description The new pending domain */
4328
+ 201: {
4329
+ headers: {
4330
+ [name: string]: unknown;
4331
+ };
4332
+ content: {
4333
+ "application/json": components["schemas"]["Domain"];
4334
+ };
4335
+ };
4336
+ default: components["responses"]["Problem"];
4337
+ };
4338
+ };
4339
+ getDomain: {
4340
+ parameters: {
4341
+ query?: never;
4342
+ header?: {
4343
+ /** @description Defaults to the key's pinned version. */
4344
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4345
+ };
4346
+ path: {
4347
+ id: components["parameters"]["DomainId"];
4348
+ };
4349
+ cookie?: never;
4350
+ };
4351
+ requestBody?: never;
4352
+ responses: {
4353
+ /** @description The domain */
4354
+ 200: {
4355
+ headers: {
4356
+ [name: string]: unknown;
4357
+ };
4358
+ content: {
4359
+ "application/json": components["schemas"]["Domain"];
4360
+ };
4361
+ };
4362
+ default: components["responses"]["Problem"];
4363
+ };
4364
+ };
4365
+ verifyDomain: {
4366
+ parameters: {
4367
+ query?: never;
4368
+ header: {
4369
+ /** @description Defaults to the key's pinned version. */
4370
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4371
+ /** @description Unique per logical operation. Kept for 24 hours. */
4372
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4373
+ };
4374
+ path: {
4375
+ id: components["parameters"]["DomainId"];
4376
+ };
4377
+ cookie?: never;
4378
+ };
4379
+ requestBody?: never;
4380
+ responses: {
4381
+ /** @description The domain after the check */
4382
+ 200: {
4383
+ headers: {
4384
+ [name: string]: unknown;
4385
+ };
4386
+ content: {
4387
+ "application/json": components["schemas"]["Domain"];
4388
+ };
4389
+ };
4390
+ default: components["responses"]["Problem"];
4391
+ };
4392
+ };
4393
+ listChannels: {
4394
+ parameters: {
4395
+ query?: never;
4396
+ header?: {
4397
+ /** @description Defaults to the key's pinned version. */
4398
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4399
+ };
4400
+ path?: never;
4401
+ cookie?: never;
4402
+ };
4403
+ requestBody?: never;
4404
+ responses: {
4405
+ /** @description Every channel */
4406
+ 200: {
4407
+ headers: {
4408
+ [name: string]: unknown;
4409
+ };
4410
+ content: {
4411
+ "application/json": components["schemas"]["ChannelList"];
4412
+ };
4413
+ };
4414
+ default: components["responses"]["Problem"];
4415
+ };
4416
+ };
4417
+ getChannel: {
4418
+ parameters: {
4419
+ query?: never;
4420
+ header?: {
4421
+ /** @description Defaults to the key's pinned version. */
4422
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4423
+ };
4424
+ path: {
4425
+ name: components["parameters"]["ChannelName"];
4426
+ };
4427
+ cookie?: never;
4428
+ };
4429
+ requestBody?: never;
4430
+ responses: {
4431
+ /** @description The channel */
4432
+ 200: {
4433
+ headers: {
4434
+ [name: string]: unknown;
4435
+ };
4436
+ content: {
4437
+ "application/json": components["schemas"]["Channel"];
4438
+ };
4439
+ };
4440
+ default: components["responses"]["Problem"];
4441
+ };
4442
+ };
4443
+ pauseChannel: {
4444
+ parameters: {
4445
+ query?: never;
4446
+ header: {
4447
+ /** @description Defaults to the key's pinned version. */
4448
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4449
+ /** @description Unique per logical operation. Kept for 24 hours. */
4450
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4451
+ };
4452
+ path: {
4453
+ name: components["parameters"]["ChannelName"];
4454
+ };
4455
+ cookie?: never;
4456
+ };
4457
+ requestBody?: never;
4458
+ responses: {
4459
+ /** @description The paused channel */
4460
+ 200: {
4461
+ headers: {
4462
+ [name: string]: unknown;
4463
+ };
4464
+ content: {
4465
+ "application/json": components["schemas"]["Channel"];
4466
+ };
4467
+ };
4468
+ /** @description The channel is not connected */
4469
+ 409: {
4470
+ headers: {
4471
+ [name: string]: unknown;
4472
+ };
4473
+ content: {
4474
+ "application/problem+json": components["schemas"]["Problem"];
4475
+ };
4476
+ };
4477
+ default: components["responses"]["Problem"];
4478
+ };
4479
+ };
4480
+ resumeChannel: {
4481
+ parameters: {
4482
+ query?: never;
4483
+ header: {
4484
+ /** @description Defaults to the key's pinned version. */
4485
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4486
+ /** @description Unique per logical operation. Kept for 24 hours. */
4487
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4488
+ };
4489
+ path: {
4490
+ name: components["parameters"]["ChannelName"];
4491
+ };
4492
+ cookie?: never;
4493
+ };
4494
+ requestBody?: never;
4495
+ responses: {
4496
+ /** @description The resumed channel */
4497
+ 200: {
4498
+ headers: {
4499
+ [name: string]: unknown;
4500
+ };
4501
+ content: {
4502
+ "application/json": components["schemas"]["Channel"];
4503
+ };
4504
+ };
4505
+ default: components["responses"]["Problem"];
4506
+ };
4507
+ };
4508
+ createPaymentSession: {
4509
+ parameters: {
4510
+ query?: never;
4511
+ header: {
4512
+ /**
4513
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4514
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4515
+ * when the workspace has more than one active project space and the key is
4516
+ * not limited to one. A key limited to one project space that names another
4517
+ * is refused with "This key is limited to <project space name>."
4518
+ */
4519
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4520
+ /**
4521
+ * @description Picks the project space through one of its verified domains, when
4522
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4523
+ * deprecated alias, accepted during the rename window.
4524
+ */
4525
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4526
+ /** @description Defaults to the key's pinned version. */
4527
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4528
+ /** @description Unique per logical operation. Kept for 24 hours. */
4529
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4530
+ };
4531
+ path?: never;
4532
+ cookie?: never;
4533
+ };
4534
+ requestBody: {
4535
+ content: {
4536
+ "application/json": components["schemas"]["PaymentSessionCreate"];
4537
+ };
4538
+ };
4539
+ responses: {
4540
+ /** @description The new payment session */
4541
+ 201: {
4542
+ headers: {
4543
+ [name: string]: unknown;
4544
+ };
4545
+ content: {
4546
+ "application/json": components["schemas"]["PaymentSession"];
4547
+ };
4548
+ };
4549
+ default: components["responses"]["Problem"];
4550
+ };
4551
+ };
4552
+ createPayment: {
4553
+ parameters: {
4554
+ query?: never;
4555
+ header: {
4556
+ /**
4557
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4558
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4559
+ * when the workspace has more than one active project space and the key is
4560
+ * not limited to one. A key limited to one project space that names another
4561
+ * is refused with "This key is limited to <project space name>."
4562
+ */
4563
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4564
+ /**
4565
+ * @description Picks the project space through one of its verified domains, when
4566
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4567
+ * deprecated alias, accepted during the rename window.
4568
+ */
4569
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4570
+ /** @description Defaults to the key's pinned version. */
4571
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4572
+ /** @description Unique per logical operation. Kept for 24 hours. */
4573
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4574
+ };
4575
+ path?: never;
4576
+ cookie?: never;
4577
+ };
4578
+ requestBody: {
4579
+ content: {
4580
+ "application/json": components["schemas"]["PaymentCreate"];
4581
+ };
4582
+ };
4583
+ responses: {
4584
+ /** @description The payment, succeeded or failed */
4585
+ 201: {
4586
+ headers: {
4587
+ [name: string]: unknown;
4588
+ };
4589
+ content: {
4590
+ "application/json": components["schemas"]["Payment"];
4591
+ };
4592
+ };
4593
+ /** @description The cart doesn't add up, or the request is invalid */
4594
+ 400: {
4595
+ headers: {
4596
+ [name: string]: unknown;
4597
+ };
4598
+ content: {
4599
+ "application/problem+json": components["schemas"]["Problem"];
4600
+ };
4601
+ };
4602
+ /** @description No working processor account, or the cart changed since it was signed */
4603
+ 409: {
4604
+ headers: {
4605
+ [name: string]: unknown;
4606
+ };
4607
+ content: {
4608
+ "application/problem+json": components["schemas"]["Problem"];
4609
+ };
4610
+ };
4611
+ default: components["responses"]["Problem"];
4612
+ };
4613
+ };
4614
+ refundPayment: {
4615
+ parameters: {
4616
+ query?: never;
4617
+ header: {
4618
+ /** @description Defaults to the key's pinned version. */
4619
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4620
+ /** @description Unique per logical operation. Kept for 24 hours. */
4621
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4622
+ };
4623
+ path: {
4624
+ id: components["parameters"]["PaymentId"];
4625
+ };
4626
+ cookie?: never;
4627
+ };
4628
+ requestBody: {
4629
+ content: {
4630
+ "application/json": components["schemas"]["PaymentRefundCreate"];
4631
+ };
4632
+ };
4633
+ responses: {
4634
+ /** @description The refund */
4635
+ 200: {
4636
+ headers: {
4637
+ [name: string]: unknown;
4638
+ };
4639
+ content: {
4640
+ "application/json": components["schemas"]["Refund"];
4641
+ };
4642
+ };
4643
+ default: components["responses"]["Problem"];
4644
+ };
4645
+ };
4646
+ handleAgentCheckout: {
4647
+ parameters: {
4648
+ query?: never;
4649
+ header: {
4650
+ /**
4651
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4652
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4653
+ * when the workspace has more than one active project space and the key is
4654
+ * not limited to one. A key limited to one project space that names another
4655
+ * is refused with "This key is limited to <project space name>."
4656
+ */
4657
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4658
+ /**
4659
+ * @description Picks the project space through one of its verified domains, when
4660
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4661
+ * deprecated alias, accepted during the rename window.
4662
+ */
4663
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4664
+ /** @description Defaults to the key's pinned version. */
4665
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4666
+ /** @description Unique per logical operation. Kept for 24 hours. */
4667
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4668
+ };
4669
+ path: {
4670
+ /** @description The agent protocol the store received the request in. */
4671
+ protocol: components["parameters"]["AgentProtocol"];
4672
+ /** @description The checkout step the agent asked for. */
4673
+ operation: components["parameters"]["AgentCheckoutOperation"];
4674
+ };
4675
+ cookie?: never;
4676
+ };
4677
+ requestBody: {
4678
+ content: {
4679
+ "application/json": components["schemas"]["AgentCheckoutRequest"];
4680
+ };
4681
+ };
4682
+ responses: {
4683
+ /** @description Relyon's decision and the protocol response to send the agent */
4684
+ 200: {
4685
+ headers: {
4686
+ [name: string]: unknown;
4687
+ };
4688
+ content: {
4689
+ "application/json": components["schemas"]["AgentCheckoutResult"];
4690
+ };
4691
+ };
4692
+ default: components["responses"]["Problem"];
4693
+ };
4694
+ };
4695
+ getUcpAgentProfile: {
4696
+ parameters: {
4697
+ query: {
4698
+ /** @description A verified domain of the store, such as `shop.example.com`, or with a Test key any preview address, whose endpoints the profile lists. */
4699
+ hostname: components["parameters"]["ProfileHostname"];
4700
+ };
4701
+ header?: {
4702
+ /** @description Defaults to the key's pinned version. */
4703
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4704
+ };
4705
+ path?: never;
4706
+ cookie?: never;
4707
+ };
4708
+ requestBody?: never;
4709
+ responses: {
4710
+ /** @description The UCP business profile */
4711
+ 200: {
4712
+ headers: {
4713
+ /** @description `public, max-age=<seconds>`. Never longer than the signing keys' cache lifetime. */
4714
+ "Cache-Control"?: string;
4715
+ [name: string]: unknown;
4716
+ };
4717
+ content: {
4718
+ "application/json": components["schemas"]["UcpAgentProfile"];
4719
+ };
4720
+ };
4721
+ default: components["responses"]["Problem"];
4722
+ };
4723
+ };
4724
+ recordAgentEvents: {
4725
+ parameters: {
4726
+ query?: never;
4727
+ header: {
4728
+ /**
4729
+ * @description The project space this request is for (`prj_` ID; the deprecated `st_` form
4730
+ * of the same ID is accepted). Needed on space-scoped creates and lists only
4731
+ * when the workspace has more than one active project space and the key is
4732
+ * not limited to one. A key limited to one project space that names another
4733
+ * is refused with "This key is limited to <project space name>."
4734
+ */
4735
+ "Relyon-Project-Space"?: components["parameters"]["ProjectSpace"];
4736
+ /**
4737
+ * @description Picks the project space through one of its verified domains, when
4738
+ * `Relyon-Project-Space` is not sent. `Relyon-Store-Hostname` is its
4739
+ * deprecated alias, accepted during the rename window.
4740
+ */
4741
+ "Relyon-Project-Space-Hostname"?: components["parameters"]["ProjectSpaceHostname"];
4742
+ /** @description Defaults to the key's pinned version. */
4743
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4744
+ /** @description Unique per logical operation. Kept for 24 hours. */
4745
+ "Idempotency-Key": components["parameters"]["IdempotencyKey"];
4746
+ };
4747
+ path?: never;
4748
+ cookie?: never;
4749
+ };
4750
+ requestBody: {
4751
+ content: {
4752
+ "application/json": components["schemas"]["AgentEventBatch"];
4753
+ };
4754
+ };
4755
+ responses: {
4756
+ /** @description How many events were stored */
4757
+ 200: {
4758
+ headers: {
4759
+ [name: string]: unknown;
4760
+ };
4761
+ content: {
4762
+ "application/json": components["schemas"]["AgentEventBatchResult"];
4763
+ };
4764
+ };
4765
+ default: components["responses"]["Problem"];
4766
+ };
4767
+ };
4768
+ getAgentRules: {
4769
+ parameters: {
4770
+ query?: never;
4771
+ header?: {
4772
+ /** @description Defaults to the key's pinned version. */
4773
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4774
+ };
4775
+ path?: never;
4776
+ cookie?: never;
4777
+ };
4778
+ requestBody?: never;
4779
+ responses: {
4780
+ /** @description The merged rules */
4781
+ 200: {
4782
+ headers: {
4783
+ [name: string]: unknown;
4784
+ };
4785
+ content: {
4786
+ "application/json": components["schemas"]["AgentRules"];
4787
+ };
4788
+ };
4789
+ default: components["responses"]["Problem"];
4790
+ };
4791
+ };
4792
+ getProcessorAccount: {
4793
+ parameters: {
4794
+ query?: never;
4795
+ header?: {
4796
+ /** @description Defaults to the key's pinned version. */
4797
+ "Relyon-Version"?: components["parameters"]["RelyonVersion"];
4798
+ };
4799
+ path?: never;
4800
+ cookie?: never;
4801
+ };
4802
+ requestBody?: never;
4803
+ responses: {
4804
+ /** @description The processor account */
4805
+ 200: {
4806
+ headers: {
4807
+ [name: string]: unknown;
4808
+ };
4809
+ content: {
4810
+ "application/json": components["schemas"]["ProcessorAccount"];
4811
+ };
4812
+ };
4813
+ default: components["responses"]["Problem"];
4814
+ };
4815
+ };
4816
+ }