@sylphx/sdk 0.32.0 → 0.32.2

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 (127) hide show
  1. package/README.md +125 -0
  2. package/dist/access.d.ts +50 -1
  3. package/dist/access.js +14 -2
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +2002 -0
  6. package/dist/agents.js +1367 -0
  7. package/dist/agents.js.map +1 -0
  8. package/dist/ai.js +1 -1
  9. package/dist/ai.js.map +1 -1
  10. package/dist/analytics.d.ts +232 -0
  11. package/dist/analytics.js +126 -0
  12. package/dist/analytics.js.map +1 -0
  13. package/dist/artifacts.d.ts +47 -1
  14. package/dist/artifacts.js +30 -2
  15. package/dist/artifacts.js.map +1 -1
  16. package/dist/assets.js +1 -1
  17. package/dist/assets.js.map +1 -1
  18. package/dist/auth/client.d.ts +34 -3
  19. package/dist/auth/client.js +42 -5
  20. package/dist/auth/client.js.map +1 -1
  21. package/dist/auth/continue-mock.d.ts +21 -0
  22. package/dist/auth/continue-mock.js +75 -0
  23. package/dist/auth/continue-mock.js.map +1 -0
  24. package/dist/auth/end-user-keys-mock.d.ts +83 -0
  25. package/dist/auth/end-user-keys-mock.js +427 -0
  26. package/dist/auth/end-user-keys-mock.js.map +1 -0
  27. package/dist/auth/end-user-keys.d.ts +219 -0
  28. package/dist/auth/end-user-keys.js +240 -0
  29. package/dist/auth/end-user-keys.js.map +1 -0
  30. package/dist/auth/verify.js +1 -1
  31. package/dist/auth/verify.js.map +1 -1
  32. package/dist/auth.d.ts +370 -2
  33. package/dist/auth.js +282 -2
  34. package/dist/auth.js.map +1 -1
  35. package/dist/billing.d.ts +96 -11
  36. package/dist/billing.js +41 -1
  37. package/dist/billing.js.map +1 -1
  38. package/dist/broker.d.ts +165 -33
  39. package/dist/broker.js +103 -7
  40. package/dist/broker.js.map +1 -1
  41. package/dist/browser-upload.d.ts +101 -0
  42. package/dist/browser-upload.js +130 -0
  43. package/dist/browser-upload.js.map +1 -0
  44. package/dist/build.d.ts +361 -28
  45. package/dist/build.js +302 -10
  46. package/dist/build.js.map +1 -1
  47. package/dist/common.d.ts +1 -1
  48. package/dist/common.js +1 -1
  49. package/dist/common.js.map +1 -1
  50. package/dist/config/flags.d.ts +12 -2
  51. package/dist/config/flags.js +54 -6
  52. package/dist/config/flags.js.map +1 -1
  53. package/dist/config.d.ts +24 -0
  54. package/dist/config.js +22 -1
  55. package/dist/config.js.map +1 -1
  56. package/dist/connections.d.ts +128 -25
  57. package/dist/connections.js +72 -25
  58. package/dist/connections.js.map +1 -1
  59. package/dist/data.d.ts +358 -13
  60. package/dist/data.js +166 -9
  61. package/dist/data.js.map +1 -1
  62. package/dist/entitlement.js +1 -1
  63. package/dist/entitlement.js.map +1 -1
  64. package/dist/events/realtime.js +1 -1
  65. package/dist/events/realtime.js.map +1 -1
  66. package/dist/events/webhooks.js +1 -1
  67. package/dist/events/webhooks.js.map +1 -1
  68. package/dist/events.d.ts +36 -0
  69. package/dist/events.js +29 -1
  70. package/dist/events.js.map +1 -1
  71. package/dist/flags.d.ts +20 -0
  72. package/dist/flags.js +48 -0
  73. package/dist/flags.js.map +1 -0
  74. package/dist/hosting.js +1 -1
  75. package/dist/hosting.js.map +1 -1
  76. package/dist/ids.d.ts +192 -2
  77. package/dist/ids.js +40 -2
  78. package/dist/ids.js.map +1 -1
  79. package/dist/index.d.ts +18 -1
  80. package/dist/index.js +32 -2
  81. package/dist/index.js.map +1 -1
  82. package/dist/keys.js +1 -1
  83. package/dist/keys.js.map +1 -1
  84. package/dist/knowledge.d.ts +1215 -0
  85. package/dist/knowledge.js +1012 -0
  86. package/dist/knowledge.js.map +1 -0
  87. package/dist/localization.js +1 -1
  88. package/dist/localization.js.map +1 -1
  89. package/dist/methods.js +1938 -15
  90. package/dist/methods.js.map +1 -1
  91. package/dist/money.d.ts +1989 -53
  92. package/dist/money.js +1401 -19
  93. package/dist/money.js.map +1 -1
  94. package/dist/network.js +1 -1
  95. package/dist/network.js.map +1 -1
  96. package/dist/notify.d.ts +686 -1
  97. package/dist/notify.js +552 -1
  98. package/dist/notify.js.map +1 -1
  99. package/dist/observability.d.ts +138 -0
  100. package/dist/observability.js +89 -1
  101. package/dist/observability.js.map +1 -1
  102. package/dist/realtime.d.ts +404 -0
  103. package/dist/realtime.js +312 -0
  104. package/dist/realtime.js.map +1 -0
  105. package/dist/release.js +1 -1
  106. package/dist/release.js.map +1 -1
  107. package/dist/runners.js +1 -1
  108. package/dist/runners.js.map +1 -1
  109. package/dist/runtime.d.ts +3 -0
  110. package/dist/runtime.js +54 -1
  111. package/dist/runtime.js.map +1 -1
  112. package/dist/sandboxes/stream-mock.d.ts +124 -0
  113. package/dist/sandboxes/stream-mock.js +476 -0
  114. package/dist/sandboxes/stream-mock.js.map +1 -0
  115. package/dist/sandboxes/stream.d.ts +407 -0
  116. package/dist/sandboxes/stream.js +335 -0
  117. package/dist/sandboxes/stream.js.map +1 -0
  118. package/dist/sandboxes.d.ts +94 -17
  119. package/dist/sandboxes.js +33 -4
  120. package/dist/sandboxes.js.map +1 -1
  121. package/dist/secrets.d.ts +336 -0
  122. package/dist/secrets.js +268 -1
  123. package/dist/secrets.js.map +1 -1
  124. package/dist/workflows.d.ts +119 -3
  125. package/dist/workflows.js +144 -4
  126. package/dist/workflows.js.map +1 -1
  127. package/package.json +2 -2
package/dist/auth.d.ts CHANGED
@@ -8,6 +8,18 @@ export interface AcceptInvitationRequest {
8
8
  /** The accepting end user; its verified email must be the invited address. */
9
9
  endUser: string;
10
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
+ }
11
23
  /**
12
24
  * An Auth Config is the app scope of Sylphx Auth in one environment: which
13
25
  * sign-in methods the customer's app offers, and its MFA, passkey, lockout,
@@ -64,6 +76,18 @@ export interface AuthConfigSpec {
64
76
  * resource.
65
77
  */
66
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;
67
91
  }
68
92
  /** AuthConfigStatus is the observed state of an AuthConfig. */
69
93
  export interface AuthConfigStatus {
@@ -89,6 +113,16 @@ export interface CreateCustomerOrganizationRequest {
89
113
  customerOrganization: CustomerOrganization;
90
114
  /** Validate and return the result without writing anything. */
91
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;
92
126
  }
93
127
  /** The request of CreateEmailDomain. */
94
128
  export interface CreateEmailDomainRequest {
@@ -174,6 +208,20 @@ export interface CreateOrganizationRoleRequest {
174
208
  /** Validate and return the result without writing anything. */
175
209
  validateOnly?: boolean;
176
210
  }
211
+ /** The request of CreateTrustedIssuer. */
212
+ export interface CreateTrustedIssuerRequest {
213
+ /** The parent to create in. */
214
+ parent: string;
215
+ /**
216
+ * The issuer key, the final name segment (`^[a-z][a-z0-9]{1,15}$`); it is
217
+ * part of every end-user id from this issuer and never changes.
218
+ */
219
+ trustedIssuerId: string;
220
+ /** The trusted issuer to create; only caller-writable fields are read. */
221
+ trustedIssuer: TrustedIssuer;
222
+ /** Validate and return the result without writing anything. */
223
+ validateOnly?: boolean;
224
+ }
177
225
  /**
178
226
  * A Customer Organization is a B2B tenant inside a customer's app. It is never
179
227
  * a Sylphx org and never a Resource name segment of anything but its own
@@ -265,6 +313,17 @@ export interface DeleteOrganizationRoleRequest {
265
313
  /** Validate without deleting anything. */
266
314
  validateOnly?: boolean;
267
315
  }
316
+ /** The request of DeleteTrustedIssuer. */
317
+ export interface DeleteTrustedIssuerRequest {
318
+ /** The name of the trusted issuer to delete. */
319
+ name: string;
320
+ /** Delete only if the current etag matches. */
321
+ etag?: string;
322
+ /** Succeed when the trusted issuer does not exist. */
323
+ allowMissing?: boolean;
324
+ /** Validate without deleting anything. */
325
+ validateOnly?: boolean;
326
+ }
268
327
  /**
269
328
  * An Email Domain is an email domain a customer organization claims. It is verified
270
329
  * by a DNS TXT record; a verified domain appears in the organization's
@@ -327,6 +386,37 @@ export interface EndUser {
327
386
  * locked. Unlock clears it; a suspension is `state`, not a lock.
328
387
  */
329
388
  readonly lockExpireTime?: string;
389
+ /**
390
+ * The customer's own ids for this end user, one per namespace
391
+ * (`game_user`, `steam_id`): how an app that signs users in by its own id
392
+ * finds them again. Read on create; never changed through here, because a
393
+ * set namespace's value is never rewritten — `AttachEndUserExternalId` sets
394
+ * an unset one. At most four namespaces. Never an authorization input:
395
+ * scope checks use grant ids.
396
+ */
397
+ externalIds?: Record<string, string>;
398
+ /**
399
+ * When the end user became a test account: set once, when an end user who
400
+ * signed up with an address matching the Auth config's
401
+ * `test_email_pattern` first proved that address by a link or code. No
402
+ * update, import, address change or sign-in method ever sets it; changing
403
+ * the address clears it. Unset for every other end user.
404
+ */
405
+ readonly syntheticTime?: string;
406
+ }
407
+ /** The request of FindEndUser. */
408
+ export interface FindEndUserRequest {
409
+ /** The environment to look in. */
410
+ parent: string;
411
+ /** The customer's namespace of the id. */
412
+ namespace: string;
413
+ /** The id to find. */
414
+ externalId: string;
415
+ }
416
+ /** The response of FindEndUser. */
417
+ export interface FindEndUserResponse {
418
+ /** The end user holding the id. */
419
+ endUser?: EndUser;
330
420
  }
331
421
  /** The request of GetAuthConfig. */
332
422
  export interface GetAuthConfigRequest {
@@ -348,6 +438,11 @@ export interface GetEndUserRequest {
348
438
  /** The name of the end user to get. */
349
439
  name: string;
350
440
  }
441
+ /** The request of GetIdentity. */
442
+ export interface GetIdentityRequest {
443
+ /** The name of the identity to get. */
444
+ name: string;
445
+ }
351
446
  /** The request of GetInvitation. */
352
447
  export interface GetInvitationRequest {
353
448
  /** The name of the invitation to get. */
@@ -373,6 +468,43 @@ export interface GetSessionRequest {
373
468
  /** The name of the session to get. */
374
469
  name: string;
375
470
  }
471
+ /** The request of GetTrustedIssuer. */
472
+ export interface GetTrustedIssuerRequest {
473
+ /** The name of the trusted issuer to get. */
474
+ name: string;
475
+ }
476
+ /**
477
+ * An Identity is one way an end user signs in: a password, a verified email, a
478
+ * federated provider account, a device credential (a guest account's secret),
479
+ * or a passkey. An end user always keeps at least one. An identity moves from
480
+ * one end user to another only by `:move`, an operator action; the end user
481
+ * never does it. It shows a fingerprint (a one-way digest), never the secret.
482
+ */
483
+ export interface Identity {
484
+ /** `orgs/{org}/projects/{project}/envs/{env}/end_users/{end_user}/identities/{identity}`. */
485
+ name?: string;
486
+ /** The identity's id; never reused. */
487
+ readonly uid?: string;
488
+ /** Resource metadata. */
489
+ meta?: common.ResourceMeta;
490
+ /** What kind of sign-in this is. */
491
+ readonly type?: IdentityType;
492
+ /**
493
+ * The provider of a federated identity (`google`, `apple`, ...); empty
494
+ * otherwise.
495
+ */
496
+ readonly provider?: string;
497
+ /**
498
+ * A one-way digest of the provider and the provider's subject (or of the
499
+ * device credential's verifier). It identifies the identity in an audit
500
+ * trail and reveals neither.
501
+ */
502
+ readonly fingerprint?: string;
503
+ /** When the identity was linked. */
504
+ readonly linkTime?: string;
505
+ /** The last sign-in with this identity, when known. */
506
+ readonly lastUseTime?: string;
507
+ }
376
508
  /**
377
509
  * An Invitation asks one email address to join a customer organization with
378
510
  * roles. It is single-use and expires; accepting needs an end user whose
@@ -401,6 +533,13 @@ export interface Invitation {
401
533
  readonly membership?: string;
402
534
  /** How long it stays open; default 7 days, at most 30. */
403
535
  ttl?: string;
536
+ /**
537
+ * Immutable application context, a JSON object of at most 16 KiB when
538
+ * compactly UTF-8 encoded. Omitted metadata is returned as an empty object.
539
+ * This is application data, never a permission grant. The application must
540
+ * recheck authoritative organization and project membership before acting.
541
+ */
542
+ metadata?: Record<string, unknown>;
404
543
  }
405
544
  /** The request of ListCustomerOrganizations. */
406
545
  export interface ListCustomerOrganizationsRequest {
@@ -462,6 +601,26 @@ export interface ListEndUsersResponse {
462
601
  /** The token of the next page; empty on the last page. */
463
602
  nextPageToken?: string;
464
603
  }
604
+ /** The request of ListIdentities. */
605
+ export interface ListIdentitiesRequest {
606
+ /** The end user whose identities to list. */
607
+ parent: string;
608
+ /** At most this many; default 50, clamped to 1000. */
609
+ pageSize?: number;
610
+ /** `next_page_token` of the previous page. */
611
+ pageToken?: string;
612
+ /** AIP-160 filter over labels and filterable fields. */
613
+ filter?: string;
614
+ /** AIP-132 ordering over filterable fields. */
615
+ orderBy?: string;
616
+ }
617
+ /** The response of ListIdentities. */
618
+ export interface ListIdentitiesResponse {
619
+ /** The page. */
620
+ identities?: Identity[];
621
+ /** The token of the next page; empty on the last page. */
622
+ nextPageToken?: string;
623
+ }
465
624
  /** The request of ListInvitations. */
466
625
  export interface ListInvitationsRequest {
467
626
  /** The parent to list in. */
@@ -484,7 +643,11 @@ export interface ListInvitationsResponse {
484
643
  }
485
644
  /** The request of ListMemberships. */
486
645
  export interface ListMembershipsRequest {
487
- /** The parent to list in. */
646
+ /**
647
+ * The parent to list in. `…/customer_organizations/-` (AIP-159) lists one end
648
+ * user's memberships across the environment's organizations and requires
649
+ * `filter = end_user="…"`; each result carries its own organization's name.
650
+ */
488
651
  parent: string;
489
652
  /** At most this many; default 50, clamped to 1000. */
490
653
  pageSize?: number;
@@ -562,6 +725,26 @@ export interface ListSessionsResponse {
562
725
  /** The token of the next page; empty on the last page. */
563
726
  nextPageToken?: string;
564
727
  }
728
+ /** The request of ListTrustedIssuers. */
729
+ export interface ListTrustedIssuersRequest {
730
+ /** The parent to list in. */
731
+ parent: string;
732
+ /** At most this many; default 50, clamped to 1000. */
733
+ pageSize?: number;
734
+ /** `next_page_token` of the previous page. */
735
+ pageToken?: string;
736
+ /** AIP-160 filter over labels and filterable fields. */
737
+ filter?: string;
738
+ /** AIP-132 ordering over filterable fields. */
739
+ orderBy?: string;
740
+ }
741
+ /** The response of ListTrustedIssuers. */
742
+ export interface ListTrustedIssuersResponse {
743
+ /** The page. */
744
+ trustedIssuers?: TrustedIssuer[];
745
+ /** The token of the next page; empty on the last page. */
746
+ nextPageToken?: string;
747
+ }
565
748
  /**
566
749
  * A Membership places an end user in a customer organization with app-defined
567
750
  * roles. Roles are app data, not Access policy. Changes append to history with
@@ -579,6 +762,15 @@ export interface Membership {
579
762
  /** App-defined roles, for example `admin`. */
580
763
  roles?: string[];
581
764
  }
765
+ /** The request of MoveIdentity. */
766
+ export interface MoveIdentityRequest {
767
+ /** The name of the identity to move. */
768
+ name: string;
769
+ /** The end user that receives the identity. */
770
+ targetEndUser: string;
771
+ /** Why the identity moves (1 to 512 characters); recorded in the audit trail. */
772
+ reason: string;
773
+ }
582
774
  /**
583
775
  * An OAuth Client is a relying party of the customer's authorization server:
584
776
  * its app, API, or CLI. Tokens are signed by a Sylphx Keys handle and verify
@@ -798,6 +990,60 @@ export interface SuspendEndUserRequest {
798
990
  /** Act only if the current etag matches. */
799
991
  etag?: string;
800
992
  }
993
+ /**
994
+ * A Trusted Issuer lets the environment's end users sign in with the
995
+ * customer's own identity provider (Clerk, Auth0, Cognito, Firebase Auth, or
996
+ * any OIDC or JWT issuer) instead of Sylphx Auth. Every Sylphx service then
997
+ * accepts that issuer's access tokens as the end user
998
+ * `ext_<issuer key>_<hash of iss and sub>`, with role `authenticated`
999
+ * (docs/specs/one-platform/end-user-principal.md §5). Auth fetches and caches
1000
+ * the issuer's keys; a verifying service never calls the issuer. No profile or
1001
+ * password is stored: the issuer owns the user and the session.
1002
+ */
1003
+ export interface TrustedIssuer {
1004
+ /**
1005
+ * `orgs/{org}/projects/{project}/envs/{env}/trusted_issuers/{trusted_issuer}`;
1006
+ * the final segment is the issuer key (`^[a-z][a-z0-9]{1,15}$`, for example
1007
+ * `clerk`) that every end-user id from this issuer carries. It never
1008
+ * changes, so a user keeps the same id for as long as the issuer is trusted.
1009
+ */
1010
+ name?: string;
1011
+ /** `tis_<ulid>`; never reused. */
1012
+ readonly uid?: string;
1013
+ /** Resource metadata. */
1014
+ meta?: common.ResourceMeta;
1015
+ /**
1016
+ * The exact `iss` the issuer's tokens carry, an HTTPS URL, for example
1017
+ * `https://clerk.example.com` or `https://securetoken.google.com/<project>`.
1018
+ * One Trusted Issuer per issuer in an environment.
1019
+ */
1020
+ issuer?: string;
1021
+ /** The HTTPS URL of the issuer's JSON Web Key Set. Only Auth fetches it. */
1022
+ jwksUri?: string;
1023
+ /**
1024
+ * A token's `aud` must contain one of these, for example the Firebase
1025
+ * project id or the Auth0 API identifier.
1026
+ */
1027
+ audiences?: string[];
1028
+ /**
1029
+ * Token claims copied into the end user's `app_metadata`, the claim
1030
+ * policies read (for example the issuer's `org_role` as `roles`). Map only
1031
+ * claims the issuer's admin sets, never ones the user can write.
1032
+ */
1033
+ appMetadataClaims?: TrustedIssuerClaimMapping[];
1034
+ /** A disabled issuer's tokens are refused; its users keep their ids and data. */
1035
+ disabled?: boolean;
1036
+ }
1037
+ /** One token claim copied into `app_metadata`. */
1038
+ export interface TrustedIssuerClaimMapping {
1039
+ /**
1040
+ * The top-level claim name in the issuer's token, for example `org_role` or
1041
+ * `https://example.com/roles`.
1042
+ */
1043
+ claim?: string;
1044
+ /** The `app_metadata` key it is copied to; unique within the issuer. */
1045
+ key?: string;
1046
+ }
801
1047
  /** The request of UnlockEndUser. */
802
1048
  export interface UnlockEndUserRequest {
803
1049
  /** The name of the end user. */
@@ -866,19 +1112,30 @@ export interface UpdateOrganizationRoleRequest {
866
1112
  /** Validate and return the result without writing anything. */
867
1113
  validateOnly?: boolean;
868
1114
  }
1115
+ /** The request of UpdateTrustedIssuer. */
1116
+ export interface UpdateTrustedIssuerRequest {
1117
+ /** The trusted issuer to update; `name` identifies it. */
1118
+ trustedIssuer: TrustedIssuer;
1119
+ /** The fields to write; unset writes every populated field. */
1120
+ updateMask?: string;
1121
+ /** Validate and return the result without writing anything. */
1122
+ validateOnly?: boolean;
1123
+ }
869
1124
  /** The request of VerifyEmailDomain. */
870
1125
  export interface VerifyEmailDomainRequest {
871
1126
  /** The name of the email domain. */
872
1127
  name: string;
873
1128
  }
874
1129
  /** A sign-in method or factor. */
875
- export type AuthMethod = 'password' | 'magic_link' | 'email_otp' | 'passkey' | 'totp' | 'oidc' | 'saml' | (string & {});
1130
+ export type AuthMethod = 'password' | 'magic_link' | 'email_otp' | 'passkey' | 'totp' | 'oidc' | 'saml' | 'device' | (string & {});
876
1131
  /** The verification state of an Email Domain. */
877
1132
  export type EmailDomainState = 'pending' | 'verified' | (string & {});
878
1133
  /** The lifecycle state of an end user. */
879
1134
  export type EndUserState = 'active' | 'suspended' | (string & {});
880
1135
  /** An OAuth grant. */
881
1136
  export type GrantType = 'authorization_code' | 'refresh_token' | 'device_code' | 'client_credentials' | (string & {});
1137
+ /** The kind of an Identity. */
1138
+ export type IdentityType = 'password' | 'email' | 'oidc' | 'device' | 'passkey' | (string & {});
882
1139
  /** The lifecycle of an Invitation. */
883
1140
  export type InvitationState = 'pending' | 'accepted' | 'revoked' | 'expired' | (string & {});
884
1141
  /** RFC 6749 client type. */
@@ -905,12 +1162,16 @@ export declare class AuthApi {
905
1162
  readonly endUsers: EndUsersCollection;
906
1163
  /** The `sessions` collection. */
907
1164
  readonly sessions: SessionsCollection;
1165
+ /** The `identities` collection. */
1166
+ readonly identities: IdentitiesCollection;
908
1167
  /** The `customer_organizations` collection. */
909
1168
  readonly customerOrganizations: CustomerOrganizationsCollection;
910
1169
  /** The `memberships` collection. */
911
1170
  readonly memberships: MembershipsCollection;
912
1171
  /** The `organization_roles` collection. */
913
1172
  readonly organizationRoles: OrganizationRolesCollection;
1173
+ /** The `trusted_issuers` collection. */
1174
+ readonly trustedIssuers: TrustedIssuersCollection;
914
1175
  /** The `invitations` collection. */
915
1176
  readonly invitations: InvitationsCollection;
916
1177
  /** The `email_domains` collection. */
@@ -1018,6 +1279,28 @@ export declare class EndUsersCollection {
1018
1279
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1019
1280
  */
1020
1281
  revokeSessions(request: RevokeEndUserSessionsRequest): Promise<RevokeEndUserSessionsResponse>;
1282
+ /**
1283
+ * Sets the customer's own id for an end user, once: an unset namespace is
1284
+ * written, a set one is never rewritten, and a different value for a set
1285
+ * namespace is refused. A namespace holds one id for the life of the user.
1286
+ * Erasure removes the ids and remembers their hashes, so a value that
1287
+ * belonged to an erased user is never handed to another one.
1288
+ *
1289
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:attachExternalId` · permission `auth:write` · effect `write`
1290
+ *
1291
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1292
+ */
1293
+ attachExternalId(request: AttachEndUserExternalIdRequest): Promise<EndUser>;
1294
+ /**
1295
+ * Finds the one end user of one of the customer's own ids. An id that
1296
+ * belongs to no live user of this environment is `RESOURCE_NOT_FOUND`,
1297
+ * the same answer a value erased with its user gives.
1298
+ *
1299
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/end_users:find` · permission `auth:read` · effect `read`
1300
+ *
1301
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`.
1302
+ */
1303
+ find(request: FindEndUserRequest): Promise<FindEndUserResponse>;
1021
1304
  }
1022
1305
  /** `sessions` of Sylphx Auth: Resource type `auth.sylphx.com/Session`. */
1023
1306
  export declare class SessionsCollection {
@@ -1050,6 +1333,44 @@ export declare class SessionsCollection {
1050
1333
  */
1051
1334
  revoke(request: RevokeSessionRequest): Promise<Session>;
1052
1335
  }
1336
+ /** `identities` of Sylphx Auth: Resource type `auth.sylphx.com/Identity`. */
1337
+ export declare class IdentitiesCollection {
1338
+ private readonly client;
1339
+ constructor(client: runtime.Client);
1340
+ /**
1341
+ * Gets an identity of an end user.
1342
+ *
1343
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/identities/*}` · permission `auth:read` · effect `read`
1344
+ *
1345
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1346
+ */
1347
+ get(request: GetIdentityRequest): Promise<Identity>;
1348
+ /**
1349
+ * Lists the identities an end user signs in with.
1350
+ *
1351
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/end_users/*}/identities` · permission `auth:read` · effect `read`
1352
+ *
1353
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1354
+ */
1355
+ list(request: ListIdentitiesRequest): Promise<ListIdentitiesResponse>;
1356
+ /** Every item of every page of `list`. */
1357
+ listAll(request: ListIdentitiesRequest): AsyncGenerator<Identity>;
1358
+ /**
1359
+ * Moves a federated or device identity from one end user to another, to
1360
+ * fix a wrongly linked player. One transaction: the identity changes owner,
1361
+ * the sessions of both end users are revoked, and nothing else about
1362
+ * either moves (profile, memberships, data). Refused when it would leave
1363
+ * the source with no sign-in, unless the source is suspended, and when the
1364
+ * target already has an identity of the same provider. The reason is
1365
+ * audited with the operator, both end users and the identity's fingerprint.
1366
+ * An operator action: an end user's own session cannot call it.
1367
+ *
1368
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/identities/*}:move` · permission `auth:write` · effect `destructive`
1369
+ *
1370
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1371
+ */
1372
+ move(request: MoveIdentityRequest): Promise<Identity>;
1373
+ }
1053
1374
  /** `customer_organizations` of Sylphx Auth: Resource type `auth.sylphx.com/CustomerOrganization`. */
1054
1375
  export declare class CustomerOrganizationsCollection {
1055
1376
  private readonly client;
@@ -1191,6 +1512,53 @@ export declare class OrganizationRolesCollection {
1191
1512
  */
1192
1513
  delete(request: DeleteOrganizationRoleRequest): Promise<Record<string, never>>;
1193
1514
  }
1515
+ /** `trusted_issuers` of Sylphx Auth: Resource type `auth.sylphx.com/TrustedIssuer`. */
1516
+ export declare class TrustedIssuersCollection {
1517
+ private readonly client;
1518
+ constructor(client: runtime.Client);
1519
+ /**
1520
+ * Gets an trusted issuer.
1521
+ *
1522
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/trusted_issuers/*}` · permission `auth:read` · effect `read`
1523
+ *
1524
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1525
+ */
1526
+ get(request: GetTrustedIssuerRequest): Promise<TrustedIssuer>;
1527
+ /**
1528
+ * Lists trusted issuers.
1529
+ *
1530
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/trusted_issuers` · permission `auth:read` · effect `read`
1531
+ *
1532
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1533
+ */
1534
+ list(request: ListTrustedIssuersRequest): Promise<ListTrustedIssuersResponse>;
1535
+ /** Every item of every page of `list`. */
1536
+ listAll(request: ListTrustedIssuersRequest): AsyncGenerator<TrustedIssuer>;
1537
+ /**
1538
+ * Creates an trusted issuer.
1539
+ *
1540
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/trusted_issuers` · permission `auth:write` · effect `write`
1541
+ *
1542
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1543
+ */
1544
+ create(request: CreateTrustedIssuerRequest): Promise<TrustedIssuer>;
1545
+ /**
1546
+ * Updates an trusted issuer.
1547
+ *
1548
+ * `PATCH /v1/{trusted_issuer.name=orgs/*\/projects/*\/envs/*\/trusted_issuers/*}` · permission `auth:write` · effect `write`
1549
+ *
1550
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1551
+ */
1552
+ update(request: UpdateTrustedIssuerRequest): Promise<TrustedIssuer>;
1553
+ /**
1554
+ * Deletes an trusted issuer.
1555
+ *
1556
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/trusted_issuers/*}` · permission `auth:write` · effect `destructive`
1557
+ *
1558
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1559
+ */
1560
+ delete(request: DeleteTrustedIssuerRequest): Promise<Record<string, never>>;
1561
+ }
1194
1562
  /** `invitations` of Sylphx Auth: Resource type `auth.sylphx.com/Invitation`. */
1195
1563
  export declare class InvitationsCollection {
1196
1564
  private readonly client;