@sylphx/sdk 0.32.3 → 0.32.7

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/money.d.ts CHANGED
@@ -1,6 +1,16 @@
1
1
  import * as runtime from './runtime.js';
2
2
  import './common.js';
3
3
  import type * as common from './common.js';
4
+ /** The request of AdvanceTestClock. */
5
+ export interface AdvanceTestClockRequest {
6
+ /** The clock to advance. */
7
+ name: string;
8
+ /**
9
+ * Target simulated time. Whole seconds; must not precede current time.
10
+ * Repeating an already reached target is idempotent.
11
+ */
12
+ frozenTime: string;
13
+ }
4
14
  /** AppStoreConnection is an App Store Server API key and the app's bundle ids. */
5
15
  export interface AppStoreConnection {
6
16
  /** The apps' bundle ids. */
@@ -189,6 +199,27 @@ export interface CheckEntitlementResponse {
189
199
  */
190
200
  source?: string;
191
201
  }
202
+ /**
203
+ * Request for CheckMerchantAccountProcessorPermissions. Read-only Stripe
204
+ * calls, with the stored credential; no refresh, key rotation or state write.
205
+ */
206
+ export interface CheckMerchantAccountProcessorPermissionsRequest {
207
+ /** Merchant account resource name. */
208
+ name: string;
209
+ }
210
+ /** Response for CheckMerchantAccountProcessorPermissions. */
211
+ export interface CheckMerchantAccountProcessorPermissionsResponse {
212
+ /** Merchant account resource name. */
213
+ merchantAccount?: string;
214
+ /** True for a live merchant. */
215
+ livemode?: boolean;
216
+ /** All probes, including unavailable results (not a false success). */
217
+ permissions?: ProcessorReadPermission[];
218
+ /** Probe completion time. */
219
+ checkTime?: string;
220
+ /** Fixed warnings; missing access does not stop checkout. */
221
+ warnings?: string[];
222
+ }
192
223
  /** The request of CheckUsageStanding. */
193
224
  export interface CheckUsageStandingRequest {
194
225
  /** The environment. */
@@ -500,6 +531,15 @@ export interface CreateStoreConnectionRequest {
500
531
  /** Validate and return the result without writing anything. */
501
532
  validateOnly?: boolean;
502
533
  }
534
+ /** The request of CreateTestClock. */
535
+ export interface CreateTestClockRequest {
536
+ /** The environment to create in. */
537
+ parent: string;
538
+ /** The subject and initial simulated time. */
539
+ testClock: TestClock;
540
+ /** The final name segment; defaults to a stable id derived from the subject. */
541
+ testClockId?: string;
542
+ }
503
543
  /** The request of CreateUsageEvent. */
504
544
  export interface CreateUsageEventRequest {
505
545
  /** The environment to create in. */
@@ -626,6 +666,19 @@ export interface DisconnectMerchantAccountRequest {
626
666
  /** The merchant account to disconnect. */
627
667
  name: string;
628
668
  }
669
+ /**
670
+ * Request for DismissProcessorEvent. Only an owned test-mode payout
671
+ * observation may be dismissed. Live, unknown-mode and payment events are
672
+ * refused. The inbox row and audit remain; no payment or grant is changed.
673
+ */
674
+ export interface DismissProcessorEventRequest {
675
+ /** Event resource name. */
676
+ name: string;
677
+ /** The event's current meta.etag. */
678
+ etag: string;
679
+ /** Must be `test_processor_observation`. */
680
+ reason: string;
681
+ }
629
682
  /**
630
683
  * An Entitlement Grant is one feature a subject holds, from one source: a
631
684
  * subscription, an order, a store purchase, or a manual grant. Money derives
@@ -766,6 +819,11 @@ export interface GetPortalSessionRequest {
766
819
  /** The name of the portal session to get. */
767
820
  name: string;
768
821
  }
822
+ /** Request for GetProcessorEvent. */
823
+ export interface GetProcessorEventRequest {
824
+ /** Event resource name. */
825
+ name: string;
826
+ }
769
827
  /** The request of GetRevenueSource. */
770
828
  export interface GetRevenueSourceRequest {
771
829
  /** The name of the source to get. */
@@ -805,6 +863,11 @@ export interface GetStorePurchaseRequest {
805
863
  /** The name of the store purchase to get. */
806
864
  name: string;
807
865
  }
866
+ /** The request of GetTestClock. */
867
+ export interface GetTestClockRequest {
868
+ /** The test clock to read back. */
869
+ name: string;
870
+ }
808
871
  /** The request of GetUsageInvoice. */
809
872
  export interface GetUsageInvoiceRequest {
810
873
  /** The name of the usage invoice to get. */
@@ -1142,6 +1205,24 @@ export interface ListMerchantAccountsResponse {
1142
1205
  /** The token of the next page; empty on the last page. */
1143
1206
  nextPageToken?: string;
1144
1207
  }
1208
+ /** Request for ListProcessorEvents. */
1209
+ export interface ListProcessorEventsRequest {
1210
+ /** Environment resource name. */
1211
+ parent: string;
1212
+ /** Default 50, at most 1000. */
1213
+ pageSize?: number;
1214
+ /** Token from the preceding page, bound to environment and filter. */
1215
+ pageToken?: string;
1216
+ /** Only `state = "held"` (the default), `pending`, `applied`, or `dismissed`. */
1217
+ filter?: string;
1218
+ }
1219
+ /** Response for ListProcessorEvents. */
1220
+ export interface ListProcessorEventsResponse {
1221
+ /** Events ordered by received time and event id. */
1222
+ processorEvents?: ProcessorEvent[];
1223
+ /** Empty on the last page. */
1224
+ nextPageToken?: string;
1225
+ }
1145
1226
  /** The request of ListRevenueFacts. */
1146
1227
  export interface ListRevenueFactsRequest {
1147
1228
  /** The org: `orgs/{org}`. */
@@ -1373,6 +1454,15 @@ export interface MerchantAccount {
1373
1454
  * `post_tax_settlement` credit grant exists.
1374
1455
  */
1375
1456
  automaticTax?: boolean;
1457
+ /**
1458
+ * Payouts and Balance read probes. Missing access only delays bookkeeping;
1459
+ * it never disconnects this account or prevents checkout.
1460
+ */
1461
+ readonly processorReadPermissions?: ProcessorReadPermission[];
1462
+ /** When these probes ran. Unset means not checked yet. */
1463
+ readonly processorPermissionsCheckTime?: string;
1464
+ /** Fixed, actionable warnings; never Stripe response bodies or credentials. */
1465
+ readonly processorWarnings?: string[];
1376
1466
  }
1377
1467
  /**
1378
1468
  * A Portal Session is a hosted page where a subject manages its
@@ -1434,6 +1524,57 @@ export interface Price {
1434
1524
  */
1435
1525
  introductoryUnitAmounts?: Record<string, string>;
1436
1526
  }
1527
+ /**
1528
+ * A stored Stripe hint. No payload, customer details, credential or raw error
1529
+ * is returned. Recovery never creates a grant or writes a ledger entry: retry
1530
+ * schedules the existing authenticated, idempotent application path.
1531
+ */
1532
+ export interface ProcessorEvent {
1533
+ /** Name; the final segment is Stripe's event id. */
1534
+ name?: string;
1535
+ /** Stable, server-derived id. */
1536
+ readonly uid?: string;
1537
+ /** Metadata; meta.etag is required on recovery calls. */
1538
+ readonly meta?: common.ResourceMeta;
1539
+ /** Stripe account id, never the customer's identity. */
1540
+ readonly accountId?: string;
1541
+ /** Stripe event type. */
1542
+ readonly eventType?: string;
1543
+ /** Stripe object id (not a payload). */
1544
+ readonly objectId?: string;
1545
+ /** `pending`, `held`, `applied` or `dismissed`. */
1546
+ readonly state?: string;
1547
+ /** `processor_permission_denied`, `attempts_exhausted`, or empty. */
1548
+ readonly holdReason?: string;
1549
+ /** Number of failed application attempts. */
1550
+ readonly attempts?: number;
1551
+ /** Whether the owning merchant is live. Read only when mode_known is true. */
1552
+ readonly livemode?: boolean;
1553
+ /** False when the owning merchant cannot be resolved; never assumes test. */
1554
+ readonly modeKnown?: boolean;
1555
+ /** Last audited recovery decision, if any. Full history is retained. */
1556
+ readonly lastRecovery?: ProcessorEventRecovery;
1557
+ }
1558
+ /** An audited operator decision. No arbitrary free text or personal data. */
1559
+ export interface ProcessorEventRecovery {
1560
+ /** Stable receipt identity, scoped to this event and revision. */
1561
+ readonly receiptId?: string;
1562
+ /** `retry` or `dismiss`. */
1563
+ readonly action?: string;
1564
+ /** `operator_retry`, `permissions_restored`, or `test_processor_observation`. */
1565
+ readonly reason?: string;
1566
+ /** The verified caller's principal, never supplied by the caller. */
1567
+ readonly principal?: string;
1568
+ /** Commit's decision time. */
1569
+ readonly createTime?: string;
1570
+ }
1571
+ /** One read capability; failure never disables taking payments. */
1572
+ export interface ProcessorReadPermission {
1573
+ /** `payouts` or `balance` (Stripe's Payouts and Balance read permissions). */
1574
+ readonly permission?: string;
1575
+ /** `granted`, `missing` (403), or `unavailable` (no conclusion). */
1576
+ readonly state?: string;
1577
+ }
1437
1578
  /** A Product is one thing sold, with its prices and the features it grants. */
1438
1579
  export interface Product {
1439
1580
  /** The product key; `^[a-z][a-z0-9_]{0,63}$`. */
@@ -1529,6 +1670,15 @@ export interface RetireLicenceKeyRequest {
1529
1670
  /** The key to retire. */
1530
1671
  name: string;
1531
1672
  }
1673
+ /** Request for RetryProcessorEvent. Queues a held event once; no inline replay. */
1674
+ export interface RetryProcessorEventRequest {
1675
+ /** Event resource name. */
1676
+ name: string;
1677
+ /** The event's current meta.etag, required to avoid racing another decision. */
1678
+ etag: string;
1679
+ /** `operator_retry` or `permissions_restored`. */
1680
+ reason: string;
1681
+ }
1532
1682
  /** One day or month of a RevenueSummary. */
1533
1683
  export interface RevenueBucket {
1534
1684
  /** The day, or the first day of the month. */
@@ -2038,6 +2188,40 @@ export interface TaxThresholdStatus {
2038
2188
  /** When the threshold row took effect. */
2039
2189
  readonly effectiveTime?: string;
2040
2190
  }
2191
+ /**
2192
+ * A Stripe test clock for one subject's subscription lifecycle. Create it
2193
+ * before the subject's first checkout; its Stripe customer inherits the clock.
2194
+ * Only test-mode keys and test-mode merchants can use this resource. Advancing
2195
+ * changes Stripe's time and emits real webhooks; it never edits entitlements.
2196
+ */
2197
+ export interface TestClock {
2198
+ /** The clock's resource name. */
2199
+ name?: string;
2200
+ /** Stable identity, never reused. */
2201
+ readonly uid?: string;
2202
+ /** Resource metadata. */
2203
+ readonly meta?: common.ResourceMeta;
2204
+ /**
2205
+ * The subject whose new Stripe customer will use this clock. A subject
2206
+ * with an existing Money Stripe customer cannot acquire a clock.
2207
+ */
2208
+ subject?: Subject;
2209
+ /**
2210
+ * Initial simulated time on create; current Stripe time on reads. Required
2211
+ * on create. Only whole seconds are supported.
2212
+ */
2213
+ frozenTime?: string;
2214
+ /**
2215
+ * Stripe's status: ready, advancing, or internal_failure. Poll GetTestClock
2216
+ * until ready before the next simulation step. Ready does not mean Money
2217
+ * has applied every webhook; observe the subscription and entitlement too.
2218
+ */
2219
+ readonly state?: string;
2220
+ /** Stripe clock id, for processor receipts. */
2221
+ readonly processorClockId?: string;
2222
+ /** Always false; a live processor object is refused. */
2223
+ readonly livemode?: boolean;
2224
+ }
2041
2225
  /** An amount a summary could not convert yet. */
2042
2226
  export interface UnconvertedAmount {
2043
2227
  /** ISO 4217 code. */
@@ -2470,6 +2654,10 @@ export type ProrationBehavior = 'create_prorations' | 'none' | 'always_invoice'
2470
2654
  * Namespace of Sylphx Money on `Sylphx`.
2471
2655
  */
2472
2656
  export declare class MoneyApi {
2657
+ /** The `processor_events` collection. */
2658
+ readonly processorEvents: ProcessorEventsCollection;
2659
+ /** The `merchant_accounts` collection. */
2660
+ readonly merchantAccounts: MerchantAccountsCollection;
2473
2661
  /** The `price_catalogs` collection. */
2474
2662
  readonly priceCatalogs: PriceCatalogsCollection;
2475
2663
  /** The `checkout_policies` collection. */
@@ -2482,8 +2670,8 @@ export declare class MoneyApi {
2482
2670
  readonly customerSubscriptions: CustomerSubscriptionsCollection;
2483
2671
  /** The `entitlement_grants` collection. */
2484
2672
  readonly entitlementGrants: EntitlementGrantsCollection;
2485
- /** The `merchant_accounts` collection. */
2486
- readonly merchantAccounts: MerchantAccountsCollection;
2673
+ /** The `test_clocks` collection. */
2674
+ readonly testClocks: TestClocksCollection;
2487
2675
  /** The `checkout_sessions` collection. */
2488
2676
  readonly checkoutSessions: CheckoutSessionsCollection;
2489
2677
  /** The `tax_threshold_statuses` collection. */
@@ -2520,6 +2708,111 @@ export declare class MoneyApi {
2520
2708
  readonly exchangeRates: ExchangeRatesCollection;
2521
2709
  constructor(client: runtime.Client);
2522
2710
  }
2711
+ /** `processor_events` of Sylphx Money: Resource type `money.sylphx.com/ProcessorEvent`. */
2712
+ export declare class ProcessorEventsCollection {
2713
+ private readonly client;
2714
+ constructor(client: runtime.Client);
2715
+ /**
2716
+ * Gets one stored processor hint, with its safe hold reason.
2717
+ *
2718
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/processor_events/*}` · permission `billing:processor_events:read` · effect `read`
2719
+ *
2720
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
2721
+ */
2722
+ get(request: GetProcessorEventRequest): Promise<ProcessorEvent>;
2723
+ /**
2724
+ * Lists stored processor hints; defaults to held events.
2725
+ *
2726
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/processor_events` · permission `billing:processor_events:read` · effect `read`
2727
+ *
2728
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2729
+ */
2730
+ list(request: ListProcessorEventsRequest): Promise<ListProcessorEventsResponse>;
2731
+ /** Every item of every page of `list`. */
2732
+ listAll(request: ListProcessorEventsRequest): AsyncGenerator<ProcessorEvent>;
2733
+ /**
2734
+ * Schedules a held event through the existing idempotent application path. The decision is audited; an etag is required.
2735
+ *
2736
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/processor_events/*}:retry` · permission `billing:processor_events:write` · effect `write`
2737
+ *
2738
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`.
2739
+ */
2740
+ retry(request: RetryProcessorEventRequest): Promise<ProcessorEvent>;
2741
+ /**
2742
+ * Dismisses only a held test-mode payout observation, retaining the row and audit. Live, unknown-mode and payment events are refused.
2743
+ *
2744
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/processor_events/*}:dismiss` · permission `billing:processor_events:write` · effect `write`
2745
+ *
2746
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`.
2747
+ */
2748
+ dismiss(request: DismissProcessorEventRequest): Promise<ProcessorEvent>;
2749
+ }
2750
+ /** `merchant_accounts` of Sylphx Money: Resource type `money.sylphx.com/MerchantAccount`. */
2751
+ export declare class MerchantAccountsCollection {
2752
+ private readonly client;
2753
+ constructor(client: runtime.Client);
2754
+ /**
2755
+ * Checks Payouts and Balance read without modifying a merchant, its key or checkout.
2756
+ *
2757
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:checkProcessorPermissions` · permission `billing:read` · effect `read`
2758
+ *
2759
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
2760
+ */
2761
+ checkProcessorPermissions(request: CheckMerchantAccountProcessorPermissionsRequest): Promise<CheckMerchantAccountProcessorPermissionsResponse>;
2762
+ /**
2763
+ * Gets a merchant account.
2764
+ *
2765
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}` · permission `billing:read` · effect `read`
2766
+ *
2767
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2768
+ */
2769
+ get(request: GetMerchantAccountRequest): Promise<MerchantAccount>;
2770
+ /**
2771
+ * Lists merchant accounts.
2772
+ *
2773
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts` · permission `billing:read` · effect `read`
2774
+ *
2775
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2776
+ */
2777
+ list(request: ListMerchantAccountsRequest): Promise<ListMerchantAccountsResponse>;
2778
+ /** Every item of every page of `list`. */
2779
+ listAll(request: ListMerchantAccountsRequest): AsyncGenerator<MerchantAccount>;
2780
+ /**
2781
+ * Starts connecting a Stripe account: returns the processor's authorisation
2782
+ * URL for an org owner to open, which the processor's redirect completes.
2783
+ * With a restricted key in the request the account connects at once
2784
+ * instead, and the connected merchant account comes back in the response.
2785
+ *
2786
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts:connect` · permission `billing:write` · effect `write`
2787
+ *
2788
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `UNAVAILABLE`.
2789
+ */
2790
+ connect(request: ConnectMerchantAccountRequest): Promise<ConnectMerchantAccountResponse>;
2791
+ /**
2792
+ * Reads the connected account back from the processor.
2793
+ *
2794
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:refresh` · permission `billing:write` · effect `write`
2795
+ *
2796
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2797
+ */
2798
+ refresh(request: RefreshMerchantAccountRequest): Promise<MerchantAccount>;
2799
+ /**
2800
+ * Disconnects the account: Sylphx loses access; checkout is refused.
2801
+ *
2802
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:disconnect` · permission `billing:write` · effect `destructive`
2803
+ *
2804
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2805
+ */
2806
+ disconnect(request: DisconnectMerchantAccountRequest): Promise<MerchantAccount>;
2807
+ /**
2808
+ * Updates the merchant account's own settings: the fields named in `update_mask`.
2809
+ *
2810
+ * `PATCH /v1/{merchant_account.name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}` · permission `billing:write` · effect `write`
2811
+ *
2812
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2813
+ */
2814
+ update(request: UpdateMerchantAccountRequest): Promise<MerchantAccount>;
2815
+ }
2523
2816
  /** `price_catalogs` of Sylphx Money: Resource type `money.sylphx.com/PriceCatalog`. */
2524
2817
  export declare class PriceCatalogsCollection {
2525
2818
  private readonly client;
@@ -2785,63 +3078,37 @@ export declare class EntitlementGrantsCollection {
2785
3078
  */
2786
3079
  create(request: CreateEntitlementGrantRequest): Promise<EntitlementGrant>;
2787
3080
  }
2788
- /** `merchant_accounts` of Sylphx Money: Resource type `money.sylphx.com/MerchantAccount`. */
2789
- export declare class MerchantAccountsCollection {
3081
+ /** `test_clocks` of Sylphx Money: Resource type `money.sylphx.com/TestClock`. */
3082
+ export declare class TestClocksCollection {
2790
3083
  private readonly client;
2791
3084
  constructor(client: runtime.Client);
2792
3085
  /**
2793
- * Gets a merchant account.
3086
+ * Creates a test-only Stripe simulation before the subject's first checkout.
3087
+ * No catalogue, payment, subscription, or entitlement is changed.
2794
3088
  *
2795
- * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}` · permission `billing:read` · effect `read`
3089
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/test_clocks` · permission `billing:write` · effect `write`
2796
3090
  *
2797
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
3091
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `UNAVAILABLE`.
2798
3092
  */
2799
- get(request: GetMerchantAccountRequest): Promise<MerchantAccount>;
3093
+ create(request: CreateTestClockRequest): Promise<TestClock>;
2800
3094
  /**
2801
- * Lists merchant accounts.
3095
+ * Reads the owned test clock back from Stripe. Live keys are refused.
2802
3096
  *
2803
- * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts` · permission `billing:read` · effect `read`
3097
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/test_clocks/*}` · permission `billing:read` · effect `read`
2804
3098
  *
2805
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
3099
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2806
3100
  */
2807
- list(request: ListMerchantAccountsRequest): Promise<ListMerchantAccountsResponse>;
2808
- /** Every item of every page of `list`. */
2809
- listAll(request: ListMerchantAccountsRequest): AsyncGenerator<MerchantAccount>;
3101
+ get(request: GetTestClockRequest): Promise<TestClock>;
2810
3102
  /**
2811
- * Starts connecting a Stripe account: returns the processor's authorisation
2812
- * URL for an org owner to open, which the processor's redirect completes.
2813
- * With a restricted key in the request the account connects at once
2814
- * instead, and the connected merchant account comes back in the response.
3103
+ * Advances Stripe time, never entitlements. Stripe processes asynchronously;
3104
+ * poll GetTestClock until ready, then observe the genuine webhook's effects.
3105
+ * Time only moves forward, within Stripe's subscription-interval bound.
2815
3106
  *
2816
- * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts:connect` · permission `billing:write` · effect `write`
3107
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/test_clocks/*}:advance` · permission `billing:write` · effect `write`
2817
3108
  *
2818
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `UNAVAILABLE`.
3109
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2819
3110
  */
2820
- connect(request: ConnectMerchantAccountRequest): Promise<ConnectMerchantAccountResponse>;
2821
- /**
2822
- * Reads the connected account back from the processor.
2823
- *
2824
- * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:refresh` · permission `billing:write` · effect `write`
2825
- *
2826
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2827
- */
2828
- refresh(request: RefreshMerchantAccountRequest): Promise<MerchantAccount>;
2829
- /**
2830
- * Disconnects the account: Sylphx loses access; checkout is refused.
2831
- *
2832
- * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:disconnect` · permission `billing:write` · effect `destructive`
2833
- *
2834
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
2835
- */
2836
- disconnect(request: DisconnectMerchantAccountRequest): Promise<MerchantAccount>;
2837
- /**
2838
- * Updates the merchant account's own settings: the fields named in `update_mask`.
2839
- *
2840
- * `PATCH /v1/{merchant_account.name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}` · permission `billing:write` · effect `write`
2841
- *
2842
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2843
- */
2844
- update(request: UpdateMerchantAccountRequest): Promise<MerchantAccount>;
3111
+ advance(request: AdvanceTestClockRequest): Promise<TestClock>;
2845
3112
  }
2846
3113
  /** `checkout_sessions` of Sylphx Money: Resource type `money.sylphx.com/CheckoutSession`. */
2847
3114
  export declare class CheckoutSessionsCollection {