@sylphx/sdk 0.31.0 → 0.32.1

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 (120) hide show
  1. package/README.md +131 -4
  2. package/dist/access.d.ts +146 -17
  3. package/dist/access.js +114 -8
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +1564 -0
  6. package/dist/agents.js +1096 -0
  7. package/dist/agents.js.map +1 -0
  8. package/dist/ai.d.ts +1 -2
  9. package/dist/ai.js +2 -3
  10. package/dist/ai.js.map +1 -1
  11. package/dist/artifacts.d.ts +1 -1
  12. package/dist/artifacts.js +2 -2
  13. package/dist/assets.d.ts +447 -0
  14. package/dist/assets.js +266 -0
  15. package/dist/assets.js.map +1 -0
  16. package/dist/auth/client.d.ts +239 -0
  17. package/dist/auth/client.js +337 -0
  18. package/dist/auth/client.js.map +1 -0
  19. package/dist/auth/end-user-keys-mock.d.ts +83 -0
  20. package/dist/auth/end-user-keys-mock.js +427 -0
  21. package/dist/auth/end-user-keys-mock.js.map +1 -0
  22. package/dist/auth/end-user-keys.d.ts +219 -0
  23. package/dist/auth/end-user-keys.js +240 -0
  24. package/dist/auth/end-user-keys.js.map +1 -0
  25. package/dist/auth/verify.d.ts +38 -3
  26. package/dist/auth/verify.js +58 -8
  27. package/dist/auth/verify.js.map +1 -1
  28. package/dist/auth.d.ts +656 -9
  29. package/dist/auth.js +563 -6
  30. package/dist/auth.js.map +1 -1
  31. package/dist/billing.d.ts +99 -21
  32. package/dist/billing.js +43 -5
  33. package/dist/billing.js.map +1 -1
  34. package/dist/broker.d.ts +5 -4
  35. package/dist/broker.js +3 -3
  36. package/dist/broker.js.map +1 -1
  37. package/dist/build.d.ts +362 -29
  38. package/dist/build.js +302 -10
  39. package/dist/build.js.map +1 -1
  40. package/dist/common.d.ts +1 -1
  41. package/dist/common.js +1 -1
  42. package/dist/config/flags.d.ts +140 -0
  43. package/dist/config/flags.js +462 -0
  44. package/dist/config/flags.js.map +1 -0
  45. package/dist/config.d.ts +380 -15
  46. package/dist/config.js +283 -5
  47. package/dist/config.js.map +1 -1
  48. package/dist/connections.d.ts +6 -6
  49. package/dist/connections.js +3 -3
  50. package/dist/data.d.ts +612 -7
  51. package/dist/data.js +566 -4
  52. package/dist/data.js.map +1 -1
  53. package/dist/entitlement.d.ts +10 -8
  54. package/dist/entitlement.js +3 -4
  55. package/dist/entitlement.js.map +1 -1
  56. package/dist/events/realtime.d.ts +69 -0
  57. package/dist/events/realtime.js +107 -0
  58. package/dist/events/realtime.js.map +1 -0
  59. package/dist/events/webhooks.d.ts +40 -0
  60. package/dist/events/webhooks.js +110 -0
  61. package/dist/events/webhooks.js.map +1 -0
  62. package/dist/events.d.ts +369 -22
  63. package/dist/events.js +311 -8
  64. package/dist/events.js.map +1 -1
  65. package/dist/flags.d.ts +18 -0
  66. package/dist/flags.js +44 -0
  67. package/dist/flags.js.map +1 -0
  68. package/dist/hosting.d.ts +13 -14
  69. package/dist/hosting.js +3 -4
  70. package/dist/hosting.js.map +1 -1
  71. package/dist/ids.d.ts +987 -0
  72. package/dist/ids.js +317 -0
  73. package/dist/ids.js.map +1 -0
  74. package/dist/index.d.ts +25 -1
  75. package/dist/index.js +34 -2
  76. package/dist/index.js.map +1 -1
  77. package/dist/keys.d.ts +2 -2
  78. package/dist/keys.js +3 -3
  79. package/dist/knowledge.d.ts +1192 -0
  80. package/dist/knowledge.js +1002 -0
  81. package/dist/knowledge.js.map +1 -0
  82. package/dist/localization.d.ts +663 -0
  83. package/dist/localization.js +491 -0
  84. package/dist/localization.js.map +1 -0
  85. package/dist/methods.js +3251 -133
  86. package/dist/methods.js.map +1 -1
  87. package/dist/money.d.ts +3086 -0
  88. package/dist/money.js +2358 -0
  89. package/dist/money.js.map +1 -0
  90. package/dist/network.d.ts +4 -5
  91. package/dist/network.js +3 -4
  92. package/dist/network.js.map +1 -1
  93. package/dist/notify.d.ts +667 -125
  94. package/dist/notify.js +471 -73
  95. package/dist/notify.js.map +1 -1
  96. package/dist/observability.d.ts +322 -7
  97. package/dist/observability.js +244 -8
  98. package/dist/observability.js.map +1 -1
  99. package/dist/realtime.d.ts +404 -0
  100. package/dist/realtime.js +312 -0
  101. package/dist/realtime.js.map +1 -0
  102. package/dist/release.d.ts +14 -15
  103. package/dist/release.js +3 -4
  104. package/dist/release.js.map +1 -1
  105. package/dist/runners.d.ts +2 -3
  106. package/dist/runners.js +3 -4
  107. package/dist/runners.js.map +1 -1
  108. package/dist/runtime.d.ts +5 -1
  109. package/dist/runtime.js +7 -3
  110. package/dist/runtime.js.map +1 -1
  111. package/dist/sandboxes.d.ts +64 -20
  112. package/dist/sandboxes.js +9 -4
  113. package/dist/sandboxes.js.map +1 -1
  114. package/dist/secrets.d.ts +342 -6
  115. package/dist/secrets.js +271 -4
  116. package/dist/secrets.js.map +1 -1
  117. package/dist/workflows.d.ts +969 -15
  118. package/dist/workflows.js +815 -6
  119. package/dist/workflows.js.map +1 -1
  120. package/package.json +2 -2
package/dist/auth.d.ts CHANGED
@@ -1,6 +1,25 @@
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 AcceptInvitation. */
5
+ export interface AcceptInvitationRequest {
6
+ /** The name of the invitation. */
7
+ name: string;
8
+ /** The accepting end user; its verified email must be the invited address. */
9
+ endUser: string;
10
+ }
11
+ /** The request of AttachEndUserExternalId. */
12
+ export interface AttachEndUserExternalIdRequest {
13
+ /** The name of the end user. */
14
+ name: string;
15
+ /** The customer's namespace for this id: `^[a-z][a-z0-9_]{0,31}$`. */
16
+ namespace: string;
17
+ /**
18
+ * The id itself, 1 to 128 printable characters, unique in its namespace
19
+ * across the environment's live users.
20
+ */
21
+ externalId: string;
22
+ }
4
23
  /**
5
24
  * An Auth Config is the app scope of Sylphx Auth in one environment: which
6
25
  * sign-in methods the customer's app offers, and its MFA, passkey, lockout,
@@ -33,8 +52,8 @@ export interface AuthConfigSpec {
33
52
  /** Session limits. */
34
53
  sessionPolicy?: SessionPolicy;
35
54
  /**
36
- * A Kernel Secrets Secret holding the CAPTCHA verifier secret; unset
37
- * disables CAPTCHA.
55
+ * The CAPTCHA verifier secret, held in Sylphx Secrets; unset disables
56
+ * CAPTCHA.
38
57
  */
39
58
  captchaSecret?: string;
40
59
  /** Account Portal origin and branding. */
@@ -46,6 +65,29 @@ export interface AuthConfigSpec {
46
65
  mailSendingDomain?: string;
47
66
  /** A Sylphx Data database end users are synced into; unset disables sync. */
48
67
  userSyncDatabase?: string;
68
+ /**
69
+ * Social sign-in: one entry per provider Sylphx serves (`google`, `github`,
70
+ * `apple`), whether it is on, and whether end users can use it now. An
71
+ * update changes only the providers it lists; the others keep their state.
72
+ * Without any change Google is on through Sylphx's shared client, when
73
+ * Sylphx has one. The provider's credentials (the shared client, or your
74
+ * own client id and secret) are set with the instance's
75
+ * `sign-in-providers:put`: a client secret never passes through this
76
+ * resource.
77
+ */
78
+ socialProviders?: SocialProvider[];
79
+ /**
80
+ * The address pattern of this environment's test accounts (a regular
81
+ * expression over the whole lower-cased address); unset means the
82
+ * environment has none. It must end in `@` and one of the environment's
83
+ * DNS-verified customer-organization domains, escaped
84
+ * (`qa\+[a-z0-9-]{1,40}@example\.com`), and must not match
85
+ * `probe@example.com`; it is stored as `^(?:<local part>)@<domain>$`. An
86
+ * end user is a test account (`synthetic_time`) only when it signed up
87
+ * with a matching address and proved that address by a link or code;
88
+ * changing the pattern never makes an existing end user one.
89
+ */
90
+ testEmailPattern?: string;
49
91
  }
50
92
  /** AuthConfigStatus is the observed state of an AuthConfig. */
51
93
  export interface AuthConfigStatus {
@@ -71,6 +113,30 @@ export interface CreateCustomerOrganizationRequest {
71
113
  customerOrganization: CustomerOrganization;
72
114
  /** Validate and return the result without writing anything. */
73
115
  validateOnly?: boolean;
116
+ /**
117
+ * The organization's first owner, an active end user of the same
118
+ * environment. The organization and its `owner` membership are created in
119
+ * one transaction, and the call honours `Idempotency-Key`: a retry returns
120
+ * the organization the first call created. Naming a person is explicit app
121
+ * authority: the app vouches for its own tenant. Empty creates an
122
+ * organization without members; creating then calling `CreateMembership` is
123
+ * not atomic.
124
+ */
125
+ ownerEndUser?: string;
126
+ }
127
+ /** The request of CreateEmailDomain. */
128
+ export interface CreateEmailDomainRequest {
129
+ /** The parent to create in. */
130
+ parent: string;
131
+ /**
132
+ * The email domain id, the final name segment; the server assigns one when
133
+ * empty.
134
+ */
135
+ emailDomainId?: string;
136
+ /** The email domain to create; only caller-writable fields are read. */
137
+ emailDomain: EmailDomain;
138
+ /** Validate and return the result without writing anything. */
139
+ validateOnly?: boolean;
74
140
  }
75
141
  /** The request of CreateEndUser. */
76
142
  export interface CreateEndUserRequest {
@@ -86,6 +152,20 @@ export interface CreateEndUserRequest {
86
152
  /** Validate and return the result without writing anything. */
87
153
  validateOnly?: boolean;
88
154
  }
155
+ /** The request of CreateInvitation. */
156
+ export interface CreateInvitationRequest {
157
+ /** The parent to create in. */
158
+ parent: string;
159
+ /**
160
+ * The invitation id, the final name segment; the server assigns one when
161
+ * empty.
162
+ */
163
+ invitationId?: string;
164
+ /** The invitation to create; only caller-writable fields are read. */
165
+ invitation: Invitation;
166
+ /** Validate and return the result without writing anything. */
167
+ validateOnly?: boolean;
168
+ }
89
169
  /** The request of CreateMembership. */
90
170
  export interface CreateMembershipRequest {
91
171
  /** The parent to create in. */
@@ -114,6 +194,20 @@ export interface CreateOauthClientRequest {
114
194
  /** Validate and return the result without writing anything. */
115
195
  validateOnly?: boolean;
116
196
  }
197
+ /** The request of CreateOrganizationRole. */
198
+ export interface CreateOrganizationRoleRequest {
199
+ /** The parent to create in. */
200
+ parent: string;
201
+ /**
202
+ * The organization role id, the final name segment; the server assigns one when
203
+ * empty.
204
+ */
205
+ organizationRoleId?: string;
206
+ /** The organization role to create; only caller-writable fields are read. */
207
+ organizationRole: OrganizationRole;
208
+ /** Validate and return the result without writing anything. */
209
+ validateOnly?: boolean;
210
+ }
117
211
  /**
118
212
  * A Customer Organization is a B2B tenant inside a customer's app. It is never
119
213
  * a Sylphx org and never a Resource name segment of anything but its own
@@ -148,6 +242,17 @@ export interface DeleteCustomerOrganizationRequest {
148
242
  /** Also close every membership. */
149
243
  force?: boolean;
150
244
  }
245
+ /** The request of DeleteEmailDomain. */
246
+ export interface DeleteEmailDomainRequest {
247
+ /** The name of the email domain to delete. */
248
+ name: string;
249
+ /** Delete only if the current etag matches. */
250
+ etag?: string;
251
+ /** Succeed when the email domain does not exist. */
252
+ allowMissing?: boolean;
253
+ /** Validate without deleting anything. */
254
+ validateOnly?: boolean;
255
+ }
151
256
  /** The request of DeleteEndUser. */
152
257
  export interface DeleteEndUserRequest {
153
258
  /** The name of the end user to delete. */
@@ -183,6 +288,41 @@ export interface DeleteOauthClientRequest {
183
288
  /** Validate without deleting anything. */
184
289
  validateOnly?: boolean;
185
290
  }
291
+ /** The request of DeleteOrganizationRole. */
292
+ export interface DeleteOrganizationRoleRequest {
293
+ /** The name of the organization role to delete. */
294
+ name: string;
295
+ /** Delete only if the current etag matches. */
296
+ etag?: string;
297
+ /** Succeed when the organization role does not exist. */
298
+ allowMissing?: boolean;
299
+ /** Validate without deleting anything. */
300
+ validateOnly?: boolean;
301
+ }
302
+ /**
303
+ * An Email Domain is an email domain a customer organization claims. It is verified
304
+ * by a DNS TXT record; a verified domain appears in the organization's
305
+ * `verified_domains`, and one environment's organizations never verify the
306
+ * same domain twice.
307
+ */
308
+ export interface EmailDomain {
309
+ /** `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}/email_domains/{email_domain}`. */
310
+ name?: string;
311
+ /** `dom_<cell><ulid>`; never reused. */
312
+ readonly uid?: string;
313
+ /** Resource metadata. */
314
+ meta?: common.ResourceMeta;
315
+ /** The domain, lowercase, for example `acme.com`. */
316
+ domain?: string;
317
+ /** The verification state. */
318
+ readonly state?: EmailDomainState;
319
+ /** The TXT record name to publish, `_sylphx-verification.<domain>`. */
320
+ readonly verificationRecord?: string;
321
+ /** The TXT record value to publish. */
322
+ readonly verificationValue?: string;
323
+ /** When the record was last found. */
324
+ readonly verifyTime?: string;
325
+ }
186
326
  /**
187
327
  * An End User is a user of a customer's app, never a Sylphx member or
188
328
  * principal. `(scope, email)` is unique among live end users. Delete is
@@ -211,6 +351,47 @@ export interface EndUser {
211
351
  privateMetadata?: Record<string, unknown>;
212
352
  /** The last successful sign-in. */
213
353
  readonly lastLoginTime?: string;
354
+ /**
355
+ * App data the end user may write with their own session (preferences a
356
+ * sign-up form collects); never trust it for authorization.
357
+ */
358
+ unsafeMetadata?: Record<string, unknown>;
359
+ /**
360
+ * Until when sign-in is locked after repeated failures; unset when not
361
+ * locked. Unlock clears it; a suspension is `state`, not a lock.
362
+ */
363
+ readonly lockExpireTime?: string;
364
+ /**
365
+ * The customer's own ids for this end user, one per namespace
366
+ * (`game_user`, `steam_id`): how an app that signs users in by its own id
367
+ * finds them again. Read on create; never changed through here, because a
368
+ * set namespace's value is never rewritten — `AttachEndUserExternalId` sets
369
+ * an unset one. At most four namespaces. Never an authorization input:
370
+ * scope checks use grant ids.
371
+ */
372
+ externalIds?: Record<string, string>;
373
+ /**
374
+ * When the end user became a test account: set once, when an end user who
375
+ * signed up with an address matching the Auth config's
376
+ * `test_email_pattern` first proved that address by a link or code. No
377
+ * update, import, address change or sign-in method ever sets it; changing
378
+ * the address clears it. Unset for every other end user.
379
+ */
380
+ readonly syntheticTime?: string;
381
+ }
382
+ /** The request of FindEndUser. */
383
+ export interface FindEndUserRequest {
384
+ /** The environment to look in. */
385
+ parent: string;
386
+ /** The customer's namespace of the id. */
387
+ namespace: string;
388
+ /** The id to find. */
389
+ externalId: string;
390
+ }
391
+ /** The response of FindEndUser. */
392
+ export interface FindEndUserResponse {
393
+ /** The end user holding the id. */
394
+ endUser?: EndUser;
214
395
  }
215
396
  /** The request of GetAuthConfig. */
216
397
  export interface GetAuthConfigRequest {
@@ -222,11 +403,26 @@ export interface GetCustomerOrganizationRequest {
222
403
  /** The name of the customer organization to get. */
223
404
  name: string;
224
405
  }
406
+ /** The request of GetEmailDomain. */
407
+ export interface GetEmailDomainRequest {
408
+ /** The name of the email domain to get. */
409
+ name: string;
410
+ }
225
411
  /** The request of GetEndUser. */
226
412
  export interface GetEndUserRequest {
227
413
  /** The name of the end user to get. */
228
414
  name: string;
229
415
  }
416
+ /** The request of GetIdentity. */
417
+ export interface GetIdentityRequest {
418
+ /** The name of the identity to get. */
419
+ name: string;
420
+ }
421
+ /** The request of GetInvitation. */
422
+ export interface GetInvitationRequest {
423
+ /** The name of the invitation to get. */
424
+ name: string;
425
+ }
230
426
  /** The request of GetMembership. */
231
427
  export interface GetMembershipRequest {
232
428
  /** The name of the membership to get. */
@@ -237,11 +433,77 @@ export interface GetOauthClientRequest {
237
433
  /** The name of the OAuth client to get. */
238
434
  name: string;
239
435
  }
436
+ /** The request of GetOrganizationRole. */
437
+ export interface GetOrganizationRoleRequest {
438
+ /** The name of the organization role to get. */
439
+ name: string;
440
+ }
240
441
  /** The request of GetSession. */
241
442
  export interface GetSessionRequest {
242
443
  /** The name of the session to get. */
243
444
  name: string;
244
445
  }
446
+ /**
447
+ * An Identity is one way an end user signs in: a password, a verified email, a
448
+ * federated provider account, a device credential (a guest account's secret),
449
+ * or a passkey. An end user always keeps at least one. An identity moves from
450
+ * one end user to another only by `:move`, an operator action; the end user
451
+ * never does it. It shows a fingerprint (a one-way digest), never the secret.
452
+ */
453
+ export interface Identity {
454
+ /** `orgs/{org}/projects/{project}/envs/{env}/end_users/{end_user}/identities/{identity}`. */
455
+ name?: string;
456
+ /** The identity's id; never reused. */
457
+ readonly uid?: string;
458
+ /** Resource metadata. */
459
+ meta?: common.ResourceMeta;
460
+ /** What kind of sign-in this is. */
461
+ readonly type?: IdentityType;
462
+ /**
463
+ * The provider of a federated identity (`google`, `apple`, ...); empty
464
+ * otherwise.
465
+ */
466
+ readonly provider?: string;
467
+ /**
468
+ * A one-way digest of the provider and the provider's subject (or of the
469
+ * device credential's verifier). It identifies the identity in an audit
470
+ * trail and reveals neither.
471
+ */
472
+ readonly fingerprint?: string;
473
+ /** When the identity was linked. */
474
+ readonly linkTime?: string;
475
+ /** The last sign-in with this identity, when known. */
476
+ readonly lastUseTime?: string;
477
+ }
478
+ /**
479
+ * An Invitation asks one email address to join a customer organization with
480
+ * roles. It is single-use and expires; accepting needs an end user whose
481
+ * verified email is the invited address, and creates the membership.
482
+ */
483
+ export interface Invitation {
484
+ /** `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}/invitations/{invitation}`. */
485
+ name?: string;
486
+ /** `inv_<cell><ulid>`; never reused. */
487
+ readonly uid?: string;
488
+ /** Resource metadata. */
489
+ meta?: common.ResourceMeta;
490
+ /** The invited address. */
491
+ email?: string;
492
+ /** Roles the membership gets; empty means the environment's default roles. */
493
+ roles?: string[];
494
+ /** The lifecycle state. */
495
+ readonly state?: InvitationState;
496
+ /** When it expires. */
497
+ readonly expireTime?: string;
498
+ /** When it was accepted. */
499
+ readonly acceptTime?: string;
500
+ /** The end user who accepted it. */
501
+ readonly endUser?: string;
502
+ /** The membership accepting it created. */
503
+ readonly membership?: string;
504
+ /** How long it stays open; default 7 days, at most 30. */
505
+ ttl?: string;
506
+ }
245
507
  /** The request of ListCustomerOrganizations. */
246
508
  export interface ListCustomerOrganizationsRequest {
247
509
  /** The parent to list in. */
@@ -262,6 +524,26 @@ export interface ListCustomerOrganizationsResponse {
262
524
  /** The token of the next page; empty on the last page. */
263
525
  nextPageToken?: string;
264
526
  }
527
+ /** The request of ListEmailDomains. */
528
+ export interface ListEmailDomainsRequest {
529
+ /** The parent to list in. */
530
+ parent: string;
531
+ /** At most this many; default 50, clamped to 1000. */
532
+ pageSize?: number;
533
+ /** `next_page_token` of the previous page. */
534
+ pageToken?: string;
535
+ /** AIP-160 filter over labels and filterable fields. */
536
+ filter?: string;
537
+ /** AIP-132 ordering over filterable fields. */
538
+ orderBy?: string;
539
+ }
540
+ /** The response of ListEmailDomains. */
541
+ export interface ListEmailDomainsResponse {
542
+ /** The page. */
543
+ emailDomains?: EmailDomain[];
544
+ /** The token of the next page; empty on the last page. */
545
+ nextPageToken?: string;
546
+ }
265
547
  /** The request of ListEndUsers. */
266
548
  export interface ListEndUsersRequest {
267
549
  /** The parent to list in. */
@@ -282,9 +564,53 @@ export interface ListEndUsersResponse {
282
564
  /** The token of the next page; empty on the last page. */
283
565
  nextPageToken?: string;
284
566
  }
567
+ /** The request of ListIdentities. */
568
+ export interface ListIdentitiesRequest {
569
+ /** The end user whose identities to list. */
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
+ /** AIP-160 filter over labels and filterable fields. */
576
+ filter?: string;
577
+ /** AIP-132 ordering over filterable fields. */
578
+ orderBy?: string;
579
+ }
580
+ /** The response of ListIdentities. */
581
+ export interface ListIdentitiesResponse {
582
+ /** The page. */
583
+ identities?: Identity[];
584
+ /** The token of the next page; empty on the last page. */
585
+ nextPageToken?: string;
586
+ }
587
+ /** The request of ListInvitations. */
588
+ export interface ListInvitationsRequest {
589
+ /** The parent to list in. */
590
+ parent: string;
591
+ /** At most this many; default 50, clamped to 1000. */
592
+ pageSize?: number;
593
+ /** `next_page_token` of the previous page. */
594
+ pageToken?: string;
595
+ /** AIP-160 filter over labels and filterable fields. */
596
+ filter?: string;
597
+ /** AIP-132 ordering over filterable fields. */
598
+ orderBy?: string;
599
+ }
600
+ /** The response of ListInvitations. */
601
+ export interface ListInvitationsResponse {
602
+ /** The page. */
603
+ invitations?: Invitation[];
604
+ /** The token of the next page; empty on the last page. */
605
+ nextPageToken?: string;
606
+ }
285
607
  /** The request of ListMemberships. */
286
608
  export interface ListMembershipsRequest {
287
- /** The parent to list in. */
609
+ /**
610
+ * The parent to list in. `…/customer_organizations/-` (AIP-159) lists one end
611
+ * user's memberships across the environment's organizations and requires
612
+ * `filter = end_user="…"`; each result carries its own organization's name.
613
+ */
288
614
  parent: string;
289
615
  /** At most this many; default 50, clamped to 1000. */
290
616
  pageSize?: number;
@@ -322,6 +648,26 @@ export interface ListOauthClientsResponse {
322
648
  /** The token of the next page; empty on the last page. */
323
649
  nextPageToken?: string;
324
650
  }
651
+ /** The request of ListOrganizationRoles. */
652
+ export interface ListOrganizationRolesRequest {
653
+ /** The parent to list in. */
654
+ parent: string;
655
+ /** At most this many; default 50, clamped to 1000. */
656
+ pageSize?: number;
657
+ /** `next_page_token` of the previous page. */
658
+ pageToken?: string;
659
+ /** AIP-160 filter over labels and filterable fields. */
660
+ filter?: string;
661
+ /** AIP-132 ordering over filterable fields. */
662
+ orderBy?: string;
663
+ }
664
+ /** The response of ListOrganizationRoles. */
665
+ export interface ListOrganizationRolesResponse {
666
+ /** The page. */
667
+ organizationRoles?: OrganizationRole[];
668
+ /** The token of the next page; empty on the last page. */
669
+ nextPageToken?: string;
670
+ }
325
671
  /** The request of ListSessions. */
326
672
  export interface ListSessionsRequest {
327
673
  /** The parent to list in. */
@@ -359,9 +705,18 @@ export interface Membership {
359
705
  /** App-defined roles, for example `admin`. */
360
706
  roles?: string[];
361
707
  }
708
+ /** The request of MoveIdentity. */
709
+ export interface MoveIdentityRequest {
710
+ /** The name of the identity to move. */
711
+ name: string;
712
+ /** The end user that receives the identity. */
713
+ targetEndUser: string;
714
+ /** Why the identity moves (1 to 512 characters); recorded in the audit trail. */
715
+ reason: string;
716
+ }
362
717
  /**
363
718
  * An OAuth Client is a relying party of the customer's authorization server:
364
- * its app, API, or CLI. Tokens are signed by a Kernel Keys handle and verify
719
+ * its app, API, or CLI. Tokens are signed by a Sylphx Keys handle and verify
365
720
  * offline from the published JWKS.
366
721
  */
367
722
  export interface OauthClient {
@@ -413,6 +768,32 @@ export interface OauthClientStatus {
413
768
  /** The last four characters of the client secret. */
414
769
  readonly clientSecretLast4?: string;
415
770
  }
771
+ /**
772
+ * An Organization Role is an app-defined role of the environment's customer
773
+ * organizations: a key that memberships and invitations name, a display name
774
+ * (`meta.display_name`), and the app's own permission strings. Roles are app
775
+ * data, not Access policy. `owner`, `admin`, and `member` are built in and
776
+ * need no Organization Role.
777
+ */
778
+ export interface OrganizationRole {
779
+ /**
780
+ * `orgs/{org}/projects/{project}/envs/{env}/organization_roles/{organization_role}`;
781
+ * the final segment is the role key memberships name, for example
782
+ * `hr_manager`.
783
+ */
784
+ name?: string;
785
+ /** `orl_<cell><ulid>`; never reused. */
786
+ readonly uid?: string;
787
+ /** Resource metadata. */
788
+ meta?: common.ResourceMeta;
789
+ /**
790
+ * The app's permission strings `<resource>:<action>`, for example
791
+ * `invoices:read` or `org:payroll:approve`.
792
+ */
793
+ permissions?: string[];
794
+ /** Whether new members and invitations without roles get this role. */
795
+ autoAssign?: boolean;
796
+ }
416
797
  /** Passkey requirements. */
417
798
  export interface PasskeyPolicy {
418
799
  /** Require a passkey for every end user. */
@@ -455,6 +836,11 @@ export interface RevokeEndUserSessionsResponse {
455
836
  /** Sessions revoked. */
456
837
  revokedCount?: number;
457
838
  }
839
+ /** The request of RevokeInvitation. */
840
+ export interface RevokeInvitationRequest {
841
+ /** The name of the invitation. */
842
+ name: string;
843
+ }
458
844
  /** The request of RevokeSession. */
459
845
  export interface RevokeSessionRequest {
460
846
  /** The name of the session. */
@@ -520,6 +906,24 @@ export interface SessionPolicy {
520
906
  /** Bind sessions to network and agent; a mismatch demands step-up. */
521
907
  fingerprintBinding?: boolean;
522
908
  }
909
+ /** One social sign-in provider of an environment's Auth. */
910
+ export interface SocialProvider {
911
+ /** The provider: `google`, `github` or `apple`. */
912
+ provider?: string;
913
+ /**
914
+ * Whether the provider is offered. Turning one on needs credentials:
915
+ * Sylphx's shared client for that provider, or your own.
916
+ */
917
+ enabled?: boolean;
918
+ /** `shared` (Sylphx's client) or `custom` (your own client). */
919
+ readonly credentials?: string;
920
+ /**
921
+ * Whether end users can sign in with it now: it is on and its credentials
922
+ * exist. The client config (`GET /v1/client/config`) lists exactly the
923
+ * usable providers.
924
+ */
925
+ readonly usable?: boolean;
926
+ }
523
927
  /** The request of SuspendEndUser. */
524
928
  export interface SuspendEndUserRequest {
525
929
  /** The name of the end user. */
@@ -529,6 +933,11 @@ export interface SuspendEndUserRequest {
529
933
  /** Act only if the current etag matches. */
530
934
  etag?: string;
531
935
  }
936
+ /** The request of UnlockEndUser. */
937
+ export interface UnlockEndUserRequest {
938
+ /** The name of the end user. */
939
+ name: string;
940
+ }
532
941
  /** The request of UpdateAuthConfig. */
533
942
  export interface UpdateAuthConfigRequest {
534
943
  /** The auth config to update; `name` identifies it. */
@@ -583,12 +992,32 @@ export interface UpdateOauthClientRequest {
583
992
  /** Validate and return the result without writing anything. */
584
993
  validateOnly?: boolean;
585
994
  }
995
+ /** The request of UpdateOrganizationRole. */
996
+ export interface UpdateOrganizationRoleRequest {
997
+ /** The organization role to update; `name` identifies it. */
998
+ organizationRole: OrganizationRole;
999
+ /** The fields to write; unset writes every populated field. */
1000
+ updateMask?: string;
1001
+ /** Validate and return the result without writing anything. */
1002
+ validateOnly?: boolean;
1003
+ }
1004
+ /** The request of VerifyEmailDomain. */
1005
+ export interface VerifyEmailDomainRequest {
1006
+ /** The name of the email domain. */
1007
+ name: string;
1008
+ }
586
1009
  /** A sign-in method or factor. */
587
- export type AuthMethod = 'password' | 'magic_link' | 'email_otp' | 'passkey' | 'totp' | 'oidc' | 'saml' | (string & {});
1010
+ export type AuthMethod = 'password' | 'magic_link' | 'email_otp' | 'passkey' | 'totp' | 'oidc' | 'saml' | 'device' | (string & {});
1011
+ /** The verification state of an Email Domain. */
1012
+ export type EmailDomainState = 'pending' | 'verified' | (string & {});
588
1013
  /** The lifecycle state of an end user. */
589
1014
  export type EndUserState = 'active' | 'suspended' | (string & {});
590
1015
  /** An OAuth grant. */
591
1016
  export type GrantType = 'authorization_code' | 'refresh_token' | 'device_code' | 'client_credentials' | (string & {});
1017
+ /** The kind of an Identity. */
1018
+ export type IdentityType = 'password' | 'email' | 'oidc' | 'device' | 'passkey' | (string & {});
1019
+ /** The lifecycle of an Invitation. */
1020
+ export type InvitationState = 'pending' | 'accepted' | 'revoked' | 'expired' | (string & {});
592
1021
  /** RFC 6749 client type. */
593
1022
  export type OauthClientType = 'confidential' | 'public' | (string & {});
594
1023
  /** Why a session was revoked. */
@@ -599,10 +1028,10 @@ export type SessionState = 'active' | 'revoked' | 'expired' | (string & {});
599
1028
  export type TokenEndpointAuthMethod = 'none' | 'client_secret_basic' | 'private_key_jwt' | (string & {});
600
1029
  /**
601
1030
  * AuthService is Sylphx Auth's management surface: sign-in for a customer's
602
- * own users, their sessions, customer organizations, and OAuth clients
603
- * (docs/services/auth/vision.md). Sylphx orgs, members, principals, and keys
604
- * are Kernel Access, never Auth. End-user ceremonies (sign-in, recovery, OAuth
605
- * authorize and token) are protocol endpoints, not Resource methods.
1031
+ * own users, their sessions, customer organizations, and OAuth clients.
1032
+ * Sylphx orgs, members, principals, and keys are Sylphx Access, never Auth.
1033
+ * End-user ceremonies (sign-in, recovery, OAuth authorize and token) are
1034
+ * protocol endpoints, not Resource methods.
606
1035
  *
607
1036
  * Namespace of Sylphx Auth on `Sylphx`.
608
1037
  */
@@ -613,10 +1042,18 @@ export declare class AuthApi {
613
1042
  readonly endUsers: EndUsersCollection;
614
1043
  /** The `sessions` collection. */
615
1044
  readonly sessions: SessionsCollection;
1045
+ /** The `identities` collection. */
1046
+ readonly identities: IdentitiesCollection;
616
1047
  /** The `customer_organizations` collection. */
617
1048
  readonly customerOrganizations: CustomerOrganizationsCollection;
618
1049
  /** The `memberships` collection. */
619
1050
  readonly memberships: MembershipsCollection;
1051
+ /** The `organization_roles` collection. */
1052
+ readonly organizationRoles: OrganizationRolesCollection;
1053
+ /** The `invitations` collection. */
1054
+ readonly invitations: InvitationsCollection;
1055
+ /** The `email_domains` collection. */
1056
+ readonly emailDomains: EmailDomainsCollection;
620
1057
  /** The `oauth_clients` collection. */
621
1058
  readonly oauthClients: OauthClientsCollection;
622
1059
  constructor(client: runtime.Client);
@@ -704,6 +1141,14 @@ export declare class EndUsersCollection {
704
1141
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
705
1142
  */
706
1143
  reactivate(request: ReactivateEndUserRequest): Promise<EndUser>;
1144
+ /**
1145
+ * Clears an end user's sign-in lock (repeated failed sign-ins) now.
1146
+ *
1147
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:unlock` · permission `auth:write` · effect `write`
1148
+ *
1149
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1150
+ */
1151
+ unlock(request: UnlockEndUserRequest): Promise<EndUser>;
707
1152
  /**
708
1153
  * Revokes every session of an end user.
709
1154
  *
@@ -712,6 +1157,28 @@ export declare class EndUsersCollection {
712
1157
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
713
1158
  */
714
1159
  revokeSessions(request: RevokeEndUserSessionsRequest): Promise<RevokeEndUserSessionsResponse>;
1160
+ /**
1161
+ * Sets the customer's own id for an end user, once: an unset namespace is
1162
+ * written, a set one is never rewritten, and a different value for a set
1163
+ * namespace is refused. A namespace holds one id for the life of the user.
1164
+ * Erasure removes the ids and remembers their hashes, so a value that
1165
+ * belonged to an erased user is never handed to another one.
1166
+ *
1167
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:attachExternalId` · permission `auth:write` · effect `write`
1168
+ *
1169
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1170
+ */
1171
+ attachExternalId(request: AttachEndUserExternalIdRequest): Promise<EndUser>;
1172
+ /**
1173
+ * Finds the one end user of one of the customer's own ids. An id that
1174
+ * belongs to no live user of this environment is `RESOURCE_NOT_FOUND`,
1175
+ * the same answer a value erased with its user gives.
1176
+ *
1177
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/end_users:find` · permission `auth:read` · effect `read`
1178
+ *
1179
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`.
1180
+ */
1181
+ find(request: FindEndUserRequest): Promise<FindEndUserResponse>;
715
1182
  }
716
1183
  /** `sessions` of Sylphx Auth: Resource type `auth.sylphx.com/Session`. */
717
1184
  export declare class SessionsCollection {
@@ -744,6 +1211,44 @@ export declare class SessionsCollection {
744
1211
  */
745
1212
  revoke(request: RevokeSessionRequest): Promise<Session>;
746
1213
  }
1214
+ /** `identities` of Sylphx Auth: Resource type `auth.sylphx.com/Identity`. */
1215
+ export declare class IdentitiesCollection {
1216
+ private readonly client;
1217
+ constructor(client: runtime.Client);
1218
+ /**
1219
+ * Gets an identity of an end user.
1220
+ *
1221
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/identities/*}` · permission `auth:read` · effect `read`
1222
+ *
1223
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1224
+ */
1225
+ get(request: GetIdentityRequest): Promise<Identity>;
1226
+ /**
1227
+ * Lists the identities an end user signs in with.
1228
+ *
1229
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/end_users/*}/identities` · permission `auth:read` · effect `read`
1230
+ *
1231
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1232
+ */
1233
+ list(request: ListIdentitiesRequest): Promise<ListIdentitiesResponse>;
1234
+ /** Every item of every page of `list`. */
1235
+ listAll(request: ListIdentitiesRequest): AsyncGenerator<Identity>;
1236
+ /**
1237
+ * Moves a federated or device identity from one end user to another, to
1238
+ * fix a wrongly linked player. One transaction: the identity changes owner,
1239
+ * the sessions of both end users are revoked, and nothing else about
1240
+ * either moves (profile, memberships, data). Refused when it would leave
1241
+ * the source with no sign-in, unless the source is suspended, and when the
1242
+ * target already has an identity of the same provider. The reason is
1243
+ * audited with the operator, both end users and the identity's fingerprint.
1244
+ * An operator action: an end user's own session cannot call it.
1245
+ *
1246
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/identities/*}:move` · permission `auth:write` · effect `destructive`
1247
+ *
1248
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1249
+ */
1250
+ move(request: MoveIdentityRequest): Promise<Identity>;
1251
+ }
747
1252
  /** `customer_organizations` of Sylphx Auth: Resource type `auth.sylphx.com/CustomerOrganization`. */
748
1253
  export declare class CustomerOrganizationsCollection {
749
1254
  private readonly client;
@@ -838,6 +1343,148 @@ export declare class MembershipsCollection {
838
1343
  */
839
1344
  delete(request: DeleteMembershipRequest): Promise<Record<string, never>>;
840
1345
  }
1346
+ /** `organization_roles` of Sylphx Auth: Resource type `auth.sylphx.com/OrganizationRole`. */
1347
+ export declare class OrganizationRolesCollection {
1348
+ private readonly client;
1349
+ constructor(client: runtime.Client);
1350
+ /**
1351
+ * Gets an organization role.
1352
+ *
1353
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:read` · effect `read`
1354
+ *
1355
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1356
+ */
1357
+ get(request: GetOrganizationRoleRequest): Promise<OrganizationRole>;
1358
+ /**
1359
+ * Lists organization roles.
1360
+ *
1361
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/organization_roles` · permission `auth:read` · effect `read`
1362
+ *
1363
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1364
+ */
1365
+ list(request: ListOrganizationRolesRequest): Promise<ListOrganizationRolesResponse>;
1366
+ /** Every item of every page of `list`. */
1367
+ listAll(request: ListOrganizationRolesRequest): AsyncGenerator<OrganizationRole>;
1368
+ /**
1369
+ * Creates an organization role.
1370
+ *
1371
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/organization_roles` · permission `auth:write` · effect `write`
1372
+ *
1373
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1374
+ */
1375
+ create(request: CreateOrganizationRoleRequest): Promise<OrganizationRole>;
1376
+ /**
1377
+ * Updates an organization role.
1378
+ *
1379
+ * `PATCH /v1/{organization_role.name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:write` · effect `write`
1380
+ *
1381
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1382
+ */
1383
+ update(request: UpdateOrganizationRoleRequest): Promise<OrganizationRole>;
1384
+ /**
1385
+ * Deletes an organization role.
1386
+ *
1387
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:write` · effect `destructive`
1388
+ *
1389
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1390
+ */
1391
+ delete(request: DeleteOrganizationRoleRequest): Promise<Record<string, never>>;
1392
+ }
1393
+ /** `invitations` of Sylphx Auth: Resource type `auth.sylphx.com/Invitation`. */
1394
+ export declare class InvitationsCollection {
1395
+ private readonly client;
1396
+ constructor(client: runtime.Client);
1397
+ /**
1398
+ * Gets an invitation.
1399
+ *
1400
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}` · permission `auth:read` · effect `read`
1401
+ *
1402
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1403
+ */
1404
+ get(request: GetInvitationRequest): Promise<Invitation>;
1405
+ /**
1406
+ * Lists invitations.
1407
+ *
1408
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/invitations` · permission `auth:read` · effect `read`
1409
+ *
1410
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1411
+ */
1412
+ list(request: ListInvitationsRequest): Promise<ListInvitationsResponse>;
1413
+ /** Every item of every page of `list`. */
1414
+ listAll(request: ListInvitationsRequest): AsyncGenerator<Invitation>;
1415
+ /**
1416
+ * Creates an invitation.
1417
+ *
1418
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/invitations` · permission `auth:write` · effect `write`
1419
+ *
1420
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1421
+ */
1422
+ create(request: CreateInvitationRequest): Promise<Invitation>;
1423
+ /**
1424
+ * Revokes a pending invitation.
1425
+ *
1426
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}:revoke` · permission `auth:write` · effect `destructive`
1427
+ *
1428
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1429
+ */
1430
+ revoke(request: RevokeInvitationRequest): Promise<Invitation>;
1431
+ /**
1432
+ * Accepts a pending invitation for an end user whose verified email is the
1433
+ * invited address, and creates the membership.
1434
+ *
1435
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}:accept` · permission `auth:write` · effect `write`
1436
+ *
1437
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1438
+ */
1439
+ accept(request: AcceptInvitationRequest): Promise<Invitation>;
1440
+ }
1441
+ /** `email_domains` of Sylphx Auth: Resource type `auth.sylphx.com/EmailDomain`. */
1442
+ export declare class EmailDomainsCollection {
1443
+ private readonly client;
1444
+ constructor(client: runtime.Client);
1445
+ /**
1446
+ * Gets an email domain.
1447
+ *
1448
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}` · permission `auth:read` · effect `read`
1449
+ *
1450
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1451
+ */
1452
+ get(request: GetEmailDomainRequest): Promise<EmailDomain>;
1453
+ /**
1454
+ * Lists email domains.
1455
+ *
1456
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/email_domains` · permission `auth:read` · effect `read`
1457
+ *
1458
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1459
+ */
1460
+ list(request: ListEmailDomainsRequest): Promise<ListEmailDomainsResponse>;
1461
+ /** Every item of every page of `list`. */
1462
+ listAll(request: ListEmailDomainsRequest): AsyncGenerator<EmailDomain>;
1463
+ /**
1464
+ * Creates an email domain; the answer names the TXT record to publish.
1465
+ *
1466
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/email_domains` · permission `auth:write` · effect `write`
1467
+ *
1468
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1469
+ */
1470
+ create(request: CreateEmailDomainRequest): Promise<EmailDomain>;
1471
+ /**
1472
+ * Deletes an email domain.
1473
+ *
1474
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}` · permission `auth:write` · effect `destructive`
1475
+ *
1476
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1477
+ */
1478
+ delete(request: DeleteEmailDomainRequest): Promise<Record<string, never>>;
1479
+ /**
1480
+ * Looks up the domain's TXT record now; found, the domain is verified.
1481
+ *
1482
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}:verify` · permission `auth:write` · effect `write`
1483
+ *
1484
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1485
+ */
1486
+ verify(request: VerifyEmailDomainRequest): Promise<EmailDomain>;
1487
+ }
841
1488
  /** `oauth_clients` of Sylphx Auth: Resource type `auth.sylphx.com/OauthClient`. */
842
1489
  export declare class OauthClientsCollection {
843
1490
  private readonly client;