@cubist-labs/cubesigner-sdk 0.4.263 → 0.4.266
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/dist/package.json +12 -4
- package/dist/src/acl.js +1 -2
- package/dist/src/audit_log.d.ts +4 -4
- package/dist/src/audit_log.js +116 -119
- package/dist/src/bucket.d.ts +2 -2
- package/dist/src/bucket.d.ts.map +1 -1
- package/dist/src/bucket.js +2 -5
- package/dist/src/client/api_client.d.ts +16 -12
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +288 -292
- package/dist/src/client/base_client.d.ts +6 -6
- package/dist/src/client/base_client.d.ts.map +1 -1
- package/dist/src/client/base_client.js +27 -38
- package/dist/src/client/session.d.ts +2 -2
- package/dist/src/client/session.d.ts.map +1 -1
- package/dist/src/client/session.js +20 -35
- package/dist/src/client.d.ts +18 -18
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +14 -18
- package/dist/src/contact.d.ts +3 -3
- package/dist/src/contact.d.ts.map +1 -1
- package/dist/src/contact.js +4 -8
- package/dist/src/diffie_hellman.d.ts +1 -1
- package/dist/src/diffie_hellman.d.ts.map +1 -1
- package/dist/src/diffie_hellman.js +9 -12
- package/dist/src/env.js +13 -20
- package/dist/src/error.d.ts +2 -2
- package/dist/src/error.d.ts.map +1 -1
- package/dist/src/error.js +3 -8
- package/dist/src/events.js +2 -6
- package/dist/src/evm/index.d.ts +1 -1
- package/dist/src/evm/index.d.ts.map +1 -1
- package/dist/src/evm/index.js +5 -9
- package/dist/src/fetch.d.ts +1 -1
- package/dist/src/fetch.d.ts.map +1 -1
- package/dist/src/fetch.js +10 -15
- package/dist/src/index.d.ts +24 -24
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +25 -48
- package/dist/src/key.d.ts +10 -8
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +35 -34
- package/dist/src/mfa.d.ts +2 -2
- package/dist/src/mfa.d.ts.map +1 -1
- package/dist/src/mfa.js +14 -25
- package/dist/src/org.d.ts +197 -197
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +28 -32
- package/dist/src/paginator.js +3 -8
- package/dist/src/passkey.d.ts +1 -1
- package/dist/src/passkey.d.ts.map +1 -1
- package/dist/src/passkey.js +16 -23
- package/dist/src/policy.d.ts +1 -1
- package/dist/src/policy.d.ts.map +1 -1
- package/dist/src/policy.js +17 -27
- package/dist/src/response.d.ts +16 -7
- package/dist/src/response.d.ts.map +1 -1
- package/dist/src/response.js +42 -21
- package/dist/src/retry.d.ts.map +1 -1
- package/dist/src/retry.js +5 -11
- package/dist/src/role.d.ts +3 -3
- package/dist/src/role.d.ts.map +1 -1
- package/dist/src/role.js +13 -18
- package/dist/src/schema.d.ts +117 -40
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +2 -3
- package/dist/src/schema_types.d.ts +6 -3
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +11 -7
- package/dist/src/scopes.d.ts +1 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +19 -21
- package/dist/src/signer_session.d.ts +1 -1
- package/dist/src/signer_session.d.ts.map +1 -1
- package/dist/src/signer_session.js +2 -6
- package/dist/src/user_export.d.ts +1 -1
- package/dist/src/user_export.d.ts.map +1 -1
- package/dist/src/user_export.js +10 -18
- package/dist/src/util.js +9 -19
- package/package.json +12 -4
- package/src/audit_log.ts +1 -1
- package/src/bucket.ts +2 -2
- package/src/client/api_client.ts +25 -19
- package/src/client/base_client.ts +10 -10
- package/src/client/session.ts +4 -4
- package/src/client.ts +12 -6
- package/src/contact.ts +3 -3
- package/src/diffie_hellman.ts +3 -3
- package/src/env.ts +3 -3
- package/src/error.ts +2 -2
- package/src/evm/index.ts +1 -1
- package/src/fetch.ts +3 -3
- package/src/index.ts +29 -24
- package/src/key.ts +16 -12
- package/src/mfa.ts +3 -3
- package/src/org.ts +4 -4
- package/src/passkey.ts +1 -1
- package/src/policy.ts +2 -2
- package/src/response.ts +57 -12
- package/src/role.ts +3 -3
- package/src/schema.ts +110 -23
- package/src/schema_types.ts +14 -3
- package/src/scopes.ts +2 -1
- package/src/signer_session.ts +1 -1
- package/src/user_export.ts +2 -2
- package/tsconfig.json +12 -0
package/dist/src/org.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { KeyType, KeyProperties, NotificationEndpointConfiguration, PageOpts, UserInOrgInfo, ApiClient, OrgInfo, MfaId, ImportKeyRequest, KeyPolicy, QueryMetricsResponse, OrgMetricName, QueryMetricsRequest, KeyTypeAndDerivationPath, JsonValue, EditPolicy, AddressMap, CreateOrgRequest, MemberRole, RolePolicy, C2FConfiguration, MfaProtectedAction, MfaType, PolicyType, PolicyAcl, ContactLabel, ContactAddressData, OrgExtProps, OrgExtData, AuditLogEntry, AuditLogRequest, MfaReceipts } from ".";
|
|
2
|
-
import { Contact } from "./contact";
|
|
3
|
-
import { C2FFunction, Key, MfaRequest, Role } from ".";
|
|
4
|
-
import { type NamedKeyPolicy, NamedPolicy, type NamedRolePolicy } from "./policy";
|
|
1
|
+
import type { KeyType, KeyProperties, NotificationEndpointConfiguration, PageOpts, UserInOrgInfo, ApiClient, OrgInfo, MfaId, ImportKeyRequest, KeyPolicy, QueryMetricsResponse, OrgMetricName, QueryMetricsRequest, KeyTypeAndDerivationPath, JsonValue, EditPolicy, AddressMap, CreateOrgRequest, MemberRole, RolePolicy, C2FConfiguration, MfaProtectedAction, MfaType, PolicyType, PolicyAcl, ContactLabel, ContactAddressData, OrgExtProps, OrgExtData, AuditLogEntry, AuditLogRequest, MfaReceipts } from "./index.ts";
|
|
2
|
+
import { Contact } from "./contact.ts";
|
|
3
|
+
import { C2FFunction, Key, MfaRequest, Role } from "./index.ts";
|
|
4
|
+
import { type NamedKeyPolicy, NamedPolicy, type NamedRolePolicy } from "./policy.ts";
|
|
5
5
|
/** Options pased to createKey and deriveKey */
|
|
6
6
|
export type CreateKeyProperties = Omit<KeyProperties, "policy"> & {
|
|
7
7
|
/**
|
|
@@ -195,33 +195,33 @@ export declare class Org {
|
|
|
195
195
|
*/
|
|
196
196
|
enable(opts?: {
|
|
197
197
|
mfaReceipt?: MfaReceipts;
|
|
198
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
199
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
198
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
199
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
200
200
|
allowed_mfa_types?: {
|
|
201
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
201
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
202
202
|
} | null;
|
|
203
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
204
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
205
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
206
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
203
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
204
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
205
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
206
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
207
207
|
enabled?: boolean | null;
|
|
208
208
|
ext_data?: ({
|
|
209
209
|
alien_key_count_threshold?: number | null;
|
|
210
210
|
} & {
|
|
211
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
212
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
211
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
212
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
213
213
|
version?: number;
|
|
214
214
|
} & Record<string, never>) | null;
|
|
215
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
216
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
217
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
218
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
215
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
216
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
217
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
218
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
219
219
|
name?: string | null;
|
|
220
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
220
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
221
221
|
org_id: string;
|
|
222
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
222
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
223
223
|
policy?: Record<string, never>[] | null;
|
|
224
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
224
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
225
225
|
require_scope_ceiling?: boolean | null;
|
|
226
226
|
sign_policy?: Record<string, never>[] | null;
|
|
227
227
|
totp_failure_limit?: number | null;
|
|
@@ -239,33 +239,33 @@ export declare class Org {
|
|
|
239
239
|
*/
|
|
240
240
|
disable(opts?: {
|
|
241
241
|
mfaReceipt?: MfaReceipts;
|
|
242
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
243
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
242
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
243
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
244
244
|
allowed_mfa_types?: {
|
|
245
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
245
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
246
246
|
} | null;
|
|
247
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
248
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
249
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
250
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
247
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
248
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
249
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
250
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
251
251
|
enabled?: boolean | null;
|
|
252
252
|
ext_data?: ({
|
|
253
253
|
alien_key_count_threshold?: number | null;
|
|
254
254
|
} & {
|
|
255
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
256
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
255
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
256
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
257
257
|
version?: number;
|
|
258
258
|
} & Record<string, never>) | null;
|
|
259
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
260
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
261
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
262
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
259
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
260
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
261
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
262
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
263
263
|
name?: string | null;
|
|
264
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
264
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
265
265
|
org_id: string;
|
|
266
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
266
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
267
267
|
policy?: Record<string, never>[] | null;
|
|
268
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
268
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
269
269
|
require_scope_ceiling?: boolean | null;
|
|
270
270
|
sign_policy?: Record<string, never>[] | null;
|
|
271
271
|
totp_failure_limit?: number | null;
|
|
@@ -288,33 +288,33 @@ export declare class Org {
|
|
|
288
288
|
*/
|
|
289
289
|
setPolicy(policy: OrgPolicy[], opts?: {
|
|
290
290
|
mfaReceipt?: MfaReceipts;
|
|
291
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
292
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
291
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
292
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
293
293
|
allowed_mfa_types?: {
|
|
294
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
294
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
295
295
|
} | null;
|
|
296
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
297
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
298
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
299
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
296
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
297
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
298
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
299
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
300
300
|
enabled?: boolean | null;
|
|
301
301
|
ext_data?: ({
|
|
302
302
|
alien_key_count_threshold?: number | null;
|
|
303
303
|
} & {
|
|
304
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
305
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
304
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
305
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
306
306
|
version?: number;
|
|
307
307
|
} & Record<string, never>) | null;
|
|
308
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
309
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
310
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
311
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
308
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
309
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
310
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
311
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
312
312
|
name?: string | null;
|
|
313
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
313
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
314
314
|
org_id: string;
|
|
315
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
315
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
316
316
|
policy?: Record<string, never>[] | null;
|
|
317
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
317
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
318
318
|
require_scope_ceiling?: boolean | null;
|
|
319
319
|
sign_policy?: Record<string, never>[] | null;
|
|
320
320
|
totp_failure_limit?: number | null;
|
|
@@ -333,33 +333,33 @@ export declare class Org {
|
|
|
333
333
|
*/
|
|
334
334
|
setEditPolicy(editPolicy: EditPolicy, opts?: {
|
|
335
335
|
mfaReceipt?: MfaReceipts;
|
|
336
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
337
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
336
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
337
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
338
338
|
allowed_mfa_types?: {
|
|
339
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
339
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
340
340
|
} | null;
|
|
341
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
342
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
343
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
344
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
341
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
342
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
343
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
344
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
345
345
|
enabled?: boolean | null;
|
|
346
346
|
ext_data?: ({
|
|
347
347
|
alien_key_count_threshold?: number | null;
|
|
348
348
|
} & {
|
|
349
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
350
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
349
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
350
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
351
351
|
version?: number;
|
|
352
352
|
} & Record<string, never>) | null;
|
|
353
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
354
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
355
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
356
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
353
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
354
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
355
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
356
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
357
357
|
name?: string | null;
|
|
358
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
358
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
359
359
|
org_id: string;
|
|
360
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
360
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
361
361
|
policy?: Record<string, never>[] | null;
|
|
362
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
362
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
363
363
|
require_scope_ceiling?: boolean | null;
|
|
364
364
|
sign_policy?: Record<string, never>[] | null;
|
|
365
365
|
totp_failure_limit?: number | null;
|
|
@@ -381,33 +381,33 @@ export declare class Org {
|
|
|
381
381
|
*/
|
|
382
382
|
setSignPolicy(policy: RolePolicy, opts?: {
|
|
383
383
|
mfaReceipt?: MfaReceipts;
|
|
384
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
385
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
384
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
385
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
386
386
|
allowed_mfa_types?: {
|
|
387
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
387
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
388
388
|
} | null;
|
|
389
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
390
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
391
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
392
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
389
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
390
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
391
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
392
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
393
393
|
enabled?: boolean | null;
|
|
394
394
|
ext_data?: ({
|
|
395
395
|
alien_key_count_threshold?: number | null;
|
|
396
396
|
} & {
|
|
397
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
398
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
397
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
398
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
399
399
|
version?: number;
|
|
400
400
|
} & Record<string, never>) | null;
|
|
401
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
402
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
403
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
404
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
401
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
402
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
403
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
404
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
405
405
|
name?: string | null;
|
|
406
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
406
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
407
407
|
org_id: string;
|
|
408
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
408
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
409
409
|
policy?: Record<string, never>[] | null;
|
|
410
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
410
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
411
411
|
require_scope_ceiling?: boolean | null;
|
|
412
412
|
sign_policy?: Record<string, never>[] | null;
|
|
413
413
|
totp_failure_limit?: number | null;
|
|
@@ -432,33 +432,33 @@ export declare class Org {
|
|
|
432
432
|
*/
|
|
433
433
|
setExtendedProperties(props: OrgExtProps, opts?: {
|
|
434
434
|
mfaReceipt?: MfaReceipts;
|
|
435
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
436
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
435
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
436
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
437
437
|
allowed_mfa_types?: {
|
|
438
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
438
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
439
439
|
} | null;
|
|
440
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
441
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
442
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
443
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
440
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
441
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
442
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
443
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
444
444
|
enabled?: boolean | null;
|
|
445
445
|
ext_data?: ({
|
|
446
446
|
alien_key_count_threshold?: number | null;
|
|
447
447
|
} & {
|
|
448
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
449
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
448
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
449
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
450
450
|
version?: number;
|
|
451
451
|
} & Record<string, never>) | null;
|
|
452
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
453
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
454
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
455
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
452
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
453
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
454
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
455
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
456
456
|
name?: string | null;
|
|
457
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
457
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
458
458
|
org_id: string;
|
|
459
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
459
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
460
460
|
policy?: Record<string, never>[] | null;
|
|
461
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
461
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
462
462
|
require_scope_ceiling?: boolean | null;
|
|
463
463
|
sign_policy?: Record<string, never>[] | null;
|
|
464
464
|
totp_failure_limit?: number | null;
|
|
@@ -480,33 +480,33 @@ export declare class Org {
|
|
|
480
480
|
*/
|
|
481
481
|
setAlienKeyCountThreshold(alienKeyCountThreshold: number, opts?: {
|
|
482
482
|
mfaReceipt?: MfaReceipts;
|
|
483
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
484
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
483
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
484
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
485
485
|
allowed_mfa_types?: {
|
|
486
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
486
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
487
487
|
} | null;
|
|
488
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
489
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
490
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
491
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
488
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
489
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
490
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
491
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
492
492
|
enabled?: boolean | null;
|
|
493
493
|
ext_data?: ({
|
|
494
494
|
alien_key_count_threshold?: number | null;
|
|
495
495
|
} & {
|
|
496
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
497
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
496
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
497
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
498
498
|
version?: number;
|
|
499
499
|
} & Record<string, never>) | null;
|
|
500
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
501
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
502
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
503
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
500
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
501
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
502
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
503
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
504
504
|
name?: string | null;
|
|
505
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
505
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
506
506
|
org_id: string;
|
|
507
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
507
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
508
508
|
policy?: Record<string, never>[] | null;
|
|
509
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
509
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
510
510
|
require_scope_ceiling?: boolean | null;
|
|
511
511
|
sign_policy?: Record<string, never>[] | null;
|
|
512
512
|
totp_failure_limit?: number | null;
|
|
@@ -525,33 +525,33 @@ export declare class Org {
|
|
|
525
525
|
*/
|
|
526
526
|
setNotificationEndpoints(notification_endpoints: NotificationEndpointConfiguration[], opts?: {
|
|
527
527
|
mfaReceipt?: MfaReceipts;
|
|
528
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
529
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
528
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
529
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
530
530
|
allowed_mfa_types?: {
|
|
531
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
531
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
532
532
|
} | null;
|
|
533
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
534
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
535
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
536
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
533
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
534
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
535
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
536
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
537
537
|
enabled?: boolean | null;
|
|
538
538
|
ext_data?: ({
|
|
539
539
|
alien_key_count_threshold?: number | null;
|
|
540
540
|
} & {
|
|
541
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
542
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
541
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
542
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
543
543
|
version?: number;
|
|
544
544
|
} & Record<string, never>) | null;
|
|
545
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
546
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
547
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
548
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
545
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
546
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
547
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
548
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
549
549
|
name?: string | null;
|
|
550
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
550
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
551
551
|
org_id: string;
|
|
552
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
552
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
553
553
|
policy?: Record<string, never>[] | null;
|
|
554
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
554
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
555
555
|
require_scope_ceiling?: boolean | null;
|
|
556
556
|
sign_policy?: Record<string, never>[] | null;
|
|
557
557
|
totp_failure_limit?: number | null;
|
|
@@ -570,33 +570,33 @@ export declare class Org {
|
|
|
570
570
|
*/
|
|
571
571
|
setAllowedMfaTypes(allowed_mfa_types: Partial<Record<MfaProtectedAction, MfaType[]>>, opts?: {
|
|
572
572
|
mfaReceipt?: MfaReceipts;
|
|
573
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
574
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
573
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
574
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
575
575
|
allowed_mfa_types?: {
|
|
576
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
576
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
577
577
|
} | null;
|
|
578
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
579
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
580
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
581
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
578
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
579
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
580
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
581
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
582
582
|
enabled?: boolean | null;
|
|
583
583
|
ext_data?: ({
|
|
584
584
|
alien_key_count_threshold?: number | null;
|
|
585
585
|
} & {
|
|
586
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
587
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
586
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
587
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
588
588
|
version?: number;
|
|
589
589
|
} & Record<string, never>) | null;
|
|
590
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
591
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
592
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
593
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
590
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
591
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
592
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
593
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
594
594
|
name?: string | null;
|
|
595
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
595
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
596
596
|
org_id: string;
|
|
597
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
597
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
598
598
|
policy?: Record<string, never>[] | null;
|
|
599
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
599
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
600
600
|
require_scope_ceiling?: boolean | null;
|
|
601
601
|
sign_policy?: Record<string, never>[] | null;
|
|
602
602
|
totp_failure_limit?: number | null;
|
|
@@ -632,7 +632,7 @@ export declare class Org {
|
|
|
632
632
|
* @returns A function that invites a user
|
|
633
633
|
*/
|
|
634
634
|
get createUser(): {
|
|
635
|
-
(args: import("./schema_types").schemas["InviteRequest"]): Promise<void>;
|
|
635
|
+
(args: import("./schema_types.ts").schemas["InviteRequest"]): Promise<void>;
|
|
636
636
|
(email: string, name: string, role?: MemberRole, skipEmail?: boolean): Promise<void>;
|
|
637
637
|
};
|
|
638
638
|
/**
|
|
@@ -642,7 +642,7 @@ export declare class Org {
|
|
|
642
642
|
*
|
|
643
643
|
* @returns A function that deletes a user
|
|
644
644
|
*/
|
|
645
|
-
get deleteUser(): (userId: string, opts?: import("./schema_types").DeleteUserOptions) => Promise<import("./schema_types").Empty>;
|
|
645
|
+
get deleteUser(): (userId: string, opts?: import("./schema_types.ts").DeleteUserOptions) => Promise<import("./schema_types.ts").Empty>;
|
|
646
646
|
/**
|
|
647
647
|
* Create a new OIDC user. This can be a first-party "Member" or third-party "Alien".
|
|
648
648
|
*
|
|
@@ -650,7 +650,7 @@ export declare class Org {
|
|
|
650
650
|
*
|
|
651
651
|
* @returns A function that creates an OIDC user, resolving to the new user's ID
|
|
652
652
|
*/
|
|
653
|
-
get createOidcUser(): (identityOrProof: import("./schema_types").OidcIdentity | import("./schema_types").IdentityProof | null, email?: string | null, opts?: import("./schema_types").CreateOidcUserOptions) => Promise<string>;
|
|
653
|
+
get createOidcUser(): (identityOrProof: import("./schema_types.ts").OidcIdentity | import("./schema_types.ts").IdentityProof | null, email?: string | null, opts?: import("./schema_types.ts").CreateOidcUserOptions) => Promise<string>;
|
|
654
654
|
/**
|
|
655
655
|
* Delete an existing OIDC user.
|
|
656
656
|
*
|
|
@@ -658,7 +658,7 @@ export declare class Org {
|
|
|
658
658
|
*
|
|
659
659
|
* @returns A function that deletes an OIDC user
|
|
660
660
|
*/
|
|
661
|
-
get deleteOidcUser(): (identity: import("./schema_types").OidcIdentity, opts?: import("./schema_types").DeleteUserOptions) => Promise<import("./schema_types").Empty>;
|
|
661
|
+
get deleteOidcUser(): (identity: import("./schema_types.ts").OidcIdentity, opts?: import("./schema_types.ts").DeleteUserOptions) => Promise<import("./schema_types.ts").Empty>;
|
|
662
662
|
/**
|
|
663
663
|
* List all users in the organization.
|
|
664
664
|
*
|
|
@@ -673,7 +673,7 @@ export declare class Org {
|
|
|
673
673
|
*
|
|
674
674
|
* @returns A function that returns a paginated list of users
|
|
675
675
|
*/
|
|
676
|
-
get usersPaginated(): (page?: PageOpts, searchQuery?: string) => import("./paginator").Paginator<import("./schema_types").GetUsersInOrgResponse, UserInOrgInfo[]>;
|
|
676
|
+
get usersPaginated(): (page?: PageOpts, searchQuery?: string) => import("./paginator.ts").Paginator<import("./schema_types.ts").GetUsersInOrgResponse, UserInOrgInfo[]>;
|
|
677
677
|
/**
|
|
678
678
|
* Get user by id.
|
|
679
679
|
*
|
|
@@ -689,7 +689,7 @@ export declare class Org {
|
|
|
689
689
|
*
|
|
690
690
|
* @returns A function that resolves to a user's info
|
|
691
691
|
*/
|
|
692
|
-
get getUserByEmail(): (email: string) => Promise<import("./schema_types").GetUserByEmailResponse>;
|
|
692
|
+
get getUserByEmail(): (email: string) => Promise<import("./schema_types.ts").GetUserByEmailResponse>;
|
|
693
693
|
/**
|
|
694
694
|
* Get user by OIDC ID.
|
|
695
695
|
*
|
|
@@ -697,7 +697,7 @@ export declare class Org {
|
|
|
697
697
|
*
|
|
698
698
|
* @returns A function that resolves to a user's info
|
|
699
699
|
*/
|
|
700
|
-
get getUserByOidc(): (iss: string, sub: string) => Promise<import("./schema_types").GetUserByOidcResponse>;
|
|
700
|
+
get getUserByOidc(): (iss: string, sub: string) => Promise<import("./schema_types.ts").GetUserByOidcResponse>;
|
|
701
701
|
/**
|
|
702
702
|
* Enable a user in this org
|
|
703
703
|
*
|
|
@@ -802,33 +802,33 @@ export declare class Org {
|
|
|
802
802
|
*/
|
|
803
803
|
setC2FConfiguration(configs: C2FConfiguration, opts?: {
|
|
804
804
|
mfaReceipt?: MfaReceipts;
|
|
805
|
-
}): Promise<import("./response").CubeSignerResponse<{
|
|
806
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
805
|
+
}): Promise<import("./response.ts").CubeSignerResponse<{
|
|
806
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
807
807
|
allowed_mfa_types?: {
|
|
808
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
808
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
809
809
|
} | null;
|
|
810
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
811
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
812
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
813
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
810
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
811
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
812
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
813
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
814
814
|
enabled?: boolean | null;
|
|
815
815
|
ext_data?: ({
|
|
816
816
|
alien_key_count_threshold?: number | null;
|
|
817
817
|
} & {
|
|
818
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
819
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
818
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
819
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
820
820
|
version?: number;
|
|
821
821
|
} & Record<string, never>) | null;
|
|
822
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
823
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
824
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
825
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
822
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
823
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
824
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
825
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
826
826
|
name?: string | null;
|
|
827
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
827
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
828
828
|
org_id: string;
|
|
829
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
829
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
830
830
|
policy?: Record<string, never>[] | null;
|
|
831
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
831
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
832
832
|
require_scope_ceiling?: boolean | null;
|
|
833
833
|
sign_policy?: Record<string, never>[] | null;
|
|
834
834
|
totp_failure_limit?: number | null;
|
|
@@ -922,7 +922,7 @@ export declare class Org {
|
|
|
922
922
|
*
|
|
923
923
|
* @returns A function that resolves to an identity proof
|
|
924
924
|
*/
|
|
925
|
-
get proveIdentity(): () => Promise<import("./schema_types").IdentityProof>;
|
|
925
|
+
get proveIdentity(): () => Promise<import("./schema_types.ts").IdentityProof>;
|
|
926
926
|
/**
|
|
927
927
|
* Check if a given proof of OIDC authentication is valid.
|
|
928
928
|
*
|
|
@@ -930,7 +930,7 @@ export declare class Org {
|
|
|
930
930
|
*
|
|
931
931
|
* @returns A function that verifies a proof of identity, throwing if invalid
|
|
932
932
|
*/
|
|
933
|
-
get verifyIdentity(): (proof: import("./schema_types").IdentityProof) => Promise<void>;
|
|
933
|
+
get verifyIdentity(): (proof: import("./schema_types.ts").IdentityProof) => Promise<void>;
|
|
934
934
|
/**
|
|
935
935
|
* Get a pending MFA request by its id.
|
|
936
936
|
*
|
|
@@ -951,7 +951,7 @@ export declare class Org {
|
|
|
951
951
|
*
|
|
952
952
|
* @returns A function that resolves to a stake response.
|
|
953
953
|
*/
|
|
954
|
-
get stake(): (req: import("./schema_types").Eth2StakeRequest, mfaReceipt?: MfaReceipts) => Promise<import("./response").CubeSignerResponse<import("./schema_types").Eth2StakeResponse>>;
|
|
954
|
+
get stake(): (req: import("./schema_types.ts").Eth2StakeRequest, mfaReceipt?: MfaReceipts) => Promise<import("./response.ts").CubeSignerResponse<import("./schema_types.ts").Eth2StakeResponse>>;
|
|
955
955
|
/**
|
|
956
956
|
* Create new user session (management and/or signing). The lifetime of
|
|
957
957
|
* the new session is silently truncated to that of the current session.
|
|
@@ -960,7 +960,7 @@ export declare class Org {
|
|
|
960
960
|
*
|
|
961
961
|
* @returns A function that resolves to new signer session info.
|
|
962
962
|
*/
|
|
963
|
-
get createSession(): (purpose: string, scopes: import("./schema_types").Scope[], lifetimes?: import(".").SessionLifetime) => Promise<import(".").SessionData>;
|
|
963
|
+
get createSession(): (purpose: string, scopes: import("./schema_types.ts").Scope[], lifetimes?: import("./index.ts").SessionLifetime) => Promise<import("./index.ts").SessionData>;
|
|
964
964
|
/**
|
|
965
965
|
* Create new user session (management and/or signing) whose lifetime potentially
|
|
966
966
|
* extends the lifetime of the current session. MFA is always required.
|
|
@@ -969,7 +969,7 @@ export declare class Org {
|
|
|
969
969
|
*
|
|
970
970
|
* @returns A function that resolves to new signer session info.
|
|
971
971
|
*/
|
|
972
|
-
get createExtendedSession(): (purpose: string, scopes: import("./schema_types").Scope[], lifetime: import(".").SessionLifetime, mfaReceipt?: MfaReceipts) => Promise<import("./response").CubeSignerResponse<import(".").SessionData>>;
|
|
972
|
+
get createExtendedSession(): (purpose: string, scopes: import("./schema_types.ts").Scope[], lifetime: import("./index.ts").SessionLifetime, mfaReceipt?: MfaReceipts) => Promise<import("./response.ts").CubeSignerResponse<import("./index.ts").SessionData>>;
|
|
973
973
|
/**
|
|
974
974
|
* Revoke a session.
|
|
975
975
|
*
|
|
@@ -993,7 +993,7 @@ export declare class Org {
|
|
|
993
993
|
*
|
|
994
994
|
* @returns A function that resolves to a paginator of user-export requests
|
|
995
995
|
*/
|
|
996
|
-
get exports(): (keyId?: string, userId?: string, page?: PageOpts) => import("./paginator").Paginator<import("./schema_types").UserExportListResponse, import("./schema_types").UserExportInitResponse[]>;
|
|
996
|
+
get exports(): (keyId?: string, userId?: string, page?: PageOpts) => import("./paginator.ts").Paginator<import("./schema_types.ts").UserExportListResponse, import("./schema_types.ts").UserExportInitResponse[]>;
|
|
997
997
|
/**
|
|
998
998
|
* Delete an outstanding user-export request.
|
|
999
999
|
*
|
|
@@ -1009,7 +1009,7 @@ export declare class Org {
|
|
|
1009
1009
|
*
|
|
1010
1010
|
* @returns A function that resolves to the request response.
|
|
1011
1011
|
*/
|
|
1012
|
-
get initExport(): (keyId: string, mfaReceipt?: MfaReceipts) => Promise<import("./response").CubeSignerResponse<import("./schema_types").UserExportInitResponse>>;
|
|
1012
|
+
get initExport(): (keyId: string, mfaReceipt?: MfaReceipts) => Promise<import("./response.ts").CubeSignerResponse<import("./schema_types.ts").UserExportInitResponse>>;
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Complete a user-export request.
|
|
1015
1015
|
*
|
|
@@ -1017,7 +1017,7 @@ export declare class Org {
|
|
|
1017
1017
|
*
|
|
1018
1018
|
* @returns A function that resolves to the request response.
|
|
1019
1019
|
*/
|
|
1020
|
-
get completeExport(): (keyId: string, publicKey: CryptoKey, mfaReceipt?: MfaReceipts) => Promise<import("./response").CubeSignerResponse<import("./schema_types").UserExportCompleteResponse>>;
|
|
1020
|
+
get completeExport(): (keyId: string, publicKey: CryptoKey, mfaReceipt?: MfaReceipts) => Promise<import("./response.ts").CubeSignerResponse<import("./schema_types.ts").UserExportCompleteResponse>>;
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Update the org.
|
|
1023
1023
|
*
|
|
@@ -1025,7 +1025,7 @@ export declare class Org {
|
|
|
1025
1025
|
*
|
|
1026
1026
|
* @returns A function that updates an org and returns updated org information
|
|
1027
1027
|
*/
|
|
1028
|
-
get update(): (request: import("./schema_types").UpdateOrgRequest, mfaReceipt?: MfaReceipts) => Promise<import("./response").CubeSignerResponse<import("./schema_types").UpdateOrgResponse>>;
|
|
1028
|
+
get update(): (request: import("./schema_types.ts").UpdateOrgRequest, mfaReceipt?: MfaReceipts) => Promise<import("./response.ts").CubeSignerResponse<import("./schema_types.ts").UpdateOrgResponse>>;
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Request a fresh key-import key.
|
|
1031
1031
|
*
|
|
@@ -1033,7 +1033,7 @@ export declare class Org {
|
|
|
1033
1033
|
*
|
|
1034
1034
|
* @returns A function that resolves to a fresh key-import key
|
|
1035
1035
|
*/
|
|
1036
|
-
get createKeyImportKey(): () => Promise<import("./schema_types").CreateKeyImportKeyResponse>;
|
|
1036
|
+
get createKeyImportKey(): () => Promise<import("./schema_types.ts").CreateKeyImportKeyResponse>;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Import one or more keys. To use this functionality, you must first create an
|
|
1039
1039
|
* encrypted key-import request using the `@cubist-labs/cubesigner-sdk-key-import`
|
|
@@ -1062,33 +1062,33 @@ export declare class Org {
|
|
|
1062
1062
|
*/
|
|
1063
1063
|
setPolicyEngineConfiguration: (configs: C2FConfiguration, opts?: {
|
|
1064
1064
|
mfaReceipt?: MfaReceipts;
|
|
1065
|
-
}) => Promise<import("./response").CubeSignerResponse<{
|
|
1066
|
-
alien_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1065
|
+
}) => Promise<import("./response.ts").CubeSignerResponse<{
|
|
1066
|
+
alien_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1067
1067
|
allowed_mfa_types?: {
|
|
1068
|
-
[key: string]: import("./schema").components["schemas"]["MfaType"][];
|
|
1068
|
+
[key: string]: import("./schema.ts").components["schemas"]["MfaType"][];
|
|
1069
1069
|
} | null;
|
|
1070
|
-
custom_chains?: import("./schema").components["schemas"]["CustomChainsData"] | null;
|
|
1071
|
-
default_invite_kind?: import("./schema").components["schemas"]["InviteKind"] | null;
|
|
1072
|
-
edit_policy?: import("./schema").components["schemas"]["EditPolicy"] | null;
|
|
1073
|
-
email_preferences?: import("./schema").components["schemas"]["EmailPreferences"] | null;
|
|
1070
|
+
custom_chains?: import("./schema.ts").components["schemas"]["CustomChainsData"] | null;
|
|
1071
|
+
default_invite_kind?: import("./schema.ts").components["schemas"]["InviteKind"] | null;
|
|
1072
|
+
edit_policy?: import("./schema.ts").components["schemas"]["EditPolicy"] | null;
|
|
1073
|
+
email_preferences?: import("./schema.ts").components["schemas"]["EmailPreferences"] | null;
|
|
1074
1074
|
enabled?: boolean | null;
|
|
1075
1075
|
ext_data?: ({
|
|
1076
1076
|
alien_key_count_threshold?: number | null;
|
|
1077
1077
|
} & {
|
|
1078
|
-
created?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
1079
|
-
last_modified?: import("./schema").components["schemas"]["EpochDateTime"] | null;
|
|
1078
|
+
created?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
1079
|
+
last_modified?: import("./schema.ts").components["schemas"]["EpochDateTime"] | null;
|
|
1080
1080
|
version?: number;
|
|
1081
1081
|
} & Record<string, never>) | null;
|
|
1082
|
-
historical_data_configuration?: import("./schema").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
1083
|
-
idp_configuration?: import("./schema").components["schemas"]["IdpConfig"] | null;
|
|
1084
|
-
key_export_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1085
|
-
member_login_requirement?: import("./schema").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1082
|
+
historical_data_configuration?: import("./schema.ts").components["schemas"]["HistoricalDataConfiguration"] | null;
|
|
1083
|
+
idp_configuration?: import("./schema.ts").components["schemas"]["IdpConfig"] | null;
|
|
1084
|
+
key_export_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1085
|
+
member_login_requirement?: import("./schema.ts").components["schemas"]["SecondFactorRequirement"] | null;
|
|
1086
1086
|
name?: string | null;
|
|
1087
|
-
notification_endpoints?: import("./schema").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
1087
|
+
notification_endpoints?: import("./schema.ts").components["schemas"]["NotificationEndpointConfiguration"][] | null;
|
|
1088
1088
|
org_id: string;
|
|
1089
|
-
passkey_configuration?: import("./schema").components["schemas"]["PasskeyConfig"] | null;
|
|
1089
|
+
passkey_configuration?: import("./schema.ts").components["schemas"]["PasskeyConfig"] | null;
|
|
1090
1090
|
policy?: Record<string, never>[] | null;
|
|
1091
|
-
policy_engine_configuration?: import("./schema").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
1091
|
+
policy_engine_configuration?: import("./schema.ts").components["schemas"]["PolicyEngineConfiguration"] | null;
|
|
1092
1092
|
require_scope_ceiling?: boolean | null;
|
|
1093
1093
|
sign_policy?: Record<string, never>[] | null;
|
|
1094
1094
|
totp_failure_limit?: number | null;
|