@primitivedotdev/sdk 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -19
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-DoB7DrgV.js → api-ClLMDF81.js} +251 -1
- package/dist/{index-BDjVGtc8.d.ts → index-BnbrY8kp.d.ts} +885 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-XrEy5EtX.js → operations.generated-DQIrhCT5.js} +1856 -21
- package/dist/x402/index.d.ts +36 -4
- package/dist/x402/index.js +38 -8
- package/package.json +1 -1
|
@@ -324,6 +324,271 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
|
|
|
324
324
|
declare const createClient: (config?: Config) => Client;
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region ../packages/api-core/src/api/types.gen.d.ts
|
|
327
|
+
type RegisterPayoutAddressInput = {
|
|
328
|
+
/**
|
|
329
|
+
* The payout address (your signer's own EVM address), 0x-prefixed.
|
|
330
|
+
*/
|
|
331
|
+
address: string;
|
|
332
|
+
/**
|
|
333
|
+
* The chain the address receives on.
|
|
334
|
+
*/
|
|
335
|
+
network: 'base' | 'base-sepolia';
|
|
336
|
+
/**
|
|
337
|
+
* A `personal_sign` signature over the org-bound message produced by
|
|
338
|
+
* the SDK helper `buildPayoutRegistrationMessage`. Recovered and
|
|
339
|
+
* checked against `address`; the org id is bound into the signed bytes.
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
signature: string;
|
|
343
|
+
/**
|
|
344
|
+
* ISO-8601 timestamp embedded in the signed message. Must be within a
|
|
345
|
+
* short freshness window (about 10 minutes) of server time.
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
issued_at: string;
|
|
349
|
+
/**
|
|
350
|
+
* Optional human-readable label.
|
|
351
|
+
*/
|
|
352
|
+
label?: string;
|
|
353
|
+
};
|
|
354
|
+
type X402PayoutAddress = {
|
|
355
|
+
id: string;
|
|
356
|
+
/**
|
|
357
|
+
* The checksummed payout address.
|
|
358
|
+
*/
|
|
359
|
+
address: string;
|
|
360
|
+
network: 'base' | 'base-sepolia';
|
|
361
|
+
label: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* Exactly one address per (org, network) is the default.
|
|
364
|
+
*/
|
|
365
|
+
is_default: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* When ownership of the address was last proven.
|
|
368
|
+
*/
|
|
369
|
+
verified_at: string;
|
|
370
|
+
created_at?: string;
|
|
371
|
+
};
|
|
372
|
+
type CreateChallengeInput = {
|
|
373
|
+
/**
|
|
374
|
+
* Amount to collect, in token base units. USDC has 6 decimals, so
|
|
375
|
+
* `"10000"` is 0.01 USDC.
|
|
376
|
+
*
|
|
377
|
+
*/
|
|
378
|
+
amount: string;
|
|
379
|
+
network: 'base' | 'base-sepolia';
|
|
380
|
+
/**
|
|
381
|
+
* The org id allowed to pay this challenge (on-net binding). Optional.
|
|
382
|
+
*
|
|
383
|
+
*/
|
|
384
|
+
payer_org?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Seconds until the challenge expires. Defaults to 3600.
|
|
387
|
+
*/
|
|
388
|
+
expires_in?: number;
|
|
389
|
+
/**
|
|
390
|
+
* Optional URL identifying what is being paid for. Defaults to a
|
|
391
|
+
* synthetic `x402:challenge:<id>` identifier.
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
resource?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Optional human-readable description of the payment.
|
|
397
|
+
*/
|
|
398
|
+
description?: string;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* The interaction binding the payer hashes into the EIP-3009 nonce
|
|
402
|
+
* (`deriveEip3009Nonce`). Pinning the nonce to this binding is what lets an
|
|
403
|
+
* x402 payment ride asynchronous transports safely: a replayed challenge
|
|
404
|
+
* can't redirect funds and a signed payment can't settle twice.
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
type X402NonceBinding = {
|
|
408
|
+
/**
|
|
409
|
+
* Interaction id, including its `@domain` part.
|
|
410
|
+
*/
|
|
411
|
+
interaction_id: string;
|
|
412
|
+
challenge_step_id: string;
|
|
413
|
+
/**
|
|
414
|
+
* 32 random bytes as 64 lowercase hex chars.
|
|
415
|
+
*/
|
|
416
|
+
challenge_nonce: string;
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* The x402 `PaymentRequirements` the payer signs over. Field names are
|
|
420
|
+
* x402's native camelCase, preserved byte-for-byte.
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
type X402PaymentRequirements = {
|
|
424
|
+
/**
|
|
425
|
+
* The x402 settlement scheme. Always `exact` for v1.
|
|
426
|
+
*/
|
|
427
|
+
scheme: string;
|
|
428
|
+
network: 'base' | 'base-sepolia';
|
|
429
|
+
/**
|
|
430
|
+
* Amount in token base units.
|
|
431
|
+
*/
|
|
432
|
+
maxAmountRequired: string;
|
|
433
|
+
/**
|
|
434
|
+
* The payee's resolved payout address (checksummed).
|
|
435
|
+
*/
|
|
436
|
+
payTo: string;
|
|
437
|
+
/**
|
|
438
|
+
* The token contract address (checksummed). USDC.
|
|
439
|
+
*/
|
|
440
|
+
asset: string;
|
|
441
|
+
resource?: string;
|
|
442
|
+
description?: string;
|
|
443
|
+
maxTimeoutSeconds?: number;
|
|
444
|
+
/**
|
|
445
|
+
* The token's load-bearing EIP-712 domain params. `name` differs by
|
|
446
|
+
* chain (Base mainnet USDC is `USD Coin`, Base Sepolia is `USDC`); a
|
|
447
|
+
* wrong value produces a signature the verifier rejects.
|
|
448
|
+
*
|
|
449
|
+
*/
|
|
450
|
+
extra: {
|
|
451
|
+
name: string;
|
|
452
|
+
version: string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
type X402Challenge = {
|
|
456
|
+
id: string;
|
|
457
|
+
status: 'pending' | 'settling' | 'settled' | 'failed' | 'expired';
|
|
458
|
+
network: 'base' | 'base-sepolia';
|
|
459
|
+
/**
|
|
460
|
+
* Token contract address (checksummed).
|
|
461
|
+
*/
|
|
462
|
+
asset: string;
|
|
463
|
+
/**
|
|
464
|
+
* Amount in token base units.
|
|
465
|
+
*/
|
|
466
|
+
amount: string;
|
|
467
|
+
/**
|
|
468
|
+
* The payee's resolved payout address (checksummed).
|
|
469
|
+
*/
|
|
470
|
+
pay_to: string;
|
|
471
|
+
/**
|
|
472
|
+
* The org id bound as payer, if one was set at creation.
|
|
473
|
+
*/
|
|
474
|
+
payer_org?: string | null;
|
|
475
|
+
resource?: string | null;
|
|
476
|
+
description?: string | null;
|
|
477
|
+
nonce_binding: X402NonceBinding;
|
|
478
|
+
/**
|
|
479
|
+
* On-chain settlement transaction hash once settled.
|
|
480
|
+
*/
|
|
481
|
+
settle_tx?: string | null;
|
|
482
|
+
settled_at?: string | null;
|
|
483
|
+
failure_reason?: string | null;
|
|
484
|
+
expires_at: string;
|
|
485
|
+
created_at?: string;
|
|
486
|
+
/**
|
|
487
|
+
* Present on the create response. Hand the whole challenge (including
|
|
488
|
+
* this) to the payer; `getChallenge` omits it (it is for status polling
|
|
489
|
+
* by the challenger).
|
|
490
|
+
*
|
|
491
|
+
*/
|
|
492
|
+
payment_requirements?: X402PaymentRequirements;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* A signed x402 v1 `PaymentPayload`. The SDK `pay()` helper builds this;
|
|
496
|
+
* callers rarely construct it by hand. Field names are x402-native.
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
type X402PaymentPayload = {
|
|
500
|
+
x402Version: number;
|
|
501
|
+
scheme: string;
|
|
502
|
+
network: 'base' | 'base-sepolia';
|
|
503
|
+
payload: {
|
|
504
|
+
/**
|
|
505
|
+
* The EIP-712 signature over the authorization.
|
|
506
|
+
*/
|
|
507
|
+
signature: string;
|
|
508
|
+
/**
|
|
509
|
+
* The EIP-3009 `transferWithAuthorization` fields, as strings.
|
|
510
|
+
*/
|
|
511
|
+
authorization: {
|
|
512
|
+
from: string;
|
|
513
|
+
to: string;
|
|
514
|
+
value: string;
|
|
515
|
+
validAfter: string;
|
|
516
|
+
validBefore: string;
|
|
517
|
+
nonce: string;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
type PayChallengeInput = {
|
|
522
|
+
payment: X402PaymentPayload;
|
|
523
|
+
};
|
|
524
|
+
type X402Receipt = {
|
|
525
|
+
id: string;
|
|
526
|
+
status: 'settled';
|
|
527
|
+
/**
|
|
528
|
+
* On-chain settlement transaction hash.
|
|
529
|
+
*/
|
|
530
|
+
settle_tx: string | null;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* The payer's outbound spend policy. Returned with defaults (not paused,
|
|
534
|
+
* no caps, any on-net payee) when none is set.
|
|
535
|
+
*
|
|
536
|
+
*/
|
|
537
|
+
type X402SpendPolicy = {
|
|
538
|
+
/**
|
|
539
|
+
* Kill-switch. When true, all outbound payments are refused.
|
|
540
|
+
*/
|
|
541
|
+
paused: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* Per-payment cap in token base units, or null for no cap.
|
|
544
|
+
*/
|
|
545
|
+
max_per_payment: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* Rolling-day cap in token base units, or null for no cap.
|
|
548
|
+
*/
|
|
549
|
+
max_per_day: string | null;
|
|
550
|
+
/**
|
|
551
|
+
* Allowed payee org ids. `null` allows any on-net payee; `[]` denies
|
|
552
|
+
* all.
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
555
|
+
allowlist: Array<string> | null;
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* Merge update: only the fields you include change; omit a field to keep
|
|
559
|
+
* its current value; send `null` to clear a cap.
|
|
560
|
+
*
|
|
561
|
+
*/
|
|
562
|
+
type UpdateSpendPolicyInput = {
|
|
563
|
+
paused?: boolean;
|
|
564
|
+
max_per_payment?: string | null;
|
|
565
|
+
max_per_day?: string | null;
|
|
566
|
+
allowlist?: Array<string> | null;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* A payment the org's spend policy refused.
|
|
570
|
+
*/
|
|
571
|
+
type X402DeclinedPayment = {
|
|
572
|
+
id: string;
|
|
573
|
+
/**
|
|
574
|
+
* The challenge that was declined, if still present.
|
|
575
|
+
*/
|
|
576
|
+
challenge_id?: string | null;
|
|
577
|
+
/**
|
|
578
|
+
* The payee (challenger) org, when known.
|
|
579
|
+
*/
|
|
580
|
+
counterparty_org?: string | null;
|
|
581
|
+
network: 'base' | 'base-sepolia';
|
|
582
|
+
/**
|
|
583
|
+
* Amount in token base units.
|
|
584
|
+
*/
|
|
585
|
+
amount: string;
|
|
586
|
+
/**
|
|
587
|
+
* Why the payment was declined (cap, allowlist, paused).
|
|
588
|
+
*/
|
|
589
|
+
reason: string;
|
|
590
|
+
declined_at: string;
|
|
591
|
+
};
|
|
327
592
|
type SuccessEnvelope = {
|
|
328
593
|
success: boolean;
|
|
329
594
|
};
|
|
@@ -348,7 +613,7 @@ type PaginationMeta = {
|
|
|
348
613
|
type ErrorResponse = {
|
|
349
614
|
success: boolean;
|
|
350
615
|
error: {
|
|
351
|
-
code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible';
|
|
616
|
+
code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible' | 'feature_disabled' | 'no_payout_address' | 'ownership_proof_failed' | 'payment_verification_failed' | 'payment_declined' | 'challenge_expired' | 'settlement_failed';
|
|
352
617
|
message: string;
|
|
353
618
|
/**
|
|
354
619
|
* Optional structured data that callers can inspect to recover
|
|
@@ -3023,6 +3288,52 @@ type FunctionSecretWriteResult = {
|
|
|
3023
3288
|
*/
|
|
3024
3289
|
created: boolean;
|
|
3025
3290
|
};
|
|
3291
|
+
/**
|
|
3292
|
+
* One row from GET /org/secrets. Org secrets are always user-set
|
|
3293
|
+
* (there are no managed org secrets), so `created_at` /
|
|
3294
|
+
* `updated_at` are always present.
|
|
3295
|
+
*
|
|
3296
|
+
*/
|
|
3297
|
+
type OrgSecretListItem = {
|
|
3298
|
+
key: string;
|
|
3299
|
+
created_at: string;
|
|
3300
|
+
updated_at: string;
|
|
3301
|
+
};
|
|
3302
|
+
/**
|
|
3303
|
+
* Body for POST /org/secrets.
|
|
3304
|
+
*/
|
|
3305
|
+
type CreateOrgSecretInput = {
|
|
3306
|
+
/**
|
|
3307
|
+
* Uppercase letters, digits, and underscores. Must start with
|
|
3308
|
+
* a letter or underscore. System-managed keys are reserved.
|
|
3309
|
+
*
|
|
3310
|
+
*/
|
|
3311
|
+
key: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* Secret value, up to 4096 UTF-8 bytes. Encrypted at rest.
|
|
3314
|
+
* Never returned by any read endpoint.
|
|
3315
|
+
*
|
|
3316
|
+
*/
|
|
3317
|
+
value: string;
|
|
3318
|
+
};
|
|
3319
|
+
/**
|
|
3320
|
+
* Body for PUT /org/secrets/{key}. Key comes from the path.
|
|
3321
|
+
*/
|
|
3322
|
+
type SetOrgSecretInput = {
|
|
3323
|
+
value: string;
|
|
3324
|
+
};
|
|
3325
|
+
/**
|
|
3326
|
+
* Returned by POST and PUT org secret routes.
|
|
3327
|
+
*/
|
|
3328
|
+
type OrgSecretWriteResult = {
|
|
3329
|
+
key: string;
|
|
3330
|
+
created_at: string;
|
|
3331
|
+
updated_at: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* True if this call inserted a new row, false if it updated an existing one.
|
|
3334
|
+
*/
|
|
3335
|
+
created: boolean;
|
|
3336
|
+
};
|
|
3026
3337
|
/**
|
|
3027
3338
|
* Resource UUID
|
|
3028
3339
|
*/
|
|
@@ -5538,6 +5849,132 @@ type SetFunctionSecretResponses = {
|
|
|
5538
5849
|
};
|
|
5539
5850
|
};
|
|
5540
5851
|
type SetFunctionSecretResponse = SetFunctionSecretResponses[keyof SetFunctionSecretResponses];
|
|
5852
|
+
type ListOrgSecretsData = {
|
|
5853
|
+
body?: never;
|
|
5854
|
+
path?: never;
|
|
5855
|
+
query?: never;
|
|
5856
|
+
url: '/org/secrets';
|
|
5857
|
+
};
|
|
5858
|
+
type ListOrgSecretsErrors = {
|
|
5859
|
+
/**
|
|
5860
|
+
* Invalid or missing API key
|
|
5861
|
+
*/
|
|
5862
|
+
401: ErrorResponse;
|
|
5863
|
+
};
|
|
5864
|
+
type ListOrgSecretsError = ListOrgSecretsErrors[keyof ListOrgSecretsErrors];
|
|
5865
|
+
type ListOrgSecretsResponses = {
|
|
5866
|
+
/**
|
|
5867
|
+
* List of org secrets (metadata only, no values)
|
|
5868
|
+
*/
|
|
5869
|
+
200: SuccessEnvelope & {
|
|
5870
|
+
data?: {
|
|
5871
|
+
items: Array<OrgSecretListItem>;
|
|
5872
|
+
};
|
|
5873
|
+
};
|
|
5874
|
+
};
|
|
5875
|
+
type ListOrgSecretsResponse = ListOrgSecretsResponses[keyof ListOrgSecretsResponses];
|
|
5876
|
+
type CreateOrgSecretData = {
|
|
5877
|
+
body: CreateOrgSecretInput;
|
|
5878
|
+
path?: never;
|
|
5879
|
+
query?: never;
|
|
5880
|
+
url: '/org/secrets';
|
|
5881
|
+
};
|
|
5882
|
+
type CreateOrgSecretErrors = {
|
|
5883
|
+
/**
|
|
5884
|
+
* Invalid request parameters
|
|
5885
|
+
*/
|
|
5886
|
+
400: ErrorResponse;
|
|
5887
|
+
/**
|
|
5888
|
+
* Invalid or missing API key
|
|
5889
|
+
*/
|
|
5890
|
+
401: ErrorResponse;
|
|
5891
|
+
};
|
|
5892
|
+
type CreateOrgSecretError = CreateOrgSecretErrors[keyof CreateOrgSecretErrors];
|
|
5893
|
+
type CreateOrgSecretResponses = {
|
|
5894
|
+
/**
|
|
5895
|
+
* Secret updated
|
|
5896
|
+
*/
|
|
5897
|
+
200: SuccessEnvelope & {
|
|
5898
|
+
data?: OrgSecretWriteResult;
|
|
5899
|
+
};
|
|
5900
|
+
/**
|
|
5901
|
+
* Secret created
|
|
5902
|
+
*/
|
|
5903
|
+
201: SuccessEnvelope & {
|
|
5904
|
+
data?: OrgSecretWriteResult;
|
|
5905
|
+
};
|
|
5906
|
+
};
|
|
5907
|
+
type CreateOrgSecretResponse = CreateOrgSecretResponses[keyof CreateOrgSecretResponses];
|
|
5908
|
+
type DeleteOrgSecretData = {
|
|
5909
|
+
body?: never;
|
|
5910
|
+
path: {
|
|
5911
|
+
/**
|
|
5912
|
+
* Secret key. Must match `^[A-Z_][A-Z0-9_]*$`.
|
|
5913
|
+
*/
|
|
5914
|
+
key: string;
|
|
5915
|
+
};
|
|
5916
|
+
query?: never;
|
|
5917
|
+
url: '/org/secrets/{key}';
|
|
5918
|
+
};
|
|
5919
|
+
type DeleteOrgSecretErrors = {
|
|
5920
|
+
/**
|
|
5921
|
+
* Invalid request parameters
|
|
5922
|
+
*/
|
|
5923
|
+
400: ErrorResponse;
|
|
5924
|
+
/**
|
|
5925
|
+
* Invalid or missing API key
|
|
5926
|
+
*/
|
|
5927
|
+
401: ErrorResponse;
|
|
5928
|
+
/**
|
|
5929
|
+
* Resource not found
|
|
5930
|
+
*/
|
|
5931
|
+
404: ErrorResponse;
|
|
5932
|
+
};
|
|
5933
|
+
type DeleteOrgSecretError = DeleteOrgSecretErrors[keyof DeleteOrgSecretErrors];
|
|
5934
|
+
type DeleteOrgSecretResponses = {
|
|
5935
|
+
/**
|
|
5936
|
+
* Secret deleted
|
|
5937
|
+
*/
|
|
5938
|
+
204: void;
|
|
5939
|
+
};
|
|
5940
|
+
type DeleteOrgSecretResponse = DeleteOrgSecretResponses[keyof DeleteOrgSecretResponses];
|
|
5941
|
+
type SetOrgSecretData = {
|
|
5942
|
+
body: SetOrgSecretInput;
|
|
5943
|
+
path: {
|
|
5944
|
+
/**
|
|
5945
|
+
* Secret key. Must match `^[A-Z_][A-Z0-9_]*$`.
|
|
5946
|
+
*/
|
|
5947
|
+
key: string;
|
|
5948
|
+
};
|
|
5949
|
+
query?: never;
|
|
5950
|
+
url: '/org/secrets/{key}';
|
|
5951
|
+
};
|
|
5952
|
+
type SetOrgSecretErrors = {
|
|
5953
|
+
/**
|
|
5954
|
+
* Invalid request parameters
|
|
5955
|
+
*/
|
|
5956
|
+
400: ErrorResponse;
|
|
5957
|
+
/**
|
|
5958
|
+
* Invalid or missing API key
|
|
5959
|
+
*/
|
|
5960
|
+
401: ErrorResponse;
|
|
5961
|
+
};
|
|
5962
|
+
type SetOrgSecretError = SetOrgSecretErrors[keyof SetOrgSecretErrors];
|
|
5963
|
+
type SetOrgSecretResponses = {
|
|
5964
|
+
/**
|
|
5965
|
+
* Secret updated
|
|
5966
|
+
*/
|
|
5967
|
+
200: SuccessEnvelope & {
|
|
5968
|
+
data?: OrgSecretWriteResult;
|
|
5969
|
+
};
|
|
5970
|
+
/**
|
|
5971
|
+
* Secret created
|
|
5972
|
+
*/
|
|
5973
|
+
201: SuccessEnvelope & {
|
|
5974
|
+
data?: OrgSecretWriteResult;
|
|
5975
|
+
};
|
|
5976
|
+
};
|
|
5977
|
+
type SetOrgSecretResponse = SetOrgSecretResponses[keyof SetOrgSecretResponses];
|
|
5541
5978
|
type ListFunctionLogsData = {
|
|
5542
5979
|
body?: never;
|
|
5543
5980
|
path: {
|
|
@@ -5598,12 +6035,322 @@ type ListFunctionLogsResponses = {
|
|
|
5598
6035
|
};
|
|
5599
6036
|
};
|
|
5600
6037
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
6038
|
+
type ListPayoutAddressesData = {
|
|
6039
|
+
body?: never;
|
|
6040
|
+
path?: never;
|
|
6041
|
+
query?: never;
|
|
6042
|
+
url: '/x402/payout-addresses';
|
|
6043
|
+
};
|
|
6044
|
+
type ListPayoutAddressesErrors = {
|
|
6045
|
+
/**
|
|
6046
|
+
* Invalid or missing API key
|
|
6047
|
+
*/
|
|
6048
|
+
401: ErrorResponse;
|
|
6049
|
+
/**
|
|
6050
|
+
* Authenticated caller lacks permission for the operation
|
|
6051
|
+
*/
|
|
6052
|
+
403: ErrorResponse;
|
|
6053
|
+
/**
|
|
6054
|
+
* Rate limit exceeded
|
|
6055
|
+
*/
|
|
6056
|
+
429: ErrorResponse;
|
|
6057
|
+
};
|
|
6058
|
+
type ListPayoutAddressesError = ListPayoutAddressesErrors[keyof ListPayoutAddressesErrors];
|
|
6059
|
+
type ListPayoutAddressesResponses = {
|
|
6060
|
+
/**
|
|
6061
|
+
* Your registered payout addresses
|
|
6062
|
+
*/
|
|
6063
|
+
200: SuccessEnvelope & {
|
|
6064
|
+
data?: Array<X402PayoutAddress>;
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
6067
|
+
type ListPayoutAddressesResponse = ListPayoutAddressesResponses[keyof ListPayoutAddressesResponses];
|
|
6068
|
+
type RegisterPayoutAddressData = {
|
|
6069
|
+
body: RegisterPayoutAddressInput;
|
|
6070
|
+
path?: never;
|
|
6071
|
+
query?: never;
|
|
6072
|
+
url: '/x402/payout-addresses';
|
|
6073
|
+
};
|
|
6074
|
+
type RegisterPayoutAddressErrors = {
|
|
6075
|
+
/**
|
|
6076
|
+
* Invalid request parameters
|
|
6077
|
+
*/
|
|
6078
|
+
400: ErrorResponse;
|
|
6079
|
+
/**
|
|
6080
|
+
* Invalid or missing API key
|
|
6081
|
+
*/
|
|
6082
|
+
401: ErrorResponse;
|
|
6083
|
+
/**
|
|
6084
|
+
* Authenticated caller lacks permission for the operation
|
|
6085
|
+
*/
|
|
6086
|
+
403: ErrorResponse;
|
|
6087
|
+
/**
|
|
6088
|
+
* The request was well-formed but could not be processed. For Payments
|
|
6089
|
+
* this covers a missing payout address, a failed payment verification, a
|
|
6090
|
+
* spend-policy decline, or an expired challenge; `error.code` distinguishes
|
|
6091
|
+
* them.
|
|
6092
|
+
*
|
|
6093
|
+
*/
|
|
6094
|
+
422: ErrorResponse;
|
|
6095
|
+
/**
|
|
6096
|
+
* Rate limit exceeded
|
|
6097
|
+
*/
|
|
6098
|
+
429: ErrorResponse;
|
|
6099
|
+
};
|
|
6100
|
+
type RegisterPayoutAddressError = RegisterPayoutAddressErrors[keyof RegisterPayoutAddressErrors];
|
|
6101
|
+
type RegisterPayoutAddressResponses = {
|
|
6102
|
+
/**
|
|
6103
|
+
* Payout address registered (or updated) and set as default
|
|
6104
|
+
*/
|
|
6105
|
+
201: SuccessEnvelope & {
|
|
6106
|
+
data?: X402PayoutAddress;
|
|
6107
|
+
};
|
|
6108
|
+
};
|
|
6109
|
+
type RegisterPayoutAddressResponse = RegisterPayoutAddressResponses[keyof RegisterPayoutAddressResponses];
|
|
6110
|
+
type CreateChallengeData = {
|
|
6111
|
+
body: CreateChallengeInput;
|
|
6112
|
+
path?: never;
|
|
6113
|
+
query?: never;
|
|
6114
|
+
url: '/x402/challenges';
|
|
6115
|
+
};
|
|
6116
|
+
type CreateChallengeErrors = {
|
|
6117
|
+
/**
|
|
6118
|
+
* Invalid request parameters
|
|
6119
|
+
*/
|
|
6120
|
+
400: ErrorResponse;
|
|
6121
|
+
/**
|
|
6122
|
+
* Invalid or missing API key
|
|
6123
|
+
*/
|
|
6124
|
+
401: ErrorResponse;
|
|
6125
|
+
/**
|
|
6126
|
+
* Authenticated caller lacks permission for the operation
|
|
6127
|
+
*/
|
|
6128
|
+
403: ErrorResponse;
|
|
6129
|
+
/**
|
|
6130
|
+
* The request was well-formed but could not be processed. For Payments
|
|
6131
|
+
* this covers a missing payout address, a failed payment verification, a
|
|
6132
|
+
* spend-policy decline, or an expired challenge; `error.code` distinguishes
|
|
6133
|
+
* them.
|
|
6134
|
+
*
|
|
6135
|
+
*/
|
|
6136
|
+
422: ErrorResponse;
|
|
6137
|
+
/**
|
|
6138
|
+
* Rate limit exceeded
|
|
6139
|
+
*/
|
|
6140
|
+
429: ErrorResponse;
|
|
6141
|
+
};
|
|
6142
|
+
type CreateChallengeError = CreateChallengeErrors[keyof CreateChallengeErrors];
|
|
6143
|
+
type CreateChallengeResponses = {
|
|
6144
|
+
/**
|
|
6145
|
+
* Challenge created
|
|
6146
|
+
*/
|
|
6147
|
+
201: SuccessEnvelope & {
|
|
6148
|
+
data?: X402Challenge;
|
|
6149
|
+
};
|
|
6150
|
+
};
|
|
6151
|
+
type CreateChallengeResponse = CreateChallengeResponses[keyof CreateChallengeResponses];
|
|
6152
|
+
type GetChallengeData = {
|
|
6153
|
+
body?: never;
|
|
6154
|
+
path: {
|
|
6155
|
+
/**
|
|
6156
|
+
* Resource UUID
|
|
6157
|
+
*/
|
|
6158
|
+
id: string;
|
|
6159
|
+
};
|
|
6160
|
+
query?: never;
|
|
6161
|
+
url: '/x402/challenges/{id}';
|
|
6162
|
+
};
|
|
6163
|
+
type GetChallengeErrors = {
|
|
6164
|
+
/**
|
|
6165
|
+
* Invalid request parameters
|
|
6166
|
+
*/
|
|
6167
|
+
400: ErrorResponse;
|
|
6168
|
+
/**
|
|
6169
|
+
* Invalid or missing API key
|
|
6170
|
+
*/
|
|
6171
|
+
401: ErrorResponse;
|
|
6172
|
+
/**
|
|
6173
|
+
* Authenticated caller lacks permission for the operation
|
|
6174
|
+
*/
|
|
6175
|
+
403: ErrorResponse;
|
|
6176
|
+
/**
|
|
6177
|
+
* Resource not found
|
|
6178
|
+
*/
|
|
6179
|
+
404: ErrorResponse;
|
|
6180
|
+
/**
|
|
6181
|
+
* Rate limit exceeded
|
|
6182
|
+
*/
|
|
6183
|
+
429: ErrorResponse;
|
|
6184
|
+
};
|
|
6185
|
+
type GetChallengeError = GetChallengeErrors[keyof GetChallengeErrors];
|
|
6186
|
+
type GetChallengeResponses = {
|
|
6187
|
+
/**
|
|
6188
|
+
* The challenge
|
|
6189
|
+
*/
|
|
6190
|
+
200: SuccessEnvelope & {
|
|
6191
|
+
data?: X402Challenge;
|
|
6192
|
+
};
|
|
6193
|
+
};
|
|
6194
|
+
type GetChallengeResponse = GetChallengeResponses[keyof GetChallengeResponses];
|
|
6195
|
+
type PayChallengeData = {
|
|
6196
|
+
body: PayChallengeInput;
|
|
6197
|
+
path: {
|
|
6198
|
+
/**
|
|
6199
|
+
* Resource UUID
|
|
6200
|
+
*/
|
|
6201
|
+
id: string;
|
|
6202
|
+
};
|
|
6203
|
+
query?: never;
|
|
6204
|
+
url: '/x402/challenges/{id}/pay';
|
|
6205
|
+
};
|
|
6206
|
+
type PayChallengeErrors = {
|
|
6207
|
+
/**
|
|
6208
|
+
* Invalid request parameters
|
|
6209
|
+
*/
|
|
6210
|
+
400: ErrorResponse;
|
|
6211
|
+
/**
|
|
6212
|
+
* Invalid or missing API key
|
|
6213
|
+
*/
|
|
6214
|
+
401: ErrorResponse;
|
|
6215
|
+
/**
|
|
6216
|
+
* Authenticated caller lacks permission for the operation
|
|
6217
|
+
*/
|
|
6218
|
+
403: ErrorResponse;
|
|
6219
|
+
/**
|
|
6220
|
+
* Resource not found
|
|
6221
|
+
*/
|
|
6222
|
+
404: ErrorResponse;
|
|
6223
|
+
/**
|
|
6224
|
+
* The request conflicts with the current state of the resource
|
|
6225
|
+
*/
|
|
6226
|
+
409: ErrorResponse;
|
|
6227
|
+
/**
|
|
6228
|
+
* The request was well-formed but could not be processed. For Payments
|
|
6229
|
+
* this covers a missing payout address, a failed payment verification, a
|
|
6230
|
+
* spend-policy decline, or an expired challenge; `error.code` distinguishes
|
|
6231
|
+
* them.
|
|
6232
|
+
*
|
|
6233
|
+
*/
|
|
6234
|
+
422: ErrorResponse;
|
|
6235
|
+
/**
|
|
6236
|
+
* Rate limit exceeded
|
|
6237
|
+
*/
|
|
6238
|
+
429: ErrorResponse;
|
|
6239
|
+
/**
|
|
6240
|
+
* Primitive could not complete the downstream SMTP request
|
|
6241
|
+
*/
|
|
6242
|
+
502: ErrorResponse;
|
|
6243
|
+
};
|
|
6244
|
+
type PayChallengeError = PayChallengeErrors[keyof PayChallengeErrors];
|
|
6245
|
+
type PayChallengeResponses = {
|
|
6246
|
+
/**
|
|
6247
|
+
* Challenge settled (or already settled)
|
|
6248
|
+
*/
|
|
6249
|
+
200: SuccessEnvelope & {
|
|
6250
|
+
data?: X402Receipt;
|
|
6251
|
+
};
|
|
6252
|
+
};
|
|
6253
|
+
type PayChallengeResponse = PayChallengeResponses[keyof PayChallengeResponses];
|
|
6254
|
+
type GetSpendPolicyData = {
|
|
6255
|
+
body?: never;
|
|
6256
|
+
path?: never;
|
|
6257
|
+
query?: never;
|
|
6258
|
+
url: '/x402/spend-policy';
|
|
6259
|
+
};
|
|
6260
|
+
type GetSpendPolicyErrors = {
|
|
6261
|
+
/**
|
|
6262
|
+
* Invalid or missing API key
|
|
6263
|
+
*/
|
|
6264
|
+
401: ErrorResponse;
|
|
6265
|
+
/**
|
|
6266
|
+
* Authenticated caller lacks permission for the operation
|
|
6267
|
+
*/
|
|
6268
|
+
403: ErrorResponse;
|
|
6269
|
+
/**
|
|
6270
|
+
* Rate limit exceeded
|
|
6271
|
+
*/
|
|
6272
|
+
429: ErrorResponse;
|
|
6273
|
+
};
|
|
6274
|
+
type GetSpendPolicyError = GetSpendPolicyErrors[keyof GetSpendPolicyErrors];
|
|
6275
|
+
type GetSpendPolicyResponses = {
|
|
6276
|
+
/**
|
|
6277
|
+
* The spend policy
|
|
6278
|
+
*/
|
|
6279
|
+
200: SuccessEnvelope & {
|
|
6280
|
+
data?: X402SpendPolicy;
|
|
6281
|
+
};
|
|
6282
|
+
};
|
|
6283
|
+
type GetSpendPolicyResponse = GetSpendPolicyResponses[keyof GetSpendPolicyResponses];
|
|
6284
|
+
type UpdateSpendPolicyData = {
|
|
6285
|
+
body: UpdateSpendPolicyInput;
|
|
6286
|
+
path?: never;
|
|
6287
|
+
query?: never;
|
|
6288
|
+
url: '/x402/spend-policy';
|
|
6289
|
+
};
|
|
6290
|
+
type UpdateSpendPolicyErrors = {
|
|
6291
|
+
/**
|
|
6292
|
+
* Invalid request parameters
|
|
6293
|
+
*/
|
|
6294
|
+
400: ErrorResponse;
|
|
6295
|
+
/**
|
|
6296
|
+
* Invalid or missing API key
|
|
6297
|
+
*/
|
|
6298
|
+
401: ErrorResponse;
|
|
6299
|
+
/**
|
|
6300
|
+
* Authenticated caller lacks permission for the operation
|
|
6301
|
+
*/
|
|
6302
|
+
403: ErrorResponse;
|
|
6303
|
+
/**
|
|
6304
|
+
* Rate limit exceeded
|
|
6305
|
+
*/
|
|
6306
|
+
429: ErrorResponse;
|
|
6307
|
+
};
|
|
6308
|
+
type UpdateSpendPolicyError = UpdateSpendPolicyErrors[keyof UpdateSpendPolicyErrors];
|
|
6309
|
+
type UpdateSpendPolicyResponses = {
|
|
6310
|
+
/**
|
|
6311
|
+
* The updated spend policy
|
|
6312
|
+
*/
|
|
6313
|
+
200: SuccessEnvelope & {
|
|
6314
|
+
data?: X402SpendPolicy;
|
|
6315
|
+
};
|
|
6316
|
+
};
|
|
6317
|
+
type UpdateSpendPolicyResponse = UpdateSpendPolicyResponses[keyof UpdateSpendPolicyResponses];
|
|
6318
|
+
type ListDeclinedPaymentsData = {
|
|
6319
|
+
body?: never;
|
|
6320
|
+
path?: never;
|
|
6321
|
+
query?: never;
|
|
6322
|
+
url: '/x402/declined-payments';
|
|
6323
|
+
};
|
|
6324
|
+
type ListDeclinedPaymentsErrors = {
|
|
6325
|
+
/**
|
|
6326
|
+
* Invalid or missing API key
|
|
6327
|
+
*/
|
|
6328
|
+
401: ErrorResponse;
|
|
6329
|
+
/**
|
|
6330
|
+
* Authenticated caller lacks permission for the operation
|
|
6331
|
+
*/
|
|
6332
|
+
403: ErrorResponse;
|
|
6333
|
+
/**
|
|
6334
|
+
* Rate limit exceeded
|
|
6335
|
+
*/
|
|
6336
|
+
429: ErrorResponse;
|
|
6337
|
+
};
|
|
6338
|
+
type ListDeclinedPaymentsError = ListDeclinedPaymentsErrors[keyof ListDeclinedPaymentsErrors];
|
|
6339
|
+
type ListDeclinedPaymentsResponses = {
|
|
6340
|
+
/**
|
|
6341
|
+
* Recently declined payments
|
|
6342
|
+
*/
|
|
6343
|
+
200: SuccessEnvelope & {
|
|
6344
|
+
data?: Array<X402DeclinedPayment>;
|
|
6345
|
+
};
|
|
6346
|
+
};
|
|
6347
|
+
type ListDeclinedPaymentsResponse = ListDeclinedPaymentsResponses[keyof ListDeclinedPaymentsResponses];
|
|
6348
|
+
declare namespace sdk_gen_d_exports {
|
|
6349
|
+
export { Options, addDomain, cliLogout, createAgentAccount, createAgentClaimLink, createChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listSentEmails, payChallenge, pollCliLogin, registerPayoutAddress, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
|
|
6350
|
+
}
|
|
6351
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
6352
|
+
/**
|
|
6353
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
5607
6354
|
* individual options. This might be also useful if you want to implement a
|
|
5608
6355
|
* custom client.
|
|
5609
6356
|
*/
|
|
@@ -6480,6 +7227,49 @@ declare const deleteFunctionSecret: <ThrowOnError extends boolean = false>(optio
|
|
|
6480
7227
|
*
|
|
6481
7228
|
*/
|
|
6482
7229
|
declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options: Options<SetFunctionSecretData, ThrowOnError>) => RequestResult<SetFunctionSecretResponses, SetFunctionSecretErrors, ThrowOnError, "fields">;
|
|
7230
|
+
/**
|
|
7231
|
+
* List org-level (global) secrets
|
|
7232
|
+
*
|
|
7233
|
+
* Returns metadata for every org-level secret. Org secrets apply
|
|
7234
|
+
* to every function in the org and are read as `env.<KEY>` in
|
|
7235
|
+
* handlers. **Values are never returned.** Secret writes are
|
|
7236
|
+
* write-only. A function-level secret of the same name overrides
|
|
7237
|
+
* the org-level value for that function.
|
|
7238
|
+
*
|
|
7239
|
+
*/
|
|
7240
|
+
declare const listOrgSecrets: <ThrowOnError extends boolean = false>(options?: Options<ListOrgSecretsData, ThrowOnError>) => RequestResult<ListOrgSecretsResponses, ListOrgSecretsErrors, ThrowOnError, "fields">;
|
|
7241
|
+
/**
|
|
7242
|
+
* Create or update an org secret
|
|
7243
|
+
*
|
|
7244
|
+
* Idempotent insert-or-update keyed on `(org_id, key)`. Returns
|
|
7245
|
+
* 201 the first time the key is set, 200 on subsequent updates.
|
|
7246
|
+
* Values are encrypted at rest. A changed value lands in a
|
|
7247
|
+
* function only on that function's next deploy.
|
|
7248
|
+
*
|
|
7249
|
+
* Keys must match `^[A-Z_][A-Z0-9_]*$` (uppercase letters,
|
|
7250
|
+
* digits, underscores; first character is a letter or
|
|
7251
|
+
* underscore). Values are at most 4096 UTF-8 bytes. System-
|
|
7252
|
+
* managed keys are reserved and rejected.
|
|
7253
|
+
*
|
|
7254
|
+
*/
|
|
7255
|
+
declare const createOrgSecret: <ThrowOnError extends boolean = false>(options: Options<CreateOrgSecretData, ThrowOnError>) => RequestResult<CreateOrgSecretResponses, CreateOrgSecretErrors, ThrowOnError, "fields">;
|
|
7256
|
+
/**
|
|
7257
|
+
* Delete an org secret
|
|
7258
|
+
*
|
|
7259
|
+
* Removes the org secret. Functions keep the previous value until
|
|
7260
|
+
* each is redeployed. Returns 404 if the key did not exist.
|
|
7261
|
+
*
|
|
7262
|
+
*/
|
|
7263
|
+
declare const deleteOrgSecret: <ThrowOnError extends boolean = false>(options: Options<DeleteOrgSecretData, ThrowOnError>) => RequestResult<DeleteOrgSecretResponses, DeleteOrgSecretErrors, ThrowOnError, "fields">;
|
|
7264
|
+
/**
|
|
7265
|
+
* Set an org secret by key
|
|
7266
|
+
*
|
|
7267
|
+
* Path-keyed companion to `POST /org/secrets`. Idempotent:
|
|
7268
|
+
* returns 201 the first time the key is set, 200 on subsequent
|
|
7269
|
+
* updates. Same validation and write-only guarantees as POST.
|
|
7270
|
+
*
|
|
7271
|
+
*/
|
|
7272
|
+
declare const setOrgSecret: <ThrowOnError extends boolean = false>(options: Options<SetOrgSecretData, ThrowOnError>) => RequestResult<SetOrgSecretResponses, SetOrgSecretErrors, ThrowOnError, "fields">;
|
|
6483
7273
|
/**
|
|
6484
7274
|
* List a function's execution logs
|
|
6485
7275
|
*
|
|
@@ -6495,6 +7285,93 @@ declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options:
|
|
|
6495
7285
|
*
|
|
6496
7286
|
*/
|
|
6497
7287
|
declare const listFunctionLogs: <ThrowOnError extends boolean = false>(options: Options<ListFunctionLogsData, ThrowOnError>) => RequestResult<ListFunctionLogsResponses, ListFunctionLogsErrors, ThrowOnError, "fields">;
|
|
7288
|
+
/**
|
|
7289
|
+
* List payout addresses
|
|
7290
|
+
*
|
|
7291
|
+
* List your org's registered payout addresses, newest first.
|
|
7292
|
+
*/
|
|
7293
|
+
declare const listPayoutAddresses: <ThrowOnError extends boolean = false>(options?: Options<ListPayoutAddressesData, ThrowOnError>) => RequestResult<ListPayoutAddressesResponses, ListPayoutAddressesErrors, ThrowOnError, "fields">;
|
|
7294
|
+
/**
|
|
7295
|
+
* Register a payout address
|
|
7296
|
+
*
|
|
7297
|
+
* Register (or update) the default payout address your org receives x402
|
|
7298
|
+
* payments at, for a given network. You prove control of the address with
|
|
7299
|
+
* an org-bound `personal_sign` signature over the message produced by the
|
|
7300
|
+
* SDK helper `buildPayoutRegistrationMessage`. The org id is taken from your
|
|
7301
|
+
* authenticated key, never the body, so a captured signature can't register
|
|
7302
|
+
* an address under another org. Exactly one default address exists per
|
|
7303
|
+
* (org, network); registering again replaces it. A payee MUST register a
|
|
7304
|
+
* payout address before calling `createChallenge`, because the challenge's
|
|
7305
|
+
* `pay_to` is resolved from this directory.
|
|
7306
|
+
*
|
|
7307
|
+
*/
|
|
7308
|
+
declare const registerPayoutAddress: <ThrowOnError extends boolean = false>(options: Options<RegisterPayoutAddressData, ThrowOnError>) => RequestResult<RegisterPayoutAddressResponses, RegisterPayoutAddressErrors, ThrowOnError, "fields">;
|
|
7309
|
+
/**
|
|
7310
|
+
* Create a payment challenge
|
|
7311
|
+
*
|
|
7312
|
+
* Create an x402 payment challenge (the payee side of a payment). The
|
|
7313
|
+
* `pay_to` address is resolved server-side from your registered default
|
|
7314
|
+
* payout address for the network, never from the request. The response
|
|
7315
|
+
* carries the `nonce_binding` and `payment_requirements` the payer needs to
|
|
7316
|
+
* sign; hand the whole challenge object to the payer (for example in an
|
|
7317
|
+
* email reply). Amounts are in token base units (USDC has 6 decimals, so
|
|
7318
|
+
* `"10000"` is 0.01 USDC).
|
|
7319
|
+
*
|
|
7320
|
+
*/
|
|
7321
|
+
declare const createChallenge: <ThrowOnError extends boolean = false>(options: Options<CreateChallengeData, ThrowOnError>) => RequestResult<CreateChallengeResponses, CreateChallengeErrors, ThrowOnError, "fields">;
|
|
7322
|
+
/**
|
|
7323
|
+
* Get a payment challenge
|
|
7324
|
+
*
|
|
7325
|
+
* Fetch a challenge you created, to poll its `status` and settlement
|
|
7326
|
+
* receipt (`settle_tx`). Scoped to the challenger org that created it.
|
|
7327
|
+
*
|
|
7328
|
+
*/
|
|
7329
|
+
declare const getChallenge: <ThrowOnError extends boolean = false>(options: Options<GetChallengeData, ThrowOnError>) => RequestResult<GetChallengeResponses, GetChallengeErrors, ThrowOnError, "fields">;
|
|
7330
|
+
/**
|
|
7331
|
+
* Pay a payment challenge
|
|
7332
|
+
*
|
|
7333
|
+
* Settle a challenge addressed to your org as payer. The request body
|
|
7334
|
+
* carries a signed x402 `PaymentPayload`: an EIP-3009
|
|
7335
|
+
* `transferWithAuthorization` signed locally with your own key, whose nonce
|
|
7336
|
+
* is bound to the challenge via the SDK's `deriveEip3009Nonce`. The platform
|
|
7337
|
+
* verifies every signed field against its own record of the challenge,
|
|
7338
|
+
* applies your spend policy, and settles on-chain through a facilitator.
|
|
7339
|
+
* Settlement is non-custodial; Primitive never holds funds. Idempotent:
|
|
7340
|
+
* paying an already-settled challenge returns the original receipt. Most
|
|
7341
|
+
* callers use the SDK `pay()` helper rather than building the payload by
|
|
7342
|
+
* hand.
|
|
7343
|
+
*
|
|
7344
|
+
*/
|
|
7345
|
+
declare const payChallenge: <ThrowOnError extends boolean = false>(options: Options<PayChallengeData, ThrowOnError>) => RequestResult<PayChallengeResponses, PayChallengeErrors, ThrowOnError, "fields">;
|
|
7346
|
+
/**
|
|
7347
|
+
* Get your spend policy
|
|
7348
|
+
*
|
|
7349
|
+
* Read your org's outbound spend policy: the kill-switch, per-payment and
|
|
7350
|
+
* per-day caps, and the payee allowlist. Returns the defaults (no limits,
|
|
7351
|
+
* not paused) when no policy has been set.
|
|
7352
|
+
*
|
|
7353
|
+
*/
|
|
7354
|
+
declare const getSpendPolicy: <ThrowOnError extends boolean = false>(options?: Options<GetSpendPolicyData, ThrowOnError>) => RequestResult<GetSpendPolicyResponses, GetSpendPolicyErrors, ThrowOnError, "fields">;
|
|
7355
|
+
/**
|
|
7356
|
+
* Update your spend policy
|
|
7357
|
+
*
|
|
7358
|
+
* Update your org's spend policy. Applied as a merge: only the fields you
|
|
7359
|
+
* include change, and omitted fields keep their current value, so a partial
|
|
7360
|
+
* update can't silently reset the kill-switch. Send an explicit `null` to
|
|
7361
|
+
* clear a cap. Caps are in token base units.
|
|
7362
|
+
*
|
|
7363
|
+
*/
|
|
7364
|
+
declare const updateSpendPolicy: <ThrowOnError extends boolean = false>(options: Options<UpdateSpendPolicyData, ThrowOnError>) => RequestResult<UpdateSpendPolicyResponses, UpdateSpendPolicyErrors, ThrowOnError, "fields">;
|
|
7365
|
+
/**
|
|
7366
|
+
* List declined payments
|
|
7367
|
+
*
|
|
7368
|
+
* The 50 most recent payments your org's spend policy declined, newest
|
|
7369
|
+
* first. Use this to see why an outbound payment was refused (a cap, the
|
|
7370
|
+
* payee allowlist, or the kill-switch) instead of only reading the
|
|
7371
|
+
* dashboard.
|
|
7372
|
+
*
|
|
7373
|
+
*/
|
|
7374
|
+
declare const listDeclinedPayments: <ThrowOnError extends boolean = false>(options?: Options<ListDeclinedPaymentsData, ThrowOnError>) => RequestResult<ListDeclinedPaymentsResponses, ListDeclinedPaymentsErrors, ThrowOnError, "fields">;
|
|
6498
7375
|
//#endregion
|
|
6499
7376
|
//#region ../packages/api-core/src/client.d.ts
|
|
6500
7377
|
declare const DEFAULT_API_BASE_URL = "https://api.primitive.dev/v1";
|
|
@@ -6902,4 +7779,4 @@ interface CreatedAgent {
|
|
|
6902
7779
|
*/
|
|
6903
7780
|
declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
|
|
6904
7781
|
//#endregion
|
|
6905
|
-
export { getFunction as $, GetWebhookSecretData as $a, StartCliLoginResponse as $c, GetConversationError as $i, UpdateFunctionData as $l, CreateFunctionResponses as $n, ListSentEmailsError as $o, DownloadAttachmentsResponse as $r, SemanticSearchData as $s, AddDomainResponse as $t, RequestOptions$1 as A, GetOrgRoutingTopologyErrors as Aa, SetFunctionRouteResponses as Ac, FunctionLogRow as Ai, UpdateAccountError as Al, CreateAgentClaimLinkData as An, ListEndpointsResponses as Ao, DeleteFunctionErrors as Ar, ResendAgentSignupVerificationErrors as As, setFunctionSecret as At, createClient as Au, deleteDomain as B, GetSentEmailErrors as Ba, StartAgentClaimInput as Bc, FunctionTestRunOutboundRequest as Bi, UpdateDomainResponses as Bl, CreateEndpointResponse as Bn, ListFunctionLogsResponse as Bo, DiscardContentResult as Br, ResourceId as Bs, updateEndpoint as Bt, Auth as Bu, VerifyOptions as C, GetInboxStatusData as Ca, SentEmailDetail as Cc, EmailWebhookStatus as Ci, UnsetFunctionRouteData as Cl, ConversationMessage as Cn, ListEmailsErrors as Co, DeleteFilterData as Cr, ReplyToEmailData as Cs, resendCliSignupVerification as Ct, VerifyCliSignupResponses as Cu, PrimitiveApiClientOptions as D, GetInboxStatusResponses as Da, SetFunctionRouteError as Dc, FunctionDeployStatus as Di, UnsetFunctionRouteResponses as Dl, CreateAgentAccountInput as Dn, ListEndpointsError as Do, DeleteFilterResponses as Dr, ReplyToEmailResponses as Ds, semanticSearch as Dt, VerifyDomainResponse as Du, PrimitiveApiClient as E, GetInboxStatusResponse as Ea, SetFunctionRouteData as Ec, Filter as Ei, UnsetFunctionRouteResponse as El, CreateAgentAccountErrors as En, ListEndpointsData as Eo, DeleteFilterResponse as Er, ReplyToEmailResponse as Es, searchEmails as Et, VerifyDomainErrors as Eu, createAgentClaimLink as F, GetSendPermissionsErrors as Fa, SetFunctionSecretResponse as Fc, FunctionSecretWriteResult as Fi, UpdateDomainData as Fl, CreateAgentClaimLinkResponses as Fn, ListFiltersResponse as Fo, DeleteFunctionSecretErrors as Fr, ResendCliSignupVerificationError as Fs, testEndpoint as Ft, Options$1 as Fu, deleteFunctionSecret as G, GetStorageStatsErrors as Ga, StartAgentSignupErrors as Gc, GateDenial as Gi, UpdateEndpointResponse as Gl, CreateFilterInput as Gn, ListFunctionSecretsResponse as Go, DiscardEmailContentResponses as Gr, RotateWebhookSecretResponses as Gs, verifyCliSignup as Gt, deleteEndpoint as H, GetSentEmailResponses as Ha, StartAgentClaimResponses as Hc, FunctionTestRunSend as Hi, UpdateEndpointError as Hl, CreateFilterData as Hn, ListFunctionSecretsData as Ho, DiscardEmailContentError as Hr, RotateWebhookSecretError as Hs, updateFunction as Ht, createEndpoint as I, GetSendPermissionsResponse as Ia, SetFunctionSecretResponses as Ic, FunctionTestRun as Ii, UpdateDomainError as Il, CreateEndpointData as In, ListFiltersResponses as Io, DeleteFunctionSecretResponse as Ir, ResendCliSignupVerificationErrors as Is, testFunction as It, RequestOptions$2 as Iu, downloadDomainZoneFile as J, GetThreadData as Ja, StartAgentSignupResponses as Jc, GetAccountError as Ji, UpdateFilterError as Jl, CreateFunctionData as Jn, ListFunctionsError as Jo, DomainDnsRecord as Jr, SearchEmailsError as Js, AccountUpdated as Jt, discardEmailContent as K, GetStorageStatsResponse as Ka, StartAgentSignupInput as Kc, GateFix as Ki, UpdateEndpointResponses as Kl, CreateFilterResponse as Kn, ListFunctionSecretsResponses as Ko, DkimSignature as Kr, RoutingTopology as Ks, verifyDomain as Kt, createFilter as L, GetSendPermissionsResponses as La, StartAgentClaimData as Lc, FunctionTestRunDelivery as Li, UpdateDomainErrors as Ll, CreateEndpointError as Ln, ListFunctionLogsData as Lo, DeleteFunctionSecretResponses as Lr, ResendCliSignupVerificationInput as Ls, unsetFunctionRoute as Lt, RequestResult as Lu, addDomain as M, GetOrgRoutingTopologyResponses as Ma, SetFunctionSecretError as Mc, FunctionRouteResult as Mi, UpdateAccountInput as Ml, CreateAgentClaimLinkErrors as Mn, ListFiltersData as Mo, DeleteFunctionResponses as Mr, ResendAgentSignupVerificationResponse as Ms, startAgentSignup as Mt, ClientOptions as Mu, cliLogout as N, GetSendPermissionsData as Na, SetFunctionSecretErrors as Nc, FunctionRouting as Ni, UpdateAccountResponse as Nl, CreateAgentClaimLinkInput as Nn, ListFiltersError as No, DeleteFunctionSecretData as Nr, ResendAgentSignupVerificationResponses as Ns, startCliLogin as Nt, Config as Nu, PrimitiveApiError as O, GetOrgRoutingTopologyData as Oa, SetFunctionRouteErrors as Oc, FunctionDetail as Oi, UnverifiedDomain as Ol, CreateAgentAccountResponse as On, ListEndpointsErrors as Oo, DeleteFunctionData as Or, ResendAgentSignupVerificationData as Os, sendEmail as Ot, VerifyDomainResponses as Ou, createAgentAccount as P, GetSendPermissionsError as Pa, SetFunctionSecretInput as Pc, FunctionSecretListItem as Pi, UpdateAccountResponses as Pl, CreateAgentClaimLinkResponse as Pn, ListFiltersErrors as Po, DeleteFunctionSecretError as Pr, ResendCliSignupVerificationData as Ps, startCliSignup as Pt, CreateClientConfig as Pu, getEmail as Q, GetThreadResponses as Qa, StartCliLoginInput as Qc, GetConversationData as Qi, UpdateFilterResponses as Ql, CreateFunctionResponse as Qn, ListSentEmailsData as Qo, DownloadAttachmentsErrors as Qr, SemanticSearchCoverage as Qs, AddDomainInput as Qt, createFunction as R, GetSentEmailData as Ra, StartAgentClaimError as Rc, FunctionTestRunDeliveryEndpoint as Ri, UpdateDomainInput as Rl, CreateEndpointErrors as Rn, ListFunctionLogsError as Ro, DeliveryStatus as Rr, ResendCliSignupVerificationResponse as Rs, updateAccount as Rt, ResponseStyle as Ru, PRIMITIVE_SIGNATURE_HEADER as S, GetFunctionTestRunTraceResponses as Sa, SendPermissionsMeta as Sc, EmailSummary as Si, ThreadMessage as Sl, Conversation as Sn, ListEmailsError as So, DeleteEndpointResponses as Sr, ReplayResult as Ss, resendAgentSignupVerification as St, VerifyCliSignupResponse as Su, DEFAULT_API_BASE_URL as T, GetInboxStatusErrors as Ta, SentEmailSummary as Tc, ErrorResponse as Ti, UnsetFunctionRouteErrors as Tl, CreateAgentAccountError as Tn, ListEmailsResponses as To, DeleteFilterErrors as Tr, ReplyToEmailErrors as Ts, sdk_gen_d_exports as Tt, VerifyDomainError as Tu, deleteFilter as U, GetStorageStatsData as Ua, StartAgentSignupData as Uc, FunctionTestRunState as Ui, UpdateEndpointErrors as Ul, CreateFilterError as Un, ListFunctionSecretsError as Uo, DiscardEmailContentErrors as Ur, RotateWebhookSecretErrors as Us, verifyAgentClaim as Ut, deleteEmail as V, GetSentEmailResponse as Va, StartAgentClaimResponse as Vc, FunctionTestRunReply as Vi, UpdateEndpointData as Vl, CreateEndpointResponses as Vn, ListFunctionLogsResponses as Vo, DiscardEmailContentData as Vr, RotateWebhookSecretData as Vs, updateFilter as Vt, deleteFunction as W, GetStorageStatsError as Wa, StartAgentSignupError as Wc, FunctionTestRunTrace as Wi, UpdateEndpointInput as Wl, CreateFilterErrors as Wn, ListFunctionSecretsErrors as Wo, DiscardEmailContentResponse as Wr, RotateWebhookSecretResponse as Ws, verifyAgentSignup as Wt, getAccount as X, GetThreadErrors as Xa, StartCliLoginError as Xc, GetAccountResponse as Xi, UpdateFilterInput as Xl, CreateFunctionErrors as Xn, ListFunctionsResponse as Xo, DownloadAttachmentsData as Xr, SearchEmailsResponse as Xs, AddDomainError as Xt, downloadRawEmail as Y, GetThreadError as Ya, StartCliLoginData as Yc, GetAccountErrors as Yi, UpdateFilterErrors as Yl, CreateFunctionError as Yn, ListFunctionsErrors as Yo, DomainVerifyResult as Yr, SearchEmailsErrors as Ys, AddDomainData as Yt, getConversation as Z, GetThreadResponse as Za, StartCliLoginErrors as Zc, GetAccountResponses as Zi, UpdateFilterResponse as Zl, CreateFunctionInput as Zn, ListFunctionsResponses as Zo, DownloadAttachmentsError as Zr, SearchEmailsResponses as Zs, AddDomainErrors as Zt, SendThreadInput as _, GetFunctionRoutingResponses as _a, SendPermissionAddress as _c, EmailSearchFacets as _i, TestFunctionResponse as _l, CliLogoutResponses as _n, ListDomainsError as _o, DeleteEmailResponses as _r, ReplayEmailWebhooksData as _s, listSentEmails as _t, VerifyAgentSignupResponses as _u, ForwardInput as a, GetEmailErrors as aa, SemanticSearchResponses as ac, DownloadDomainZoneFileResponses as ai, StartCliSignupResponse as al, AgentClaimStartResult as an, InboxStatusDomain as ao, CreateFunctionSecretResponse as ar, PlanLimits as as, getSentEmail as at, VerifiedDomain as au, createAgent as b, GetFunctionTestRunTraceErrors as ba, SendPermissionRule as bc, EmailSearchResult as bi, TestResult as bl, CliSignupStartResult as bn, ListDomainsResponses as bo, DeleteEndpointErrors as br, ReplayEmailWebhooksResponse as bs, replayEmailWebhooks as bt, VerifyCliSignupErrors as bu, InboxStreamOptions as c, GetFunctionData as ca, SemanticSearchSnippet as cc, DownloadRawEmailErrors as ci, SuccessEnvelope as cl, AgentSignupStartResult as cn, InboxStatusNextAction as co, DeleteDomainData as cr, PollCliLoginErrors as cs, getWebhookSecret as ct, VerifyAgentClaimErrors as cu, ReplyInput as d, GetFunctionResponse as da, SendEmailErrors as dc, EmailAddress as di, TestEndpointErrors as dl, CliLoginStartResult as dn, ListDeliveriesData as do, DeleteDomainResponse as dr, PollCliLoginResponses as ds, listEmails as dt, VerifyAgentClaimResponses as du, GetConversationErrors as ea, SemanticSearchError as ec, DownloadAttachmentsResponses as ei, StartCliLoginResponses as el, AddDomainResponses as en, GetWebhookSecretError as eo, CreateFunctionResult as er, ListSentEmailsErrors as es, getFunctionRouting as et, UpdateFunctionError as eu, RequestOptions as f, GetFunctionResponses as fa, SendEmailResponse as fc, EmailAttachment as fi, TestEndpointResponse as fl, CliLogoutData as fn, ListDeliveriesError as fo, DeleteDomainResponses as fr, ReplayDeliveryData as fs, listEndpoints as ft, VerifyAgentSignupData as fu, SendResult as g, GetFunctionRoutingResponse as ga, SendMailResult as gc, EmailSearchFacetBucket as gi, TestFunctionErrors as gl, CliLogoutResponse as gn, ListDomainsData as go, DeleteEmailResponse as gr, ReplayDeliveryResponses as gs, listFunctions as gt, VerifyAgentSignupResponse as gu, SendInput as h, GetFunctionRoutingErrors as ha, SendMailInput as hc, EmailDetailReply as hi, TestFunctionError as hl, CliLogoutInput as hn, ListDeliveriesResponses as ho, DeleteEmailErrors as hr, ReplayDeliveryResponse as hs, listFunctionSecrets as ht, VerifyAgentSignupInput as hu, CreatedAgent as i, GetEmailError as ia, SemanticSearchMeta as ic, DownloadDomainZoneFileResponse as ii, StartCliSignupInput as il, AgentClaimResult as in, InboxStatus as io, CreateFunctionSecretInput as ir, ParsedEmailData as is, getSendPermissions as it, UpdateFunctionResponses as iu, createPrimitiveApiClient as j, GetOrgRoutingTopologyResponse as ja, SetFunctionSecretData as jc, FunctionRouteBody as ji, UpdateAccountErrors as jl, CreateAgentClaimLinkError as jn, ListEnvelope as jo, DeleteFunctionResponse as jr, ResendAgentSignupVerificationInput as js, startAgentClaim as jt, Client as ju, PrimitiveApiErrorDetails as k, GetOrgRoutingTopologyError as ka, SetFunctionRouteResponse as kc, FunctionListItem as ki, UpdateAccountData as kl, CreateAgentAccountResponses as kn, ListEndpointsResponse as ko, DeleteFunctionError as kr, ResendAgentSignupVerificationError as ks, setFunctionRoute as kt, WebhookSecret as ku, PrimitiveClient as l, GetFunctionError as la, SendEmailData as lc, DownloadRawEmailResponse as li, TestEndpointData as ll, AgentSignupVerifyResult as ln, InboxStatusRecentEmailSummary as lo, DeleteDomainError as lr, PollCliLoginInput as ls, listDeliveries as lt, VerifyAgentClaimInput as lu, SendAttachment as m, GetFunctionRoutingError as ma, SendMailAttachment as mc, EmailDetail as mi, TestFunctionData as ml, CliLogoutErrors as mn, ListDeliveriesResponse as mo, DeleteEmailError as mr, ReplayDeliveryErrors as ms, listFunctionLogs as mt, VerifyAgentSignupErrors as mu, AgentResource as n, GetConversationResponses as na, SemanticSearchField as nc, DownloadDomainZoneFileError as ni, StartCliSignupError as nl, AgentAccountUpgradeHint as nn, GetWebhookSecretResponse as no, CreateFunctionSecretError as nr, ListSentEmailsResponses as ns, getInboxStatus as nt, UpdateFunctionInput as nu, InboundEmail as o, GetEmailResponse as oa, SemanticSearchResult as oc, DownloadRawEmailData as oi, StartCliSignupResponses as ol, AgentOrgRef as on, InboxStatusEndpointSummary as oo, CreateFunctionSecretResponses as or, PollCliLoginData as os, getStorageStats as ot, VerifyAgentClaimData as ou, SemanticSearchResponse as p, GetFunctionRoutingData as pa, SendEmailResponses as pc, EmailAuth as pi, TestEndpointResponses as pl, CliLogoutError as pn, ListDeliveriesErrors as po, DeleteEmailData as pr, ReplayDeliveryError as ps, listFilters as pt, VerifyAgentSignupError as pu, downloadAttachments as q, GetStorageStatsResponses as qa, StartAgentSignupResponse as qc, GetAccountData as qi, UpdateFilterData as ql, CreateFilterResponses as qn, ListFunctionsData as qo, Domain as qr, SearchEmailsData as qs, Account as qt, CreateAgentOptions as r, GetEmailData as ra, SemanticSearchInput as rc, DownloadDomainZoneFileErrors as ri, StartCliSignupErrors as rl, AgentClaimLinkResult as rn, GetWebhookSecretResponses as ro, CreateFunctionSecretErrors as rr, PaginationMeta as rs, getOrgRoutingTopology as rt, UpdateFunctionResponse as ru, InboxResource as s, GetEmailResponses as sa, SemanticSearchScoreBreakdown as sc, DownloadRawEmailError as si, StorageStats as sl, AgentSignupResendResult as sn, InboxStatusFunctionSummary as so, Cursor as sr, PollCliLoginError as ss, getThread as st, VerifyAgentClaimError as su, AccountResource as t, GetConversationResponse as ta, SemanticSearchErrors as tc, DownloadDomainZoneFileData as ti, StartCliSignupData as tl, AgentAccountResult as tn, GetWebhookSecretErrors as to, CreateFunctionSecretData as tr, ListSentEmailsResponse as ts, getFunctionTestRunTrace as tt, UpdateFunctionErrors as tu, PrimitiveClientOptions as u, GetFunctionErrors as ua, SendEmailError as uc, DownloadRawEmailResponses as ui, TestEndpointError as ul, CliLoginPollResult as un, Limit as uo, DeleteDomainErrors as ur, PollCliLoginResponse as us, listDomains as ut, VerifyAgentClaimResponse as uu, WaitForNextOptions as v, GetFunctionTestRunTraceData as va, SendPermissionAnyRecipient as vc, EmailSearchHighlights as vi, TestFunctionResponses as vl, CliLogoutResult as vn, ListDomainsErrors as vo, DeleteEndpointData as vr, ReplayEmailWebhooksError as vs, pollCliLogin as vt, VerifyCliSignupData as vu, verifyWebhookSignature as w, GetInboxStatusError as wa, SentEmailStatus as wc, Endpoint as wi, UnsetFunctionRouteError as wl, CreateAgentAccountData as wn, ListEmailsResponse as wo, DeleteFilterError as wr, ReplyToEmailError as ws, rotateWebhookSecret as wt, VerifyDomainData as wu, createPrimitiveClient as x, GetFunctionTestRunTraceResponse as xa, SendPermissionYourDomain as xc, EmailStatus as xi, Thread as xl, CliSignupVerifyResult as xn, ListEmailsData as xo, DeleteEndpointResponse as xr, ReplayEmailWebhooksResponses as xs, replyToEmail as xt, VerifyCliSignupInput as xu, client as y, GetFunctionTestRunTraceError as ya, SendPermissionManagedZone as yc, EmailSearchMeta as yi, TestInvocationResult as yl, CliSignupResendResult as yn, ListDomainsResponse as yo, DeleteEndpointError as yr, ReplayEmailWebhooksErrors as ys, replayDelivery as yt, VerifyCliSignupError as yu, createFunctionSecret as z, GetSentEmailError as za, StartAgentClaimErrors as zc, FunctionTestRunInboundEmail as zi, UpdateDomainResponse as zl, CreateEndpointInput as zn, ListFunctionLogsErrors as zo, DeliverySummary as zr, ResendCliSignupVerificationResponses as zs, updateDomain as zt, createConfig as zu };
|
|
7782
|
+
export { getAccount as $, GetFunctionTestRunTraceError as $a, ResendCliSignupVerificationResponses as $c, VerifyDomainResponse as $d, Endpoint as $i, SetOrgSecretErrors as $l, CreateChallengeResponses as $n, ListDeclinedPaymentsResponse as $o, DeleteFunctionError as $r, ListSentEmailsError as $s, updateFunction as $t, UpdateAccountResponse as $u, RequestOptions$1 as A, GetChallengeResponse as Aa, ReplayDeliveryResponses as Ac, UpdateSpendPolicyResponses as Ad, DownloadDomainZoneFileData as Ai, SendMailResult as Al, CliLogoutResult as An, GetStorageStatsErrors as Ao, CreateOrgSecretResponses as Ar, ListFunctionLogsResponse as As, replayEmailWebhooks as At, TestEndpointError as Au, createFunctionSecret as B, GetEmailResponse as Ba, ReplyToEmailResponse as Bc, VerifyAgentSignupErrors as Bd, EmailAddress as Bi, SetFunctionRouteData as Bl, CreateAgentAccountResponse as Bn, GetWebhookSecretErrors as Bo, DeleteEmailResponse as Br, ListFunctionsResponse as Bs, setFunctionSecret as Bt, TestResult as Bu, VerifyOptions as C, GetAccountError as Ca, RegisterPayoutAddressInput as Cc, UpdateFunctionResponse as Cd, DomainDnsRecord as Ci, SendEmailData as Cl, CliLoginStartResult as Cn, GetSpendPolicyData as Co, CreateFunctionSecretResponse as Cr, ListFiltersError as Cs, listOrgSecrets as Ct, StartCliSignupErrors as Cu, PrimitiveApiClientOptions as D, GetChallengeData as Da, ReplayDeliveryError as Dc, UpdateSpendPolicyErrors as Dd, DownloadAttachmentsErrors as Di, SendEmailResponses as Dl, CliLogoutInput as Dn, GetSpendPolicyResponses as Do, CreateOrgSecretErrors as Dr, ListFunctionLogsData as Ds, pollCliLogin as Dt, StorageStats as Du, PrimitiveApiClient as E, GetAccountResponses as Ea, ReplayDeliveryData as Ec, UpdateSpendPolicyError as Ed, DownloadAttachmentsError as Ei, SendEmailResponse as El, CliLogoutErrors as En, GetSpendPolicyResponse as Eo, CreateOrgSecretError as Er, ListFiltersResponses as Es, payChallenge as Et, StartCliSignupResponses as Eu, createAgentClaimLink as F, GetConversationResponse as Fa, ReplayEmailWebhooksResponses as Fc, VerifyAgentClaimInput as Fd, DownloadRawEmailData as Fi, SendPermissionYourDomain as Fl, ConversationMessage as Fn, GetThreadErrors as Fo, DeleteDomainResponse as Fr, ListFunctionSecretsResponse as Fs, sdk_gen_d_exports as Ft, TestFunctionError as Fu, deleteFilter as G, GetFunctionResponse as Ga, ResendAgentSignupVerificationInput as Gc, VerifyCliSignupError as Gd, EmailSearchFacetBucket as Gi, SetFunctionSecretData as Gl, CreateAgentClaimLinkInput as Gn, InboxStatusEndpointSummary as Go, DeleteEndpointResponse as Gr, ListOrgSecretsResponse as Gs, startCliSignup as Gt, UnsetFunctionRouteErrors as Gu, deleteDomain as H, GetFunctionData as Ha, ResendAgentSignupVerificationData as Hc, VerifyAgentSignupResponse as Hd, EmailAuth as Hi, SetFunctionRouteErrors as Hl, CreateAgentClaimLinkData as Hn, GetWebhookSecretResponses as Ho, DeleteEndpointData as Hr, ListOrgSecretsData as Hs, startAgentClaim as Ht, ThreadMessage as Hu, createChallenge as I, GetConversationResponses as Ia, ReplayResult as Ic, VerifyAgentClaimResponse as Id, DownloadRawEmailError as Ii, SendPermissionsMeta as Il, CreateAgentAccountData as In, GetThreadResponse as Io, DeleteDomainResponses as Ir, ListFunctionSecretsResponses as Is, searchEmails as It, TestFunctionErrors as Iu, deleteOrgSecret as J, GetFunctionRoutingError as Ja, ResendCliSignupVerificationData as Jc, VerifyCliSignupResponse as Jd, EmailSearchMeta as Ji, SetFunctionSecretInput as Jl, CreateChallengeData as Jn, InboxStatusRecentEmailSummary as Jo, DeleteFilterError as Jr, ListPayoutAddressesError as Js, unsetFunctionRoute as Jt, UnverifiedDomain as Ju, deleteFunction as K, GetFunctionResponses as Ka, ResendAgentSignupVerificationResponse as Kc, VerifyCliSignupErrors as Kd, EmailSearchFacets as Ki, SetFunctionSecretError as Kl, CreateAgentClaimLinkResponse as Kn, InboxStatusFunctionSummary as Ko, DeleteEndpointResponses as Kr, ListOrgSecretsResponses as Ks, testEndpoint as Kt, UnsetFunctionRouteResponse as Ku, createEndpoint as L, GetEmailData as La, ReplyToEmailData as Lc, VerifyAgentClaimResponses as Ld, DownloadRawEmailErrors as Li, SentEmailDetail as Ll, CreateAgentAccountError as Ln, GetThreadResponses as Lo, DeleteEmailData as Lr, ListFunctionsData as Ls, semanticSearch as Lt, TestFunctionResponse as Lu, addDomain as M, GetConversationData as Ma, ReplayEmailWebhooksError as Mc, VerifyAgentClaimData as Md, DownloadDomainZoneFileErrors as Mi, SendPermissionAnyRecipient as Ml, CliSignupStartResult as Mn, GetStorageStatsResponses as Mo, DeleteDomainData as Mr, ListFunctionSecretsData as Ms, resendAgentSignupVerification as Mt, TestEndpointResponse as Mu, cliLogout as N, GetConversationError as Na, ReplayEmailWebhooksErrors as Nc, VerifyAgentClaimError as Nd, DownloadDomainZoneFileResponse as Ni, SendPermissionManagedZone as Nl, CliSignupVerifyResult as Nn, GetThreadData as No, DeleteDomainError as Nr, ListFunctionSecretsError as Ns, resendCliSignupVerification as Nt, TestEndpointResponses as Nu, PrimitiveApiError as O, GetChallengeError as Oa, ReplayDeliveryErrors as Oc, UpdateSpendPolicyInput as Od, DownloadAttachmentsResponse as Oi, SendMailAttachment as Ol, CliLogoutResponse as On, GetStorageStatsData as Oo, CreateOrgSecretInput as Or, ListFunctionLogsError as Os, registerPayoutAddress as Ot, SuccessEnvelope as Ou, createAgentAccount as P, GetConversationErrors as Pa, ReplayEmailWebhooksResponse as Pc, VerifyAgentClaimErrors as Pd, DownloadDomainZoneFileResponses as Pi, SendPermissionRule as Pl, Conversation as Pn, GetThreadError as Po, DeleteDomainErrors as Pr, ListFunctionSecretsErrors as Ps, rotateWebhookSecret as Pt, TestFunctionData as Pu, downloadRawEmail as Q, GetFunctionTestRunTraceData as Qa, ResendCliSignupVerificationResponse as Qc, VerifyDomainErrors as Qd, EmailWebhookStatus as Qi, SetOrgSecretError as Ql, CreateChallengeResponse as Qn, ListDeclinedPaymentsErrors as Qo, DeleteFunctionData as Qr, ListSentEmailsData as Qs, updateFilter as Qt, UpdateAccountInput as Qu, createFilter as R, GetEmailError as Ra, ReplyToEmailError as Rc, VerifyAgentSignupData as Rd, DownloadRawEmailResponse as Ri, SentEmailStatus as Rl, CreateAgentAccountErrors as Rn, GetWebhookSecretData as Ro, DeleteEmailError as Rr, ListFunctionsError as Rs, sendEmail as Rt, TestFunctionResponses as Ru, PRIMITIVE_SIGNATURE_HEADER as S, GetAccountData as Sa, RegisterPayoutAddressErrors as Sc, UpdateFunctionInput as Sd, Domain as Si, SemanticSearchSnippet as Sl, CliLoginPollResult as Sn, GetSentEmailResponses as So, CreateFunctionSecretInput as Sr, ListFiltersData as Ss, listFunctions as St, StartCliSignupError as Su, DEFAULT_API_BASE_URL as T, GetAccountResponse as Ta, RegisterPayoutAddressResponses as Tc, UpdateSpendPolicyData as Td, DownloadAttachmentsData as Ti, SendEmailErrors as Tl, CliLogoutError as Tn, GetSpendPolicyErrors as To, CreateOrgSecretData as Tr, ListFiltersResponse as Ts, listSentEmails as Tt, StartCliSignupResponse as Tu, deleteEmail as U, GetFunctionError as Ua, ResendAgentSignupVerificationError as Uc, VerifyAgentSignupResponses as Ud, EmailDetail as Ui, SetFunctionRouteResponse as Ul, CreateAgentClaimLinkError as Un, InboxStatus as Uo, DeleteEndpointError as Ur, ListOrgSecretsError as Us, startAgentSignup as Ut, UnsetFunctionRouteData as Uu, createOrgSecret as V, GetEmailResponses as Va, ReplyToEmailResponses as Vc, VerifyAgentSignupInput as Vd, EmailAttachment as Vi, SetFunctionRouteError as Vl, CreateAgentAccountResponses as Vn, GetWebhookSecretResponse as Vo, DeleteEmailResponses as Vr, ListFunctionsResponses as Vs, setOrgSecret as Vt, Thread as Vu, deleteEndpoint as W, GetFunctionErrors as Wa, ResendAgentSignupVerificationErrors as Wc, VerifyCliSignupData as Wd, EmailDetailReply as Wi, SetFunctionRouteResponses as Wl, CreateAgentClaimLinkErrors as Wn, InboxStatusDomain as Wo, DeleteEndpointErrors as Wr, ListOrgSecretsErrors as Ws, startCliLogin as Wt, UnsetFunctionRouteError as Wu, downloadAttachments as X, GetFunctionRoutingResponse as Xa, ResendCliSignupVerificationErrors as Xc, VerifyDomainData as Xd, EmailStatus as Xi, SetFunctionSecretResponses as Xl, CreateChallengeErrors as Xn, ListDeclinedPaymentsData as Xo, DeleteFilterResponse as Xr, ListPayoutAddressesResponse as Xs, updateDomain as Xt, UpdateAccountError as Xu, discardEmailContent as Y, GetFunctionRoutingErrors as Ya, ResendCliSignupVerificationError as Yc, VerifyCliSignupResponses as Yd, EmailSearchResult as Yi, SetFunctionSecretResponse as Yl, CreateChallengeError as Yn, Limit as Yo, DeleteFilterErrors as Yr, ListPayoutAddressesErrors as Ys, updateAccount as Yt, UpdateAccountData as Yu, downloadDomainZoneFile as Z, GetFunctionRoutingResponses as Za, ResendCliSignupVerificationInput as Zc, VerifyDomainError as Zd, EmailSummary as Zi, SetOrgSecretData as Zl, CreateChallengeInput as Zn, ListDeclinedPaymentsError as Zo, DeleteFilterResponses as Zr, ListPayoutAddressesResponses as Zs, updateEndpoint as Zt, UpdateAccountErrors as Zu, SendThreadInput as _, FunctionTestRunSend as _a, PollCliLoginInput as _c, UpdateFilterResponse as _d, RequestResult as _f, DiscardEmailContentError as _i, SemanticSearchInput as _l, AgentClaimStartResult as _n, GetSendPermissionsResponses as _o, CreateFunctionResponses as _r, ListEndpointsError as _s, listEmails as _t, StartCliLoginErrors as _u, ForwardInput as a, FunctionLogRow as aa, PaginationMeta as ac, UpdateDomainResponse as ad, X402PaymentPayload as af, DeleteFunctionSecretErrors as ai, RotateWebhookSecretResponses as al, Account as an, GetInboxStatusErrors as ao, CreateEndpointResponses as ar, ListDeliveriesResponses as as, getFunctionTestRunTrace as at, StartAgentClaimErrors as au, createAgent as b, GateDenial as ba, RegisterPayoutAddressData as bc, UpdateFunctionError as bd, Auth as bf, DiscardEmailContentResponses as bi, SemanticSearchResult as bl, AgentSignupStartResult as bn, GetSentEmailErrors as bo, CreateFunctionSecretError as br, ListEndpointsResponses as bs, listFunctionLogs as bt, StartCliLoginResponses as bu, InboxStreamOptions as c, FunctionRouting as ca, PayChallengeError as cc, UpdateEndpointError as cd, X402Receipt as cf, DeleteOrgSecretData as ci, SearchEmailsError as cl, AddDomainError as cn, GetOrgRoutingTopologyData as co, CreateFilterErrors as cr, ListDomainsErrors as cs, getSendPermissions as ct, StartAgentClaimResponses as cu, ReplyInput as d, FunctionTestRun as da, PayChallengeResponse as dc, UpdateEndpointResponse as dd, Client as df, DeleteOrgSecretResponse as di, SearchEmailsResponses as dl, AddDomainResponse as dn, GetOrgRoutingTopologyResponse as do, CreateFilterResponses as dr, ListEmailsData as ds, getStorageStats as dt, StartAgentSignupErrors as du, ErrorResponse as ea, ListSentEmailsErrors as ec, UpdateAccountResponses as ed, VerifyDomainResponses as ef, DeleteFunctionErrors as ei, ResourceId as el, updateSpendPolicy as en, GetFunctionTestRunTraceErrors as eo, CreateEndpointData as er, ListDeclinedPaymentsResponses as es, getChallenge as et, SetOrgSecretInput as eu, RequestOptions as f, FunctionTestRunDelivery as fa, PayChallengeResponses as fc, UpdateEndpointResponses as fd, ClientOptions as ff, DeleteOrgSecretResponses as fi, SemanticSearchCoverage as fl, AddDomainResponses as fn, GetOrgRoutingTopologyResponses as fo, CreateFunctionData as fr, ListEmailsError as fs, getThread as ft, StartAgentSignupInput as fu, SendResult as g, FunctionTestRunReply as ga, PollCliLoginErrors as gc, UpdateFilterInput as gd, RequestOptions$2 as gf, DiscardEmailContentData as gi, SemanticSearchField as gl, AgentClaimResult as gn, GetSendPermissionsResponse as go, CreateFunctionResponse as gr, ListEndpointsData as gs, listDomains as gt, StartCliLoginError as gu, SendInput as h, FunctionTestRunOutboundRequest as ha, PollCliLoginError as hc, UpdateFilterErrors as hd, Options$1 as hf, DiscardContentResult as hi, SemanticSearchErrors as hl, AgentClaimLinkResult as hn, GetSendPermissionsErrors as ho, CreateFunctionInput as hr, ListEmailsResponses as hs, listDeliveries as ht, StartCliLoginData as hu, CreatedAgent as i, FunctionListItem as ia, OrgSecretWriteResult as ic, UpdateDomainInput as id, X402NonceBinding as if, DeleteFunctionSecretError as ii, RotateWebhookSecretResponse as il, verifyDomain as in, GetInboxStatusError as io, CreateEndpointResponse as ir, ListDeliveriesResponse as is, getFunctionRouting as it, StartAgentClaimError as iu, createPrimitiveApiClient as j, GetChallengeResponses as ja, ReplayEmailWebhooksData as jc, VerifiedDomain as jd, DownloadDomainZoneFileError as ji, SendPermissionAddress as jl, CliSignupResendResult as jn, GetStorageStatsResponse as jo, Cursor as jr, ListFunctionLogsResponses as js, replyToEmail as jt, TestEndpointErrors as ju, PrimitiveApiErrorDetails as k, GetChallengeErrors as ka, ReplayDeliveryResponse as kc, UpdateSpendPolicyResponse as kd, DownloadAttachmentsResponses as ki, SendMailInput as kl, CliLogoutResponses as kn, GetStorageStatsError as ko, CreateOrgSecretResponse as kr, ListFunctionLogsErrors as ks, replayDelivery as kt, TestEndpointData as ku, PrimitiveClient as l, FunctionSecretListItem as la, PayChallengeErrors as lc, UpdateEndpointErrors as ld, X402SpendPolicy as lf, DeleteOrgSecretError as li, SearchEmailsErrors as ll, AddDomainErrors as ln, GetOrgRoutingTopologyError as lo, CreateFilterInput as lr, ListDomainsResponse as ls, getSentEmail as lt, StartAgentSignupData as lu, SendAttachment as m, FunctionTestRunInboundEmail as ma, PollCliLoginData as mc, UpdateFilterError as md, CreateClientConfig as mf, DeliverySummary as mi, SemanticSearchError as ml, AgentAccountUpgradeHint as mn, GetSendPermissionsError as mo, CreateFunctionErrors as mr, ListEmailsResponse as ms, listDeclinedPayments as mt, StartAgentSignupResponses as mu, AgentResource as n, FunctionDeployStatus as na, ListSentEmailsResponses as nc, UpdateDomainError as nd, X402Challenge as nf, DeleteFunctionResponses as ni, RotateWebhookSecretError as nl, verifyAgentSignup as nn, GetFunctionTestRunTraceResponses as no, CreateEndpointErrors as nr, ListDeliveriesError as ns, getEmail as nt, SetOrgSecretResponses as nu, InboundEmail as o, FunctionRouteBody as oa, ParsedEmailData as oc, UpdateDomainResponses as od, X402PaymentRequirements as of, DeleteFunctionSecretResponse as oi, RoutingTopology as ol, AccountUpdated as on, GetInboxStatusResponse as oo, CreateFilterData as or, ListDomainsData as os, getInboxStatus as ot, StartAgentClaimInput as ou, SemanticSearchResponse as p, FunctionTestRunDeliveryEndpoint as pa, PlanLimits as pc, UpdateFilterData as pd, Config as pf, DeliveryStatus as pi, SemanticSearchData as pl, AgentAccountResult as pn, GetSendPermissionsData as po, CreateFunctionError as pr, ListEmailsErrors as ps, getWebhookSecret as pt, StartAgentSignupResponse as pu, deleteFunctionSecret as q, GetFunctionRoutingData as qa, ResendAgentSignupVerificationResponses as qc, VerifyCliSignupInput as qd, EmailSearchHighlights as qi, SetFunctionSecretErrors as ql, CreateAgentClaimLinkResponses as qn, InboxStatusNextAction as qo, DeleteFilterData as qr, ListPayoutAddressesData as qs, testFunction as qt, UnsetFunctionRouteResponses as qu, CreateAgentOptions as r, FunctionDetail as ra, OrgSecretListItem as rc, UpdateDomainErrors as rd, X402DeclinedPayment as rf, DeleteFunctionSecretData as ri, RotateWebhookSecretErrors as rl, verifyCliSignup as rn, GetInboxStatusData as ro, CreateEndpointInput as rr, ListDeliveriesErrors as rs, getFunction as rt, StartAgentClaimData as ru, InboxResource as s, FunctionRouteResult as sa, PayChallengeData as sc, UpdateEndpointData as sd, X402PayoutAddress as sf, DeleteFunctionSecretResponses as si, SearchEmailsData as sl, AddDomainData as sn, GetInboxStatusResponses as so, CreateFilterError as sr, ListDomainsError as ss, getOrgRoutingTopology as st, StartAgentClaimResponse as su, AccountResource as t, Filter as ta, ListSentEmailsResponse as tc, UpdateDomainData as td, WebhookSecret as tf, DeleteFunctionResponse as ti, RotateWebhookSecretData as tl, verifyAgentClaim as tn, GetFunctionTestRunTraceResponse as to, CreateEndpointError as tr, ListDeliveriesData as ts, getConversation as tt, SetOrgSecretResponse as tu, PrimitiveClientOptions as u, FunctionSecretWriteResult as ua, PayChallengeInput as uc, UpdateEndpointInput as ud, createClient as uf, DeleteOrgSecretErrors as ui, SearchEmailsResponse as ul, AddDomainInput as un, GetOrgRoutingTopologyErrors as uo, CreateFilterResponse as ur, ListDomainsResponses as us, getSpendPolicy as ut, StartAgentSignupError as uu, WaitForNextOptions as v, FunctionTestRunState as va, PollCliLoginResponse as vc, UpdateFilterResponses as vd, ResponseStyle as vf, DiscardEmailContentErrors as vi, SemanticSearchMeta as vl, AgentOrgRef as vn, GetSentEmailData as vo, CreateFunctionResult as vr, ListEndpointsErrors as vs, listEndpoints as vt, StartCliLoginInput as vu, verifyWebhookSignature as w, GetAccountErrors as wa, RegisterPayoutAddressResponse as wc, UpdateFunctionResponses as wd, DomainVerifyResult as wi, SendEmailError as wl, CliLogoutData as wn, GetSpendPolicyError as wo, CreateFunctionSecretResponses as wr, ListFiltersErrors as ws, listPayoutAddresses as wt, StartCliSignupInput as wu, createPrimitiveClient as x, GateFix as xa, RegisterPayoutAddressError as xc, UpdateFunctionErrors as xd, DkimSignature as xi, SemanticSearchScoreBreakdown as xl, AgentSignupVerifyResult as xn, GetSentEmailResponse as xo, CreateFunctionSecretErrors as xr, ListEnvelope as xs, listFunctionSecrets as xt, StartCliSignupData as xu, client as y, FunctionTestRunTrace as ya, PollCliLoginResponses as yc, UpdateFunctionData as yd, createConfig as yf, DiscardEmailContentResponse as yi, SemanticSearchResponses as yl, AgentSignupResendResult as yn, GetSentEmailError as yo, CreateFunctionSecretData as yr, ListEndpointsResponse as ys, listFilters as yt, StartCliLoginResponse as yu, createFunction as z, GetEmailErrors as za, ReplyToEmailErrors as zc, VerifyAgentSignupError as zd, DownloadRawEmailResponses as zi, SentEmailSummary as zl, CreateAgentAccountInput as zn, GetWebhookSecretError as zo, DeleteEmailErrors as zr, ListFunctionsErrors as zs, setFunctionRoute as zt, TestInvocationResult as zu };
|