@sylphx/sdk 0.31.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +111 -4
  2. package/dist/access.d.ts +112 -17
  3. package/dist/access.js +101 -7
  4. package/dist/access.js.map +1 -1
  5. package/dist/ai.d.ts +1 -2
  6. package/dist/ai.js +2 -3
  7. package/dist/ai.js.map +1 -1
  8. package/dist/artifacts.d.ts +1 -1
  9. package/dist/artifacts.js +2 -2
  10. package/dist/assets.d.ts +447 -0
  11. package/dist/assets.js +266 -0
  12. package/dist/assets.js.map +1 -0
  13. package/dist/auth/client.d.ts +239 -0
  14. package/dist/auth/client.js +337 -0
  15. package/dist/auth/client.js.map +1 -0
  16. package/dist/auth/verify.d.ts +38 -3
  17. package/dist/auth/verify.js +58 -8
  18. package/dist/auth/verify.js.map +1 -1
  19. package/dist/auth.d.ts +455 -7
  20. package/dist/auth.js +416 -5
  21. package/dist/auth.js.map +1 -1
  22. package/dist/billing.d.ts +13 -13
  23. package/dist/billing.js +5 -5
  24. package/dist/broker.d.ts +5 -4
  25. package/dist/broker.js +3 -3
  26. package/dist/broker.js.map +1 -1
  27. package/dist/build.d.ts +4 -4
  28. package/dist/build.js +3 -3
  29. package/dist/common.d.ts +1 -1
  30. package/dist/common.js +1 -1
  31. package/dist/config/flags.d.ts +140 -0
  32. package/dist/config/flags.js +462 -0
  33. package/dist/config/flags.js.map +1 -0
  34. package/dist/config.d.ts +380 -15
  35. package/dist/config.js +283 -5
  36. package/dist/config.js.map +1 -1
  37. package/dist/connections.d.ts +6 -6
  38. package/dist/connections.js +3 -3
  39. package/dist/data.d.ts +560 -7
  40. package/dist/data.js +510 -4
  41. package/dist/data.js.map +1 -1
  42. package/dist/entitlement.d.ts +10 -8
  43. package/dist/entitlement.js +3 -4
  44. package/dist/entitlement.js.map +1 -1
  45. package/dist/events/realtime.d.ts +69 -0
  46. package/dist/events/realtime.js +107 -0
  47. package/dist/events/realtime.js.map +1 -0
  48. package/dist/events/webhooks.d.ts +40 -0
  49. package/dist/events/webhooks.js +110 -0
  50. package/dist/events/webhooks.js.map +1 -0
  51. package/dist/events.d.ts +369 -22
  52. package/dist/events.js +311 -8
  53. package/dist/events.js.map +1 -1
  54. package/dist/hosting.d.ts +13 -14
  55. package/dist/hosting.js +3 -4
  56. package/dist/hosting.js.map +1 -1
  57. package/dist/ids.d.ts +837 -0
  58. package/dist/ids.js +287 -0
  59. package/dist/ids.js.map +1 -0
  60. package/dist/index.d.ts +12 -1
  61. package/dist/index.js +16 -2
  62. package/dist/index.js.map +1 -1
  63. package/dist/keys.d.ts +2 -2
  64. package/dist/keys.js +3 -3
  65. package/dist/localization.d.ts +663 -0
  66. package/dist/localization.js +491 -0
  67. package/dist/localization.js.map +1 -0
  68. package/dist/methods.js +1719 -124
  69. package/dist/methods.js.map +1 -1
  70. package/dist/money.d.ts +1406 -0
  71. package/dist/money.js +1090 -0
  72. package/dist/money.js.map +1 -0
  73. package/dist/network.d.ts +4 -5
  74. package/dist/network.js +3 -4
  75. package/dist/network.js.map +1 -1
  76. package/dist/notify.d.ts +321 -124
  77. package/dist/notify.js +223 -73
  78. package/dist/notify.js.map +1 -1
  79. package/dist/observability.d.ts +184 -7
  80. package/dist/observability.js +156 -8
  81. package/dist/observability.js.map +1 -1
  82. package/dist/release.d.ts +14 -15
  83. package/dist/release.js +3 -4
  84. package/dist/release.js.map +1 -1
  85. package/dist/runners.d.ts +2 -3
  86. package/dist/runners.js +3 -4
  87. package/dist/runners.js.map +1 -1
  88. package/dist/runtime.d.ts +5 -1
  89. package/dist/runtime.js +7 -3
  90. package/dist/runtime.js.map +1 -1
  91. package/dist/sandboxes.d.ts +64 -20
  92. package/dist/sandboxes.js +9 -4
  93. package/dist/sandboxes.js.map +1 -1
  94. package/dist/secrets.d.ts +6 -6
  95. package/dist/secrets.js +4 -4
  96. package/dist/workflows.d.ts +850 -12
  97. package/dist/workflows.js +672 -3
  98. package/dist/workflows.js.map +1 -1
  99. package/package.json +1 -1
@@ -0,0 +1,1406 @@
1
+ import * as runtime from './runtime.js';
2
+ import './common.js';
3
+ import type * as common from './common.js';
4
+ /** AppStoreConnection is an App Store Server API key and the app's bundle ids. */
5
+ export interface AppStoreConnection {
6
+ /** The apps' bundle ids. */
7
+ bundleIds?: string[];
8
+ /** The App Store Connect issuer id. */
9
+ issuerId?: string;
10
+ /** The In-App Purchase key id. */
11
+ keyId?: string;
12
+ /**
13
+ * The In-App Purchase key (`.p8` PEM). Write-only: sealed on write, never
14
+ * returned; omit it on update to keep the stored key.
15
+ */
16
+ privateKey?: string;
17
+ /** The app's Apple id, needed to verify production notifications. */
18
+ appAppleId?: string;
19
+ /**
20
+ * An earlier `appAccountToken` scheme the app's shipped builds use: the
21
+ * token is UUIDv5 in the URL namespace of this prefix followed by the
22
+ * subject id (for example `https://accounts.example.com/v2/`). Tokens in
23
+ * Money's own scheme are always accepted as well.
24
+ */
25
+ accountTokenPrefix?: string;
26
+ }
27
+ /** The request of CancelCustomerSubscription. */
28
+ export interface CancelCustomerSubscriptionRequest {
29
+ /** The subscription to cancel. */
30
+ name: string;
31
+ /** End it at the period end (true) or now (false). */
32
+ atPeriodEnd?: boolean;
33
+ /** Refund the last payment in full; only with `at_period_end` false. */
34
+ refundLastPayment?: boolean;
35
+ }
36
+ /**
37
+ * A Catalog is an environment's features, products, and prices: the desired
38
+ * state Money keeps its merchant account's processor objects equal to, by
39
+ * lookup key. It is declared in `sylphx.toml` `[money]` or written here.
40
+ */
41
+ export interface Catalog {
42
+ /** `orgs/{org}/projects/{project}/envs/{env}/price_catalogs/default`. */
43
+ name?: string;
44
+ /** `cat_<cell><ulid>`; never reused. */
45
+ readonly uid?: string;
46
+ /** Resource metadata. */
47
+ meta?: common.ResourceMeta;
48
+ /** Desired state. */
49
+ spec?: CatalogSpec;
50
+ /** Observed state. */
51
+ readonly status?: CatalogStatus;
52
+ }
53
+ /** CatalogSpec is the caller-writable state of a Catalog. */
54
+ export interface CatalogSpec {
55
+ /** What an entitlement can grant. */
56
+ features?: Feature[];
57
+ /** What is sold. */
58
+ products?: Product[];
59
+ /**
60
+ * How long a signed store-purchase grant is valid, from the moment it is
61
+ * issued; a client re-verifies to renew it. Default 7 days, 1 hour to 30
62
+ * days.
63
+ */
64
+ clientGrantTtl?: string;
65
+ /**
66
+ * Whether a delivered one-time purchase whose money the store or processor
67
+ * takes back (a refund, a void, a chargeback) gives back its goods: its
68
+ * entitlements end, and the refund event asks the app to take back the
69
+ * assets it granted, up to what the subject still holds. Applies once the
70
+ * project is enabled for take-backs, to refunds dated from then on; unset
71
+ * then means on.
72
+ */
73
+ refundClawBack?: boolean;
74
+ }
75
+ /** CatalogStatus is the observed state of a Catalog. */
76
+ export interface CatalogStatus {
77
+ /** The generation this status was computed from. */
78
+ readonly observedGeneration?: string;
79
+ /** Synced, Reconciling, Stalled. */
80
+ readonly conditions?: common.Condition[];
81
+ /** When the processor last matched the spec. */
82
+ readonly syncTime?: string;
83
+ /** The processor object behind each price, by lookup key. */
84
+ readonly processorPriceIds?: Record<string, string>;
85
+ }
86
+ /** The request of ChangeCustomerSubscriptionPlan. */
87
+ export interface ChangeCustomerSubscriptionPlanRequest {
88
+ /** The subscription to change. */
89
+ name: string;
90
+ /** The key of the catalog product to move to. */
91
+ product: string;
92
+ /**
93
+ * The key of the product's recurring price (for example monthly or yearly).
94
+ * Optional when the product has one recurring price.
95
+ */
96
+ price?: string;
97
+ /** How the change is billed; unspecified is `create_prorations`. */
98
+ prorationBehavior?: ProrationBehavior;
99
+ /**
100
+ * Run every check and answer the subscription as it would read, without
101
+ * changing anything.
102
+ */
103
+ validateOnly?: boolean;
104
+ }
105
+ /** The request of CheckEntitlement. */
106
+ export interface CheckEntitlementRequest {
107
+ /** The environment to check in. */
108
+ parent: string;
109
+ /** Who. */
110
+ subject: Subject;
111
+ /** The feature key. */
112
+ feature: string;
113
+ }
114
+ /** The response of CheckEntitlement. */
115
+ export interface CheckEntitlementResponse {
116
+ /** Whether the subject holds the feature now. */
117
+ entitled?: boolean;
118
+ /** For a `limit` feature, the largest allowance the subject holds. */
119
+ limit?: string;
120
+ /** The grant that answers, when entitled. */
121
+ entitlementGrant?: string;
122
+ /**
123
+ * When the answering grant ends; unset for no end. A caller may cache the
124
+ * answer until then.
125
+ */
126
+ expireTime?: string;
127
+ }
128
+ /**
129
+ * A Checkout Session is a hosted page where a subject pays for catalog
130
+ * prices. Money creates the processor's session on the environment's
131
+ * merchant account and returns its URL.
132
+ */
133
+ export interface CheckoutSession {
134
+ /** `orgs/{org}/projects/{project}/envs/{env}/checkout_sessions/{checkout_session}`. */
135
+ name?: string;
136
+ /** `chk_<cell><ulid>`; never reused. */
137
+ readonly uid?: string;
138
+ /** Resource metadata. */
139
+ meta?: common.ResourceMeta;
140
+ /** Who pays and is entitled. */
141
+ subject?: Subject;
142
+ /**
143
+ * What is bought: catalog prices by lookup key. One recurring price makes a
144
+ * subscription; one-time prices make an order.
145
+ */
146
+ lineItems?: LineItem[];
147
+ /**
148
+ * Where the buyer lands after paying; `{CHECKOUT_SESSION_ID}` is replaced
149
+ * by the processor's session id. HTTPS only.
150
+ */
151
+ successUrl?: string;
152
+ /** Where the buyer lands on cancel. HTTPS only. */
153
+ cancelUrl?: string;
154
+ /**
155
+ * The currency to charge in, upper-case ISO 4217; default the processor's
156
+ * choice for the buyer among the prices' currencies.
157
+ */
158
+ currencyCode?: string;
159
+ /** The page language, for example `en` or `zh-HK`; default automatic. */
160
+ locale?: string;
161
+ /**
162
+ * Copied to the subscription or order, for example attribution
163
+ * (`utm_source`, `ref`). At most 20 keys.
164
+ */
165
+ metadata?: Record<string, string>;
166
+ /** Whether the buyer may enter a promotion code. */
167
+ allowPromotionCodes?: boolean;
168
+ /** The hosted page. */
169
+ readonly url?: string;
170
+ /** `open`, `complete`, or `expired`. */
171
+ readonly state?: string;
172
+ /** When the page stops accepting payment. */
173
+ readonly expireTime?: string;
174
+ /** The processor's session id. */
175
+ readonly processorSessionId?: string;
176
+ }
177
+ /** The request of ConnectMerchantAccount. */
178
+ export interface ConnectMerchantAccountRequest {
179
+ /** The environment whose seller this becomes. */
180
+ parent: string;
181
+ /** The merchant account id; default `default`. */
182
+ merchantAccountId?: string;
183
+ /**
184
+ * Where the browser returns after the processor, with `status` and, on
185
+ * success, `merchant_account` in the query. HTTPS only. Required for the
186
+ * OAuth connection; unused, and so optional, with `restricted_key`.
187
+ */
188
+ returnUrl?: string;
189
+ /**
190
+ * A Stripe restricted key (`rk_test_…` or `rk_live_…`); when set, no OAuth
191
+ * happens: the account is read and connected at once. Write-only: sealed on
192
+ * write, never returned, never logged. A secret key (`sk_…`) is refused,
193
+ * because a restricted key can be limited to what payments need.
194
+ */
195
+ restrictedKey?: string;
196
+ }
197
+ /** The response of ConnectMerchantAccount. */
198
+ export interface ConnectMerchantAccountResponse {
199
+ /**
200
+ * The processor's authorisation page for an owner of the account to open;
201
+ * empty when the connection completed in this call.
202
+ */
203
+ authorizeUrl?: string;
204
+ /**
205
+ * When the link stops working; unset when the connection completed in this
206
+ * call.
207
+ */
208
+ expireTime?: string;
209
+ /**
210
+ * The merchant account, connected; set when the connection completed in
211
+ * this call, which is every connection made with a restricted key.
212
+ */
213
+ merchantAccount?: MerchantAccount;
214
+ }
215
+ /** The request of CreateCheckoutSession. */
216
+ export interface CreateCheckoutSessionRequest {
217
+ /** The parent to create in. */
218
+ parent: string;
219
+ /** The checkout to create; only caller-writable fields are read. */
220
+ checkoutSession: CheckoutSession;
221
+ /** The id, the final name segment; the server assigns one when empty. */
222
+ checkoutSessionId?: string;
223
+ }
224
+ /** The request of CreatePortalSession. */
225
+ export interface CreatePortalSessionRequest {
226
+ /** The parent to create in. */
227
+ parent: string;
228
+ /** The portal session to create; only caller-writable fields are read. */
229
+ portalSession: PortalSession;
230
+ /** The id, the final name segment; the server assigns one when empty. */
231
+ portalSessionId?: string;
232
+ }
233
+ /** The request of CreateStoreConnection. */
234
+ export interface CreateStoreConnectionRequest {
235
+ /** The parent to create in. */
236
+ parent: string;
237
+ /** The store connection id, the final name segment. */
238
+ storeConnectionId: string;
239
+ /** The store connection to create; only caller-writable fields are read. */
240
+ storeConnection: StoreConnection;
241
+ /** Validate and return the result without writing anything. */
242
+ validateOnly?: boolean;
243
+ }
244
+ /**
245
+ * A Customer Subscription is a subject's recurring purchase, mirrored from
246
+ * the processor after Money read it back. Money writes it; a caller changes it
247
+ * only through `:cancel` and `:resume`.
248
+ */
249
+ export interface CustomerSubscription {
250
+ /** `orgs/{org}/projects/{project}/envs/{env}/customer_subscriptions/{customer_subscription}`. */
251
+ name?: string;
252
+ /** `csb_<cell><ulid>`; never reused. */
253
+ readonly uid?: string;
254
+ /** Resource metadata. */
255
+ meta?: common.ResourceMeta;
256
+ /** Who holds it. */
257
+ readonly subject?: Subject;
258
+ /** `stripe`, `app_store`, or `google_play`. */
259
+ readonly source?: string;
260
+ /** The processor's subscription id. */
261
+ readonly processorSubscriptionId?: string;
262
+ /**
263
+ * `trialing`, `active`, `past_due`, `paused`, `canceled`, `unpaid`,
264
+ * `incomplete`, or `incomplete_expired`, as the processor reports it.
265
+ */
266
+ readonly status?: string;
267
+ /** The prices, by lookup key, and their quantities. */
268
+ readonly items?: LineItem[];
269
+ /** The end of the paid period. */
270
+ readonly currentPeriodEndTime?: string;
271
+ /** Whether it ends at `current_period_end_time` instead of renewing. */
272
+ readonly cancelAtPeriodEnd?: boolean;
273
+ /** The end of the trial, when there is one. */
274
+ readonly trialEndTime?: string;
275
+ /** The checkout's metadata. */
276
+ readonly metadata?: Record<string, unknown>;
277
+ }
278
+ /** The request of DeleteStoreConnection. */
279
+ export interface DeleteStoreConnectionRequest {
280
+ /** The name of the store connection to delete. */
281
+ name: string;
282
+ /** The ETag the caller read; the delete fails if it changed. */
283
+ etag?: string;
284
+ }
285
+ /** The request of DisconnectMerchantAccount. */
286
+ export interface DisconnectMerchantAccountRequest {
287
+ /** The merchant account to disconnect. */
288
+ name: string;
289
+ }
290
+ /**
291
+ * An Entitlement Grant is one feature a subject holds, from one source: a
292
+ * subscription, an order, a store purchase, or a manual grant. Money derives
293
+ * it; a client event never writes one.
294
+ */
295
+ export interface EntitlementGrant {
296
+ /** `orgs/{org}/projects/{project}/envs/{env}/entitlement_grants/{entitlement_grant}`. */
297
+ name?: string;
298
+ /** `egr_<cell><ulid>`; never reused. */
299
+ readonly uid?: string;
300
+ /** Resource metadata. */
301
+ meta?: common.ResourceMeta;
302
+ /** Who holds it. */
303
+ readonly subject?: Subject;
304
+ /** The feature key. */
305
+ readonly feature?: string;
306
+ /** For a `limit` feature, the allowance as a decimal string. */
307
+ readonly limit?: string;
308
+ /** The resource that grants it, for example a customer subscription's name. */
309
+ readonly source?: string;
310
+ /** When it ends; unset for no end. */
311
+ readonly expireTime?: string;
312
+ }
313
+ /**
314
+ * A Feature is what an app checks, for example `plus` or
315
+ * `exports.per_month`.
316
+ */
317
+ export interface Feature {
318
+ /** The key the app checks; `^[a-z][a-z0-9_.]{0,63}$`. */
319
+ key?: string;
320
+ /** `boolean` (on or off) or `limit` (a numeric allowance). */
321
+ kind?: FeatureKind;
322
+ /** Shown to people. */
323
+ displayName?: string;
324
+ }
325
+ /** The request of GenerateLicenceKey. */
326
+ export interface GenerateLicenceKeyRequest {
327
+ /** The environment the key belongs to. */
328
+ parent: string;
329
+ /**
330
+ * The key's id; `^[a-z]([a-z0-9_-]{0,61}[a-z0-9])?$`. Empty: Money assigns
331
+ * one.
332
+ */
333
+ licenceKeyId?: string;
334
+ /** Shown to operators. */
335
+ spec?: LicenceKeySpec;
336
+ }
337
+ /** The request of GetCatalog. */
338
+ export interface GetCatalogRequest {
339
+ /** The name of the catalog to get. */
340
+ name: string;
341
+ }
342
+ /** The request of GetCheckoutSession. */
343
+ export interface GetCheckoutSessionRequest {
344
+ /** The name of the checkout session to get. */
345
+ name: string;
346
+ }
347
+ /** The request of GetCustomerSubscription. */
348
+ export interface GetCustomerSubscriptionRequest {
349
+ /** The name of the customer subscription to get. */
350
+ name: string;
351
+ }
352
+ /** The request of GetEntitlementGrant. */
353
+ export interface GetEntitlementGrantRequest {
354
+ /** The name of the entitlement grant to get. */
355
+ name: string;
356
+ }
357
+ /** The request of GetLicenceKey. */
358
+ export interface GetLicenceKeyRequest {
359
+ /** The name of the licence key to get. */
360
+ name: string;
361
+ }
362
+ /** The request of GetMerchantAccount. */
363
+ export interface GetMerchantAccountRequest {
364
+ /** The name of the merchant account to get. */
365
+ name: string;
366
+ }
367
+ /** The request of GetPortalSession. */
368
+ export interface GetPortalSessionRequest {
369
+ /** The name of the portal session to get. */
370
+ name: string;
371
+ }
372
+ /** The request of GetStoreConnection. */
373
+ export interface GetStoreConnectionRequest {
374
+ /** The name of the store connection to get. */
375
+ name: string;
376
+ }
377
+ /** The request of GetStorePurchase. */
378
+ export interface GetStorePurchaseRequest {
379
+ /** The name of the store purchase to get. */
380
+ name: string;
381
+ }
382
+ /** GooglePlayConnection is a Play service account and the app's package names. */
383
+ export interface GooglePlayConnection {
384
+ /** The apps' package names. */
385
+ packageNames?: string[];
386
+ /**
387
+ * The service account's JSON key. Write-only: sealed on write, never
388
+ * returned; omit it on update to keep the stored key.
389
+ */
390
+ serviceAccountJson?: string;
391
+ /**
392
+ * The audience Play's Pub/Sub push token must carry for real-time developer
393
+ * notifications; unset refuses them.
394
+ */
395
+ notificationAudience?: string;
396
+ /** The service account Pub/Sub pushes as. */
397
+ notificationServiceAccount?: string;
398
+ }
399
+ /** The request of ImportLicenceKey. */
400
+ export interface ImportLicenceKeyRequest {
401
+ /** The environment the key belongs to. */
402
+ parent: string;
403
+ /** The key's id; as on GenerateLicenceKeyRequest. Required. */
404
+ licenceKeyId: string;
405
+ /**
406
+ * The Ed25519 private key as PKCS8 DER in standard base64. Write-only:
407
+ * sealed on import, never returned.
408
+ */
409
+ privateKeyPkcs8: string;
410
+ /**
411
+ * The public key shipped clients pin, raw base64url without padding. The
412
+ * import is refused unless it is the public half of the imported key.
413
+ */
414
+ expectedPublicKey: string;
415
+ /** Shown to operators. */
416
+ spec?: LicenceKeySpec;
417
+ }
418
+ /**
419
+ * A Licence Key is one Ed25519 signing key Money holds for an environment. The
420
+ * private half is generated here (or imported once, for a key already pinned in
421
+ * shipped clients), sealed with Money's seal keys, and never returned or
422
+ * logged. The public half is exported keyless at
423
+ * `GET /v1/money/licence_keys/{uid}`, in the raw base64url form a client pins.
424
+ */
425
+ export interface LicenceKey {
426
+ /** `orgs/{org}/projects/{project}/envs/{env}/licence_keys/{licence_key}`. */
427
+ name?: string;
428
+ /**
429
+ * `lkey_<cell><ulid>`; never reused. The keyless public export is addressed
430
+ * by it.
431
+ */
432
+ readonly uid?: string;
433
+ /** Resource metadata. */
434
+ meta?: common.ResourceMeta;
435
+ /** Desired state. */
436
+ spec?: LicenceKeySpec;
437
+ /** Observed state. */
438
+ readonly status?: LicenceKeyStatus;
439
+ }
440
+ /** LicenceKeySpec is the caller-writable state of a LicenceKey. */
441
+ export interface LicenceKeySpec {
442
+ /** Shown to operators. */
443
+ description?: string;
444
+ }
445
+ /** LicenceKeyStatus is the observed state of a LicenceKey. */
446
+ export interface LicenceKeyStatus {
447
+ /** The generation this status was computed from. */
448
+ readonly observedGeneration?: string;
449
+ /** Ready while the key exists. */
450
+ readonly conditions?: common.Condition[];
451
+ /**
452
+ * `active` signs new terms; `retired` signs only terms already frozen to it
453
+ * and stays exported for verification.
454
+ */
455
+ readonly state?: string;
456
+ /** `generated` or `imported`. */
457
+ readonly origin?: string;
458
+ /** The raw Ed25519 public key, base64url without padding. */
459
+ readonly publicKey?: string;
460
+ /** When the key was retired. */
461
+ readonly retireTime?: string;
462
+ }
463
+ /**
464
+ * A LicencePolicy is the product-owned rule for the offline licence a paid
465
+ * one-time purchase of the product carries. Written by the merchant with the
466
+ * catalog (`billing:write`); it names no key material, only the LicenceKey that
467
+ * signs. A licence is refused on a consumable product and on a product with a
468
+ * recurring price. There is no grace period.
469
+ */
470
+ export interface LicencePolicy {
471
+ /** The token scheme; `sylphx-offline-ed25519-v1`. */
472
+ scheme?: string;
473
+ /** The `plan` the token carries. */
474
+ plan?: string;
475
+ /** The `product` the token carries (what the client checks it against). */
476
+ tokenProduct?: string;
477
+ /** The id of the LicenceKey that signs new terms. */
478
+ key?: string;
479
+ /** How long one purchase lasts. */
480
+ term?: LicenceTerm;
481
+ }
482
+ /**
483
+ * A LicenceTerm is a length of time with explicit arithmetic: `days` add
484
+ * exact 86 400 000 ms multiples to the UTC instant; `calendar_months` and
485
+ * `calendar_years` add months to the UTC calendar date, keep the time of day,
486
+ * and clamp a day that does not exist in the target month to the month's last
487
+ * day (2028-02-29 plus one year is 2029-02-28).
488
+ */
489
+ export interface LicenceTerm {
490
+ /** The unit of `count`. */
491
+ unit?: LicenceTermUnit;
492
+ /** How many units; at least 1. */
493
+ count?: number;
494
+ }
495
+ /**
496
+ * A Licence Token is one issued offline licence, re-derived from its frozen
497
+ * term: the same bytes every time. Money derives it; nothing writes one.
498
+ */
499
+ export interface LicenceToken {
500
+ /** `orgs/{org}/projects/{project}/envs/{env}/licence_tokens/{licence_token}`. */
501
+ name?: string;
502
+ /** `ltok_<cell><ulid>`; never reused. */
503
+ readonly uid?: string;
504
+ /** Resource metadata. */
505
+ meta?: common.ResourceMeta;
506
+ /**
507
+ * The grant source the term was frozen for:
508
+ * `<checkout session name>/line_items/<n>`.
509
+ */
510
+ readonly source?: string;
511
+ /** The checkout line the token is for. */
512
+ readonly line?: number;
513
+ /** The token: `base64url(payload) "." base64url(signature)`. */
514
+ readonly token?: string;
515
+ /** The `product` the token carries. */
516
+ readonly tokenProduct?: string;
517
+ /** When the term was frozen. */
518
+ readonly issueTime?: string;
519
+ /** When the token expires. */
520
+ readonly expireTime?: string;
521
+ /** The seats the token carries. */
522
+ readonly seats?: number;
523
+ }
524
+ /** A Line Item is one catalog price and its quantity. */
525
+ export interface LineItem {
526
+ /** The price's lookup key. */
527
+ price?: string;
528
+ /** How many; default 1. Seats for a per-seat or family price. */
529
+ quantity?: number;
530
+ }
531
+ /** The request of ListCustomerSubscriptions. */
532
+ export interface ListCustomerSubscriptionsRequest {
533
+ /** The parent to list in. */
534
+ parent: string;
535
+ /** At most this many; default 50, clamped to 1000. */
536
+ pageSize?: number;
537
+ /** `next_page_token` of the previous page. */
538
+ pageToken?: string;
539
+ /** AIP-160 filter over filterable fields. */
540
+ filter?: string;
541
+ }
542
+ /** The response of ListCustomerSubscriptions. */
543
+ export interface ListCustomerSubscriptionsResponse {
544
+ /** The page. */
545
+ customerSubscriptions?: CustomerSubscription[];
546
+ /** The token of the next page; empty on the last page. */
547
+ nextPageToken?: string;
548
+ }
549
+ /** The request of ListEntitlementGrants. */
550
+ export interface ListEntitlementGrantsRequest {
551
+ /** The parent to list in. */
552
+ parent: string;
553
+ /** At most this many; default 50, clamped to 1000. */
554
+ pageSize?: number;
555
+ /** `next_page_token` of the previous page. */
556
+ pageToken?: string;
557
+ /** AIP-160 filter over filterable fields, for example `feature = "plus"`. */
558
+ filter?: string;
559
+ }
560
+ /** The response of ListEntitlementGrants. */
561
+ export interface ListEntitlementGrantsResponse {
562
+ /** The page. */
563
+ entitlementGrants?: EntitlementGrant[];
564
+ /** The token of the next page; empty on the last page. */
565
+ nextPageToken?: string;
566
+ }
567
+ /** The request of ListLicenceKeys. */
568
+ export interface ListLicenceKeysRequest {
569
+ /** The parent to list in. */
570
+ parent: string;
571
+ /** At most this many; default 50, clamped to 1000. */
572
+ pageSize?: number;
573
+ /** `next_page_token` of the previous page. */
574
+ pageToken?: string;
575
+ }
576
+ /** The response of ListLicenceKeys. */
577
+ export interface ListLicenceKeysResponse {
578
+ /** The page. */
579
+ licenceKeys?: LicenceKey[];
580
+ /** The token of the next page; empty on the last page. */
581
+ nextPageToken?: string;
582
+ }
583
+ /** The request of ListLicenceTokens. */
584
+ export interface ListLicenceTokensRequest {
585
+ /** The environment to list in. */
586
+ parent: string;
587
+ /** At most this many; default 50, clamped to 1000. */
588
+ pageSize?: number;
589
+ /** `next_page_token` of the previous page. */
590
+ pageToken?: string;
591
+ /**
592
+ * AIP-160 filter. It must name whose tokens (else `INVALID_FIELD`): `end_user = "…"` or
593
+ * `customer_organization = "…"`; `token_product = "…"` (joined with `AND`)
594
+ * keeps only that product, and no `token_product` lists every product.
595
+ */
596
+ filter?: string;
597
+ }
598
+ /** The response of ListLicenceTokens. */
599
+ export interface ListLicenceTokensResponse {
600
+ /** Every unexpired token of a paid order, newest first. */
601
+ licenceTokens?: LicenceToken[];
602
+ /** The token of the next page; empty on the last page. */
603
+ nextPageToken?: string;
604
+ }
605
+ /** The request of ListMerchantAccounts. */
606
+ export interface ListMerchantAccountsRequest {
607
+ /** The parent to list in. */
608
+ parent: string;
609
+ /** At most this many; default 50, clamped to 1000. */
610
+ pageSize?: number;
611
+ /** `next_page_token` of the previous page. */
612
+ pageToken?: string;
613
+ }
614
+ /** The response of ListMerchantAccounts. */
615
+ export interface ListMerchantAccountsResponse {
616
+ /** The page. */
617
+ merchantAccounts?: MerchantAccount[];
618
+ /** The token of the next page; empty on the last page. */
619
+ nextPageToken?: string;
620
+ }
621
+ /** The request of ListStoreConnections. */
622
+ export interface ListStoreConnectionsRequest {
623
+ /** The parent to list in. */
624
+ parent: string;
625
+ /** At most this many; default 50, clamped to 1000. */
626
+ pageSize?: number;
627
+ /** `next_page_token` of the previous page. */
628
+ pageToken?: string;
629
+ /** AIP-160 filter over filterable fields. */
630
+ filter?: string;
631
+ }
632
+ /** The response of ListStoreConnections. */
633
+ export interface ListStoreConnectionsResponse {
634
+ /** The page. */
635
+ storeConnections?: StoreConnection[];
636
+ /** The token of the next page; empty on the last page. */
637
+ nextPageToken?: string;
638
+ }
639
+ /** The request of ListStorePurchases. */
640
+ export interface ListStorePurchasesRequest {
641
+ /** The parent to list in. */
642
+ parent: string;
643
+ /** At most this many; default 50, clamped to 1000. */
644
+ pageSize?: number;
645
+ /** `next_page_token` of the previous page. */
646
+ pageToken?: string;
647
+ /** AIP-160 filter over filterable fields, for example `transaction_id = "…"`. */
648
+ filter?: string;
649
+ }
650
+ /** The response of ListStorePurchases. */
651
+ export interface ListStorePurchasesResponse {
652
+ /** The page. */
653
+ storePurchases?: StorePurchase[];
654
+ /** The token of the next page; empty on the last page. */
655
+ nextPageToken?: string;
656
+ }
657
+ /**
658
+ * A Merchant Account is the seller an environment charges as on the web: the
659
+ * customer's own Stripe account, connected through Stripe Connect OAuth, or
660
+ * with a restricted key when OAuth cannot be used (the platform's own
661
+ * products). Sylphx stores the account id, and for a key connection the key
662
+ * sealed, never in the clear and never returned. `:connect` starts the
663
+ * connection; the processor's redirect completes an OAuth one.
664
+ */
665
+ export interface MerchantAccount {
666
+ /**
667
+ * `orgs/{org}/projects/{project}/envs/{env}/merchant_accounts/{merchant_account}`;
668
+ * the environment's seller is `default`.
669
+ */
670
+ name?: string;
671
+ /** `mac_<cell><ulid>`; never reused. */
672
+ readonly uid?: string;
673
+ /** Resource metadata. */
674
+ meta?: common.ResourceMeta;
675
+ /** The processor: `stripe`. */
676
+ readonly processor?: string;
677
+ /** The connected account id, for example `acct_1Nv…`. */
678
+ readonly accountId?: string;
679
+ /** Whether the connection is in live mode (false is test mode). */
680
+ readonly livemode?: boolean;
681
+ /** `connected` or `disconnected`. */
682
+ readonly state?: string;
683
+ /** Whether the account can take payments now. */
684
+ readonly chargesEnabled?: boolean;
685
+ /** Whether the account can be paid out. */
686
+ readonly payoutsEnabled?: boolean;
687
+ /** The business name the processor holds for the account. */
688
+ readonly businessName?: string;
689
+ /** ISO 3166-1 alpha-2 country of the account. */
690
+ readonly regionCode?: string;
691
+ /** ISO 4217 default currency of the account, upper case. */
692
+ readonly defaultCurrencyCode?: string;
693
+ /** When the processor last confirmed these fields. */
694
+ readonly refreshTime?: string;
695
+ /**
696
+ * How the account is called at the processor: `connect` (the platform's
697
+ * key acts for a connected account) or `restricted_key` (the account's own
698
+ * key, held sealed).
699
+ */
700
+ readonly credential?: string;
701
+ }
702
+ /**
703
+ * A Portal Session is a hosted page where a subject manages its
704
+ * subscriptions, payment method, and invoices.
705
+ */
706
+ export interface PortalSession {
707
+ /** `orgs/{org}/projects/{project}/envs/{env}/portal_sessions/{portal_session}`. */
708
+ name?: string;
709
+ /** `pts_<cell><ulid>`; never reused. */
710
+ readonly uid?: string;
711
+ /** Resource metadata. */
712
+ meta?: common.ResourceMeta;
713
+ /** Whose portal. */
714
+ subject?: Subject;
715
+ /** Where the portal's back link goes. HTTPS only. */
716
+ returnUrl?: string;
717
+ /** The hosted page; valid for a few minutes. */
718
+ readonly url?: string;
719
+ }
720
+ /** A Price is one way to pay for a product, named by its lookup key. */
721
+ export interface Price {
722
+ /**
723
+ * The lookup key the app uses; `^[a-z][a-z0-9_]{0,63}$`, unique in the
724
+ * catalog.
725
+ */
726
+ key?: string;
727
+ /** Unset for a one-time price; `day`, `week`, `month`, or `year`. */
728
+ recurringInterval?: string;
729
+ /** Intervals per period; default 1. */
730
+ recurringIntervalCount?: number;
731
+ /**
732
+ * Unit amount per ISO 4217 currency code in upper case, as a decimal string
733
+ * of minor units, for example `{"USD": "499", "GBP": "399"}`. The processor's
734
+ * base currency is `default_currency` when set, else the first currency in
735
+ * code order.
736
+ */
737
+ unitAmounts?: Record<string, string>;
738
+ /** `inclusive` (the amount includes tax) or `exclusive`. */
739
+ taxBehavior?: string;
740
+ /** Free trial days for a recurring price. */
741
+ trialDays?: number;
742
+ /** Whether checkout may sell this price. */
743
+ archived?: boolean;
744
+ /**
745
+ * The processor's base currency: an upper-case ISO 4217 code that is a key of
746
+ * `unit_amounts`. Unset uses the first currency in code order. Changing it
747
+ * creates a new processor price under the same lookup key, because the base
748
+ * currency is immutable there.
749
+ */
750
+ defaultCurrency?: string;
751
+ }
752
+ /** A Product is one thing sold, with its prices and the features it grants. */
753
+ export interface Product {
754
+ /** The product key; `^[a-z][a-z0-9_]{0,63}$`. */
755
+ key?: string;
756
+ /** Shown on checkout and invoices. */
757
+ displayName?: string;
758
+ /** Shown on checkout. */
759
+ description?: string;
760
+ /**
761
+ * Feature grants: a feature key and, for a `limit` feature, the allowance as
762
+ * a decimal string; `true` for a boolean feature.
763
+ */
764
+ features?: Record<string, string>;
765
+ /** The product's prices. */
766
+ prices?: Price[];
767
+ /**
768
+ * Store product ids that sell this product, by store (`app_store`,
769
+ * `google_play`).
770
+ */
771
+ storeProductIds?: Record<string, string>;
772
+ /**
773
+ * Whether one purchase is used up (a pack of game currency) rather than
774
+ * kept (an unlock or a subscription).
775
+ */
776
+ consumable?: boolean;
777
+ /**
778
+ * What one unit grants in the app's own assets, by asset code, as decimal
779
+ * strings, for example `{"GEMS": "650"}`. Carried in the signed grant so the
780
+ * app's server credits exactly this.
781
+ */
782
+ grants?: Record<string, string>;
783
+ /**
784
+ * The offline licence a paid one-time purchase carries; refused on a
785
+ * consumable product and on a product with a recurring price.
786
+ */
787
+ licence?: LicencePolicy;
788
+ }
789
+ /** The request of RefreshMerchantAccount. */
790
+ export interface RefreshMerchantAccountRequest {
791
+ /** The merchant account to read back. */
792
+ name: string;
793
+ }
794
+ /** The request of ResumeCustomerSubscription. */
795
+ export interface ResumeCustomerSubscriptionRequest {
796
+ /** The subscription to resume. */
797
+ name: string;
798
+ }
799
+ /** The request of RetireLicenceKey. */
800
+ export interface RetireLicenceKeyRequest {
801
+ /** The key to retire. */
802
+ name: string;
803
+ }
804
+ /**
805
+ * A Store Connection is the environment's access to one app store: its App
806
+ * Store Server API key or Google Play service account, sealed by Money and
807
+ * never returned, and the apps (bundle ids or package names) it covers.
808
+ */
809
+ export interface StoreConnection {
810
+ /**
811
+ * `orgs/{org}/projects/{project}/envs/{env}/store_connections/{store_connection}`;
812
+ * by convention `app-store` or `google-play`.
813
+ */
814
+ name?: string;
815
+ /**
816
+ * `stc_<cell><ulid>`; never reused. Store notifications for this
817
+ * connection are sent to a URL that carries it.
818
+ */
819
+ readonly uid?: string;
820
+ /** Resource metadata. */
821
+ meta?: common.ResourceMeta;
822
+ /** Desired state. */
823
+ spec?: StoreConnectionSpec;
824
+ /** Observed state. */
825
+ readonly status?: StoreConnectionStatus;
826
+ }
827
+ /** StoreConnectionSpec is the caller-writable state of a StoreConnection. */
828
+ export interface StoreConnectionSpec {
829
+ /** The App Store. */
830
+ appStore?: AppStoreConnection;
831
+ /** Google Play. */
832
+ googlePlay?: GooglePlayConnection;
833
+ /**
834
+ * Accept purchases the store marks as sandbox or license-test. Off in
835
+ * production: a sandbox purchase is then refused.
836
+ */
837
+ allowSandbox?: boolean;
838
+ /**
839
+ * Refuse a purchase that does not carry the subject's account token (App
840
+ * Store `appAccountToken`, Play `obfuscatedAccountId`).
841
+ */
842
+ requireAccountToken?: boolean;
843
+ }
844
+ /** StoreConnectionStatus is the observed state of a StoreConnection. */
845
+ export interface StoreConnectionStatus {
846
+ /** The generation this status was computed from. */
847
+ readonly observedGeneration?: string;
848
+ /** Ready when a credential is stored. */
849
+ readonly conditions?: common.Condition[];
850
+ /** Whether a credential is stored. */
851
+ readonly credentialSet?: boolean;
852
+ /** Where the store sends its notifications for this connection. */
853
+ readonly notificationUrl?: string;
854
+ /** The service account's email, read from the stored key (Play only). */
855
+ readonly serviceAccountEmail?: string;
856
+ }
857
+ /**
858
+ * A Store Purchase is one store transaction Money verified with the store and
859
+ * bound to one subject. Re-verifying it returns the same record and grant.
860
+ */
861
+ export interface StorePurchase {
862
+ /** `orgs/{org}/projects/{project}/envs/{env}/store_purchases/{store_purchase}`. */
863
+ name?: string;
864
+ /** `spu_<cell><ulid>`; never reused. */
865
+ readonly uid?: string;
866
+ /** Resource metadata. */
867
+ meta?: common.ResourceMeta;
868
+ /** Who it belongs to. */
869
+ readonly subject?: Subject;
870
+ /** `app_store` or `google_play`. */
871
+ readonly store?: string;
872
+ /** The store product id. */
873
+ readonly productId?: string;
874
+ /** The catalog product it sells, when the catalog maps the store product. */
875
+ readonly product?: string;
876
+ /** The bundle id or package name. */
877
+ readonly bundleOrPackage?: string;
878
+ /** The store's transaction id (App Store transaction id, Play order id). */
879
+ readonly transactionId?: string;
880
+ /** The first transaction of a subscription or restored purchase. */
881
+ readonly originalTransactionId?: string;
882
+ /** Units bought. */
883
+ readonly quantity?: number;
884
+ /** `production` or `sandbox`. */
885
+ readonly environment?: string;
886
+ /** `purchased`, `pending`, or `revoked`. */
887
+ readonly state?: string;
888
+ /** When the store says it was bought. */
889
+ readonly purchaseTime?: string;
890
+ /** When the store refunded or revoked it. */
891
+ readonly revokeTime?: string;
892
+ /**
893
+ * The price the store charged, in minor units of `currency`, when the store
894
+ * reports it.
895
+ */
896
+ readonly price?: string;
897
+ /** ISO 4217 currency of `price`. */
898
+ readonly currencyCode?: string;
899
+ /** The subscription it belongs to, for a subscription purchase. */
900
+ readonly customerSubscription?: string;
901
+ /**
902
+ * Revoked after it was delivered, and its goods come back: its
903
+ * entitlements ended, and the app takes back the assets its grant credited,
904
+ * up to what the subject still holds. False while it stands, and for a
905
+ * refund the catalog's `refund_claw_back` lets the subject keep.
906
+ */
907
+ readonly clawBack?: boolean;
908
+ }
909
+ /**
910
+ * A Subject is who pays and holds entitlements: exactly one of an end user
911
+ * or a customer organization of the app.
912
+ */
913
+ export interface Subject {
914
+ /** An end user's id (Sylphx Auth, or the app's own OIDC issuer). */
915
+ endUser?: string;
916
+ /** A customer organization's id. */
917
+ customerOrganization?: string;
918
+ }
919
+ /** The request of SyncCatalog. */
920
+ export interface SyncCatalogRequest {
921
+ /** The catalog to push. */
922
+ name: string;
923
+ }
924
+ /** The request of UpdateCatalog. */
925
+ export interface UpdateCatalogRequest {
926
+ /** The catalog to write; `name` identifies it. */
927
+ catalog: Catalog;
928
+ /** The fields to write; unset writes every populated field. */
929
+ updateMask?: string;
930
+ /** Create the catalog when it does not exist (declarative upsert). */
931
+ allowMissing?: boolean;
932
+ /** Validate and return the result without writing anything. */
933
+ validateOnly?: boolean;
934
+ }
935
+ /** The request of UpdateCustomerSubscriptionQuantity. */
936
+ export interface UpdateCustomerSubscriptionQuantityRequest {
937
+ /** The subscription to change. */
938
+ name: string;
939
+ /**
940
+ * The new quantity (seats) of the subscription's one item; at least 1.
941
+ * To end the subscription, cancel it.
942
+ */
943
+ quantity: string;
944
+ /** How the change is billed; unspecified is `create_prorations`. */
945
+ prorationBehavior?: ProrationBehavior;
946
+ }
947
+ /** The request of UpdateStoreConnection. */
948
+ export interface UpdateStoreConnectionRequest {
949
+ /** The store connection to update; `name` identifies it. */
950
+ storeConnection: StoreConnection;
951
+ /** The fields to write; unset writes every populated field. */
952
+ updateMask?: string;
953
+ /** Create the store connection when it does not exist (declarative upsert). */
954
+ allowMissing?: boolean;
955
+ /** Validate and return the result without writing anything. */
956
+ validateOnly?: boolean;
957
+ }
958
+ /** The request of VerifyStorePurchase. */
959
+ export interface VerifyStorePurchaseRequest {
960
+ /** The environment the purchase is verified in. */
961
+ parent: string;
962
+ /** Who bought it. */
963
+ subject: Subject;
964
+ /** `app_store` or `google_play`. */
965
+ store: string;
966
+ /** App Store: the StoreKit 2 signed transaction (`jwsRepresentation`). */
967
+ signedTransaction?: string;
968
+ /** Google Play: the purchase token. */
969
+ purchaseToken?: string;
970
+ /** Google Play: the store product id (for a subscription, its id). */
971
+ productId?: string;
972
+ /** Google Play: the package name, when the connection covers several. */
973
+ packageName?: string;
974
+ /**
975
+ * App Store, instead of `signed_transaction`: the transaction id, for apps
976
+ * on original StoreKit whose receipts carry no signed transaction. Money
977
+ * reads the transaction from Apple with the connection's key; Apple's
978
+ * signed answer is the proof.
979
+ */
980
+ transactionId?: string;
981
+ /** App Store, with `transaction_id`: the app's bundle id. */
982
+ bundleId?: string;
983
+ }
984
+ /** The response of VerifyStorePurchase. */
985
+ export interface VerifyStorePurchaseResponse {
986
+ /** The verified purchase. */
987
+ storePurchase?: StorePurchase;
988
+ /**
989
+ * A compact EdDSA JWS (`typ` `money-grant+jwt`) the app's server or client
990
+ * verifies offline against Money's published keys; it names the subject,
991
+ * the store product, the transaction, the quantity, and the catalog grants.
992
+ */
993
+ grantToken?: string;
994
+ /**
995
+ * Whether this transaction was verified before; the record and grant are
996
+ * the same.
997
+ */
998
+ alreadyVerified?: boolean;
999
+ /** The subscription, for a subscription purchase. */
1000
+ customerSubscription?: CustomerSubscription;
1001
+ }
1002
+ /** FeatureKind is how a feature is granted. */
1003
+ export type FeatureKind = 'boolean' | 'limit' | (string & {});
1004
+ /** LicenceTermUnit is the unit of a licence term. */
1005
+ export type LicenceTermUnit = 'calendar_years' | 'calendar_months' | 'days' | (string & {});
1006
+ /**
1007
+ * ProrationBehavior is how a subscription change is billed for the rest of
1008
+ * the current period.
1009
+ */
1010
+ export type ProrationBehavior = 'create_prorations' | 'none' | 'always_invoice' | (string & {});
1011
+ /**
1012
+ * MoneyService is Sylphx Money's customer payments: an app sells to its own
1013
+ * users through the stores and processors Money integrates once, and asks one
1014
+ * question on its request path, "does this subject have this feature"
1015
+ * (docs/services/money/customer-payments.md).
1016
+ *
1017
+ * Namespace of Sylphx Money on `Sylphx`.
1018
+ */
1019
+ export declare class MoneyApi {
1020
+ /** The `price_catalogs` collection. */
1021
+ readonly priceCatalogs: PriceCatalogsCollection;
1022
+ /** The `store_connections` collection. */
1023
+ readonly storeConnections: StoreConnectionsCollection;
1024
+ /** The `store_purchases` collection. */
1025
+ readonly storePurchases: StorePurchasesCollection;
1026
+ /** The `customer_subscriptions` collection. */
1027
+ readonly customerSubscriptions: CustomerSubscriptionsCollection;
1028
+ /** The `entitlement_grants` collection. */
1029
+ readonly entitlementGrants: EntitlementGrantsCollection;
1030
+ /** The `merchant_accounts` collection. */
1031
+ readonly merchantAccounts: MerchantAccountsCollection;
1032
+ /** The `checkout_sessions` collection. */
1033
+ readonly checkoutSessions: CheckoutSessionsCollection;
1034
+ /** The `portal_sessions` collection. */
1035
+ readonly portalSessions: PortalSessionsCollection;
1036
+ /** The `licence_keys` collection. */
1037
+ readonly licenceKeys: LicenceKeysCollection;
1038
+ /** The `licence_tokens` collection. */
1039
+ readonly licenceTokens: LicenceTokensCollection;
1040
+ constructor(client: runtime.Client);
1041
+ }
1042
+ /** `price_catalogs` of Sylphx Money: Resource type `money.sylphx.com/PriceCatalog`. */
1043
+ export declare class PriceCatalogsCollection {
1044
+ private readonly client;
1045
+ constructor(client: runtime.Client);
1046
+ /**
1047
+ * Gets the environment's catalog.
1048
+ *
1049
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/price_catalogs/*}` · permission `billing:read` · effect `read`
1050
+ *
1051
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1052
+ */
1053
+ get(request: GetCatalogRequest): Promise<Catalog>;
1054
+ /**
1055
+ * Updates the environment's catalog: its features and products, whole.
1056
+ *
1057
+ * `PATCH /v1/{catalog.name=orgs/*\/projects/*\/envs/*\/price_catalogs/*}` · permission `billing:write` · effect `write`
1058
+ *
1059
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1060
+ */
1061
+ update(request: UpdateCatalogRequest): Promise<Catalog>;
1062
+ /**
1063
+ * Pushes the catalog to the merchant account's processor now: products and
1064
+ * prices by lookup key; an amount change makes a new price.
1065
+ *
1066
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/price_catalogs/*}:sync` · permission `billing:write` · effect `write`
1067
+ *
1068
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`, `UNAVAILABLE`.
1069
+ */
1070
+ sync(request: SyncCatalogRequest): Promise<Catalog>;
1071
+ }
1072
+ /** `store_connections` of Sylphx Money: Resource type `money.sylphx.com/StoreConnection`. */
1073
+ export declare class StoreConnectionsCollection {
1074
+ private readonly client;
1075
+ constructor(client: runtime.Client);
1076
+ /**
1077
+ * Gets a store connection.
1078
+ *
1079
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/store_connections/*}` · permission `billing:read` · effect `read`
1080
+ *
1081
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1082
+ */
1083
+ get(request: GetStoreConnectionRequest): Promise<StoreConnection>;
1084
+ /**
1085
+ * Lists store connections.
1086
+ *
1087
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/store_connections` · permission `billing:read` · effect `read`
1088
+ *
1089
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1090
+ */
1091
+ list(request: ListStoreConnectionsRequest): Promise<ListStoreConnectionsResponse>;
1092
+ /** Every item of every page of `list`. */
1093
+ listAll(request: ListStoreConnectionsRequest): AsyncGenerator<StoreConnection>;
1094
+ /**
1095
+ * Creates a store connection; its credential is sealed and never returned.
1096
+ *
1097
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/store_connections` · permission `billing:write` · effect `write`
1098
+ *
1099
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1100
+ */
1101
+ create(request: CreateStoreConnectionRequest): Promise<StoreConnection>;
1102
+ /**
1103
+ * Updates a store connection; a new credential replaces the stored one.
1104
+ *
1105
+ * `PATCH /v1/{store_connection.name=orgs/*\/projects/*\/envs/*\/store_connections/*}` · permission `billing:write` · effect `write`
1106
+ *
1107
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1108
+ */
1109
+ update(request: UpdateStoreConnectionRequest): Promise<StoreConnection>;
1110
+ /**
1111
+ * Deletes a store connection and its sealed credential.
1112
+ *
1113
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/store_connections/*}` · permission `billing:write` · effect `destructive`
1114
+ *
1115
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1116
+ */
1117
+ delete(request: DeleteStoreConnectionRequest): Promise<Record<string, never>>;
1118
+ }
1119
+ /** `store_purchases` of Sylphx Money: Resource type `money.sylphx.com/StorePurchase`. */
1120
+ export declare class StorePurchasesCollection {
1121
+ private readonly client;
1122
+ constructor(client: runtime.Client);
1123
+ /**
1124
+ * Verifies a store purchase with the store, binds it to the subject, and
1125
+ * returns its record and a signed grant. Re-verifying returns the same
1126
+ * record and grant. Called from the app's server with a secret key that
1127
+ * holds `billing:write`; a publishable key cannot call it.
1128
+ *
1129
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/store_purchases:verify` · permission `billing:write` · effect `write`
1130
+ *
1131
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_IN_USE`, `UNAVAILABLE`.
1132
+ */
1133
+ verify(request: VerifyStorePurchaseRequest): Promise<VerifyStorePurchaseResponse>;
1134
+ /**
1135
+ * Gets a store purchase.
1136
+ *
1137
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/store_purchases/*}` · permission `billing:read` · effect `read`
1138
+ *
1139
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1140
+ */
1141
+ get(request: GetStorePurchaseRequest): Promise<StorePurchase>;
1142
+ /**
1143
+ * Lists store purchases, newest first.
1144
+ *
1145
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/store_purchases` · permission `billing:read` · effect `read`
1146
+ *
1147
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1148
+ */
1149
+ list(request: ListStorePurchasesRequest): Promise<ListStorePurchasesResponse>;
1150
+ /** Every item of every page of `list`. */
1151
+ listAll(request: ListStorePurchasesRequest): AsyncGenerator<StorePurchase>;
1152
+ }
1153
+ /** `customer_subscriptions` of Sylphx Money: Resource type `money.sylphx.com/CustomerSubscription`. */
1154
+ export declare class CustomerSubscriptionsCollection {
1155
+ private readonly client;
1156
+ constructor(client: runtime.Client);
1157
+ /**
1158
+ * Gets a customer subscription.
1159
+ *
1160
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_subscriptions/*}` · permission `billing:read` · effect `read`
1161
+ *
1162
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1163
+ */
1164
+ get(request: GetCustomerSubscriptionRequest): Promise<CustomerSubscription>;
1165
+ /**
1166
+ * Lists customer subscriptions, newest first.
1167
+ *
1168
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/customer_subscriptions` · permission `billing:read` · effect `read`
1169
+ *
1170
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1171
+ */
1172
+ list(request: ListCustomerSubscriptionsRequest): Promise<ListCustomerSubscriptionsResponse>;
1173
+ /** Every item of every page of `list`. */
1174
+ listAll(request: ListCustomerSubscriptionsRequest): AsyncGenerator<CustomerSubscription>;
1175
+ /**
1176
+ * Cancels a web subscription, now or at the period end, and optionally
1177
+ * refunds its last payment (for example a statutory cancellation window).
1178
+ *
1179
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_subscriptions/*}:cancel` · permission `billing:write` · effect `destructive`
1180
+ *
1181
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`, `UNAVAILABLE`.
1182
+ */
1183
+ cancel(request: CancelCustomerSubscriptionRequest): Promise<CustomerSubscription>;
1184
+ /**
1185
+ * Resumes a web subscription set to cancel at its period end.
1186
+ *
1187
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_subscriptions/*}:resume` · permission `billing:write` · effect `write`
1188
+ *
1189
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`, `UNAVAILABLE`.
1190
+ */
1191
+ resume(request: ResumeCustomerSubscriptionRequest): Promise<CustomerSubscription>;
1192
+ /**
1193
+ * Changes the seat quantity of a web subscription, now, and syncs the
1194
+ * processor's subscription item to it. A retry with the same
1195
+ * `Idempotency-Key` (required) and the same request changes nothing twice.
1196
+ *
1197
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_subscriptions/*}:updateQuantity` · permission `billing:write` · effect `write`
1198
+ *
1199
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
1200
+ */
1201
+ updateQuantity(request: UpdateCustomerSubscriptionQuantityRequest): Promise<CustomerSubscription>;
1202
+ /**
1203
+ * Move a web subscription onto another recurring catalog plan.
1204
+ *
1205
+ * Stripe changes the subscription's one item and bills the difference as
1206
+ * `proration_behavior` says; Money reads the subscription back and replaces
1207
+ * its entitlements from it. Needs an `Idempotency-Key` unless `validate_only`.
1208
+ * A store subscription is refused (`store_managed`): the store owns it.
1209
+ *
1210
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_subscriptions/*}:changePlan` · permission `billing:write` · effect `write`
1211
+ *
1212
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
1213
+ */
1214
+ changePlan(request: ChangeCustomerSubscriptionPlanRequest): Promise<CustomerSubscription>;
1215
+ }
1216
+ /** `entitlement_grants` of Sylphx Money: Resource type `money.sylphx.com/EntitlementGrant`. */
1217
+ export declare class EntitlementGrantsCollection {
1218
+ private readonly client;
1219
+ constructor(client: runtime.Client);
1220
+ /**
1221
+ * Gets an entitlement grant.
1222
+ *
1223
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/entitlement_grants/*}` · permission `billing:read` · effect `read`
1224
+ *
1225
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1226
+ */
1227
+ get(request: GetEntitlementGrantRequest): Promise<EntitlementGrant>;
1228
+ /**
1229
+ * Lists entitlement grants.
1230
+ *
1231
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/entitlement_grants` · permission `billing:read` · effect `read`
1232
+ *
1233
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1234
+ */
1235
+ list(request: ListEntitlementGrantsRequest): Promise<ListEntitlementGrantsResponse>;
1236
+ /** Every item of every page of `list`. */
1237
+ listAll(request: ListEntitlementGrantsRequest): AsyncGenerator<EntitlementGrant>;
1238
+ /**
1239
+ * Answers whether a subject holds a feature now, and how much of it.
1240
+ *
1241
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/entitlement_grants:check` · permission `billing:read` · effect `read`
1242
+ *
1243
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`.
1244
+ */
1245
+ check(request: CheckEntitlementRequest): Promise<CheckEntitlementResponse>;
1246
+ }
1247
+ /** `merchant_accounts` of Sylphx Money: Resource type `money.sylphx.com/MerchantAccount`. */
1248
+ export declare class MerchantAccountsCollection {
1249
+ private readonly client;
1250
+ constructor(client: runtime.Client);
1251
+ /**
1252
+ * Gets a merchant account.
1253
+ *
1254
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}` · permission `billing:read` · effect `read`
1255
+ *
1256
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1257
+ */
1258
+ get(request: GetMerchantAccountRequest): Promise<MerchantAccount>;
1259
+ /**
1260
+ * Lists merchant accounts.
1261
+ *
1262
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts` · permission `billing:read` · effect `read`
1263
+ *
1264
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1265
+ */
1266
+ list(request: ListMerchantAccountsRequest): Promise<ListMerchantAccountsResponse>;
1267
+ /** Every item of every page of `list`. */
1268
+ listAll(request: ListMerchantAccountsRequest): AsyncGenerator<MerchantAccount>;
1269
+ /**
1270
+ * Starts connecting a Stripe account: returns the processor's authorisation
1271
+ * URL for an org owner to open, which the processor's redirect completes.
1272
+ * With a restricted key in the request the account connects at once
1273
+ * instead, and the connected merchant account comes back in the response.
1274
+ *
1275
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/merchant_accounts:connect` · permission `billing:write` · effect `write`
1276
+ *
1277
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `UNAVAILABLE`.
1278
+ */
1279
+ connect(request: ConnectMerchantAccountRequest): Promise<ConnectMerchantAccountResponse>;
1280
+ /**
1281
+ * Reads the connected account back from the processor.
1282
+ *
1283
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:refresh` · permission `billing:write` · effect `write`
1284
+ *
1285
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
1286
+ */
1287
+ refresh(request: RefreshMerchantAccountRequest): Promise<MerchantAccount>;
1288
+ /**
1289
+ * Disconnects the account: Sylphx loses access; checkout is refused.
1290
+ *
1291
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/merchant_accounts/*}:disconnect` · permission `billing:write` · effect `destructive`
1292
+ *
1293
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
1294
+ */
1295
+ disconnect(request: DisconnectMerchantAccountRequest): Promise<MerchantAccount>;
1296
+ }
1297
+ /** `checkout_sessions` of Sylphx Money: Resource type `money.sylphx.com/CheckoutSession`. */
1298
+ export declare class CheckoutSessionsCollection {
1299
+ private readonly client;
1300
+ constructor(client: runtime.Client);
1301
+ /**
1302
+ * Creates a hosted checkout for a subject.
1303
+ *
1304
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/checkout_sessions` · permission `billing:write` · effect `write`
1305
+ *
1306
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `INVALID_STATE`, `UNAVAILABLE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1307
+ */
1308
+ create(request: CreateCheckoutSessionRequest): Promise<CheckoutSession>;
1309
+ /**
1310
+ * Gets a checkout session.
1311
+ *
1312
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/checkout_sessions/*}` · permission `billing:read` · effect `read`
1313
+ *
1314
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1315
+ */
1316
+ get(request: GetCheckoutSessionRequest): Promise<CheckoutSession>;
1317
+ }
1318
+ /** `portal_sessions` of Sylphx Money: Resource type `money.sylphx.com/PortalSession`. */
1319
+ export declare class PortalSessionsCollection {
1320
+ private readonly client;
1321
+ constructor(client: runtime.Client);
1322
+ /**
1323
+ * Creates a customer portal session for a subject.
1324
+ *
1325
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/portal_sessions` · permission `billing:write` · effect `write`
1326
+ *
1327
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `INVALID_STATE`, `UNAVAILABLE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1328
+ */
1329
+ create(request: CreatePortalSessionRequest): Promise<PortalSession>;
1330
+ /**
1331
+ * Gets a portal session.
1332
+ *
1333
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/portal_sessions/*}` · permission `billing:read` · effect `read`
1334
+ *
1335
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1336
+ */
1337
+ get(request: GetPortalSessionRequest): Promise<PortalSession>;
1338
+ }
1339
+ /** `licence_keys` of Sylphx Money: Resource type `money.sylphx.com/LicenceKey`. */
1340
+ export declare class LicenceKeysCollection {
1341
+ private readonly client;
1342
+ constructor(client: runtime.Client);
1343
+ /**
1344
+ * Generates a licence key: Money creates the Ed25519 key, seals it, and never
1345
+ * returns the private half. Needs the approval-class scope, which the developer
1346
+ * role does not hold.
1347
+ *
1348
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/licence_keys:generate` · permission `billing:licence_keys.approve` · effect `write`
1349
+ *
1350
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `UNKNOWN_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1351
+ */
1352
+ generate(request: GenerateLicenceKeyRequest): Promise<LicenceKey>;
1353
+ /**
1354
+ * Imports an existing Ed25519 key (PKCS8), for a key already pinned in shipped
1355
+ * clients. Refused unless the expected public key is the imported key's public
1356
+ * half.
1357
+ *
1358
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/licence_keys:import` · permission `billing:licence_keys.approve` · effect `write`
1359
+ *
1360
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `UNKNOWN_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1361
+ */
1362
+ import(request: ImportLicenceKeyRequest): Promise<LicenceKey>;
1363
+ /**
1364
+ * Retires a licence key: it stops signing new terms and stays exported for
1365
+ * verification.
1366
+ *
1367
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/licence_keys/*}:retire` · permission `billing:licence_keys.approve` · effect `write`
1368
+ *
1369
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1370
+ */
1371
+ retire(request: RetireLicenceKeyRequest): Promise<LicenceKey>;
1372
+ /**
1373
+ * Gets a licence key (its public half, never the private).
1374
+ *
1375
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/licence_keys/*}` · permission `billing:read` · effect `read`
1376
+ *
1377
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1378
+ */
1379
+ get(request: GetLicenceKeyRequest): Promise<LicenceKey>;
1380
+ /**
1381
+ * Lists licence keys, newest first.
1382
+ *
1383
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/licence_keys` · permission `billing:read` · effect `read`
1384
+ *
1385
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `PAGE_TOKEN_MISMATCH`.
1386
+ */
1387
+ list(request: ListLicenceKeysRequest): Promise<ListLicenceKeysResponse>;
1388
+ /** Every item of every page of `list`. */
1389
+ listAll(request: ListLicenceKeysRequest): AsyncGenerator<LicenceKey>;
1390
+ }
1391
+ /** `licence_tokens` of Sylphx Money: Resource type `money.sylphx.com/LicenceToken`. */
1392
+ export declare class LicenceTokensCollection {
1393
+ private readonly client;
1394
+ constructor(client: runtime.Client);
1395
+ /**
1396
+ * Lists a subject's unexpired offline licence tokens of paid orders, for
1397
+ * support. Re-derived from the frozen terms: the same bytes as at purchase.
1398
+ *
1399
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/licence_tokens` · permission `billing:read` · effect `read`
1400
+ *
1401
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1402
+ */
1403
+ list(request: ListLicenceTokensRequest): Promise<ListLicenceTokensResponse>;
1404
+ /** Every item of every page of `list`. */
1405
+ listAll(request: ListLicenceTokensRequest): AsyncGenerator<LicenceToken>;
1406
+ }