@codespar/sdk 0.16.7 → 0.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/openapi.d.ts +211 -10
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/generated/operations.d.ts +12 -0
- package/dist/generated/operations.d.ts.map +1 -1
- package/dist/generated/operations.js +2 -0
- package/dist/generated/operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -1452,7 +1452,7 @@ export interface paths {
|
|
|
1452
1452
|
content: {
|
|
1453
1453
|
"application/json": {
|
|
1454
1454
|
name: string;
|
|
1455
|
-
/** @description The event type to subscribe to. Matching is EXACT string equality — there is no prefix and no wildcard, so `commerce.payment.succeeded` does not receive `commerce.payment.received`. A name outside the list below is accepted and recorded (`trigger.event_unknown`) rather than refused, so you can subscribe ahead of a release; until something emits it the subscription simply never fires. What this build emits: approval.decided, approval.pending, commerce.account_launch_in.received, commerce.account_launch_out.received, commerce.account_status.changed, commerce.cashout.confirmed, commerce.charge.cancelled, commerce.charge.created, commerce.charge.expired, commerce.charge.expiry_notified, commerce.charge.paid, commerce.charge.payment_notified, commerce.dict_claim.cancelled, commerce.dict_claim.completed, commerce.dict_claim.confirmed, commerce.dict_claim.opened, commerce.dict_claim.waiting, commerce.internal_transfer_in.received, commerce.internal_transfer_out.received, commerce.mandate.granted, commerce.mandate.paused, commerce.mandate.resumed, commerce.mandate.revoked, commerce.onboarding.backgroundcheck_approved, commerce.onboarding.backgroundcheck_pending, commerce.onboarding.backgroundcheck_rejected, commerce.onboarding.documentscopy_approved, commerce.onboarding.documentscopy_pending, commerce.onboarding.documentscopy_processing, commerce.onboarding.documentscopy_rejected, commerce.onboarding.proposal_approved, commerce.onboarding.proposal_processing_documentscopy, commerce.onboarding.proposal_rejected, commerce.payment.failed, commerce.payment.pending, commerce.payment.received, commerce.payment.refunded, commerce.payment.succeeded, commerce.payment.updated, commerce.pix_out.failed, commerce.pix_out.succeeded, commerce.pix_out.unconfirmed, commerce.pix_reversal_in.received, commerce.pix_reversal_out.received, commerce.rinne.observed, commerce.spend.failed, commerce.spend.settled, commerce.ted_in.succeeded, dda.boleto.registered, dda.subscription.activated, dda.subscription.failed, proxy_call.failed, proxy_call.succeeded, session.closed, system.health.degraded, system.health.recovered, tool_call.failed, tool_call.succeeded, trigger.paused_automatically, trigger.test_fire, user.signed_up. */
|
|
1455
|
+
/** @description The event type to subscribe to. Matching is EXACT string equality — there is no prefix and no wildcard, so `commerce.payment.succeeded` does not receive `commerce.payment.received`. A name outside the list below is accepted and recorded (`trigger.event_unknown`) rather than refused, so you can subscribe ahead of a release; until something emits it the subscription simply never fires. What this build emits: approval.decided, approval.pending, commerce.account_launch_in.received, commerce.account_launch_out.received, commerce.account_status.changed, commerce.cashout.confirmed, commerce.charge.cancelled, commerce.charge.created, commerce.charge.expired, commerce.charge.expiry_notified, commerce.charge.paid, commerce.charge.payment_notified, commerce.dict_claim.cancelled, commerce.dict_claim.completed, commerce.dict_claim.confirmed, commerce.dict_claim.opened, commerce.dict_claim.waiting, commerce.internal_transfer_in.received, commerce.internal_transfer_out.received, commerce.mandate.granted, commerce.mandate.paused, commerce.mandate.resumed, commerce.mandate.revoked, commerce.onboarding.backgroundcheck_approved, commerce.onboarding.backgroundcheck_pending, commerce.onboarding.backgroundcheck_rejected, commerce.onboarding.documentscopy_approved, commerce.onboarding.documentscopy_pending, commerce.onboarding.documentscopy_processing, commerce.onboarding.documentscopy_rejected, commerce.onboarding.proposal_approved, commerce.onboarding.proposal_processing_documentscopy, commerce.onboarding.proposal_rejected, commerce.organization.paused, commerce.organization.resumed, commerce.payment.failed, commerce.payment.pending, commerce.payment.received, commerce.payment.refunded, commerce.payment.succeeded, commerce.payment.updated, commerce.pix_out.failed, commerce.pix_out.succeeded, commerce.pix_out.unconfirmed, commerce.pix_reversal_in.received, commerce.pix_reversal_out.received, commerce.rinne.observed, commerce.spend.failed, commerce.spend.settled, commerce.ted_in.succeeded, dda.boleto.registered, dda.subscription.activated, dda.subscription.failed, proxy_call.failed, proxy_call.succeeded, session.closed, system.health.degraded, system.health.recovered, tool_call.failed, tool_call.succeeded, trigger.paused_automatically, trigger.test_fire, user.signed_up. */
|
|
1456
1456
|
event: string;
|
|
1457
1457
|
server_id?: string;
|
|
1458
1458
|
/** Format: uri */
|
|
@@ -1570,7 +1570,7 @@ export interface paths {
|
|
|
1570
1570
|
content: {
|
|
1571
1571
|
"application/json": {
|
|
1572
1572
|
name: string;
|
|
1573
|
-
/** @description The event type to subscribe to. Matching is EXACT string equality — there is no prefix and no wildcard, so `commerce.payment.succeeded` does not receive `commerce.payment.received`. A name outside the list below is accepted and recorded (`trigger.event_unknown`) rather than refused, so you can subscribe ahead of a release; until something emits it the subscription simply never fires. What this build emits: approval.decided, approval.pending, commerce.account_launch_in.received, commerce.account_launch_out.received, commerce.account_status.changed, commerce.cashout.confirmed, commerce.charge.cancelled, commerce.charge.created, commerce.charge.expired, commerce.charge.expiry_notified, commerce.charge.paid, commerce.charge.payment_notified, commerce.dict_claim.cancelled, commerce.dict_claim.completed, commerce.dict_claim.confirmed, commerce.dict_claim.opened, commerce.dict_claim.waiting, commerce.internal_transfer_in.received, commerce.internal_transfer_out.received, commerce.mandate.granted, commerce.mandate.paused, commerce.mandate.resumed, commerce.mandate.revoked, commerce.onboarding.backgroundcheck_approved, commerce.onboarding.backgroundcheck_pending, commerce.onboarding.backgroundcheck_rejected, commerce.onboarding.documentscopy_approved, commerce.onboarding.documentscopy_pending, commerce.onboarding.documentscopy_processing, commerce.onboarding.documentscopy_rejected, commerce.onboarding.proposal_approved, commerce.onboarding.proposal_processing_documentscopy, commerce.onboarding.proposal_rejected, commerce.payment.failed, commerce.payment.pending, commerce.payment.received, commerce.payment.refunded, commerce.payment.succeeded, commerce.payment.updated, commerce.pix_out.failed, commerce.pix_out.succeeded, commerce.pix_out.unconfirmed, commerce.pix_reversal_in.received, commerce.pix_reversal_out.received, commerce.rinne.observed, commerce.spend.failed, commerce.spend.settled, commerce.ted_in.succeeded, dda.boleto.registered, dda.subscription.activated, dda.subscription.failed, proxy_call.failed, proxy_call.succeeded, session.closed, system.health.degraded, system.health.recovered, tool_call.failed, tool_call.succeeded, trigger.paused_automatically, trigger.test_fire, user.signed_up. */
|
|
1573
|
+
/** @description The event type to subscribe to. Matching is EXACT string equality — there is no prefix and no wildcard, so `commerce.payment.succeeded` does not receive `commerce.payment.received`. A name outside the list below is accepted and recorded (`trigger.event_unknown`) rather than refused, so you can subscribe ahead of a release; until something emits it the subscription simply never fires. What this build emits: approval.decided, approval.pending, commerce.account_launch_in.received, commerce.account_launch_out.received, commerce.account_status.changed, commerce.cashout.confirmed, commerce.charge.cancelled, commerce.charge.created, commerce.charge.expired, commerce.charge.expiry_notified, commerce.charge.paid, commerce.charge.payment_notified, commerce.dict_claim.cancelled, commerce.dict_claim.completed, commerce.dict_claim.confirmed, commerce.dict_claim.opened, commerce.dict_claim.waiting, commerce.internal_transfer_in.received, commerce.internal_transfer_out.received, commerce.mandate.granted, commerce.mandate.paused, commerce.mandate.resumed, commerce.mandate.revoked, commerce.onboarding.backgroundcheck_approved, commerce.onboarding.backgroundcheck_pending, commerce.onboarding.backgroundcheck_rejected, commerce.onboarding.documentscopy_approved, commerce.onboarding.documentscopy_pending, commerce.onboarding.documentscopy_processing, commerce.onboarding.documentscopy_rejected, commerce.onboarding.proposal_approved, commerce.onboarding.proposal_processing_documentscopy, commerce.onboarding.proposal_rejected, commerce.organization.paused, commerce.organization.resumed, commerce.payment.failed, commerce.payment.pending, commerce.payment.received, commerce.payment.refunded, commerce.payment.succeeded, commerce.payment.updated, commerce.pix_out.failed, commerce.pix_out.succeeded, commerce.pix_out.unconfirmed, commerce.pix_reversal_in.received, commerce.pix_reversal_out.received, commerce.rinne.observed, commerce.spend.failed, commerce.spend.settled, commerce.ted_in.succeeded, dda.boleto.registered, dda.subscription.activated, dda.subscription.failed, proxy_call.failed, proxy_call.succeeded, session.closed, system.health.degraded, system.health.recovered, tool_call.failed, tool_call.succeeded, trigger.paused_automatically, trigger.test_fire, user.signed_up. */
|
|
1574
1574
|
event: string;
|
|
1575
1575
|
server_id?: string;
|
|
1576
1576
|
/** Format: uri */
|
|
@@ -9724,7 +9724,7 @@ export interface paths {
|
|
|
9724
9724
|
* Read graded dependency health, as this credential's tenant sees it
|
|
9725
9725
|
* @description Six dependency checks and the schema version, graded into one `status`. The checks run in parallel behind a three-second budget each; one that throws or times out is reported in its own failed shape with `message` carrying the reason, and the response still carries the other five. So the operation is expected back in under four seconds however badly the database is behaving.
|
|
9726
9726
|
*
|
|
9727
|
-
* GRADE ON `status`, AND READ THE RULE BEFORE WRITING THE ALERT, because the rule is narrower than "anything off nominal". `down` means `db.ok` or `vault.ok` is false. `degraded` means one of exactly four things: `embeddings.status` is `empty`, `fx_rates.status` is anything other than `
|
|
9727
|
+
* GRADE ON `status`, AND READ THE RULE BEFORE WRITING THE ALERT, because the rule is narrower than "anything off nominal". `down` means `db.ok` or `vault.ok` is false. `degraded` means one of exactly four things: `embeddings.status` is `empty`, `fx_rates.status` is anything other than `usable`, `telemetry.status` is `stale`, or `connections.status` is `none`. Everything else grades `healthy`.
|
|
9728
9728
|
*
|
|
9729
9729
|
* THREE NON-NOMINAL VALUES DO NOT MOVE THE GRADE, and an alert that wants them has to read the field rather than the grade: `embeddings.status` `low` (fewer than half the tool rows carry an embedding), `connections.status` `partial` (one or two connections rather than three or more), and `telemetry.status` `idle` (a quiet hour that still had traffic inside the day). All three come back `healthy` at the top level, on purpose — none of them stops a call from being served.
|
|
9730
9730
|
*
|
|
@@ -9751,7 +9751,7 @@ export interface paths {
|
|
|
9751
9751
|
content: {
|
|
9752
9752
|
"application/json": {
|
|
9753
9753
|
/**
|
|
9754
|
-
* @description `down` iff the database or the vault check failed. `degraded` iff embeddings are empty, FX is not
|
|
9754
|
+
* @description `down` iff the database or the vault check failed. `degraded` iff embeddings are empty, the FX rate is not usable, telemetry is stale, or the tenant has no connection. `healthy` otherwise — which includes embeddings `low`, connections `partial` and telemetry `idle`.
|
|
9755
9755
|
* @enum {string}
|
|
9756
9756
|
*/
|
|
9757
9757
|
status: "healthy" | "degraded" | "down";
|
|
@@ -9787,16 +9787,16 @@ export interface paths {
|
|
|
9787
9787
|
fx_rates: {
|
|
9788
9788
|
/**
|
|
9789
9789
|
* Format: date-time
|
|
9790
|
-
* @description
|
|
9790
|
+
* @description The market timestamp BCB stamped on the newest USD/BRL PTAX close we hold — NOT the time our fetcher last ran. BCB publishes Mon-Fri, so on a Monday this is routinely Friday. Null when no rate has ever been stored, and null when the check itself failed.
|
|
9791
9791
|
*/
|
|
9792
9792
|
last_fetched_at: string | null;
|
|
9793
|
-
/** @description Age of that
|
|
9793
|
+
/** @description Age of that close in hours, to one decimal. */
|
|
9794
9794
|
hours_old: number | null;
|
|
9795
9795
|
/**
|
|
9796
|
-
* @description `
|
|
9796
|
+
* @description Whether the router will normalize on this rate, derived from `hours_old`: `usable` inside 72 hours, `stale` past it — which is the age at which the router stops normalizing across currencies. `missing` when there is no row, or when the check failed. Anything other than `usable` grades the response `degraded`. The value deliberately says nothing about recency: a `usable` rate can be three days old over a weekend, and nothing here reports whether the fetcher ran.
|
|
9797
9797
|
* @enum {string}
|
|
9798
9798
|
*/
|
|
9799
|
-
status: "
|
|
9799
|
+
status: "usable" | "stale" | "missing";
|
|
9800
9800
|
/** @description Present only when the check failed or timed out. */
|
|
9801
9801
|
message?: string;
|
|
9802
9802
|
};
|
|
@@ -9893,6 +9893,12 @@ export interface paths {
|
|
|
9893
9893
|
name: string;
|
|
9894
9894
|
/** Format: date-time */
|
|
9895
9895
|
created_at: string;
|
|
9896
|
+
/** @description Set while the organization's kill switch is pressed and every agent money door refuses `org_paused` (ent#1648); null otherwise. The full state, and pressing or releasing it, is `/v1/orgs/{orgId}/pause`. */
|
|
9897
|
+
spend_pause: {
|
|
9898
|
+
/** Format: date-time */
|
|
9899
|
+
paused_at: string | null;
|
|
9900
|
+
reason: string | null;
|
|
9901
|
+
} | null;
|
|
9896
9902
|
};
|
|
9897
9903
|
};
|
|
9898
9904
|
};
|
|
@@ -20430,7 +20436,7 @@ export interface paths {
|
|
|
20430
20436
|
};
|
|
20431
20437
|
/**
|
|
20432
20438
|
* Read one consumer allowance
|
|
20433
|
-
* @description The same 14-field projection the listing returns, by id, from the same table and under the same organization predicate.
|
|
20439
|
+
* @description The same 14-field projection the listing returns, by id, from the same table and under the same organization predicate, plus `org_paused` / `org_paused_at`: whether the organization's kill switch is pressed (ent#1648).
|
|
20434
20440
|
*
|
|
20435
20441
|
* This path has NO alias. Its four siblings are registered twice each, under `/v1/mandates/...` and `/v1/consumers/mandates/...`; this one is registered once, because point reads of an allowance did not exist before it and there was no older spelling to keep alive.
|
|
20436
20442
|
*/
|
|
@@ -20481,6 +20487,13 @@ export interface paths {
|
|
|
20481
20487
|
expires_at: string;
|
|
20482
20488
|
/** Format: date-time */
|
|
20483
20489
|
created_at: string;
|
|
20490
|
+
/** @description True while the organization has paused ALL agent spend (the kill switch, ent#1648). `status` is still this allowance's own stored state: a pause changes no mandate. While this is true every spend under this allowance is refused `org_paused`, so a caller that checks before executing should treat it as "do not execute" whatever `status` says. */
|
|
20491
|
+
org_paused: boolean;
|
|
20492
|
+
/**
|
|
20493
|
+
* Format: date-time
|
|
20494
|
+
* @description When the organization paused. Null when `org_paused` is false.
|
|
20495
|
+
*/
|
|
20496
|
+
org_paused_at: string | null;
|
|
20484
20497
|
};
|
|
20485
20498
|
};
|
|
20486
20499
|
};
|
|
@@ -25236,7 +25249,7 @@ export interface paths {
|
|
|
25236
25249
|
* Issue an org-side mandate (off by default, see the 501)
|
|
25237
25250
|
* @description OFF BY DEFAULT, AND THE FIRST THING THIS ROUTE DOES IS CHECK THAT. Unless the deployment has explicitly enabled org-side issuance, every call is 501 `not_implemented` before any row is written. On a default deployment that 501 is the expected answer, not an outage.
|
|
25238
25251
|
*
|
|
25239
|
-
*
|
|
25252
|
+
* The 501 is about offering issuance, not about enforcement: `POST /v1/wallets/{id}/execute` charges a mandate before the payment is attempted, decrements `remaining_amount` under a guard that refuses an over-cap spend, and writes the consumption row this document returns from `GET /v1/orgs/{orgId}/mandates/{id}`. So a mandate issued here is enforceable; whether it can be issued at all is the deployment's flag.
|
|
25240
25253
|
*
|
|
25241
25254
|
* When enabled, issuance is gated by the org's policy rules for `codespar:mandate:issue`, evaluated before any write. The three non-allowed outcomes are distinct on purpose: 403 `policy_denied` is a rule refusing, 413 `payload_too_large` is an input too big to evaluate, and 503 `policy_engine_error` means the engine could NOT evaluate. The 503 is infrastructure and is retriable; the 403 is not.
|
|
25242
25255
|
*
|
|
@@ -25640,6 +25653,194 @@ export interface paths {
|
|
|
25640
25653
|
patch?: never;
|
|
25641
25654
|
trace?: never;
|
|
25642
25655
|
};
|
|
25656
|
+
"/v1/orgs/{orgId}/pause": {
|
|
25657
|
+
parameters: {
|
|
25658
|
+
query?: never;
|
|
25659
|
+
header?: never;
|
|
25660
|
+
path?: never;
|
|
25661
|
+
cookie?: never;
|
|
25662
|
+
};
|
|
25663
|
+
/**
|
|
25664
|
+
* Read the organization kill switch
|
|
25665
|
+
* @description Whether the organization has paused ALL agent spend. While `paused` is true every agent money door of the organization refuses with `org_paused` (403): consumer payments and spends under a mandate, payment links, consumer withdrawals and transfers, card authorizations, the money-moving meta-tool actions, the org programmable wallet, an inbound Pix devolution, and raw tools the deny-list classifies as a fund transfer. Reads, inbound charges, mandate revoke/pause and x402-in keep running. `GET /v1/mandates/{id}` carries the same flag as `org_paused`.
|
|
25666
|
+
*/
|
|
25667
|
+
get: {
|
|
25668
|
+
parameters: {
|
|
25669
|
+
query?: never;
|
|
25670
|
+
header?: never;
|
|
25671
|
+
path: {
|
|
25672
|
+
orgId: string;
|
|
25673
|
+
};
|
|
25674
|
+
cookie?: never;
|
|
25675
|
+
};
|
|
25676
|
+
requestBody?: never;
|
|
25677
|
+
responses: {
|
|
25678
|
+
/** @description OK */
|
|
25679
|
+
200: {
|
|
25680
|
+
headers: {
|
|
25681
|
+
[name: string]: unknown;
|
|
25682
|
+
};
|
|
25683
|
+
content: {
|
|
25684
|
+
"application/json": {
|
|
25685
|
+
org_id: string;
|
|
25686
|
+
paused: boolean;
|
|
25687
|
+
/** Format: date-time */
|
|
25688
|
+
paused_at: string | null;
|
|
25689
|
+
/** @description Why it was paused; null when not paused. */
|
|
25690
|
+
reason: string | null;
|
|
25691
|
+
/** @description The admin's user id, or `key:<id>` for a bearer key. Null when not paused. */
|
|
25692
|
+
paused_by: string | null;
|
|
25693
|
+
/** @enum {string|null} */
|
|
25694
|
+
paused_by_source: "bearer_key" | "user_token_verified" | "header_asserted" | null;
|
|
25695
|
+
/**
|
|
25696
|
+
* Format: date-time
|
|
25697
|
+
* @description The last resume, kept after a new pause.
|
|
25698
|
+
*/
|
|
25699
|
+
resumed_at: string | null;
|
|
25700
|
+
/** @description Increases by one on every pause and every resume. */
|
|
25701
|
+
generation: number;
|
|
25702
|
+
};
|
|
25703
|
+
};
|
|
25704
|
+
};
|
|
25705
|
+
/** @description The `{orgId}` in the path is not the authenticated org. */
|
|
25706
|
+
404: {
|
|
25707
|
+
headers: {
|
|
25708
|
+
[name: string]: unknown;
|
|
25709
|
+
};
|
|
25710
|
+
content: {
|
|
25711
|
+
"application/json": {
|
|
25712
|
+
error: {
|
|
25713
|
+
/** @enum {string} */
|
|
25714
|
+
code: "not_found";
|
|
25715
|
+
message: string;
|
|
25716
|
+
details?: {
|
|
25717
|
+
[key: string]: unknown;
|
|
25718
|
+
};
|
|
25719
|
+
};
|
|
25720
|
+
/** @description Echoes the `X-Request-Id` header when the request carried one. */
|
|
25721
|
+
request_id: string | null;
|
|
25722
|
+
};
|
|
25723
|
+
};
|
|
25724
|
+
};
|
|
25725
|
+
};
|
|
25726
|
+
};
|
|
25727
|
+
put?: never;
|
|
25728
|
+
/**
|
|
25729
|
+
* Pause all agent spend of the organization (kill switch)
|
|
25730
|
+
* @description Stops every agent money door of the organization, test and live projects alike, until a person resumes it. Once this call answers, no new reservation is taken: a spend that already reserved its funds finishes, like an in-flight hold on a frozen wallet.
|
|
25731
|
+
*
|
|
25732
|
+
* A bearer key needs the `organizations:pause` scope; the dashboard path needs an admin. Idempotent: pausing a paused organization answers `changed: false` and keeps the original pause. Resuming is NOT an API-key operation: it is done from the dashboard by a verified admin. Publishes `commerce.organization.paused` to every project of the organization and appends `org_spend_paused` to its audit chain.
|
|
25733
|
+
*
|
|
25734
|
+
* Card authorizations are refused at the issuer that waits for our answer (Pomelo). Bridge decides before we hear of it: freeze those cards at the issuer as well.
|
|
25735
|
+
*/
|
|
25736
|
+
post: {
|
|
25737
|
+
parameters: {
|
|
25738
|
+
query?: never;
|
|
25739
|
+
header?: never;
|
|
25740
|
+
path: {
|
|
25741
|
+
orgId: string;
|
|
25742
|
+
};
|
|
25743
|
+
cookie?: never;
|
|
25744
|
+
};
|
|
25745
|
+
requestBody?: {
|
|
25746
|
+
content: {
|
|
25747
|
+
"application/json": {
|
|
25748
|
+
reason?: string;
|
|
25749
|
+
};
|
|
25750
|
+
};
|
|
25751
|
+
};
|
|
25752
|
+
responses: {
|
|
25753
|
+
/** @description OK */
|
|
25754
|
+
200: {
|
|
25755
|
+
headers: {
|
|
25756
|
+
[name: string]: unknown;
|
|
25757
|
+
};
|
|
25758
|
+
content: {
|
|
25759
|
+
"application/json": {
|
|
25760
|
+
/** @description False when the organization was already in the requested state. */
|
|
25761
|
+
changed: boolean;
|
|
25762
|
+
pause: {
|
|
25763
|
+
org_id: string;
|
|
25764
|
+
paused: boolean;
|
|
25765
|
+
/** Format: date-time */
|
|
25766
|
+
paused_at: string | null;
|
|
25767
|
+
/** @description Why it was paused; null when not paused. */
|
|
25768
|
+
reason: string | null;
|
|
25769
|
+
/** @description The admin's user id, or `key:<id>` for a bearer key. Null when not paused. */
|
|
25770
|
+
paused_by: string | null;
|
|
25771
|
+
/** @enum {string|null} */
|
|
25772
|
+
paused_by_source: "bearer_key" | "user_token_verified" | "header_asserted" | null;
|
|
25773
|
+
/**
|
|
25774
|
+
* Format: date-time
|
|
25775
|
+
* @description The last resume, kept after a new pause.
|
|
25776
|
+
*/
|
|
25777
|
+
resumed_at: string | null;
|
|
25778
|
+
/** @description Increases by one on every pause and every resume. */
|
|
25779
|
+
generation: number;
|
|
25780
|
+
};
|
|
25781
|
+
};
|
|
25782
|
+
};
|
|
25783
|
+
};
|
|
25784
|
+
/** @description The body did not parse. */
|
|
25785
|
+
400: {
|
|
25786
|
+
headers: {
|
|
25787
|
+
[name: string]: unknown;
|
|
25788
|
+
};
|
|
25789
|
+
content: {
|
|
25790
|
+
"application/json": {
|
|
25791
|
+
error: {
|
|
25792
|
+
/** @enum {string} */
|
|
25793
|
+
code: "invalid_body";
|
|
25794
|
+
message: string;
|
|
25795
|
+
details?: {
|
|
25796
|
+
[key: string]: unknown;
|
|
25797
|
+
};
|
|
25798
|
+
};
|
|
25799
|
+
/** @description Echoes the `X-Request-Id` header when the request carried one. */
|
|
25800
|
+
request_id: string | null;
|
|
25801
|
+
};
|
|
25802
|
+
};
|
|
25803
|
+
};
|
|
25804
|
+
/** @description The dashboard path named no admin, or a token that did not verify. Bare `{ error, remediation }` body. */
|
|
25805
|
+
403: {
|
|
25806
|
+
headers: {
|
|
25807
|
+
[name: string]: unknown;
|
|
25808
|
+
};
|
|
25809
|
+
content: {
|
|
25810
|
+
"application/json": {
|
|
25811
|
+
error: string;
|
|
25812
|
+
remediation?: string;
|
|
25813
|
+
};
|
|
25814
|
+
};
|
|
25815
|
+
};
|
|
25816
|
+
/** @description The `{orgId}` in the path is not the authenticated org. */
|
|
25817
|
+
404: {
|
|
25818
|
+
headers: {
|
|
25819
|
+
[name: string]: unknown;
|
|
25820
|
+
};
|
|
25821
|
+
content: {
|
|
25822
|
+
"application/json": {
|
|
25823
|
+
error: {
|
|
25824
|
+
/** @enum {string} */
|
|
25825
|
+
code: "not_found";
|
|
25826
|
+
message: string;
|
|
25827
|
+
details?: {
|
|
25828
|
+
[key: string]: unknown;
|
|
25829
|
+
};
|
|
25830
|
+
};
|
|
25831
|
+
/** @description Echoes the `X-Request-Id` header when the request carried one. */
|
|
25832
|
+
request_id: string | null;
|
|
25833
|
+
};
|
|
25834
|
+
};
|
|
25835
|
+
};
|
|
25836
|
+
};
|
|
25837
|
+
};
|
|
25838
|
+
delete?: never;
|
|
25839
|
+
options?: never;
|
|
25840
|
+
head?: never;
|
|
25841
|
+
patch?: never;
|
|
25842
|
+
trace?: never;
|
|
25843
|
+
};
|
|
25643
25844
|
"/v1/paywalls": {
|
|
25644
25845
|
parameters: {
|
|
25645
25846
|
query?: never;
|