@sylphx/sdk 0.28.0 → 0.30.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/LICENSE +21 -0
- package/README.md +30 -118
- package/dist/access.d.ts +659 -0
- package/dist/access.js +638 -0
- package/dist/access.js.map +1 -0
- package/dist/ai.d.ts +176 -0
- package/dist/ai.js +112 -0
- package/dist/ai.js.map +1 -0
- package/dist/artifacts.d.ts +165 -0
- package/dist/artifacts.js +129 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/auth.d.ts +896 -0
- package/dist/auth.js +828 -0
- package/dist/auth.js.map +1 -0
- package/dist/billing.d.ts +758 -0
- package/dist/billing.js +553 -0
- package/dist/billing.js.map +1 -0
- package/dist/broker.d.ts +226 -0
- package/dist/broker.js +187 -0
- package/dist/broker.js.map +1 -0
- package/dist/build.d.ts +313 -0
- package/dist/build.js +271 -0
- package/dist/build.js.map +1 -0
- package/dist/common.d.ts +162 -0
- package/dist/common.js +41 -0
- package/dist/common.js.map +1 -0
- package/dist/config.d.ts +198 -0
- package/dist/config.js +168 -0
- package/dist/config.js.map +1 -0
- package/dist/connections.d.ts +354 -0
- package/dist/connections.js +313 -0
- package/dist/connections.js.map +1 -0
- package/dist/data.d.ts +858 -0
- package/dist/data.js +814 -0
- package/dist/data.js.map +1 -0
- package/dist/entitlement.d.ts +172 -0
- package/dist/entitlement.js +116 -0
- package/dist/entitlement.js.map +1 -0
- package/dist/events.d.ts +1324 -0
- package/dist/events.js +1227 -0
- package/dist/events.js.map +1 -0
- package/dist/hosting.d.ts +709 -0
- package/dist/hosting.js +611 -0
- package/dist/hosting.js.map +1 -0
- package/dist/index.d.ts +79 -33656
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/keys.d.ts +438 -0
- package/dist/keys.js +406 -0
- package/dist/keys.js.map +1 -0
- package/dist/methods.d.ts +2 -0
- package/dist/methods.js +3995 -0
- package/dist/methods.js.map +1 -0
- package/dist/network.d.ts +733 -0
- package/dist/network.js +711 -0
- package/dist/network.js.map +1 -0
- package/dist/notify.d.ts +1359 -0
- package/dist/notify.js +1282 -0
- package/dist/notify.js.map +1 -0
- package/dist/observability.d.ts +509 -0
- package/dist/observability.js +437 -0
- package/dist/observability.js.map +1 -0
- package/dist/release.d.ts +303 -0
- package/dist/release.js +214 -0
- package/dist/release.js.map +1 -0
- package/dist/runners.d.ts +262 -0
- package/dist/runners.js +238 -0
- package/dist/runners.js.map +1 -0
- package/dist/runtime.d.ts +88 -0
- package/dist/runtime.js +226 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sandboxes.d.ts +1705 -0
- package/dist/sandboxes.js +1226 -0
- package/dist/sandboxes.js.map +1 -0
- package/dist/secrets.d.ts +508 -0
- package/dist/secrets.js +474 -0
- package/dist/secrets.js.map +1 -0
- package/dist/workflows.d.ts +678 -0
- package/dist/workflows.js +595 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +33 -112
- package/dist/connect.d.ts +0 -2838
- package/dist/connect.mjs +0 -220
- package/dist/connect.mjs.map +0 -1
- package/dist/health/index.d.ts +0 -1394
- package/dist/health/index.mjs +0 -1394
- package/dist/health/index.mjs.map +0 -1
- package/dist/index.mjs +0 -38429
- package/dist/index.mjs.map +0 -1
- package/dist/nextjs/index.d.ts +0 -724
- package/dist/nextjs/index.mjs +0 -3332
- package/dist/nextjs/index.mjs.map +0 -1
- package/dist/react/index.d.ts +0 -13066
- package/dist/react/index.mjs +0 -35329
- package/dist/react/index.mjs.map +0 -1
- package/dist/server/index.d.ts +0 -2000
- package/dist/server/index.mjs +0 -3446
- package/dist/server/index.mjs.map +0 -1
- package/dist/web-analytics.d.ts +0 -90
- package/dist/web-analytics.mjs +0 -225
- package/dist/web-analytics.mjs.map +0 -1
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
import * as runtime from './runtime.js';
|
|
2
|
+
import './common.js';
|
|
3
|
+
import type * as common from './common.js';
|
|
4
|
+
/**
|
|
5
|
+
* An Auth Config is the app scope of Sylphx Auth in one environment: which
|
|
6
|
+
* sign-in methods the customer's app offers, and its MFA, passkey, lockout,
|
|
7
|
+
* session, CAPTCHA, and Account Portal policy. Every Auth fact is scoped to
|
|
8
|
+
* one `orgs/{o}/projects/{p}/envs/{e}`; an environment has exactly one Auth
|
|
9
|
+
* Config, id `default`.
|
|
10
|
+
*/
|
|
11
|
+
export interface AuthConfig {
|
|
12
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/auth_configs/{auth_config}`. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** `acf_<cell><ulid>`; never reused. */
|
|
15
|
+
readonly uid?: string;
|
|
16
|
+
/** Resource metadata. */
|
|
17
|
+
meta?: common.ResourceMeta;
|
|
18
|
+
/** Desired state. */
|
|
19
|
+
spec?: AuthConfigSpec;
|
|
20
|
+
/** Observed state. */
|
|
21
|
+
readonly status?: AuthConfigStatus;
|
|
22
|
+
}
|
|
23
|
+
/** AuthConfigSpec is the caller-writable state of an AuthConfig. */
|
|
24
|
+
export interface AuthConfigSpec {
|
|
25
|
+
/** Sign-in methods offered to end users. */
|
|
26
|
+
authMethods?: AuthMethod[];
|
|
27
|
+
/** Require a second factor for every end user. */
|
|
28
|
+
mfaRequired?: boolean;
|
|
29
|
+
/** Passkey policy; unset enforces nothing. */
|
|
30
|
+
passkeyPolicy?: PasskeyPolicy;
|
|
31
|
+
/** Progressive lockout by user and IP. */
|
|
32
|
+
lockoutEnabled?: boolean;
|
|
33
|
+
/** Session limits. */
|
|
34
|
+
sessionPolicy?: SessionPolicy;
|
|
35
|
+
/**
|
|
36
|
+
* A Kernel Secrets Secret holding the CAPTCHA verifier secret; unset
|
|
37
|
+
* disables CAPTCHA.
|
|
38
|
+
*/
|
|
39
|
+
captchaSecret?: string;
|
|
40
|
+
/** Account Portal origin and branding. */
|
|
41
|
+
portal?: PortalConfig;
|
|
42
|
+
/**
|
|
43
|
+
* The Notify Sending Domain Auth mail is sent from; unset uses the Sylphx
|
|
44
|
+
* default.
|
|
45
|
+
*/
|
|
46
|
+
mailSendingDomain?: string;
|
|
47
|
+
/** A Sylphx Data database end users are synced into; unset disables sync. */
|
|
48
|
+
userSyncDatabase?: string;
|
|
49
|
+
}
|
|
50
|
+
/** AuthConfigStatus is the observed state of an AuthConfig. */
|
|
51
|
+
export interface AuthConfigStatus {
|
|
52
|
+
/** The generation this status was computed from. */
|
|
53
|
+
readonly observedGeneration?: string;
|
|
54
|
+
/** Ready, Reconciling, Stalled. */
|
|
55
|
+
readonly conditions?: common.Condition[];
|
|
56
|
+
/** The Account Portal origin in use. */
|
|
57
|
+
readonly portalOrigin?: string;
|
|
58
|
+
/** The OAuth issuer URI; tokens verify from its JWKS. */
|
|
59
|
+
readonly issuerUri?: string;
|
|
60
|
+
}
|
|
61
|
+
/** The request of CreateCustomerOrganization. */
|
|
62
|
+
export interface CreateCustomerOrganizationRequest {
|
|
63
|
+
/** The parent to create in. */
|
|
64
|
+
parent: string;
|
|
65
|
+
/**
|
|
66
|
+
* The customer organization id, the final name segment; the server assigns
|
|
67
|
+
* one when empty.
|
|
68
|
+
*/
|
|
69
|
+
customerOrganizationId?: string;
|
|
70
|
+
/** The customer organization to create; only caller-writable fields are read. */
|
|
71
|
+
customerOrganization: CustomerOrganization;
|
|
72
|
+
/** Validate and return the result without writing anything. */
|
|
73
|
+
validateOnly?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/** The request of CreateEndUser. */
|
|
76
|
+
export interface CreateEndUserRequest {
|
|
77
|
+
/** The parent to create in. */
|
|
78
|
+
parent: string;
|
|
79
|
+
/**
|
|
80
|
+
* The end user id, the final name segment; the server assigns one when
|
|
81
|
+
* empty.
|
|
82
|
+
*/
|
|
83
|
+
endUserId?: string;
|
|
84
|
+
/** The end user to create; only caller-writable fields are read. */
|
|
85
|
+
endUser: EndUser;
|
|
86
|
+
/** Validate and return the result without writing anything. */
|
|
87
|
+
validateOnly?: boolean;
|
|
88
|
+
}
|
|
89
|
+
/** The request of CreateMembership. */
|
|
90
|
+
export interface CreateMembershipRequest {
|
|
91
|
+
/** The parent to create in. */
|
|
92
|
+
parent: string;
|
|
93
|
+
/**
|
|
94
|
+
* The membership id, the final name segment; the server assigns one when
|
|
95
|
+
* empty.
|
|
96
|
+
*/
|
|
97
|
+
membershipId?: string;
|
|
98
|
+
/** The membership to create; only caller-writable fields are read. */
|
|
99
|
+
membership: Membership;
|
|
100
|
+
/** Validate and return the result without writing anything. */
|
|
101
|
+
validateOnly?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/** The request of CreateOauthClient. */
|
|
104
|
+
export interface CreateOauthClientRequest {
|
|
105
|
+
/** The parent to create in. */
|
|
106
|
+
parent: string;
|
|
107
|
+
/**
|
|
108
|
+
* The OAuth client id, the final name segment; the server assigns one when
|
|
109
|
+
* empty.
|
|
110
|
+
*/
|
|
111
|
+
oauthClientId?: string;
|
|
112
|
+
/** The OAuth client to create; only caller-writable fields are read. */
|
|
113
|
+
oauthClient: OauthClient;
|
|
114
|
+
/** Validate and return the result without writing anything. */
|
|
115
|
+
validateOnly?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A Customer Organization is a B2B tenant inside a customer's app. It is never
|
|
119
|
+
* a Sylphx org and never a Resource name segment of anything but its own
|
|
120
|
+
* memberships.
|
|
121
|
+
*/
|
|
122
|
+
export interface CustomerOrganization {
|
|
123
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}`. */
|
|
124
|
+
name?: string;
|
|
125
|
+
/** `cor_<cell><ulid>`; never reused. */
|
|
126
|
+
readonly uid?: string;
|
|
127
|
+
/** Resource metadata. */
|
|
128
|
+
meta?: common.ResourceMeta;
|
|
129
|
+
/** Unique within the environment. */
|
|
130
|
+
slug?: string;
|
|
131
|
+
/** Verified email domains; end users with a matching verified email may join. */
|
|
132
|
+
readonly verifiedDomains?: string[];
|
|
133
|
+
/** App data. */
|
|
134
|
+
publicMetadata?: Record<string, unknown>;
|
|
135
|
+
/** Live memberships. */
|
|
136
|
+
readonly memberCount?: number;
|
|
137
|
+
}
|
|
138
|
+
/** The request of DeleteCustomerOrganization. */
|
|
139
|
+
export interface DeleteCustomerOrganizationRequest {
|
|
140
|
+
/** The name of the customer organization to delete. */
|
|
141
|
+
name: string;
|
|
142
|
+
/** Delete only if the current etag matches. */
|
|
143
|
+
etag?: string;
|
|
144
|
+
/** Succeed when the customer organization does not exist. */
|
|
145
|
+
allowMissing?: boolean;
|
|
146
|
+
/** Validate without deleting anything. */
|
|
147
|
+
validateOnly?: boolean;
|
|
148
|
+
/** Also close every membership. */
|
|
149
|
+
force?: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** The request of DeleteEndUser. */
|
|
152
|
+
export interface DeleteEndUserRequest {
|
|
153
|
+
/** The name of the end user to delete. */
|
|
154
|
+
name: string;
|
|
155
|
+
/** Delete only if the current etag matches. */
|
|
156
|
+
etag?: string;
|
|
157
|
+
/** Succeed when the end user does not exist. */
|
|
158
|
+
allowMissing?: boolean;
|
|
159
|
+
/** Validate without deleting anything. */
|
|
160
|
+
validateOnly?: boolean;
|
|
161
|
+
/** Also delete the end user's memberships; sessions are always revoked. */
|
|
162
|
+
force?: boolean;
|
|
163
|
+
}
|
|
164
|
+
/** The request of DeleteMembership. */
|
|
165
|
+
export interface DeleteMembershipRequest {
|
|
166
|
+
/** The name of the membership to delete. */
|
|
167
|
+
name: string;
|
|
168
|
+
/** Delete only if the current etag matches. */
|
|
169
|
+
etag?: string;
|
|
170
|
+
/** Succeed when the membership does not exist. */
|
|
171
|
+
allowMissing?: boolean;
|
|
172
|
+
/** Validate without deleting anything. */
|
|
173
|
+
validateOnly?: boolean;
|
|
174
|
+
}
|
|
175
|
+
/** The request of DeleteOauthClient. */
|
|
176
|
+
export interface DeleteOauthClientRequest {
|
|
177
|
+
/** The name of the OAuth client to delete. */
|
|
178
|
+
name: string;
|
|
179
|
+
/** Delete only if the current etag matches. */
|
|
180
|
+
etag?: string;
|
|
181
|
+
/** Succeed when the OAuth client does not exist. */
|
|
182
|
+
allowMissing?: boolean;
|
|
183
|
+
/** Validate without deleting anything. */
|
|
184
|
+
validateOnly?: boolean;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* An End User is a user of a customer's app, never a Sylphx member or
|
|
188
|
+
* principal. `(scope, email)` is unique among live end users. Delete is
|
|
189
|
+
* revocation: it revokes every session and refuses new ones.
|
|
190
|
+
*/
|
|
191
|
+
export interface EndUser {
|
|
192
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/end_users/{end_user}`. */
|
|
193
|
+
name?: string;
|
|
194
|
+
/** `usr_<cell><ulid>`; never reused. */
|
|
195
|
+
readonly uid?: string;
|
|
196
|
+
/** Resource metadata. */
|
|
197
|
+
meta?: common.ResourceMeta;
|
|
198
|
+
/** The primary email address. */
|
|
199
|
+
email?: string;
|
|
200
|
+
/** When `email` was verified. */
|
|
201
|
+
readonly emailVerifyTime?: string;
|
|
202
|
+
/** An initial password; write-only, checked against breached passwords. */
|
|
203
|
+
password?: string;
|
|
204
|
+
/** The lifecycle state. */
|
|
205
|
+
readonly state?: EndUserState;
|
|
206
|
+
/** Enrolled factors. */
|
|
207
|
+
readonly factors?: AuthMethod[];
|
|
208
|
+
/** App data readable by the end user's own tokens. */
|
|
209
|
+
publicMetadata?: Record<string, unknown>;
|
|
210
|
+
/** App data readable only with an Access key. */
|
|
211
|
+
privateMetadata?: Record<string, unknown>;
|
|
212
|
+
/** The last successful sign-in. */
|
|
213
|
+
readonly lastLoginTime?: string;
|
|
214
|
+
}
|
|
215
|
+
/** The request of GetAuthConfig. */
|
|
216
|
+
export interface GetAuthConfigRequest {
|
|
217
|
+
/** The name of the auth config to get. */
|
|
218
|
+
name: string;
|
|
219
|
+
}
|
|
220
|
+
/** The request of GetCustomerOrganization. */
|
|
221
|
+
export interface GetCustomerOrganizationRequest {
|
|
222
|
+
/** The name of the customer organization to get. */
|
|
223
|
+
name: string;
|
|
224
|
+
}
|
|
225
|
+
/** The request of GetEndUser. */
|
|
226
|
+
export interface GetEndUserRequest {
|
|
227
|
+
/** The name of the end user to get. */
|
|
228
|
+
name: string;
|
|
229
|
+
}
|
|
230
|
+
/** The request of GetMembership. */
|
|
231
|
+
export interface GetMembershipRequest {
|
|
232
|
+
/** The name of the membership to get. */
|
|
233
|
+
name: string;
|
|
234
|
+
}
|
|
235
|
+
/** The request of GetOauthClient. */
|
|
236
|
+
export interface GetOauthClientRequest {
|
|
237
|
+
/** The name of the OAuth client to get. */
|
|
238
|
+
name: string;
|
|
239
|
+
}
|
|
240
|
+
/** The request of GetSession. */
|
|
241
|
+
export interface GetSessionRequest {
|
|
242
|
+
/** The name of the session to get. */
|
|
243
|
+
name: string;
|
|
244
|
+
}
|
|
245
|
+
/** The request of ListCustomerOrganizations. */
|
|
246
|
+
export interface ListCustomerOrganizationsRequest {
|
|
247
|
+
/** The parent to list in. */
|
|
248
|
+
parent: string;
|
|
249
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
250
|
+
pageSize?: number;
|
|
251
|
+
/** `next_page_token` of the previous page. */
|
|
252
|
+
pageToken?: string;
|
|
253
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
254
|
+
filter?: string;
|
|
255
|
+
/** AIP-132 ordering over filterable fields. */
|
|
256
|
+
orderBy?: string;
|
|
257
|
+
}
|
|
258
|
+
/** The response of ListCustomerOrganizations. */
|
|
259
|
+
export interface ListCustomerOrganizationsResponse {
|
|
260
|
+
/** The page. */
|
|
261
|
+
customerOrganizations?: CustomerOrganization[];
|
|
262
|
+
/** The token of the next page; empty on the last page. */
|
|
263
|
+
nextPageToken?: string;
|
|
264
|
+
}
|
|
265
|
+
/** The request of ListEndUsers. */
|
|
266
|
+
export interface ListEndUsersRequest {
|
|
267
|
+
/** The parent to list in. */
|
|
268
|
+
parent: string;
|
|
269
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
270
|
+
pageSize?: number;
|
|
271
|
+
/** `next_page_token` of the previous page. */
|
|
272
|
+
pageToken?: string;
|
|
273
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
274
|
+
filter?: string;
|
|
275
|
+
/** AIP-132 ordering over filterable fields. */
|
|
276
|
+
orderBy?: string;
|
|
277
|
+
}
|
|
278
|
+
/** The response of ListEndUsers. */
|
|
279
|
+
export interface ListEndUsersResponse {
|
|
280
|
+
/** The page. */
|
|
281
|
+
endUsers?: EndUser[];
|
|
282
|
+
/** The token of the next page; empty on the last page. */
|
|
283
|
+
nextPageToken?: string;
|
|
284
|
+
}
|
|
285
|
+
/** The request of ListMemberships. */
|
|
286
|
+
export interface ListMembershipsRequest {
|
|
287
|
+
/** The parent to list in. */
|
|
288
|
+
parent: string;
|
|
289
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
290
|
+
pageSize?: number;
|
|
291
|
+
/** `next_page_token` of the previous page. */
|
|
292
|
+
pageToken?: string;
|
|
293
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
294
|
+
filter?: string;
|
|
295
|
+
/** AIP-132 ordering over filterable fields. */
|
|
296
|
+
orderBy?: string;
|
|
297
|
+
}
|
|
298
|
+
/** The response of ListMemberships. */
|
|
299
|
+
export interface ListMembershipsResponse {
|
|
300
|
+
/** The page. */
|
|
301
|
+
memberships?: Membership[];
|
|
302
|
+
/** The token of the next page; empty on the last page. */
|
|
303
|
+
nextPageToken?: string;
|
|
304
|
+
}
|
|
305
|
+
/** The request of ListOauthClients. */
|
|
306
|
+
export interface ListOauthClientsRequest {
|
|
307
|
+
/** The parent to list in. */
|
|
308
|
+
parent: string;
|
|
309
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
310
|
+
pageSize?: number;
|
|
311
|
+
/** `next_page_token` of the previous page. */
|
|
312
|
+
pageToken?: string;
|
|
313
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
314
|
+
filter?: string;
|
|
315
|
+
/** AIP-132 ordering over filterable fields. */
|
|
316
|
+
orderBy?: string;
|
|
317
|
+
}
|
|
318
|
+
/** The response of ListOauthClients. */
|
|
319
|
+
export interface ListOauthClientsResponse {
|
|
320
|
+
/** The page. */
|
|
321
|
+
oauthClients?: OauthClient[];
|
|
322
|
+
/** The token of the next page; empty on the last page. */
|
|
323
|
+
nextPageToken?: string;
|
|
324
|
+
}
|
|
325
|
+
/** The request of ListSessions. */
|
|
326
|
+
export interface ListSessionsRequest {
|
|
327
|
+
/** The parent to list in. */
|
|
328
|
+
parent: string;
|
|
329
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
330
|
+
pageSize?: number;
|
|
331
|
+
/** `next_page_token` of the previous page. */
|
|
332
|
+
pageToken?: string;
|
|
333
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
334
|
+
filter?: string;
|
|
335
|
+
/** AIP-132 ordering over filterable fields. */
|
|
336
|
+
orderBy?: string;
|
|
337
|
+
}
|
|
338
|
+
/** The response of ListSessions. */
|
|
339
|
+
export interface ListSessionsResponse {
|
|
340
|
+
/** The page. */
|
|
341
|
+
sessions?: Session[];
|
|
342
|
+
/** The token of the next page; empty on the last page. */
|
|
343
|
+
nextPageToken?: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A Membership places an end user in a customer organization with app-defined
|
|
347
|
+
* roles. Roles are app data, not Access policy. Changes append to history with
|
|
348
|
+
* a current head per (user, organization); Delete closes the membership.
|
|
349
|
+
*/
|
|
350
|
+
export interface Membership {
|
|
351
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/customer_organizations/{customer_organization}/memberships/{membership}`. */
|
|
352
|
+
name?: string;
|
|
353
|
+
/** `mbr_<cell><ulid>`; never reused. */
|
|
354
|
+
readonly uid?: string;
|
|
355
|
+
/** Resource metadata. */
|
|
356
|
+
meta?: common.ResourceMeta;
|
|
357
|
+
/** The member. */
|
|
358
|
+
endUser?: string;
|
|
359
|
+
/** App-defined roles, for example `admin`. */
|
|
360
|
+
roles?: string[];
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* 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
|
|
365
|
+
* offline from the published JWKS.
|
|
366
|
+
*/
|
|
367
|
+
export interface OauthClient {
|
|
368
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/oauth_clients/{oauth_client}`. */
|
|
369
|
+
name?: string;
|
|
370
|
+
/** `ocl_<cell><ulid>`; never reused. */
|
|
371
|
+
readonly uid?: string;
|
|
372
|
+
/** Resource metadata. */
|
|
373
|
+
meta?: common.ResourceMeta;
|
|
374
|
+
/** Desired state. */
|
|
375
|
+
spec?: OauthClientSpec;
|
|
376
|
+
/** Observed state. */
|
|
377
|
+
readonly status?: OauthClientStatus;
|
|
378
|
+
}
|
|
379
|
+
/** OauthClientSpec is the caller-writable state of an OauthClient. */
|
|
380
|
+
export interface OauthClientSpec {
|
|
381
|
+
/** Confidential or public. */
|
|
382
|
+
clientType?: OauthClientType;
|
|
383
|
+
/** How the client authenticates at the token endpoint. */
|
|
384
|
+
tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
|
|
385
|
+
/** Exact redirect URIs. */
|
|
386
|
+
redirectUris?: string[];
|
|
387
|
+
/** Allowed grants. */
|
|
388
|
+
grantTypes?: GrantType[];
|
|
389
|
+
/** Scopes the client may request. */
|
|
390
|
+
scopes?: string[];
|
|
391
|
+
/** The client's JWKS URI, for `private_key_jwt`. */
|
|
392
|
+
jwksUri?: string;
|
|
393
|
+
/** Require DPoP-bound tokens (RFC 9449). */
|
|
394
|
+
dpopRequired?: boolean;
|
|
395
|
+
/** Access token lifetime; default 1h. */
|
|
396
|
+
accessTokenTtl?: string;
|
|
397
|
+
/** Refresh token lifetime; default 30d. */
|
|
398
|
+
refreshTokenTtl?: string;
|
|
399
|
+
}
|
|
400
|
+
/** OauthClientStatus is the observed state of an OauthClient. */
|
|
401
|
+
export interface OauthClientStatus {
|
|
402
|
+
/** The generation this status was computed from. */
|
|
403
|
+
readonly observedGeneration?: string;
|
|
404
|
+
/** Ready, Reconciling, Stalled. */
|
|
405
|
+
readonly conditions?: common.Condition[];
|
|
406
|
+
/** The OAuth `client_id`. */
|
|
407
|
+
readonly clientId?: string;
|
|
408
|
+
/**
|
|
409
|
+
* The client secret, for `client_secret_basic`; set only in the responses of
|
|
410
|
+
* Create and RollSecret.
|
|
411
|
+
*/
|
|
412
|
+
readonly clientSecret?: string;
|
|
413
|
+
/** The last four characters of the client secret. */
|
|
414
|
+
readonly clientSecretLast4?: string;
|
|
415
|
+
}
|
|
416
|
+
/** Passkey requirements. */
|
|
417
|
+
export interface PasskeyPolicy {
|
|
418
|
+
/** Require a passkey for every end user. */
|
|
419
|
+
required?: boolean;
|
|
420
|
+
/** Refuse synced (multi-device) passkeys. */
|
|
421
|
+
deviceBound?: boolean;
|
|
422
|
+
/** Allowed authenticator AAGUIDs; empty allows any. */
|
|
423
|
+
aaguidAllowlist?: string[];
|
|
424
|
+
}
|
|
425
|
+
/** Account Portal origin and branding. */
|
|
426
|
+
export interface PortalConfig {
|
|
427
|
+
/**
|
|
428
|
+
* A verified Network Domain serving the portal; unset uses the default
|
|
429
|
+
* origin.
|
|
430
|
+
*/
|
|
431
|
+
customDomain?: string;
|
|
432
|
+
/** The product name shown to end users. */
|
|
433
|
+
productTitle?: string;
|
|
434
|
+
/** An HTTPS logo URI. */
|
|
435
|
+
logoUri?: string;
|
|
436
|
+
/** The primary color, `#rrggbb`. */
|
|
437
|
+
primaryColor?: string;
|
|
438
|
+
/** Show Sylphx branding. */
|
|
439
|
+
sylphxBranding?: boolean;
|
|
440
|
+
}
|
|
441
|
+
/** The request of ReactivateEndUser. */
|
|
442
|
+
export interface ReactivateEndUserRequest {
|
|
443
|
+
/** The name of the end user. */
|
|
444
|
+
name: string;
|
|
445
|
+
/** Act only if the current etag matches. */
|
|
446
|
+
etag?: string;
|
|
447
|
+
}
|
|
448
|
+
/** The request of RevokeEndUserSessions. */
|
|
449
|
+
export interface RevokeEndUserSessionsRequest {
|
|
450
|
+
/** The name of the end user. */
|
|
451
|
+
name: string;
|
|
452
|
+
}
|
|
453
|
+
/** The response of RevokeEndUserSessions. */
|
|
454
|
+
export interface RevokeEndUserSessionsResponse {
|
|
455
|
+
/** Sessions revoked. */
|
|
456
|
+
revokedCount?: number;
|
|
457
|
+
}
|
|
458
|
+
/** The request of RevokeSession. */
|
|
459
|
+
export interface RevokeSessionRequest {
|
|
460
|
+
/** The name of the session. */
|
|
461
|
+
name: string;
|
|
462
|
+
}
|
|
463
|
+
/** The request of RollOauthClientSecret. */
|
|
464
|
+
export interface RollOauthClientSecretRequest {
|
|
465
|
+
/** The name of the OAuth client. */
|
|
466
|
+
name: string;
|
|
467
|
+
/** How long the old secret keeps verifying; default 24h. */
|
|
468
|
+
gracePeriod?: string;
|
|
469
|
+
/** Act only if the current etag matches. */
|
|
470
|
+
etag?: string;
|
|
471
|
+
/** Validate without writing anything. */
|
|
472
|
+
validateOnly?: boolean;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* A Session is an opaque Auth session of an end user, issued by a sign-in
|
|
476
|
+
* ceremony. Sessions are revoked, never deleted; revocation is a CAEP signal
|
|
477
|
+
* delivered through Sylphx Events.
|
|
478
|
+
*/
|
|
479
|
+
export interface Session {
|
|
480
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/end_users/{end_user}/sessions/{session}`. */
|
|
481
|
+
name?: string;
|
|
482
|
+
/** `ses_<cell><ulid>`; never reused. */
|
|
483
|
+
readonly uid?: string;
|
|
484
|
+
/** Resource metadata. */
|
|
485
|
+
meta?: common.ResourceMeta;
|
|
486
|
+
/** The session state. */
|
|
487
|
+
readonly state?: SessionState;
|
|
488
|
+
/** How the session was established. */
|
|
489
|
+
readonly assurance?: AuthMethod;
|
|
490
|
+
/** Whether a second factor was presented. */
|
|
491
|
+
readonly mfa?: boolean;
|
|
492
|
+
/** The active customer organization. */
|
|
493
|
+
readonly activeOrganization?: string;
|
|
494
|
+
/** The OAuth client the session signed in to, if any. */
|
|
495
|
+
readonly oauthClient?: string;
|
|
496
|
+
/** The client IP at sign-in. */
|
|
497
|
+
readonly ipAddress?: string;
|
|
498
|
+
/** The user agent at sign-in. */
|
|
499
|
+
readonly userAgent?: string;
|
|
500
|
+
/** The last authenticated use. */
|
|
501
|
+
readonly lastActiveTime?: string;
|
|
502
|
+
/** When the session expires. */
|
|
503
|
+
readonly expireTime?: string;
|
|
504
|
+
/** When the session was revoked. */
|
|
505
|
+
readonly revokeTime?: string;
|
|
506
|
+
/** Why the session was revoked. */
|
|
507
|
+
readonly revokeReason?: SessionRevokeReason;
|
|
508
|
+
}
|
|
509
|
+
/** Session limits. */
|
|
510
|
+
export interface SessionPolicy {
|
|
511
|
+
/**
|
|
512
|
+
* Concurrent sessions per end user; excess sessions are revoked, oldest
|
|
513
|
+
* first. 0 is unlimited.
|
|
514
|
+
*/
|
|
515
|
+
maxConcurrentSessions?: number;
|
|
516
|
+
/** Revoke after this long without use; default 30d. */
|
|
517
|
+
idleTimeout?: string;
|
|
518
|
+
/** Revoke this long after sign-in regardless of use; default 90d. */
|
|
519
|
+
absoluteTimeout?: string;
|
|
520
|
+
/** Bind sessions to network and agent; a mismatch demands step-up. */
|
|
521
|
+
fingerprintBinding?: boolean;
|
|
522
|
+
}
|
|
523
|
+
/** The request of SuspendEndUser. */
|
|
524
|
+
export interface SuspendEndUserRequest {
|
|
525
|
+
/** The name of the end user. */
|
|
526
|
+
name: string;
|
|
527
|
+
/** Why; shown to administrators only. */
|
|
528
|
+
reason?: string;
|
|
529
|
+
/** Act only if the current etag matches. */
|
|
530
|
+
etag?: string;
|
|
531
|
+
}
|
|
532
|
+
/** The request of UpdateAuthConfig. */
|
|
533
|
+
export interface UpdateAuthConfigRequest {
|
|
534
|
+
/** The auth config to update; `name` identifies it. */
|
|
535
|
+
authConfig: AuthConfig;
|
|
536
|
+
/** The fields to write; unset writes every populated field. */
|
|
537
|
+
updateMask?: string;
|
|
538
|
+
/** Create the auth config when it does not exist (declarative upsert). */
|
|
539
|
+
allowMissing?: boolean;
|
|
540
|
+
/** Validate and return the result without writing anything. */
|
|
541
|
+
validateOnly?: boolean;
|
|
542
|
+
}
|
|
543
|
+
/** The request of UpdateCustomerOrganization. */
|
|
544
|
+
export interface UpdateCustomerOrganizationRequest {
|
|
545
|
+
/** The customer organization to update; `name` identifies it. */
|
|
546
|
+
customerOrganization: CustomerOrganization;
|
|
547
|
+
/** The fields to write; unset writes every populated field. */
|
|
548
|
+
updateMask?: string;
|
|
549
|
+
/**
|
|
550
|
+
* Create the customer organization when it does not exist (declarative
|
|
551
|
+
* upsert).
|
|
552
|
+
*/
|
|
553
|
+
allowMissing?: boolean;
|
|
554
|
+
/** Validate and return the result without writing anything. */
|
|
555
|
+
validateOnly?: boolean;
|
|
556
|
+
}
|
|
557
|
+
/** The request of UpdateEndUser. */
|
|
558
|
+
export interface UpdateEndUserRequest {
|
|
559
|
+
/** The end user to update; `name` identifies it. */
|
|
560
|
+
endUser: EndUser;
|
|
561
|
+
/** The fields to write; unset writes every populated field. */
|
|
562
|
+
updateMask?: string;
|
|
563
|
+
/** Validate and return the result without writing anything. */
|
|
564
|
+
validateOnly?: boolean;
|
|
565
|
+
}
|
|
566
|
+
/** The request of UpdateMembership. */
|
|
567
|
+
export interface UpdateMembershipRequest {
|
|
568
|
+
/** The membership to update; `name` identifies it. */
|
|
569
|
+
membership: Membership;
|
|
570
|
+
/** The fields to write; unset writes every populated field. */
|
|
571
|
+
updateMask?: string;
|
|
572
|
+
/** Validate and return the result without writing anything. */
|
|
573
|
+
validateOnly?: boolean;
|
|
574
|
+
}
|
|
575
|
+
/** The request of UpdateOauthClient. */
|
|
576
|
+
export interface UpdateOauthClientRequest {
|
|
577
|
+
/** The OAuth client to update; `name` identifies it. */
|
|
578
|
+
oauthClient: OauthClient;
|
|
579
|
+
/** The fields to write; unset writes every populated field. */
|
|
580
|
+
updateMask?: string;
|
|
581
|
+
/** Create the OAuth client when it does not exist (declarative upsert). */
|
|
582
|
+
allowMissing?: boolean;
|
|
583
|
+
/** Validate and return the result without writing anything. */
|
|
584
|
+
validateOnly?: boolean;
|
|
585
|
+
}
|
|
586
|
+
/** A sign-in method or factor. */
|
|
587
|
+
export type AuthMethod = 'password' | 'magic_link' | 'email_otp' | 'passkey' | 'totp' | 'oidc' | 'saml' | (string & {});
|
|
588
|
+
/** The lifecycle state of an end user. */
|
|
589
|
+
export type EndUserState = 'active' | 'suspended' | (string & {});
|
|
590
|
+
/** An OAuth grant. */
|
|
591
|
+
export type GrantType = 'authorization_code' | 'refresh_token' | 'device_code' | 'client_credentials' | (string & {});
|
|
592
|
+
/** RFC 6749 client type. */
|
|
593
|
+
export type OauthClientType = 'confidential' | 'public' | (string & {});
|
|
594
|
+
/** Why a session was revoked. */
|
|
595
|
+
export type SessionRevokeReason = 'sign_out' | 'user' | 'admin' | 'session_limit' | 'recovery' | 'suspended' | 'deleted' | 'fingerprint' | (string & {});
|
|
596
|
+
/** The state of a session. */
|
|
597
|
+
export type SessionState = 'active' | 'revoked' | 'expired' | (string & {});
|
|
598
|
+
/** How a client authenticates at the token endpoint. */
|
|
599
|
+
export type TokenEndpointAuthMethod = 'none' | 'client_secret_basic' | 'private_key_jwt' | (string & {});
|
|
600
|
+
/**
|
|
601
|
+
* 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.
|
|
606
|
+
*
|
|
607
|
+
* Namespace of Sylphx Auth on `Sylphx`.
|
|
608
|
+
*/
|
|
609
|
+
export declare class AuthApi {
|
|
610
|
+
/** The `auth_configs` collection. */
|
|
611
|
+
readonly authConfigs: AuthConfigsCollection;
|
|
612
|
+
/** The `end_users` collection. */
|
|
613
|
+
readonly endUsers: EndUsersCollection;
|
|
614
|
+
/** The `sessions` collection. */
|
|
615
|
+
readonly sessions: SessionsCollection;
|
|
616
|
+
/** The `customer_organizations` collection. */
|
|
617
|
+
readonly customerOrganizations: CustomerOrganizationsCollection;
|
|
618
|
+
/** The `memberships` collection. */
|
|
619
|
+
readonly memberships: MembershipsCollection;
|
|
620
|
+
/** The `oauth_clients` collection. */
|
|
621
|
+
readonly oauthClients: OauthClientsCollection;
|
|
622
|
+
constructor(client: runtime.Client);
|
|
623
|
+
}
|
|
624
|
+
/** `auth_configs` of Sylphx Auth: Resource type `auth.sylphx.com/AuthConfig`. */
|
|
625
|
+
export declare class AuthConfigsCollection {
|
|
626
|
+
private readonly client;
|
|
627
|
+
constructor(client: runtime.Client);
|
|
628
|
+
/**
|
|
629
|
+
* Gets an auth config.
|
|
630
|
+
*
|
|
631
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/auth_configs/*}` · permission `auth:read` · effect `read`
|
|
632
|
+
*
|
|
633
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
634
|
+
*/
|
|
635
|
+
get(request: GetAuthConfigRequest): Promise<AuthConfig>;
|
|
636
|
+
/**
|
|
637
|
+
* Updates an auth config.
|
|
638
|
+
*
|
|
639
|
+
* `PATCH /v1/{auth_config.name=orgs/*\/projects/*\/envs/*\/auth_configs/*}` · permission `auth:write` · effect `write`
|
|
640
|
+
*
|
|
641
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
642
|
+
*/
|
|
643
|
+
update(request: UpdateAuthConfigRequest): Promise<AuthConfig>;
|
|
644
|
+
}
|
|
645
|
+
/** `end_users` of Sylphx Auth: Resource type `auth.sylphx.com/EndUser`. */
|
|
646
|
+
export declare class EndUsersCollection {
|
|
647
|
+
private readonly client;
|
|
648
|
+
constructor(client: runtime.Client);
|
|
649
|
+
/**
|
|
650
|
+
* Gets an end user.
|
|
651
|
+
*
|
|
652
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}` · permission `auth:read` · effect `read`
|
|
653
|
+
*
|
|
654
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
655
|
+
*/
|
|
656
|
+
get(request: GetEndUserRequest): Promise<EndUser>;
|
|
657
|
+
/**
|
|
658
|
+
* Lists end users.
|
|
659
|
+
*
|
|
660
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/end_users` · permission `auth:read` · effect `read`
|
|
661
|
+
*
|
|
662
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
663
|
+
*/
|
|
664
|
+
list(request: ListEndUsersRequest): Promise<ListEndUsersResponse>;
|
|
665
|
+
/** Every item of every page of `list`. */
|
|
666
|
+
listAll(request: ListEndUsersRequest): AsyncGenerator<EndUser>;
|
|
667
|
+
/**
|
|
668
|
+
* Creates an end user.
|
|
669
|
+
*
|
|
670
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/end_users` · permission `auth:write` · effect `write`
|
|
671
|
+
*
|
|
672
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
673
|
+
*/
|
|
674
|
+
create(request: CreateEndUserRequest): Promise<EndUser>;
|
|
675
|
+
/**
|
|
676
|
+
* Updates an end user.
|
|
677
|
+
*
|
|
678
|
+
* `PATCH /v1/{end_user.name=orgs/*\/projects/*\/envs/*\/end_users/*}` · permission `auth:write` · effect `write`
|
|
679
|
+
*
|
|
680
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
681
|
+
*/
|
|
682
|
+
update(request: UpdateEndUserRequest): Promise<EndUser>;
|
|
683
|
+
/**
|
|
684
|
+
* Deletes an end user.
|
|
685
|
+
*
|
|
686
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}` · permission `auth:write` · effect `destructive`
|
|
687
|
+
*
|
|
688
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
689
|
+
*/
|
|
690
|
+
delete(request: DeleteEndUserRequest): Promise<Record<string, never>>;
|
|
691
|
+
/**
|
|
692
|
+
* Suspends an end user: sessions are revoked and sign-in is refused.
|
|
693
|
+
*
|
|
694
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:suspend` · permission `auth:write` · effect `destructive`
|
|
695
|
+
*
|
|
696
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
|
|
697
|
+
*/
|
|
698
|
+
suspend(request: SuspendEndUserRequest): Promise<EndUser>;
|
|
699
|
+
/**
|
|
700
|
+
* Reactivates a suspended end user.
|
|
701
|
+
*
|
|
702
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:reactivate` · permission `auth:write` · effect `write`
|
|
703
|
+
*
|
|
704
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
|
|
705
|
+
*/
|
|
706
|
+
reactivate(request: ReactivateEndUserRequest): Promise<EndUser>;
|
|
707
|
+
/**
|
|
708
|
+
* Revokes every session of an end user.
|
|
709
|
+
*
|
|
710
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*}:revokeSessions` · permission `auth:write` · effect `destructive`
|
|
711
|
+
*
|
|
712
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
713
|
+
*/
|
|
714
|
+
revokeSessions(request: RevokeEndUserSessionsRequest): Promise<RevokeEndUserSessionsResponse>;
|
|
715
|
+
}
|
|
716
|
+
/** `sessions` of Sylphx Auth: Resource type `auth.sylphx.com/Session`. */
|
|
717
|
+
export declare class SessionsCollection {
|
|
718
|
+
private readonly client;
|
|
719
|
+
constructor(client: runtime.Client);
|
|
720
|
+
/**
|
|
721
|
+
* Gets a session.
|
|
722
|
+
*
|
|
723
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/sessions/*}` · permission `auth:read` · effect `read`
|
|
724
|
+
*
|
|
725
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
726
|
+
*/
|
|
727
|
+
get(request: GetSessionRequest): Promise<Session>;
|
|
728
|
+
/**
|
|
729
|
+
* Lists sessions.
|
|
730
|
+
*
|
|
731
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/end_users/*}/sessions` · permission `auth:read` · effect `read`
|
|
732
|
+
*
|
|
733
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
734
|
+
*/
|
|
735
|
+
list(request: ListSessionsRequest): Promise<ListSessionsResponse>;
|
|
736
|
+
/** Every item of every page of `list`. */
|
|
737
|
+
listAll(request: ListSessionsRequest): AsyncGenerator<Session>;
|
|
738
|
+
/**
|
|
739
|
+
* Revokes a session.
|
|
740
|
+
*
|
|
741
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/end_users/*\/sessions/*}:revoke` · permission `auth:write` · effect `destructive`
|
|
742
|
+
*
|
|
743
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
744
|
+
*/
|
|
745
|
+
revoke(request: RevokeSessionRequest): Promise<Session>;
|
|
746
|
+
}
|
|
747
|
+
/** `customer_organizations` of Sylphx Auth: Resource type `auth.sylphx.com/CustomerOrganization`. */
|
|
748
|
+
export declare class CustomerOrganizationsCollection {
|
|
749
|
+
private readonly client;
|
|
750
|
+
constructor(client: runtime.Client);
|
|
751
|
+
/**
|
|
752
|
+
* Gets a customer organization.
|
|
753
|
+
*
|
|
754
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*}` · permission `auth:read` · effect `read`
|
|
755
|
+
*
|
|
756
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
757
|
+
*/
|
|
758
|
+
get(request: GetCustomerOrganizationRequest): Promise<CustomerOrganization>;
|
|
759
|
+
/**
|
|
760
|
+
* Lists customer organizations.
|
|
761
|
+
*
|
|
762
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/customer_organizations` · permission `auth:read` · effect `read`
|
|
763
|
+
*
|
|
764
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
765
|
+
*/
|
|
766
|
+
list(request: ListCustomerOrganizationsRequest): Promise<ListCustomerOrganizationsResponse>;
|
|
767
|
+
/** Every item of every page of `list`. */
|
|
768
|
+
listAll(request: ListCustomerOrganizationsRequest): AsyncGenerator<CustomerOrganization>;
|
|
769
|
+
/**
|
|
770
|
+
* Creates a customer organization.
|
|
771
|
+
*
|
|
772
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/customer_organizations` · permission `auth:write` · effect `write`
|
|
773
|
+
*
|
|
774
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
775
|
+
*/
|
|
776
|
+
create(request: CreateCustomerOrganizationRequest): Promise<CustomerOrganization>;
|
|
777
|
+
/**
|
|
778
|
+
* Updates a customer organization.
|
|
779
|
+
*
|
|
780
|
+
* `PATCH /v1/{customer_organization.name=orgs/*\/projects/*\/envs/*\/customer_organizations/*}` · permission `auth:write` · effect `write`
|
|
781
|
+
*
|
|
782
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
783
|
+
*/
|
|
784
|
+
update(request: UpdateCustomerOrganizationRequest): Promise<CustomerOrganization>;
|
|
785
|
+
/**
|
|
786
|
+
* Deletes a customer organization.
|
|
787
|
+
*
|
|
788
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*}` · permission `auth:write` · effect `destructive`
|
|
789
|
+
*
|
|
790
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
791
|
+
*/
|
|
792
|
+
delete(request: DeleteCustomerOrganizationRequest): Promise<Record<string, never>>;
|
|
793
|
+
}
|
|
794
|
+
/** `memberships` of Sylphx Auth: Resource type `auth.sylphx.com/Membership`. */
|
|
795
|
+
export declare class MembershipsCollection {
|
|
796
|
+
private readonly client;
|
|
797
|
+
constructor(client: runtime.Client);
|
|
798
|
+
/**
|
|
799
|
+
* Gets a membership.
|
|
800
|
+
*
|
|
801
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/memberships/*}` · permission `auth:read` · effect `read`
|
|
802
|
+
*
|
|
803
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
804
|
+
*/
|
|
805
|
+
get(request: GetMembershipRequest): Promise<Membership>;
|
|
806
|
+
/**
|
|
807
|
+
* Lists memberships.
|
|
808
|
+
*
|
|
809
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/memberships` · permission `auth:read` · effect `read`
|
|
810
|
+
*
|
|
811
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
812
|
+
*/
|
|
813
|
+
list(request: ListMembershipsRequest): Promise<ListMembershipsResponse>;
|
|
814
|
+
/** Every item of every page of `list`. */
|
|
815
|
+
listAll(request: ListMembershipsRequest): AsyncGenerator<Membership>;
|
|
816
|
+
/**
|
|
817
|
+
* Creates a membership.
|
|
818
|
+
*
|
|
819
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/customer_organizations/*}/memberships` · permission `auth:write` · effect `write`
|
|
820
|
+
*
|
|
821
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
822
|
+
*/
|
|
823
|
+
create(request: CreateMembershipRequest): Promise<Membership>;
|
|
824
|
+
/**
|
|
825
|
+
* Updates a membership.
|
|
826
|
+
*
|
|
827
|
+
* `PATCH /v1/{membership.name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/memberships/*}` · permission `auth:write` · effect `write`
|
|
828
|
+
*
|
|
829
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
830
|
+
*/
|
|
831
|
+
update(request: UpdateMembershipRequest): Promise<Membership>;
|
|
832
|
+
/**
|
|
833
|
+
* Deletes a membership.
|
|
834
|
+
*
|
|
835
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/customer_organizations/*\/memberships/*}` · permission `auth:write` · effect `destructive`
|
|
836
|
+
*
|
|
837
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
838
|
+
*/
|
|
839
|
+
delete(request: DeleteMembershipRequest): Promise<Record<string, never>>;
|
|
840
|
+
}
|
|
841
|
+
/** `oauth_clients` of Sylphx Auth: Resource type `auth.sylphx.com/OauthClient`. */
|
|
842
|
+
export declare class OauthClientsCollection {
|
|
843
|
+
private readonly client;
|
|
844
|
+
constructor(client: runtime.Client);
|
|
845
|
+
/**
|
|
846
|
+
* Gets an OAuth client.
|
|
847
|
+
*
|
|
848
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/oauth_clients/*}` · permission `auth:read` · effect `read`
|
|
849
|
+
*
|
|
850
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
851
|
+
*/
|
|
852
|
+
get(request: GetOauthClientRequest): Promise<OauthClient>;
|
|
853
|
+
/**
|
|
854
|
+
* Lists OAuth clients.
|
|
855
|
+
*
|
|
856
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/oauth_clients` · permission `auth:read` · effect `read`
|
|
857
|
+
*
|
|
858
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
859
|
+
*/
|
|
860
|
+
list(request: ListOauthClientsRequest): Promise<ListOauthClientsResponse>;
|
|
861
|
+
/** Every item of every page of `list`. */
|
|
862
|
+
listAll(request: ListOauthClientsRequest): AsyncGenerator<OauthClient>;
|
|
863
|
+
/**
|
|
864
|
+
* Creates an OAuth client.
|
|
865
|
+
*
|
|
866
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/oauth_clients` · permission `auth:write` · effect `write`
|
|
867
|
+
*
|
|
868
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
869
|
+
*/
|
|
870
|
+
create(request: CreateOauthClientRequest): Promise<OauthClient>;
|
|
871
|
+
/**
|
|
872
|
+
* Updates an OAuth client.
|
|
873
|
+
*
|
|
874
|
+
* `PATCH /v1/{oauth_client.name=orgs/*\/projects/*\/envs/*\/oauth_clients/*}` · permission `auth:write` · effect `write`
|
|
875
|
+
*
|
|
876
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
877
|
+
*/
|
|
878
|
+
update(request: UpdateOauthClientRequest): Promise<OauthClient>;
|
|
879
|
+
/**
|
|
880
|
+
* Deletes an OAuth client.
|
|
881
|
+
*
|
|
882
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/oauth_clients/*}` · permission `auth:write` · effect `destructive`
|
|
883
|
+
*
|
|
884
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
885
|
+
*/
|
|
886
|
+
delete(request: DeleteOauthClientRequest): Promise<Record<string, never>>;
|
|
887
|
+
/**
|
|
888
|
+
* Issues a new client secret, returned once; the old one verifies until
|
|
889
|
+
* `grace_period` ends.
|
|
890
|
+
*
|
|
891
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/oauth_clients/*}:rollSecret` · permission `auth:write` · effect `write`
|
|
892
|
+
*
|
|
893
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
|
|
894
|
+
*/
|
|
895
|
+
rollSecret(request: RollOauthClientSecretRequest): Promise<OauthClient>;
|
|
896
|
+
}
|