@scaleway/sdk-iam 2.2.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './marshalling.gen.js';
3
- export type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, BearerType, ClonePolicyRequest, Connection, ConnectionConnectedOrganization, ConnectionConnectedUser, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSamlCertificateRequest, DeleteSamlRequest, DeleteScimRequest, DeleteScimTokenRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, EnableOrganizationSamlRequest, EnableOrganizationScimRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationRequest, GetOrganizationSamlRequest, GetOrganizationScimRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserRequest, GracePeriod, GracePeriodType, Group, InitiateUserConnectionRequest, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSamlCertificatesRequest, ListSamlCertificatesResponse, ListScimTokensRequest, ListScimTokensRequestOrderBy, ListScimTokensResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LocalityType, LockUserRequest, Log, LogAction, LogResourceType, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, PermissionSet, PermissionSetScopeType, Policy, Quotum, QuotumLimit, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Rule, RuleSpecs, Saml, SamlCertificate, SamlCertificateOrigin, SamlCertificateType, SamlServiceProvider, SamlStatus, Scim, ScimToken, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, } from './types.gen.js';
3
+ export type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, BearerType, ClonePolicyRequest, Connection, ConnectionConnectedOrganization, ConnectionConnectedUser, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSamlCertificateRequest, DeleteSamlRequest, DeleteScimRequest, DeleteScimTokenRequest, DeleteSSHKeyRequest, DeleteUserMFAOTPRequest, DeleteUserRequest, DeleteWebAuthnAuthenticatorRequest, EnableOrganizationSamlRequest, EnableOrganizationScimRequest, EncodedJWT, FinishUserWebAuthnRegistrationRequest, FinishUserWebAuthnRegistrationResponse, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationRequest, GetOrganizationSamlRequest, GetOrganizationScimRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserRequest, GracePeriod, GracePeriodType, Group, InitiateUserConnectionRequest, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSamlCertificatesRequest, ListSamlCertificatesResponse, ListScimTokensRequest, ListScimTokensRequestOrderBy, ListScimTokensResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListUserWebAuthnAuthenticatorsRequest, ListUserWebAuthnAuthenticatorsRequestOrderBy, ListUserWebAuthnAuthenticatorsResponse, LocalityType, LockUserRequest, Log, LogAction, LogResourceType, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, PermissionSet, PermissionSetScopeType, Policy, Quotum, QuotumLimit, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Rule, RuleSpecs, Saml, SamlCertificate, SamlCertificateOrigin, SamlCertificateType, SamlServiceProvider, SamlStatus, Scim, ScimToken, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, StartUserWebAuthnRegistrationRequest, StartUserWebAuthnRegistrationResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, UpdateWebAuthnAuthenticatorRequest, User, UserStatus, UserType, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, WebAuthnAuthenticator, } from './types.gen.js';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -1,5 +1,5 @@
1
1
  import { API } from "./api.gen.js";
2
- import { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalAddSamlCertificateRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreateJWTRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalCreateUserRequest, marshalJoinUserConnectionRequest, marshalParseSamlMetadataRequest, marshalRemoveGroupMemberRequest, marshalRemoveUserConnectionRequest, marshalSetGroupMembersRequest, marshalSetOrganizationAliasRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdateOrganizationLoginMethodsRequest, marshalUpdateOrganizationSecuritySettingsRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, marshalUpdateSamlRequest, marshalUpdateUserPasswordRequest, marshalUpdateUserRequest, marshalUpdateUserUsernameRequest, marshalValidateUserMFAOTPRequest, unmarshalAPIKey, unmarshalApplication, unmarshalCreateScimTokenResponse, unmarshalEncodedJWT, unmarshalGetUserConnectionsResponse, unmarshalGroup, unmarshalInitiateUserConnectionResponse, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGracePeriodsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListLogsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListSamlCertificatesResponse, unmarshalListScimTokensResponse, unmarshalListUsersResponse, unmarshalLog, unmarshalMFAOTP, unmarshalOrganization, unmarshalOrganizationSecuritySettings, unmarshalParseSamlMetadataResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSaml, unmarshalSamlCertificate, unmarshalScim, unmarshalSetRulesResponse, unmarshalUser, unmarshalValidateUserMFAOTPResponse } from "./marshalling.gen.js";
2
+ import { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalAddSamlCertificateRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreateJWTRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalCreateUserRequest, marshalFinishUserWebAuthnRegistrationRequest, marshalJoinUserConnectionRequest, marshalParseSamlMetadataRequest, marshalRemoveGroupMemberRequest, marshalRemoveUserConnectionRequest, marshalSetGroupMembersRequest, marshalSetOrganizationAliasRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdateOrganizationLoginMethodsRequest, marshalUpdateOrganizationSecuritySettingsRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, marshalUpdateSamlRequest, marshalUpdateUserPasswordRequest, marshalUpdateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateWebAuthnAuthenticatorRequest, marshalValidateUserMFAOTPRequest, unmarshalAPIKey, unmarshalApplication, unmarshalCreateScimTokenResponse, unmarshalEncodedJWT, unmarshalFinishUserWebAuthnRegistrationResponse, unmarshalGetUserConnectionsResponse, unmarshalGroup, unmarshalInitiateUserConnectionResponse, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGracePeriodsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListLogsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListSamlCertificatesResponse, unmarshalListScimTokensResponse, unmarshalListUserWebAuthnAuthenticatorsResponse, unmarshalListUsersResponse, unmarshalLog, unmarshalMFAOTP, unmarshalOrganization, unmarshalOrganizationSecuritySettings, unmarshalParseSamlMetadataResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSaml, unmarshalSamlCertificate, unmarshalScim, unmarshalSetRulesResponse, unmarshalStartUserWebAuthnRegistrationResponse, unmarshalUser, unmarshalValidateUserMFAOTPResponse, unmarshalWebAuthnAuthenticator } from "./marshalling.gen.js";
3
3
  import * as validationRules_gen from "./validation-rules.gen.js";
4
4
  export {
5
5
  API,
@@ -14,6 +14,7 @@ export {
14
14
  marshalCreatePolicyRequest,
15
15
  marshalCreateSSHKeyRequest,
16
16
  marshalCreateUserRequest,
17
+ marshalFinishUserWebAuthnRegistrationRequest,
17
18
  marshalJoinUserConnectionRequest,
18
19
  marshalParseSamlMetadataRequest,
19
20
  marshalRemoveGroupMemberRequest,
@@ -32,11 +33,13 @@ export {
32
33
  marshalUpdateUserPasswordRequest,
33
34
  marshalUpdateUserRequest,
34
35
  marshalUpdateUserUsernameRequest,
36
+ marshalUpdateWebAuthnAuthenticatorRequest,
35
37
  marshalValidateUserMFAOTPRequest,
36
38
  unmarshalAPIKey,
37
39
  unmarshalApplication,
38
40
  unmarshalCreateScimTokenResponse,
39
41
  unmarshalEncodedJWT,
42
+ unmarshalFinishUserWebAuthnRegistrationResponse,
40
43
  unmarshalGetUserConnectionsResponse,
41
44
  unmarshalGroup,
42
45
  unmarshalInitiateUserConnectionResponse,
@@ -54,6 +57,7 @@ export {
54
57
  unmarshalListSSHKeysResponse,
55
58
  unmarshalListSamlCertificatesResponse,
56
59
  unmarshalListScimTokensResponse,
60
+ unmarshalListUserWebAuthnAuthenticatorsResponse,
57
61
  unmarshalListUsersResponse,
58
62
  unmarshalLog,
59
63
  unmarshalMFAOTP,
@@ -67,6 +71,8 @@ export {
67
71
  unmarshalSamlCertificate,
68
72
  unmarshalScim,
69
73
  unmarshalSetRulesResponse,
74
+ unmarshalStartUserWebAuthnRegistrationResponse,
70
75
  unmarshalUser,
71
- unmarshalValidateUserMFAOTPResponse
76
+ unmarshalValidateUserMFAOTPResponse,
77
+ unmarshalWebAuthnAuthenticator
72
78
  };
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, GetUserConnectionsResponse, Group, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSamlCertificatesResponse, ListScimTokensResponse, ListSSHKeysResponse, ListUsersResponse, Log, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, Policy, Quotum, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Saml, SamlCertificate, Scim, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse } from './types.gen.js';
2
+ import type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, FinishUserWebAuthnRegistrationRequest, FinishUserWebAuthnRegistrationResponse, GetUserConnectionsResponse, Group, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSamlCertificatesResponse, ListScimTokensResponse, ListSSHKeysResponse, ListUsersResponse, ListUserWebAuthnAuthenticatorsResponse, Log, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, Policy, Quotum, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Saml, SamlCertificate, Scim, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, StartUserWebAuthnRegistrationResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, UpdateWebAuthnAuthenticatorRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, WebAuthnAuthenticator } from './types.gen.js';
3
3
  export declare const unmarshalJWT: (data: unknown) => JWT;
4
4
  export declare const unmarshalAPIKey: (data: unknown) => APIKey;
5
5
  export declare const unmarshalApplication: (data: unknown) => Application;
@@ -9,9 +9,11 @@ export declare const unmarshalPolicy: (data: unknown) => Policy;
9
9
  export declare const unmarshalQuotum: (data: unknown) => Quotum;
10
10
  export declare const unmarshalSSHKey: (data: unknown) => SSHKey;
11
11
  export declare const unmarshalSamlCertificate: (data: unknown) => SamlCertificate;
12
+ export declare const unmarshalWebAuthnAuthenticator: (data: unknown) => WebAuthnAuthenticator;
12
13
  export declare const unmarshalUser: (data: unknown) => User;
13
14
  export declare const unmarshalCreateScimTokenResponse: (data: unknown) => CreateScimTokenResponse;
14
15
  export declare const unmarshalEncodedJWT: (data: unknown) => EncodedJWT;
16
+ export declare const unmarshalFinishUserWebAuthnRegistrationResponse: (data: unknown) => FinishUserWebAuthnRegistrationResponse;
15
17
  export declare const unmarshalGetUserConnectionsResponse: (data: unknown) => GetUserConnectionsResponse;
16
18
  export declare const unmarshalInitiateUserConnectionResponse: (data: unknown) => InitiateUserConnectionResponse;
17
19
  export declare const unmarshalListAPIKeysResponse: (data: unknown) => ListAPIKeysResponse;
@@ -27,6 +29,7 @@ export declare const unmarshalListRulesResponse: (data: unknown) => ListRulesRes
27
29
  export declare const unmarshalListSSHKeysResponse: (data: unknown) => ListSSHKeysResponse;
28
30
  export declare const unmarshalListSamlCertificatesResponse: (data: unknown) => ListSamlCertificatesResponse;
29
31
  export declare const unmarshalListScimTokensResponse: (data: unknown) => ListScimTokensResponse;
32
+ export declare const unmarshalListUserWebAuthnAuthenticatorsResponse: (data: unknown) => ListUserWebAuthnAuthenticatorsResponse;
30
33
  export declare const unmarshalListUsersResponse: (data: unknown) => ListUsersResponse;
31
34
  export declare const unmarshalMFAOTP: (data: unknown) => MFAOTP;
32
35
  export declare const unmarshalOrganization: (data: unknown) => Organization;
@@ -35,6 +38,7 @@ export declare const unmarshalParseSamlMetadataResponse: (data: unknown) => Pars
35
38
  export declare const unmarshalSaml: (data: unknown) => Saml;
36
39
  export declare const unmarshalScim: (data: unknown) => Scim;
37
40
  export declare const unmarshalSetRulesResponse: (data: unknown) => SetRulesResponse;
41
+ export declare const unmarshalStartUserWebAuthnRegistrationResponse: (data: unknown) => StartUserWebAuthnRegistrationResponse;
38
42
  export declare const unmarshalValidateUserMFAOTPResponse: (data: unknown) => ValidateUserMFAOTPResponse;
39
43
  export declare const marshalAddGroupMemberRequest: (request: AddGroupMemberRequest, defaults: DefaultValues) => Record<string, unknown>;
40
44
  export declare const marshalAddGroupMembersRequest: (request: AddGroupMembersRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -46,6 +50,7 @@ export declare const marshalCreateJWTRequest: (request: CreateJWTRequest, defaul
46
50
  export declare const marshalCreatePolicyRequest: (request: CreatePolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
47
51
  export declare const marshalCreateSSHKeyRequest: (request: CreateSSHKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
48
52
  export declare const marshalCreateUserRequest: (request: CreateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
53
+ export declare const marshalFinishUserWebAuthnRegistrationRequest: (request: FinishUserWebAuthnRegistrationRequest, defaults: DefaultValues) => Record<string, unknown>;
49
54
  export declare const marshalJoinUserConnectionRequest: (request: JoinUserConnectionRequest, defaults: DefaultValues) => Record<string, unknown>;
50
55
  export declare const marshalParseSamlMetadataRequest: (request: ParseSamlMetadataRequest, defaults: DefaultValues) => Promise<Record<string, unknown>>;
51
56
  export declare const marshalRemoveGroupMemberRequest: (request: RemoveGroupMemberRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -64,4 +69,5 @@ export declare const marshalUpdateSamlRequest: (request: UpdateSamlRequest, defa
64
69
  export declare const marshalUpdateUserPasswordRequest: (request: UpdateUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
65
70
  export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
66
71
  export declare const marshalUpdateUserUsernameRequest: (request: UpdateUserUsernameRequest, defaults: DefaultValues) => Record<string, unknown>;
72
+ export declare const marshalUpdateWebAuthnAuthenticatorRequest: (request: UpdateWebAuthnAuthenticatorRequest, defaults: DefaultValues) => Record<string, unknown>;
67
73
  export declare const marshalValidateUserMFAOTPRequest: (request: ValidateUserMFAOTPRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -187,6 +187,19 @@ const unmarshalSamlCertificate = (data) => {
187
187
  type: data.type
188
188
  };
189
189
  };
190
+ const unmarshalWebAuthnAuthenticator = (data) => {
191
+ if (!isJSONObject(data)) {
192
+ throw new TypeError(
193
+ `Unmarshalling the type 'WebAuthnAuthenticator' failed as data isn't a dictionary.`
194
+ );
195
+ }
196
+ return {
197
+ createdAt: unmarshalDate(data.created_at),
198
+ id: data.id,
199
+ lastLoginAt: unmarshalDate(data.last_login_at),
200
+ name: data.name
201
+ };
202
+ };
190
203
  const unmarshalUser = (data) => {
191
204
  if (!isJSONObject(data)) {
192
205
  throw new TypeError(
@@ -251,6 +264,16 @@ const unmarshalEncodedJWT = (data) => {
251
264
  token: data.token
252
265
  };
253
266
  };
267
+ const unmarshalFinishUserWebAuthnRegistrationResponse = (data) => {
268
+ if (!isJSONObject(data)) {
269
+ throw new TypeError(
270
+ `Unmarshalling the type 'FinishUserWebAuthnRegistrationResponse' failed as data isn't a dictionary.`
271
+ );
272
+ }
273
+ return {
274
+ authenticatorId: data.authenticator_id
275
+ };
276
+ };
254
277
  const unmarshalConnectionConnectedOrganization = (data) => {
255
278
  if (!isJSONObject(data)) {
256
279
  throw new TypeError(
@@ -324,10 +347,7 @@ const unmarshalListApplicationsResponse = (data) => {
324
347
  );
325
348
  }
326
349
  return {
327
- applications: unmarshalArrayOfObject(
328
- data.applications,
329
- unmarshalApplication
330
- ),
350
+ applications: unmarshalArrayOfObject(data.applications, unmarshalApplication),
331
351
  totalCount: data.total_count
332
352
  };
333
353
  };
@@ -350,10 +370,7 @@ const unmarshalListGracePeriodsResponse = (data) => {
350
370
  );
351
371
  }
352
372
  return {
353
- gracePeriods: unmarshalArrayOfObject(
354
- data.grace_periods,
355
- unmarshalGracePeriod
356
- )
373
+ gracePeriods: unmarshalArrayOfObject(data.grace_periods, unmarshalGracePeriod)
357
374
  };
358
375
  };
359
376
  const unmarshalListGroupsResponse = (data) => {
@@ -410,10 +427,7 @@ const unmarshalListPermissionSetsResponse = (data) => {
410
427
  );
411
428
  }
412
429
  return {
413
- permissionSets: unmarshalArrayOfObject(
414
- data.permission_sets,
415
- unmarshalPermissionSet
416
- ),
430
+ permissionSets: unmarshalArrayOfObject(data.permission_sets, unmarshalPermissionSet),
417
431
  totalCount: data.total_count
418
432
  };
419
433
  };
@@ -484,10 +498,7 @@ const unmarshalListSamlCertificatesResponse = (data) => {
484
498
  );
485
499
  }
486
500
  return {
487
- certificates: unmarshalArrayOfObject(
488
- data.certificates,
489
- unmarshalSamlCertificate
490
- )
501
+ certificates: unmarshalArrayOfObject(data.certificates, unmarshalSamlCertificate)
491
502
  };
492
503
  };
493
504
  const unmarshalListScimTokensResponse = (data) => {
@@ -501,6 +512,17 @@ const unmarshalListScimTokensResponse = (data) => {
501
512
  totalCount: data.total_count
502
513
  };
503
514
  };
515
+ const unmarshalListUserWebAuthnAuthenticatorsResponse = (data) => {
516
+ if (!isJSONObject(data)) {
517
+ throw new TypeError(
518
+ `Unmarshalling the type 'ListUserWebAuthnAuthenticatorsResponse' failed as data isn't a dictionary.`
519
+ );
520
+ }
521
+ return {
522
+ authenticators: unmarshalArrayOfObject(data.authenticators, unmarshalWebAuthnAuthenticator),
523
+ totalCount: data.total_count
524
+ };
525
+ };
504
526
  const unmarshalListUsersResponse = (data) => {
505
527
  if (!isJSONObject(data)) {
506
528
  throw new TypeError(
@@ -610,6 +632,20 @@ const unmarshalSetRulesResponse = (data) => {
610
632
  rules: unmarshalArrayOfObject(data.rules, unmarshalRule)
611
633
  };
612
634
  };
635
+ const unmarshalStartUserWebAuthnRegistrationResponse = (data) => {
636
+ if (!isJSONObject(data)) {
637
+ throw new TypeError(
638
+ `Unmarshalling the type 'StartUserWebAuthnRegistrationResponse' failed as data isn't a dictionary.`
639
+ );
640
+ }
641
+ return {
642
+ ceremonyId: data.ceremony_id,
643
+ challenge: data.challenge,
644
+ excludeCredentials: data.exclude_credentials,
645
+ publicKeyAlgorithms: data.public_key_algorithms,
646
+ timeout: data.timeout
647
+ };
648
+ };
613
649
  const unmarshalValidateUserMFAOTPResponse = (data) => {
614
650
  if (!isJSONObject(data)) {
615
651
  throw new TypeError(
@@ -622,8 +658,14 @@ const unmarshalValidateUserMFAOTPResponse = (data) => {
622
658
  };
623
659
  const marshalAddGroupMemberRequest = (request, defaults) => ({
624
660
  ...resolveOneOf([
625
- { param: "user_id", value: request.userId },
626
- { param: "application_id", value: request.applicationId }
661
+ {
662
+ param: "user_id",
663
+ value: request.userId
664
+ },
665
+ {
666
+ param: "application_id",
667
+ value: request.applicationId
668
+ }
627
669
  ])
628
670
  });
629
671
  const marshalAddGroupMembersRequest = (request, defaults) => ({
@@ -639,8 +681,14 @@ const marshalCreateAPIKeyRequest = (request, defaults) => ({
639
681
  description: request.description,
640
682
  expires_at: request.expiresAt,
641
683
  ...resolveOneOf([
642
- { param: "application_id", value: request.applicationId },
643
- { param: "user_id", value: request.userId }
684
+ {
685
+ param: "application_id",
686
+ value: request.applicationId
687
+ },
688
+ {
689
+ param: "user_id",
690
+ value: request.userId
691
+ }
644
692
  ])
645
693
  });
646
694
  const marshalCreateApplicationRequest = (request, defaults) => ({
@@ -663,8 +711,14 @@ const marshalRuleSpecs = (request, defaults) => ({
663
711
  condition: request.condition,
664
712
  permission_set_names: request.permissionSetNames,
665
713
  ...resolveOneOf([
666
- { param: "project_ids", value: request.projectIds },
667
- { param: "organization_id", value: request.organizationId }
714
+ {
715
+ param: "project_ids",
716
+ value: request.projectIds
717
+ },
718
+ {
719
+ param: "organization_id",
720
+ value: request.organizationId
721
+ }
668
722
  ])
669
723
  });
670
724
  const marshalCreatePolicyRequest = (request, defaults) => ({
@@ -674,10 +728,22 @@ const marshalCreatePolicyRequest = (request, defaults) => ({
674
728
  rules: request.rules !== void 0 ? request.rules.map((elt) => marshalRuleSpecs(elt)) : void 0,
675
729
  tags: request.tags,
676
730
  ...resolveOneOf([
677
- { param: "user_id", value: request.userId },
678
- { param: "group_id", value: request.groupId },
679
- { param: "application_id", value: request.applicationId },
680
- { param: "no_principal", value: request.noPrincipal }
731
+ {
732
+ param: "user_id",
733
+ value: request.userId
734
+ },
735
+ {
736
+ param: "group_id",
737
+ value: request.groupId
738
+ },
739
+ {
740
+ param: "application_id",
741
+ value: request.applicationId
742
+ },
743
+ {
744
+ param: "no_principal",
745
+ value: request.noPrincipal
746
+ }
681
747
  ])
682
748
  });
683
749
  const marshalCreateSSHKeyRequest = (request, defaults) => ({
@@ -700,13 +766,27 @@ const marshalCreateUserRequest = (request, defaults) => ({
700
766
  organization_id: request.organizationId ?? defaults.defaultOrganizationId,
701
767
  tags: request.tags,
702
768
  ...resolveOneOf([
703
- { param: "email", value: request.email },
769
+ {
770
+ param: "email",
771
+ value: request.email
772
+ },
704
773
  {
705
774
  param: "member",
706
775
  value: request.member !== void 0 ? marshalCreateUserRequestMember(request.member) : void 0
707
776
  }
708
777
  ])
709
778
  });
779
+ const marshalFinishUserWebAuthnRegistrationRequest = (request, defaults) => ({
780
+ attestation_object: request.attestationObject,
781
+ authenticator_data: request.authenticatorData,
782
+ authenticator_name: request.authenticatorName,
783
+ ceremony_id: request.ceremonyId,
784
+ client_data_json: request.clientDataJson,
785
+ origin: request.origin,
786
+ public_key: request.publicKey,
787
+ public_key_algorithm: request.publicKeyAlgorithm,
788
+ raw_id: request.rawId
789
+ });
710
790
  const marshalJoinUserConnectionRequest = (request, defaults) => ({
711
791
  token: request.token
712
792
  });
@@ -715,8 +795,14 @@ const marshalParseSamlMetadataRequest = async (request, defaults) => ({
715
795
  });
716
796
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
717
797
  ...resolveOneOf([
718
- { param: "user_id", value: request.userId },
719
- { param: "application_id", value: request.applicationId }
798
+ {
799
+ param: "user_id",
800
+ value: request.userId
801
+ },
802
+ {
803
+ param: "application_id",
804
+ value: request.applicationId
805
+ }
720
806
  ])
721
807
  });
722
808
  const marshalRemoveUserConnectionRequest = (request, defaults) => ({
@@ -766,10 +852,22 @@ const marshalUpdatePolicyRequest = (request, defaults) => ({
766
852
  name: request.name,
767
853
  tags: request.tags,
768
854
  ...resolveOneOf([
769
- { param: "user_id", value: request.userId },
770
- { param: "group_id", value: request.groupId },
771
- { param: "application_id", value: request.applicationId },
772
- { param: "no_principal", value: request.noPrincipal }
855
+ {
856
+ param: "user_id",
857
+ value: request.userId
858
+ },
859
+ {
860
+ param: "group_id",
861
+ value: request.groupId
862
+ },
863
+ {
864
+ param: "application_id",
865
+ value: request.applicationId
866
+ },
867
+ {
868
+ param: "no_principal",
869
+ value: request.noPrincipal
870
+ }
773
871
  ])
774
872
  });
775
873
  const marshalUpdateSSHKeyRequest = (request, defaults) => ({
@@ -794,6 +892,9 @@ const marshalUpdateUserRequest = (request, defaults) => ({
794
892
  const marshalUpdateUserUsernameRequest = (request, defaults) => ({
795
893
  username: request.username
796
894
  });
895
+ const marshalUpdateWebAuthnAuthenticatorRequest = (request, defaults) => ({
896
+ authenticator_name: request.authenticatorName
897
+ });
797
898
  const marshalValidateUserMFAOTPRequest = (request, defaults) => ({
798
899
  one_time_password: request.oneTimePassword
799
900
  });
@@ -808,6 +909,7 @@ export {
808
909
  marshalCreatePolicyRequest,
809
910
  marshalCreateSSHKeyRequest,
810
911
  marshalCreateUserRequest,
912
+ marshalFinishUserWebAuthnRegistrationRequest,
811
913
  marshalJoinUserConnectionRequest,
812
914
  marshalParseSamlMetadataRequest,
813
915
  marshalRemoveGroupMemberRequest,
@@ -826,11 +928,13 @@ export {
826
928
  marshalUpdateUserPasswordRequest,
827
929
  marshalUpdateUserRequest,
828
930
  marshalUpdateUserUsernameRequest,
931
+ marshalUpdateWebAuthnAuthenticatorRequest,
829
932
  marshalValidateUserMFAOTPRequest,
830
933
  unmarshalAPIKey,
831
934
  unmarshalApplication,
832
935
  unmarshalCreateScimTokenResponse,
833
936
  unmarshalEncodedJWT,
937
+ unmarshalFinishUserWebAuthnRegistrationResponse,
834
938
  unmarshalGetUserConnectionsResponse,
835
939
  unmarshalGroup,
836
940
  unmarshalInitiateUserConnectionResponse,
@@ -848,6 +952,7 @@ export {
848
952
  unmarshalListSSHKeysResponse,
849
953
  unmarshalListSamlCertificatesResponse,
850
954
  unmarshalListScimTokensResponse,
955
+ unmarshalListUserWebAuthnAuthenticatorsResponse,
851
956
  unmarshalListUsersResponse,
852
957
  unmarshalLog,
853
958
  unmarshalMFAOTP,
@@ -861,6 +966,8 @@ export {
861
966
  unmarshalSamlCertificate,
862
967
  unmarshalScim,
863
968
  unmarshalSetRulesResponse,
969
+ unmarshalStartUserWebAuthnRegistrationResponse,
864
970
  unmarshalUser,
865
- unmarshalValidateUserMFAOTPResponse
971
+ unmarshalValidateUserMFAOTPResponse,
972
+ unmarshalWebAuthnAuthenticator
866
973
  };
@@ -11,6 +11,7 @@ export type ListPoliciesRequestOrderBy = 'policy_name_asc' | 'policy_name_desc'
11
11
  export type ListQuotaRequestOrderBy = 'name_asc' | 'name_desc';
12
12
  export type ListSSHKeysRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc';
13
13
  export type ListScimTokensRequestOrderBy = 'created_at_asc' | 'created_at_desc';
14
+ export type ListUserWebAuthnAuthenticatorsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
14
15
  export type ListUsersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'email_asc' | 'email_desc' | 'last_login_asc' | 'last_login_desc' | 'username_asc' | 'username_desc';
15
16
  export type LocalityType = 'global' | 'region' | 'zone';
16
17
  export type LogAction = 'unknown_action' | 'created' | 'updated' | 'deleted';
@@ -613,6 +614,24 @@ export interface SamlCertificate {
613
614
  */
614
615
  expiresAt?: Date;
615
616
  }
617
+ export interface WebAuthnAuthenticator {
618
+ /**
619
+ * The ID of the authenticator.
620
+ */
621
+ id: string;
622
+ /**
623
+ * The name of the authenticator.
624
+ */
625
+ name: string;
626
+ /**
627
+ * The creation date.
628
+ */
629
+ createdAt?: Date;
630
+ /**
631
+ * The timestamp of the last successful login using the authenticator.
632
+ */
633
+ lastLoginAt?: Date;
634
+ }
616
635
  export interface User {
617
636
  /**
618
637
  * ID of user.
@@ -989,6 +1008,9 @@ export type DeleteUserRequest = {
989
1008
  */
990
1009
  userId: string;
991
1010
  };
1011
+ export type DeleteWebAuthnAuthenticatorRequest = {
1012
+ authenticatorId: string;
1013
+ };
992
1014
  export type EnableOrganizationSamlRequest = {
993
1015
  /**
994
1016
  * ID of the Organization.
@@ -1015,6 +1037,54 @@ export interface EncodedJWT {
1015
1037
  */
1016
1038
  renewToken: string;
1017
1039
  }
1040
+ export type FinishUserWebAuthnRegistrationRequest = {
1041
+ /**
1042
+ * The ID of the user on which to finish a webauthn registration.
1043
+ */
1044
+ userId: string;
1045
+ /**
1046
+ * The ceremony ID returned by StartUserWebAuthnRegistration.
1047
+ */
1048
+ ceremonyId: string;
1049
+ /**
1050
+ * Name of the WebAuthn Authenticator to create.
1051
+ */
1052
+ authenticatorName: string;
1053
+ /**
1054
+ * The domain on which the registration is occurring.
1055
+ */
1056
+ origin: string;
1057
+ /**
1058
+ * Unique identifier of the key used by the authenticator.
1059
+ */
1060
+ rawId: string;
1061
+ /**
1062
+ * JSON representation of the client data.
1063
+ */
1064
+ clientDataJson: string;
1065
+ /**
1066
+ * Data about the authenticator that performed the authentication.
1067
+ */
1068
+ authenticatorData: string;
1069
+ /**
1070
+ * Attestation Object.
1071
+ */
1072
+ attestationObject: string;
1073
+ /**
1074
+ * Public key that allows to verify signature.
1075
+ */
1076
+ publicKey: string;
1077
+ /**
1078
+ * Algorithm used for the signature (see https://www.iana.org/assignments/cose/cose.xhtml#algorithms).
1079
+ */
1080
+ publicKeyAlgorithm: number;
1081
+ };
1082
+ export interface FinishUserWebAuthnRegistrationResponse {
1083
+ /**
1084
+ * The ID of the new authenticator created.
1085
+ */
1086
+ authenticatorId: string;
1087
+ }
1018
1088
  export type GetAPIKeyRequest = {
1019
1089
  /**
1020
1090
  * Access key to search for.
@@ -1598,6 +1668,34 @@ export interface ListScimTokensResponse {
1598
1668
  */
1599
1669
  totalCount: number;
1600
1670
  }
1671
+ export type ListUserWebAuthnAuthenticatorsRequest = {
1672
+ /**
1673
+ * A user ID to filter the authenticators for.
1674
+ */
1675
+ userId: string;
1676
+ /**
1677
+ * Sort order of the Authenticators.
1678
+ */
1679
+ orderBy?: ListUserWebAuthnAuthenticatorsRequestOrderBy;
1680
+ /**
1681
+ * Requested page number. Value must be greater or equal to 1.
1682
+ */
1683
+ page?: number;
1684
+ /**
1685
+ * Number of items per page. Value must be between 1 and 100.
1686
+ */
1687
+ pageSize?: number;
1688
+ };
1689
+ export interface ListUserWebAuthnAuthenticatorsResponse {
1690
+ /**
1691
+ * The total number of authenticators.
1692
+ */
1693
+ totalCount: number;
1694
+ /**
1695
+ * The list of authenticators.
1696
+ */
1697
+ authenticators: WebAuthnAuthenticator[];
1698
+ }
1601
1699
  export type ListUsersRequest = {
1602
1700
  /**
1603
1701
  * Criteria for sorting results.
@@ -1802,6 +1900,38 @@ export interface SetRulesResponse {
1802
1900
  */
1803
1901
  rules: Rule[];
1804
1902
  }
1903
+ export type StartUserWebAuthnRegistrationRequest = {
1904
+ /**
1905
+ * The ID of the user on which to start registering a WebAuthn authenticator.
1906
+ */
1907
+ userId: string;
1908
+ /**
1909
+ * The URL from which the registration request originated.
1910
+ */
1911
+ origin: string;
1912
+ };
1913
+ export interface StartUserWebAuthnRegistrationResponse {
1914
+ /**
1915
+ * A unique ID for this registration attempt, to reuse when calling FinishUserWebAuthnRegistration.
1916
+ */
1917
+ ceremonyId: string;
1918
+ /**
1919
+ * Random bytes constituting the challenge to solve for the credentials creation.
1920
+ */
1921
+ challenge: string;
1922
+ /**
1923
+ * List of algorithms supported by the relying party, as COSE algorithm identifiers.
1924
+ */
1925
+ publicKeyAlgorithms: number[];
1926
+ /**
1927
+ * Maximum duration of the registration ceremony, in milliseconds.
1928
+ */
1929
+ timeout?: string;
1930
+ /**
1931
+ * List of credentials that cannot be used to fulfill the ceremony.
1932
+ */
1933
+ excludeCredentials: string[];
1934
+ }
1805
1935
  export type UnlockUserRequest = {
1806
1936
  /**
1807
1937
  * ID of the user to unlock.
@@ -2027,6 +2157,16 @@ export type UpdateUserUsernameRequest = {
2027
2157
  */
2028
2158
  username: string;
2029
2159
  };
2160
+ export type UpdateWebAuthnAuthenticatorRequest = {
2161
+ /**
2162
+ * The ID of the authenticator to update.
2163
+ */
2164
+ authenticatorId: string;
2165
+ /**
2166
+ * A new name for this authenticator.
2167
+ */
2168
+ authenticatorName?: string;
2169
+ };
2030
2170
  export type ValidateUserMFAOTPRequest = {
2031
2171
  /**
2032
2172
  * User ID of the MFA OTP.
@@ -69,6 +69,12 @@ export declare const CreateUserRequestMember: {
69
69
  pattern: RegExp;
70
70
  };
71
71
  };
72
+ export declare const FinishUserWebAuthnRegistrationRequest: {
73
+ authenticatorName: {
74
+ maxLength: number;
75
+ minLength: number;
76
+ };
77
+ };
72
78
  export declare const GetQuotumRequest: {
73
79
  quotumName: {
74
80
  minLength: number;
@@ -207,6 +213,16 @@ export declare const ListScimTokensRequest: {
207
213
  lessThanOrEqual: number;
208
214
  };
209
215
  };
216
+ export declare const ListUserWebAuthnAuthenticatorsRequest: {
217
+ page: {
218
+ greaterThanOrEqual: number;
219
+ lessThanOrEqual: number;
220
+ };
221
+ pageSize: {
222
+ greaterThanOrEqual: number;
223
+ lessThanOrEqual: number;
224
+ };
225
+ };
210
226
  export declare const ListUsersRequest: {
211
227
  page: {
212
228
  greaterThanOrEqual: number;
@@ -280,6 +296,9 @@ export declare const UpdateSamlRequest: {
280
296
  maxLength: number;
281
297
  minLength: number;
282
298
  };
299
+ singleSignOnUrl: {
300
+ prefix: string;
301
+ };
283
302
  };
284
303
  export declare const UpdateUserRequest: {
285
304
  firstName: {
@@ -296,6 +315,12 @@ export declare const UpdateUserUsernameRequest: {
296
315
  pattern: RegExp;
297
316
  };
298
317
  };
318
+ export declare const UpdateWebAuthnAuthenticatorRequest: {
319
+ authenticatorName: {
320
+ maxLength: number;
321
+ minLength: number;
322
+ };
323
+ };
299
324
  export declare const ValidateUserMFAOTPRequest: {
300
325
  oneTimePassword: {
301
326
  pattern: RegExp;