@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.
- package/README.md +111 -4
- package/dist/access.d.ts +112 -17
- package/dist/access.js +101 -7
- package/dist/access.js.map +1 -1
- package/dist/ai.d.ts +1 -2
- package/dist/ai.js +2 -3
- package/dist/ai.js.map +1 -1
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +2 -2
- package/dist/assets.d.ts +447 -0
- package/dist/assets.js +266 -0
- package/dist/assets.js.map +1 -0
- package/dist/auth/client.d.ts +239 -0
- package/dist/auth/client.js +337 -0
- package/dist/auth/client.js.map +1 -0
- package/dist/auth/verify.d.ts +38 -3
- package/dist/auth/verify.js +58 -8
- package/dist/auth/verify.js.map +1 -1
- package/dist/auth.d.ts +455 -7
- package/dist/auth.js +416 -5
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +13 -13
- package/dist/billing.js +5 -5
- package/dist/broker.d.ts +5 -4
- package/dist/broker.js +3 -3
- package/dist/broker.js.map +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +3 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config/flags.d.ts +140 -0
- package/dist/config/flags.js +462 -0
- package/dist/config/flags.js.map +1 -0
- package/dist/config.d.ts +380 -15
- package/dist/config.js +283 -5
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +6 -6
- package/dist/connections.js +3 -3
- package/dist/data.d.ts +560 -7
- package/dist/data.js +510 -4
- package/dist/data.js.map +1 -1
- package/dist/entitlement.d.ts +10 -8
- package/dist/entitlement.js +3 -4
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.d.ts +69 -0
- package/dist/events/realtime.js +107 -0
- package/dist/events/realtime.js.map +1 -0
- package/dist/events/webhooks.d.ts +40 -0
- package/dist/events/webhooks.js +110 -0
- package/dist/events/webhooks.js.map +1 -0
- package/dist/events.d.ts +369 -22
- package/dist/events.js +311 -8
- package/dist/events.js.map +1 -1
- package/dist/hosting.d.ts +13 -14
- package/dist/hosting.js +3 -4
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +837 -0
- package/dist/ids.js +287 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +2 -2
- package/dist/keys.js +3 -3
- package/dist/localization.d.ts +663 -0
- package/dist/localization.js +491 -0
- package/dist/localization.js.map +1 -0
- package/dist/methods.js +1719 -124
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +1406 -0
- package/dist/money.js +1090 -0
- package/dist/money.js.map +1 -0
- package/dist/network.d.ts +4 -5
- package/dist/network.js +3 -4
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +321 -124
- package/dist/notify.js +223 -73
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +184 -7
- package/dist/observability.js +156 -8
- package/dist/observability.js.map +1 -1
- package/dist/release.d.ts +14 -15
- package/dist/release.js +3 -4
- package/dist/release.js.map +1 -1
- package/dist/runners.d.ts +2 -3
- package/dist/runners.js +3 -4
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +7 -3
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +64 -20
- package/dist/sandboxes.js +9 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.d.ts +6 -6
- package/dist/secrets.js +4 -4
- package/dist/workflows.d.ts +850 -12
- package/dist/workflows.js +672 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
// @generated by sylphx-gen 0.1.0 from contracts@
|
|
1
|
+
// @generated by sylphx-gen 0.1.0 from contracts@c8aac0afaf7591d0d5efa1ba6a8540d723d41a97ce7ad5d68601380ef3ab4783. Do not edit.
|
|
2
2
|
// `sylphx.auth.v1`.
|
|
3
3
|
import * as runtime from './runtime.js';
|
|
4
4
|
import './common.js';
|
|
5
5
|
runtime.registerSchemas({
|
|
6
|
+
'sylphx.auth.v1.AcceptInvitationRequest': [
|
|
7
|
+
['endUser', 'end_user'],
|
|
8
|
+
],
|
|
6
9
|
'sylphx.auth.v1.AuthConfig': [
|
|
7
10
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
8
11
|
['spec', 'spec', 'sylphx.auth.v1.AuthConfigSpec'],
|
|
@@ -18,6 +21,7 @@ runtime.registerSchemas({
|
|
|
18
21
|
['portal', 'portal', 'sylphx.auth.v1.PortalConfig'],
|
|
19
22
|
['mailSendingDomain', 'mail_sending_domain'],
|
|
20
23
|
['userSyncDatabase', 'user_sync_database'],
|
|
24
|
+
['socialProviders', 'social_providers', 'sylphx.auth.v1.SocialProvider'],
|
|
21
25
|
],
|
|
22
26
|
'sylphx.auth.v1.AuthConfigStatus': [
|
|
23
27
|
['observedGeneration', 'observed_generation'],
|
|
@@ -30,11 +34,21 @@ runtime.registerSchemas({
|
|
|
30
34
|
['customerOrganization', 'customer_organization', 'sylphx.auth.v1.CustomerOrganization'],
|
|
31
35
|
['validateOnly', 'validate_only'],
|
|
32
36
|
],
|
|
37
|
+
'sylphx.auth.v1.CreateEmailDomainRequest': [
|
|
38
|
+
['emailDomainId', 'email_domain_id'],
|
|
39
|
+
['emailDomain', 'email_domain', 'sylphx.auth.v1.EmailDomain'],
|
|
40
|
+
['validateOnly', 'validate_only'],
|
|
41
|
+
],
|
|
33
42
|
'sylphx.auth.v1.CreateEndUserRequest': [
|
|
34
43
|
['endUserId', 'end_user_id'],
|
|
35
44
|
['endUser', 'end_user', 'sylphx.auth.v1.EndUser'],
|
|
36
45
|
['validateOnly', 'validate_only'],
|
|
37
46
|
],
|
|
47
|
+
'sylphx.auth.v1.CreateInvitationRequest': [
|
|
48
|
+
['invitationId', 'invitation_id'],
|
|
49
|
+
['invitation', 'invitation', 'sylphx.auth.v1.Invitation'],
|
|
50
|
+
['validateOnly', 'validate_only'],
|
|
51
|
+
],
|
|
38
52
|
'sylphx.auth.v1.CreateMembershipRequest': [
|
|
39
53
|
['membershipId', 'membership_id'],
|
|
40
54
|
['membership', 'membership', 'sylphx.auth.v1.Membership'],
|
|
@@ -45,6 +59,11 @@ runtime.registerSchemas({
|
|
|
45
59
|
['oauthClient', 'oauth_client', 'sylphx.auth.v1.OauthClient'],
|
|
46
60
|
['validateOnly', 'validate_only'],
|
|
47
61
|
],
|
|
62
|
+
'sylphx.auth.v1.CreateOrganizationRoleRequest': [
|
|
63
|
+
['organizationRoleId', 'organization_role_id'],
|
|
64
|
+
['organizationRole', 'organization_role', 'sylphx.auth.v1.OrganizationRole'],
|
|
65
|
+
['validateOnly', 'validate_only'],
|
|
66
|
+
],
|
|
48
67
|
'sylphx.auth.v1.CustomerOrganization': [
|
|
49
68
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
50
69
|
['verifiedDomains', 'verified_domains'],
|
|
@@ -55,6 +74,10 @@ runtime.registerSchemas({
|
|
|
55
74
|
['allowMissing', 'allow_missing'],
|
|
56
75
|
['validateOnly', 'validate_only'],
|
|
57
76
|
],
|
|
77
|
+
'sylphx.auth.v1.DeleteEmailDomainRequest': [
|
|
78
|
+
['allowMissing', 'allow_missing'],
|
|
79
|
+
['validateOnly', 'validate_only'],
|
|
80
|
+
],
|
|
58
81
|
'sylphx.auth.v1.DeleteEndUserRequest': [
|
|
59
82
|
['allowMissing', 'allow_missing'],
|
|
60
83
|
['validateOnly', 'validate_only'],
|
|
@@ -67,19 +90,40 @@ runtime.registerSchemas({
|
|
|
67
90
|
['allowMissing', 'allow_missing'],
|
|
68
91
|
['validateOnly', 'validate_only'],
|
|
69
92
|
],
|
|
93
|
+
'sylphx.auth.v1.DeleteOrganizationRoleRequest': [
|
|
94
|
+
['allowMissing', 'allow_missing'],
|
|
95
|
+
['validateOnly', 'validate_only'],
|
|
96
|
+
],
|
|
97
|
+
'sylphx.auth.v1.EmailDomain': [
|
|
98
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
99
|
+
['verificationRecord', 'verification_record'],
|
|
100
|
+
['verificationValue', 'verification_value'],
|
|
101
|
+
['verifyTime', 'verify_time'],
|
|
102
|
+
],
|
|
70
103
|
'sylphx.auth.v1.EndUser': [
|
|
71
104
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
72
105
|
['emailVerifyTime', 'email_verify_time'],
|
|
73
106
|
['publicMetadata', 'public_metadata', undefined, 'json'],
|
|
74
107
|
['privateMetadata', 'private_metadata', undefined, 'json'],
|
|
75
108
|
['lastLoginTime', 'last_login_time'],
|
|
109
|
+
['unsafeMetadata', 'unsafe_metadata', undefined, 'json'],
|
|
110
|
+
['lockExpireTime', 'lock_expire_time'],
|
|
76
111
|
],
|
|
77
112
|
'sylphx.auth.v1.GetAuthConfigRequest': [],
|
|
78
113
|
'sylphx.auth.v1.GetCustomerOrganizationRequest': [],
|
|
114
|
+
'sylphx.auth.v1.GetEmailDomainRequest': [],
|
|
79
115
|
'sylphx.auth.v1.GetEndUserRequest': [],
|
|
116
|
+
'sylphx.auth.v1.GetInvitationRequest': [],
|
|
80
117
|
'sylphx.auth.v1.GetMembershipRequest': [],
|
|
81
118
|
'sylphx.auth.v1.GetOauthClientRequest': [],
|
|
119
|
+
'sylphx.auth.v1.GetOrganizationRoleRequest': [],
|
|
82
120
|
'sylphx.auth.v1.GetSessionRequest': [],
|
|
121
|
+
'sylphx.auth.v1.Invitation': [
|
|
122
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
123
|
+
['expireTime', 'expire_time'],
|
|
124
|
+
['acceptTime', 'accept_time'],
|
|
125
|
+
['endUser', 'end_user'],
|
|
126
|
+
],
|
|
83
127
|
'sylphx.auth.v1.ListCustomerOrganizationsRequest': [
|
|
84
128
|
['pageSize', 'page_size'],
|
|
85
129
|
['pageToken', 'page_token'],
|
|
@@ -89,6 +133,15 @@ runtime.registerSchemas({
|
|
|
89
133
|
['customerOrganizations', 'customer_organizations', 'sylphx.auth.v1.CustomerOrganization'],
|
|
90
134
|
['nextPageToken', 'next_page_token'],
|
|
91
135
|
],
|
|
136
|
+
'sylphx.auth.v1.ListEmailDomainsRequest': [
|
|
137
|
+
['pageSize', 'page_size'],
|
|
138
|
+
['pageToken', 'page_token'],
|
|
139
|
+
['orderBy', 'order_by'],
|
|
140
|
+
],
|
|
141
|
+
'sylphx.auth.v1.ListEmailDomainsResponse': [
|
|
142
|
+
['emailDomains', 'email_domains', 'sylphx.auth.v1.EmailDomain'],
|
|
143
|
+
['nextPageToken', 'next_page_token'],
|
|
144
|
+
],
|
|
92
145
|
'sylphx.auth.v1.ListEndUsersRequest': [
|
|
93
146
|
['pageSize', 'page_size'],
|
|
94
147
|
['pageToken', 'page_token'],
|
|
@@ -98,6 +151,15 @@ runtime.registerSchemas({
|
|
|
98
151
|
['endUsers', 'end_users', 'sylphx.auth.v1.EndUser'],
|
|
99
152
|
['nextPageToken', 'next_page_token'],
|
|
100
153
|
],
|
|
154
|
+
'sylphx.auth.v1.ListInvitationsRequest': [
|
|
155
|
+
['pageSize', 'page_size'],
|
|
156
|
+
['pageToken', 'page_token'],
|
|
157
|
+
['orderBy', 'order_by'],
|
|
158
|
+
],
|
|
159
|
+
'sylphx.auth.v1.ListInvitationsResponse': [
|
|
160
|
+
['invitations', 'invitations', 'sylphx.auth.v1.Invitation'],
|
|
161
|
+
['nextPageToken', 'next_page_token'],
|
|
162
|
+
],
|
|
101
163
|
'sylphx.auth.v1.ListMembershipsRequest': [
|
|
102
164
|
['pageSize', 'page_size'],
|
|
103
165
|
['pageToken', 'page_token'],
|
|
@@ -116,6 +178,15 @@ runtime.registerSchemas({
|
|
|
116
178
|
['oauthClients', 'oauth_clients', 'sylphx.auth.v1.OauthClient'],
|
|
117
179
|
['nextPageToken', 'next_page_token'],
|
|
118
180
|
],
|
|
181
|
+
'sylphx.auth.v1.ListOrganizationRolesRequest': [
|
|
182
|
+
['pageSize', 'page_size'],
|
|
183
|
+
['pageToken', 'page_token'],
|
|
184
|
+
['orderBy', 'order_by'],
|
|
185
|
+
],
|
|
186
|
+
'sylphx.auth.v1.ListOrganizationRolesResponse': [
|
|
187
|
+
['organizationRoles', 'organization_roles', 'sylphx.auth.v1.OrganizationRole'],
|
|
188
|
+
['nextPageToken', 'next_page_token'],
|
|
189
|
+
],
|
|
119
190
|
'sylphx.auth.v1.ListSessionsRequest': [
|
|
120
191
|
['pageSize', 'page_size'],
|
|
121
192
|
['pageToken', 'page_token'],
|
|
@@ -151,6 +222,10 @@ runtime.registerSchemas({
|
|
|
151
222
|
['clientSecret', 'client_secret'],
|
|
152
223
|
['clientSecretLast4', 'client_secret_last4'],
|
|
153
224
|
],
|
|
225
|
+
'sylphx.auth.v1.OrganizationRole': [
|
|
226
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
227
|
+
['autoAssign', 'auto_assign'],
|
|
228
|
+
],
|
|
154
229
|
'sylphx.auth.v1.PasskeyPolicy': [
|
|
155
230
|
['deviceBound', 'device_bound'],
|
|
156
231
|
['aaguidAllowlist', 'aaguid_allowlist'],
|
|
@@ -167,6 +242,7 @@ runtime.registerSchemas({
|
|
|
167
242
|
'sylphx.auth.v1.RevokeEndUserSessionsResponse': [
|
|
168
243
|
['revokedCount', 'revoked_count'],
|
|
169
244
|
],
|
|
245
|
+
'sylphx.auth.v1.RevokeInvitationRequest': [],
|
|
170
246
|
'sylphx.auth.v1.RevokeSessionRequest': [],
|
|
171
247
|
'sylphx.auth.v1.RollOauthClientSecretRequest': [
|
|
172
248
|
['gracePeriod', 'grace_period'],
|
|
@@ -189,7 +265,9 @@ runtime.registerSchemas({
|
|
|
189
265
|
['absoluteTimeout', 'absolute_timeout'],
|
|
190
266
|
['fingerprintBinding', 'fingerprint_binding'],
|
|
191
267
|
],
|
|
268
|
+
'sylphx.auth.v1.SocialProvider': [],
|
|
192
269
|
'sylphx.auth.v1.SuspendEndUserRequest': [],
|
|
270
|
+
'sylphx.auth.v1.UnlockEndUserRequest': [],
|
|
193
271
|
'sylphx.auth.v1.UpdateAuthConfigRequest': [
|
|
194
272
|
['authConfig', 'auth_config', 'sylphx.auth.v1.AuthConfig'],
|
|
195
273
|
['updateMask', 'update_mask'],
|
|
@@ -218,13 +296,19 @@ runtime.registerSchemas({
|
|
|
218
296
|
['allowMissing', 'allow_missing'],
|
|
219
297
|
['validateOnly', 'validate_only'],
|
|
220
298
|
],
|
|
299
|
+
'sylphx.auth.v1.UpdateOrganizationRoleRequest': [
|
|
300
|
+
['organizationRole', 'organization_role', 'sylphx.auth.v1.OrganizationRole'],
|
|
301
|
+
['updateMask', 'update_mask'],
|
|
302
|
+
['validateOnly', 'validate_only'],
|
|
303
|
+
],
|
|
304
|
+
'sylphx.auth.v1.VerifyEmailDomainRequest': [],
|
|
221
305
|
});
|
|
222
306
|
/**
|
|
223
307
|
* AuthService is Sylphx Auth's management surface: sign-in for a customer's
|
|
224
|
-
* own users, their sessions, customer organizations, and OAuth clients
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
308
|
+
* own users, their sessions, customer organizations, and OAuth clients.
|
|
309
|
+
* Sylphx orgs, members, principals, and keys are Sylphx Access, never Auth.
|
|
310
|
+
* End-user ceremonies (sign-in, recovery, OAuth authorize and token) are
|
|
311
|
+
* protocol endpoints, not Resource methods.
|
|
228
312
|
*
|
|
229
313
|
* Namespace of Sylphx Auth on `Sylphx`.
|
|
230
314
|
*/
|
|
@@ -239,6 +323,12 @@ export class AuthApi {
|
|
|
239
323
|
customerOrganizations;
|
|
240
324
|
/** The `memberships` collection. */
|
|
241
325
|
memberships;
|
|
326
|
+
/** The `organization_roles` collection. */
|
|
327
|
+
organizationRoles;
|
|
328
|
+
/** The `invitations` collection. */
|
|
329
|
+
invitations;
|
|
330
|
+
/** The `email_domains` collection. */
|
|
331
|
+
emailDomains;
|
|
242
332
|
/** The `oauth_clients` collection. */
|
|
243
333
|
oauthClients;
|
|
244
334
|
constructor(client) {
|
|
@@ -247,6 +337,9 @@ export class AuthApi {
|
|
|
247
337
|
this.sessions = new SessionsCollection(client);
|
|
248
338
|
this.customerOrganizations = new CustomerOrganizationsCollection(client);
|
|
249
339
|
this.memberships = new MembershipsCollection(client);
|
|
340
|
+
this.organizationRoles = new OrganizationRolesCollection(client);
|
|
341
|
+
this.invitations = new InvitationsCollection(client);
|
|
342
|
+
this.emailDomains = new EmailDomainsCollection(client);
|
|
250
343
|
this.oauthClients = new OauthClientsCollection(client);
|
|
251
344
|
}
|
|
252
345
|
}
|
|
@@ -423,6 +516,23 @@ export class EndUsersCollection {
|
|
|
423
516
|
mutation: true,
|
|
424
517
|
});
|
|
425
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Clears an end user's sign-in lock (repeated failed sign-ins) now.
|
|
521
|
+
*
|
|
522
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:unlock` · permission `auth:write` · effect `write`
|
|
523
|
+
*
|
|
524
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
525
|
+
*/
|
|
526
|
+
async unlock(request) {
|
|
527
|
+
return this.client.call({
|
|
528
|
+
method: 'POST',
|
|
529
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/end_users/*', 'name')}:unlock`,
|
|
530
|
+
body: runtime.omit(request, ['name']),
|
|
531
|
+
bodyType: 'sylphx.auth.v1.UnlockEndUserRequest',
|
|
532
|
+
responseType: 'sylphx.auth.v1.EndUser',
|
|
533
|
+
mutation: true,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
426
536
|
/**
|
|
427
537
|
* Revokes every session of an end user.
|
|
428
538
|
*
|
|
@@ -707,6 +817,307 @@ export class MembershipsCollection {
|
|
|
707
817
|
});
|
|
708
818
|
}
|
|
709
819
|
}
|
|
820
|
+
/** `organization_roles` of Sylphx Auth: Resource type `auth.sylphx.com/OrganizationRole`. */
|
|
821
|
+
export class OrganizationRolesCollection {
|
|
822
|
+
client;
|
|
823
|
+
constructor(client) {
|
|
824
|
+
this.client = client;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Gets an organization role.
|
|
828
|
+
*
|
|
829
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:read` · effect `read`
|
|
830
|
+
*
|
|
831
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
832
|
+
*/
|
|
833
|
+
async get(request) {
|
|
834
|
+
return this.client.call({
|
|
835
|
+
method: 'GET',
|
|
836
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/organization_roles/*', 'name')}`,
|
|
837
|
+
responseType: 'sylphx.auth.v1.OrganizationRole',
|
|
838
|
+
mutation: false,
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Lists organization roles.
|
|
843
|
+
*
|
|
844
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/organization_roles` · permission `auth:read` · effect `read`
|
|
845
|
+
*
|
|
846
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
847
|
+
*/
|
|
848
|
+
async list(request) {
|
|
849
|
+
return this.client.call({
|
|
850
|
+
method: 'GET',
|
|
851
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/organization_roles`,
|
|
852
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
853
|
+
responseType: 'sylphx.auth.v1.ListOrganizationRolesResponse',
|
|
854
|
+
mutation: false,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/** Every item of every page of `list`. */
|
|
858
|
+
async *listAll(request) {
|
|
859
|
+
let next = request;
|
|
860
|
+
for (;;) {
|
|
861
|
+
const page = await this.list(next);
|
|
862
|
+
yield* page.organizationRoles ?? [];
|
|
863
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
864
|
+
return;
|
|
865
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Creates an organization role.
|
|
870
|
+
*
|
|
871
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/organization_roles` · permission `auth:write` · effect `write`
|
|
872
|
+
*
|
|
873
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
874
|
+
*/
|
|
875
|
+
async create(request) {
|
|
876
|
+
return this.client.call({
|
|
877
|
+
method: 'POST',
|
|
878
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/organization_roles`,
|
|
879
|
+
query: { organization_role_id: request.organizationRoleId, validate_only: request.validateOnly },
|
|
880
|
+
body: request.organizationRole ?? {},
|
|
881
|
+
bodyType: 'sylphx.auth.v1.OrganizationRole',
|
|
882
|
+
responseType: 'sylphx.auth.v1.OrganizationRole',
|
|
883
|
+
mutation: true,
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Updates an organization role.
|
|
888
|
+
*
|
|
889
|
+
* `PATCH /v1/{organization_role.name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:write` · effect `write`
|
|
890
|
+
*
|
|
891
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
892
|
+
*/
|
|
893
|
+
async update(request) {
|
|
894
|
+
return this.client.call({
|
|
895
|
+
method: 'PATCH',
|
|
896
|
+
path: `/v1/${runtime.pathParam(request.organizationRole?.name, 'orgs/*/projects/*/envs/*/organization_roles/*', 'organization_role.name')}`,
|
|
897
|
+
query: { update_mask: request.updateMask, validate_only: request.validateOnly },
|
|
898
|
+
body: request.organizationRole ?? {},
|
|
899
|
+
bodyType: 'sylphx.auth.v1.OrganizationRole',
|
|
900
|
+
responseType: 'sylphx.auth.v1.OrganizationRole',
|
|
901
|
+
mutation: true,
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Deletes an organization role.
|
|
906
|
+
*
|
|
907
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/organization_roles/*}` · permission `auth:write` · effect `destructive`
|
|
908
|
+
*
|
|
909
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
910
|
+
*/
|
|
911
|
+
async delete(request) {
|
|
912
|
+
return this.client.call({
|
|
913
|
+
method: 'DELETE',
|
|
914
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/organization_roles/*', 'name')}`,
|
|
915
|
+
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
916
|
+
mutation: true,
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
/** `invitations` of Sylphx Auth: Resource type `auth.sylphx.com/Invitation`. */
|
|
921
|
+
export class InvitationsCollection {
|
|
922
|
+
client;
|
|
923
|
+
constructor(client) {
|
|
924
|
+
this.client = client;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Gets an invitation.
|
|
928
|
+
*
|
|
929
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}` · permission `auth:read` · effect `read`
|
|
930
|
+
*
|
|
931
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
932
|
+
*/
|
|
933
|
+
async get(request) {
|
|
934
|
+
return this.client.call({
|
|
935
|
+
method: 'GET',
|
|
936
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/invitations/*', 'name')}`,
|
|
937
|
+
responseType: 'sylphx.auth.v1.Invitation',
|
|
938
|
+
mutation: false,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Lists invitations.
|
|
943
|
+
*
|
|
944
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/invitations` · permission `auth:read` · effect `read`
|
|
945
|
+
*
|
|
946
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
947
|
+
*/
|
|
948
|
+
async list(request) {
|
|
949
|
+
return this.client.call({
|
|
950
|
+
method: 'GET',
|
|
951
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/customer_organizations/*', 'parent')}/invitations`,
|
|
952
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
953
|
+
responseType: 'sylphx.auth.v1.ListInvitationsResponse',
|
|
954
|
+
mutation: false,
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
/** Every item of every page of `list`. */
|
|
958
|
+
async *listAll(request) {
|
|
959
|
+
let next = request;
|
|
960
|
+
for (;;) {
|
|
961
|
+
const page = await this.list(next);
|
|
962
|
+
yield* page.invitations ?? [];
|
|
963
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
964
|
+
return;
|
|
965
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Creates an invitation.
|
|
970
|
+
*
|
|
971
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/invitations` · permission `auth:write` · effect `write`
|
|
972
|
+
*
|
|
973
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
974
|
+
*/
|
|
975
|
+
async create(request) {
|
|
976
|
+
return this.client.call({
|
|
977
|
+
method: 'POST',
|
|
978
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/customer_organizations/*', 'parent')}/invitations`,
|
|
979
|
+
query: { invitation_id: request.invitationId, validate_only: request.validateOnly },
|
|
980
|
+
body: request.invitation ?? {},
|
|
981
|
+
bodyType: 'sylphx.auth.v1.Invitation',
|
|
982
|
+
responseType: 'sylphx.auth.v1.Invitation',
|
|
983
|
+
mutation: true,
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Revokes a pending invitation.
|
|
988
|
+
*
|
|
989
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}:revoke` · permission `auth:write` · effect `destructive`
|
|
990
|
+
*
|
|
991
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
992
|
+
*/
|
|
993
|
+
async revoke(request) {
|
|
994
|
+
return this.client.call({
|
|
995
|
+
method: 'POST',
|
|
996
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/invitations/*', 'name')}:revoke`,
|
|
997
|
+
body: runtime.omit(request, ['name']),
|
|
998
|
+
bodyType: 'sylphx.auth.v1.RevokeInvitationRequest',
|
|
999
|
+
responseType: 'sylphx.auth.v1.Invitation',
|
|
1000
|
+
mutation: true,
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* Accepts a pending invitation for an end user whose verified email is the
|
|
1005
|
+
* invited address, and creates the membership.
|
|
1006
|
+
*
|
|
1007
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/invitations/*}:accept` · permission `auth:write` · effect `write`
|
|
1008
|
+
*
|
|
1009
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1010
|
+
*/
|
|
1011
|
+
async accept(request) {
|
|
1012
|
+
return this.client.call({
|
|
1013
|
+
method: 'POST',
|
|
1014
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/invitations/*', 'name')}:accept`,
|
|
1015
|
+
body: runtime.omit(request, ['name']),
|
|
1016
|
+
bodyType: 'sylphx.auth.v1.AcceptInvitationRequest',
|
|
1017
|
+
responseType: 'sylphx.auth.v1.Invitation',
|
|
1018
|
+
mutation: true,
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
/** `email_domains` of Sylphx Auth: Resource type `auth.sylphx.com/EmailDomain`. */
|
|
1023
|
+
export class EmailDomainsCollection {
|
|
1024
|
+
client;
|
|
1025
|
+
constructor(client) {
|
|
1026
|
+
this.client = client;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Gets an email domain.
|
|
1030
|
+
*
|
|
1031
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}` · permission `auth:read` · effect `read`
|
|
1032
|
+
*
|
|
1033
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1034
|
+
*/
|
|
1035
|
+
async get(request) {
|
|
1036
|
+
return this.client.call({
|
|
1037
|
+
method: 'GET',
|
|
1038
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/email_domains/*', 'name')}`,
|
|
1039
|
+
responseType: 'sylphx.auth.v1.EmailDomain',
|
|
1040
|
+
mutation: false,
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Lists email domains.
|
|
1045
|
+
*
|
|
1046
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/email_domains` · permission `auth:read` · effect `read`
|
|
1047
|
+
*
|
|
1048
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1049
|
+
*/
|
|
1050
|
+
async list(request) {
|
|
1051
|
+
return this.client.call({
|
|
1052
|
+
method: 'GET',
|
|
1053
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/customer_organizations/*', 'parent')}/email_domains`,
|
|
1054
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
1055
|
+
responseType: 'sylphx.auth.v1.ListEmailDomainsResponse',
|
|
1056
|
+
mutation: false,
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
/** Every item of every page of `list`. */
|
|
1060
|
+
async *listAll(request) {
|
|
1061
|
+
let next = request;
|
|
1062
|
+
for (;;) {
|
|
1063
|
+
const page = await this.list(next);
|
|
1064
|
+
yield* page.emailDomains ?? [];
|
|
1065
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
1066
|
+
return;
|
|
1067
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Creates an email domain; the answer names the TXT record to publish.
|
|
1072
|
+
*
|
|
1073
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/email_domains` · permission `auth:write` · effect `write`
|
|
1074
|
+
*
|
|
1075
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1076
|
+
*/
|
|
1077
|
+
async create(request) {
|
|
1078
|
+
return this.client.call({
|
|
1079
|
+
method: 'POST',
|
|
1080
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/customer_organizations/*', 'parent')}/email_domains`,
|
|
1081
|
+
query: { email_domain_id: request.emailDomainId, validate_only: request.validateOnly },
|
|
1082
|
+
body: request.emailDomain ?? {},
|
|
1083
|
+
bodyType: 'sylphx.auth.v1.EmailDomain',
|
|
1084
|
+
responseType: 'sylphx.auth.v1.EmailDomain',
|
|
1085
|
+
mutation: true,
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Deletes an email domain.
|
|
1090
|
+
*
|
|
1091
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}` · permission `auth:write` · effect `destructive`
|
|
1092
|
+
*
|
|
1093
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1094
|
+
*/
|
|
1095
|
+
async delete(request) {
|
|
1096
|
+
return this.client.call({
|
|
1097
|
+
method: 'DELETE',
|
|
1098
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/email_domains/*', 'name')}`,
|
|
1099
|
+
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
1100
|
+
mutation: true,
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Looks up the domain's TXT record now; found, the domain is verified.
|
|
1105
|
+
*
|
|
1106
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/email_domains/*}:verify` · permission `auth:write` · effect `write`
|
|
1107
|
+
*
|
|
1108
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1109
|
+
*/
|
|
1110
|
+
async verify(request) {
|
|
1111
|
+
return this.client.call({
|
|
1112
|
+
method: 'POST',
|
|
1113
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/customer_organizations/*/email_domains/*', 'name')}:verify`,
|
|
1114
|
+
body: runtime.omit(request, ['name']),
|
|
1115
|
+
bodyType: 'sylphx.auth.v1.VerifyEmailDomainRequest',
|
|
1116
|
+
responseType: 'sylphx.auth.v1.EmailDomain',
|
|
1117
|
+
mutation: true,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
710
1121
|
/** `oauth_clients` of Sylphx Auth: Resource type `auth.sylphx.com/OauthClient`. */
|
|
711
1122
|
export class OauthClientsCollection {
|
|
712
1123
|
client;
|