@scaleway/sdk-iam 2.5.0 → 2.6.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.
- package/dist/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1alpha1/api.gen.d.ts +8 -1
- package/dist/v1alpha1/api.gen.js +15 -3
- package/dist/v1alpha1/index.gen.d.ts +1 -1
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.js +73 -71
- package/dist/v1alpha1/types.gen.d.ts +6 -0
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.js +39 -37
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, 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, Group, InitiateUserConnectionRequest, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSamlCertificatesRequest, ListSamlCertificatesResponse, ListScimTokensRequest, ListScimTokensResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, ListUserWebAuthnAuthenticatorsRequest, ListUserWebAuthnAuthenticatorsResponse, LockUserRequest, Log, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, Policy, Quotum, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Saml, SamlCertificate, Scim, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, StartUserWebAuthnRegistrationRequest, StartUserWebAuthnRegistrationResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, UpdateWebAuthnAuthenticatorRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, WebAuthnAuthenticator } from './types.gen.js';
|
|
2
|
+
import type { AddGroupMemberRequest, AddGroupMembersRequest, AddSamlCertificateRequest, APIKey, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateScimTokenRequest, CreateScimTokenResponse, CreateSSHKeyRequest, CreateUserMFAOTPRequest, CreateUserRequest, 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, GetSamlCertificateRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, GetUserRequest, Group, InitiateUserConnectionRequest, InitiateUserConnectionResponse, JoinUserConnectionRequest, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSamlCertificatesRequest, ListSamlCertificatesResponse, ListScimTokensRequest, ListScimTokensResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, ListUserWebAuthnAuthenticatorsRequest, ListUserWebAuthnAuthenticatorsResponse, LockUserRequest, Log, MFAOTP, Organization, OrganizationSecuritySettings, ParseSamlMetadataRequest, ParseSamlMetadataResponse, Policy, Quotum, RemoveGroupMemberRequest, RemoveUserConnectionRequest, Saml, SamlCertificate, Scim, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, SetRulesResponse, SSHKey, StartUserWebAuthnRegistrationRequest, StartUserWebAuthnRegistrationResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationLoginMethodsRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSamlRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, UpdateWebAuthnAuthenticatorRequest, User, ValidateUserMFAOTPRequest, ValidateUserMFAOTPResponse, WebAuthnAuthenticator } from './types.gen.js';
|
|
3
3
|
/**
|
|
4
4
|
* IAM API.
|
|
5
5
|
|
|
@@ -507,6 +507,13 @@ export declare class API extends ParentAPI {
|
|
|
507
507
|
* @returns A Promise of SamlCertificate
|
|
508
508
|
*/
|
|
509
509
|
addSamlCertificate: (request: Readonly<AddSamlCertificateRequest>) => Promise<SamlCertificate>;
|
|
510
|
+
/**
|
|
511
|
+
* Get a SAML certificate.
|
|
512
|
+
*
|
|
513
|
+
* @param request - The request {@link GetSamlCertificateRequest}
|
|
514
|
+
* @returns A Promise of SamlCertificate
|
|
515
|
+
*/
|
|
516
|
+
getSamlCertificate: (request: Readonly<GetSamlCertificateRequest>) => Promise<SamlCertificate>;
|
|
510
517
|
/**
|
|
511
518
|
* Delete a SAML certificate.
|
|
512
519
|
*
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
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";
|
|
2
|
-
import { API, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
2
|
+
import { API as API$1, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1alpha1/api.gen.ts
|
|
3
4
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
5
|
/**
|
|
5
6
|
* IAM API.
|
|
6
7
|
|
|
7
8
|
This API allows you to manage Identity and Access Management (IAM) across your Scaleway Organizations, Projects and resources.
|
|
8
9
|
*/
|
|
9
|
-
var API
|
|
10
|
+
var API = class extends API$1 {
|
|
10
11
|
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
11
12
|
method: "GET",
|
|
12
13
|
path: `/iam/v1alpha1/ssh-keys`,
|
|
@@ -777,6 +778,16 @@ var API$1 = class extends API {
|
|
|
777
778
|
path: `/iam/v1alpha1/saml/${validatePathParam("samlId", request.samlId)}/certificates`
|
|
778
779
|
}, unmarshalSamlCertificate);
|
|
779
780
|
/**
|
|
781
|
+
* Get a SAML certificate.
|
|
782
|
+
*
|
|
783
|
+
* @param request - The request {@link GetSamlCertificateRequest}
|
|
784
|
+
* @returns A Promise of SamlCertificate
|
|
785
|
+
*/
|
|
786
|
+
getSamlCertificate = (request) => this.client.fetch({
|
|
787
|
+
method: "GET",
|
|
788
|
+
path: `/iam/v1alpha1/saml-certificates/${validatePathParam("certificateId", request.certificateId)}`
|
|
789
|
+
}, unmarshalSamlCertificate);
|
|
790
|
+
/**
|
|
780
791
|
* Delete a SAML certificate.
|
|
781
792
|
*
|
|
782
793
|
* @param request - The request {@link DeleteSamlCertificateRequest}
|
|
@@ -906,4 +917,5 @@ var API$1 = class extends API {
|
|
|
906
917
|
path: `/iam/v1alpha1/webauthn-authenticator/${validatePathParam("authenticatorId", request.authenticatorId)}`
|
|
907
918
|
});
|
|
908
919
|
};
|
|
909
|
-
|
|
920
|
+
//#endregion
|
|
921
|
+
export { API };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
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, 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';
|
|
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, GetSamlCertificateRequest, 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';
|
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
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 { API } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v1alpha1/index.gen.ts
|
|
5
6
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
API: () => API,
|
|
7
8
|
ValidationRules: () => validation_rules_gen_exports,
|
|
@@ -77,4 +78,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
77
78
|
unmarshalValidateUserMFAOTPResponse: () => unmarshalValidateUserMFAOTPResponse,
|
|
78
79
|
unmarshalWebAuthnAuthenticator: () => unmarshalWebAuthnAuthenticator
|
|
79
80
|
});
|
|
80
|
-
|
|
81
|
+
//#endregion
|
|
82
|
+
export { API, validation_rules_gen_exports as ValidationRules, index_gen_exports, 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 };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isJSONObject, marshalBlobToScwFile, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
-
|
|
3
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
4
|
+
var unmarshalJWT = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JWT' failed as data isn't a dictionary.`);
|
|
5
6
|
return {
|
|
6
7
|
audienceId: data.audience_id,
|
|
@@ -13,7 +14,7 @@ const unmarshalJWT = (data) => {
|
|
|
13
14
|
userAgent: data.user_agent
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
var unmarshalAPIKey = (data) => {
|
|
17
18
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'APIKey' failed as data isn't a dictionary.`);
|
|
18
19
|
return {
|
|
19
20
|
accessKey: data.access_key,
|
|
@@ -31,7 +32,7 @@ const unmarshalAPIKey = (data) => {
|
|
|
31
32
|
userId: data.user_id
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
var unmarshalApplication = (data) => {
|
|
35
36
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Application' failed as data isn't a dictionary.`);
|
|
36
37
|
return {
|
|
37
38
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -47,7 +48,7 @@ const unmarshalApplication = (data) => {
|
|
|
47
48
|
updatedAt: unmarshalDate(data.updated_at)
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
var unmarshalGroup = (data) => {
|
|
51
52
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Group' failed as data isn't a dictionary.`);
|
|
52
53
|
return {
|
|
53
54
|
applicationIds: data.application_ids,
|
|
@@ -64,7 +65,7 @@ const unmarshalGroup = (data) => {
|
|
|
64
65
|
userIds: data.user_ids
|
|
65
66
|
};
|
|
66
67
|
};
|
|
67
|
-
|
|
68
|
+
var unmarshalLog = (data) => {
|
|
68
69
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
69
70
|
return {
|
|
70
71
|
action: data.action,
|
|
@@ -78,7 +79,7 @@ const unmarshalLog = (data) => {
|
|
|
78
79
|
userAgent: data.user_agent
|
|
79
80
|
};
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
+
var unmarshalPolicy = (data) => {
|
|
82
83
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Policy' failed as data isn't a dictionary.`);
|
|
83
84
|
return {
|
|
84
85
|
applicationId: data.application_id,
|
|
@@ -110,7 +111,7 @@ var unmarshalQuotumLimit = (data) => {
|
|
|
110
111
|
zone: data.zone
|
|
111
112
|
};
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
+
var unmarshalQuotum = (data) => {
|
|
114
115
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Quotum' failed as data isn't a dictionary.`);
|
|
115
116
|
return {
|
|
116
117
|
description: data.description,
|
|
@@ -123,7 +124,7 @@ const unmarshalQuotum = (data) => {
|
|
|
123
124
|
unlimited: data.unlimited
|
|
124
125
|
};
|
|
125
126
|
};
|
|
126
|
-
|
|
127
|
+
var unmarshalSSHKey = (data) => {
|
|
127
128
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SSHKey' failed as data isn't a dictionary.`);
|
|
128
129
|
return {
|
|
129
130
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -137,7 +138,7 @@ const unmarshalSSHKey = (data) => {
|
|
|
137
138
|
updatedAt: unmarshalDate(data.updated_at)
|
|
138
139
|
};
|
|
139
140
|
};
|
|
140
|
-
|
|
141
|
+
var unmarshalSamlCertificate = (data) => {
|
|
141
142
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SamlCertificate' failed as data isn't a dictionary.`);
|
|
142
143
|
return {
|
|
143
144
|
content: data.content,
|
|
@@ -147,7 +148,7 @@ const unmarshalSamlCertificate = (data) => {
|
|
|
147
148
|
type: data.type
|
|
148
149
|
};
|
|
149
150
|
};
|
|
150
|
-
|
|
151
|
+
var unmarshalWebAuthnAuthenticator = (data) => {
|
|
151
152
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'WebAuthnAuthenticator' failed as data isn't a dictionary.`);
|
|
152
153
|
return {
|
|
153
154
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -156,7 +157,7 @@ const unmarshalWebAuthnAuthenticator = (data) => {
|
|
|
156
157
|
name: data.name
|
|
157
158
|
};
|
|
158
159
|
};
|
|
159
|
-
|
|
160
|
+
var unmarshalUser = (data) => {
|
|
160
161
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'User' failed as data isn't a dictionary.`);
|
|
161
162
|
return {
|
|
162
163
|
accountRootUserId: data.account_root_user_id,
|
|
@@ -189,14 +190,14 @@ var unmarshalScimToken = (data) => {
|
|
|
189
190
|
scimId: data.scim_id
|
|
190
191
|
};
|
|
191
192
|
};
|
|
192
|
-
|
|
193
|
+
var unmarshalCreateScimTokenResponse = (data) => {
|
|
193
194
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateScimTokenResponse' failed as data isn't a dictionary.`);
|
|
194
195
|
return {
|
|
195
196
|
bearerToken: data.bearer_token,
|
|
196
197
|
token: data.token ? unmarshalScimToken(data.token) : void 0
|
|
197
198
|
};
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
var unmarshalEncodedJWT = (data) => {
|
|
200
201
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EncodedJWT' failed as data isn't a dictionary.`);
|
|
201
202
|
return {
|
|
202
203
|
jwt: data.jwt ? unmarshalJWT(data.jwt) : void 0,
|
|
@@ -204,7 +205,7 @@ const unmarshalEncodedJWT = (data) => {
|
|
|
204
205
|
token: data.token
|
|
205
206
|
};
|
|
206
207
|
};
|
|
207
|
-
|
|
208
|
+
var unmarshalFinishUserWebAuthnRegistrationResponse = (data) => {
|
|
208
209
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FinishUserWebAuthnRegistrationResponse' failed as data isn't a dictionary.`);
|
|
209
210
|
return { authenticatorId: data.authenticator_id };
|
|
210
211
|
};
|
|
@@ -231,22 +232,22 @@ var unmarshalConnection = (data) => {
|
|
|
231
232
|
user: data.user ? unmarshalConnectionConnectedUser(data.user) : void 0
|
|
232
233
|
};
|
|
233
234
|
};
|
|
234
|
-
|
|
235
|
+
var unmarshalGetUserConnectionsResponse = (data) => {
|
|
235
236
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetUserConnectionsResponse' failed as data isn't a dictionary.`);
|
|
236
237
|
return { connections: unmarshalArrayOfObject(data.connections, unmarshalConnection) };
|
|
237
238
|
};
|
|
238
|
-
|
|
239
|
+
var unmarshalInitiateUserConnectionResponse = (data) => {
|
|
239
240
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InitiateUserConnectionResponse' failed as data isn't a dictionary.`);
|
|
240
241
|
return { token: data.token };
|
|
241
242
|
};
|
|
242
|
-
|
|
243
|
+
var unmarshalListAPIKeysResponse = (data) => {
|
|
243
244
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAPIKeysResponse' failed as data isn't a dictionary.`);
|
|
244
245
|
return {
|
|
245
246
|
apiKeys: unmarshalArrayOfObject(data.api_keys, unmarshalAPIKey),
|
|
246
247
|
totalCount: data.total_count
|
|
247
248
|
};
|
|
248
249
|
};
|
|
249
|
-
|
|
250
|
+
var unmarshalListApplicationsResponse = (data) => {
|
|
250
251
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListApplicationsResponse' failed as data isn't a dictionary.`);
|
|
251
252
|
return {
|
|
252
253
|
applications: unmarshalArrayOfObject(data.applications, unmarshalApplication),
|
|
@@ -261,25 +262,25 @@ var unmarshalGracePeriod = (data) => {
|
|
|
261
262
|
type: data.type
|
|
262
263
|
};
|
|
263
264
|
};
|
|
264
|
-
|
|
265
|
+
var unmarshalListGracePeriodsResponse = (data) => {
|
|
265
266
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGracePeriodsResponse' failed as data isn't a dictionary.`);
|
|
266
267
|
return { gracePeriods: unmarshalArrayOfObject(data.grace_periods, unmarshalGracePeriod) };
|
|
267
268
|
};
|
|
268
|
-
|
|
269
|
+
var unmarshalListGroupsResponse = (data) => {
|
|
269
270
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGroupsResponse' failed as data isn't a dictionary.`);
|
|
270
271
|
return {
|
|
271
272
|
groups: unmarshalArrayOfObject(data.groups, unmarshalGroup),
|
|
272
273
|
totalCount: data.total_count
|
|
273
274
|
};
|
|
274
275
|
};
|
|
275
|
-
|
|
276
|
+
var unmarshalListJWTsResponse = (data) => {
|
|
276
277
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJWTsResponse' failed as data isn't a dictionary.`);
|
|
277
278
|
return {
|
|
278
279
|
jwts: unmarshalArrayOfObject(data.jwts, unmarshalJWT),
|
|
279
280
|
totalCount: data.total_count
|
|
280
281
|
};
|
|
281
282
|
};
|
|
282
|
-
|
|
283
|
+
var unmarshalListLogsResponse = (data) => {
|
|
283
284
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
284
285
|
return {
|
|
285
286
|
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
@@ -296,21 +297,21 @@ var unmarshalPermissionSet = (data) => {
|
|
|
296
297
|
scopeType: data.scope_type
|
|
297
298
|
};
|
|
298
299
|
};
|
|
299
|
-
|
|
300
|
+
var unmarshalListPermissionSetsResponse = (data) => {
|
|
300
301
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPermissionSetsResponse' failed as data isn't a dictionary.`);
|
|
301
302
|
return {
|
|
302
303
|
permissionSets: unmarshalArrayOfObject(data.permission_sets, unmarshalPermissionSet),
|
|
303
304
|
totalCount: data.total_count
|
|
304
305
|
};
|
|
305
306
|
};
|
|
306
|
-
|
|
307
|
+
var unmarshalListPoliciesResponse = (data) => {
|
|
307
308
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPoliciesResponse' failed as data isn't a dictionary.`);
|
|
308
309
|
return {
|
|
309
310
|
policies: unmarshalArrayOfObject(data.policies, unmarshalPolicy),
|
|
310
311
|
totalCount: data.total_count
|
|
311
312
|
};
|
|
312
313
|
};
|
|
313
|
-
|
|
314
|
+
var unmarshalListQuotaResponse = (data) => {
|
|
314
315
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListQuotaResponse' failed as data isn't a dictionary.`);
|
|
315
316
|
return {
|
|
316
317
|
quota: unmarshalArrayOfObject(data.quota, unmarshalQuotum),
|
|
@@ -329,50 +330,50 @@ var unmarshalRule = (data) => {
|
|
|
329
330
|
projectIds: data.project_ids
|
|
330
331
|
};
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
+
var unmarshalListRulesResponse = (data) => {
|
|
333
334
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRulesResponse' failed as data isn't a dictionary.`);
|
|
334
335
|
return {
|
|
335
336
|
rules: unmarshalArrayOfObject(data.rules, unmarshalRule),
|
|
336
337
|
totalCount: data.total_count
|
|
337
338
|
};
|
|
338
339
|
};
|
|
339
|
-
|
|
340
|
+
var unmarshalListSSHKeysResponse = (data) => {
|
|
340
341
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSSHKeysResponse' failed as data isn't a dictionary.`);
|
|
341
342
|
return {
|
|
342
343
|
sshKeys: unmarshalArrayOfObject(data.ssh_keys, unmarshalSSHKey),
|
|
343
344
|
totalCount: data.total_count
|
|
344
345
|
};
|
|
345
346
|
};
|
|
346
|
-
|
|
347
|
+
var unmarshalListSamlCertificatesResponse = (data) => {
|
|
347
348
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSamlCertificatesResponse' failed as data isn't a dictionary.`);
|
|
348
349
|
return { certificates: unmarshalArrayOfObject(data.certificates, unmarshalSamlCertificate) };
|
|
349
350
|
};
|
|
350
|
-
|
|
351
|
+
var unmarshalListScimTokensResponse = (data) => {
|
|
351
352
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListScimTokensResponse' failed as data isn't a dictionary.`);
|
|
352
353
|
return {
|
|
353
354
|
scimTokens: unmarshalArrayOfObject(data.scim_tokens, unmarshalScimToken),
|
|
354
355
|
totalCount: data.total_count
|
|
355
356
|
};
|
|
356
357
|
};
|
|
357
|
-
|
|
358
|
+
var unmarshalListUserWebAuthnAuthenticatorsResponse = (data) => {
|
|
358
359
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUserWebAuthnAuthenticatorsResponse' failed as data isn't a dictionary.`);
|
|
359
360
|
return {
|
|
360
361
|
authenticators: unmarshalArrayOfObject(data.authenticators, unmarshalWebAuthnAuthenticator),
|
|
361
362
|
totalCount: data.total_count
|
|
362
363
|
};
|
|
363
364
|
};
|
|
364
|
-
|
|
365
|
+
var unmarshalListUsersResponse = (data) => {
|
|
365
366
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUsersResponse' failed as data isn't a dictionary.`);
|
|
366
367
|
return {
|
|
367
368
|
totalCount: data.total_count,
|
|
368
369
|
users: unmarshalArrayOfObject(data.users, unmarshalUser)
|
|
369
370
|
};
|
|
370
371
|
};
|
|
371
|
-
|
|
372
|
+
var unmarshalMFAOTP = (data) => {
|
|
372
373
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'MFAOTP' failed as data isn't a dictionary.`);
|
|
373
374
|
return { secret: data.secret };
|
|
374
375
|
};
|
|
375
|
-
|
|
376
|
+
var unmarshalOrganization = (data) => {
|
|
376
377
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Organization' failed as data isn't a dictionary.`);
|
|
377
378
|
return {
|
|
378
379
|
alias: data.alias,
|
|
@@ -384,7 +385,7 @@ const unmarshalOrganization = (data) => {
|
|
|
384
385
|
name: data.name
|
|
385
386
|
};
|
|
386
387
|
};
|
|
387
|
-
|
|
388
|
+
var unmarshalOrganizationSecuritySettings = (data) => {
|
|
388
389
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OrganizationSecuritySettings' failed as data isn't a dictionary.`);
|
|
389
390
|
return {
|
|
390
391
|
enforcePasswordRenewal: data.enforce_password_renewal,
|
|
@@ -394,7 +395,7 @@ const unmarshalOrganizationSecuritySettings = (data) => {
|
|
|
394
395
|
maxLoginSessionDuration: data.max_login_session_duration
|
|
395
396
|
};
|
|
396
397
|
};
|
|
397
|
-
|
|
398
|
+
var unmarshalParseSamlMetadataResponse = (data) => {
|
|
398
399
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ParseSamlMetadataResponse' failed as data isn't a dictionary.`);
|
|
399
400
|
return {
|
|
400
401
|
entityId: data.entity_id,
|
|
@@ -409,7 +410,7 @@ var unmarshalSamlServiceProvider = (data) => {
|
|
|
409
410
|
entityId: data.entity_id
|
|
410
411
|
};
|
|
411
412
|
};
|
|
412
|
-
|
|
413
|
+
var unmarshalSaml = (data) => {
|
|
413
414
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Saml' failed as data isn't a dictionary.`);
|
|
414
415
|
return {
|
|
415
416
|
entityId: data.entity_id,
|
|
@@ -419,18 +420,18 @@ const unmarshalSaml = (data) => {
|
|
|
419
420
|
status: data.status
|
|
420
421
|
};
|
|
421
422
|
};
|
|
422
|
-
|
|
423
|
+
var unmarshalScim = (data) => {
|
|
423
424
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Scim' failed as data isn't a dictionary.`);
|
|
424
425
|
return {
|
|
425
426
|
createdAt: unmarshalDate(data.created_at),
|
|
426
427
|
id: data.id
|
|
427
428
|
};
|
|
428
429
|
};
|
|
429
|
-
|
|
430
|
+
var unmarshalSetRulesResponse = (data) => {
|
|
430
431
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetRulesResponse' failed as data isn't a dictionary.`);
|
|
431
432
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalRule) };
|
|
432
433
|
};
|
|
433
|
-
|
|
434
|
+
var unmarshalStartUserWebAuthnRegistrationResponse = (data) => {
|
|
434
435
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'StartUserWebAuthnRegistrationResponse' failed as data isn't a dictionary.`);
|
|
435
436
|
return {
|
|
436
437
|
ceremonyId: data.ceremony_id,
|
|
@@ -440,26 +441,26 @@ const unmarshalStartUserWebAuthnRegistrationResponse = (data) => {
|
|
|
440
441
|
timeout: data.timeout
|
|
441
442
|
};
|
|
442
443
|
};
|
|
443
|
-
|
|
444
|
+
var unmarshalValidateUserMFAOTPResponse = (data) => {
|
|
444
445
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ValidateUserMFAOTPResponse' failed as data isn't a dictionary.`);
|
|
445
446
|
return { recoveryCodes: data.recovery_codes };
|
|
446
447
|
};
|
|
447
|
-
|
|
448
|
+
var marshalAddGroupMemberRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
448
449
|
param: "user_id",
|
|
449
450
|
value: request.userId
|
|
450
451
|
}, {
|
|
451
452
|
param: "application_id",
|
|
452
453
|
value: request.applicationId
|
|
453
454
|
}]) });
|
|
454
|
-
|
|
455
|
+
var marshalAddGroupMembersRequest = (request, defaults) => ({
|
|
455
456
|
application_ids: request.applicationIds,
|
|
456
457
|
user_ids: request.userIds
|
|
457
458
|
});
|
|
458
|
-
|
|
459
|
+
var marshalAddSamlCertificateRequest = (request, defaults) => ({
|
|
459
460
|
content: request.content,
|
|
460
461
|
type: request.type
|
|
461
462
|
});
|
|
462
|
-
|
|
463
|
+
var marshalCreateAPIKeyRequest = (request, defaults) => ({
|
|
463
464
|
default_project_id: request.defaultProjectId,
|
|
464
465
|
description: request.description,
|
|
465
466
|
expires_at: request.expiresAt,
|
|
@@ -471,19 +472,19 @@ const marshalCreateAPIKeyRequest = (request, defaults) => ({
|
|
|
471
472
|
value: request.userId
|
|
472
473
|
}])
|
|
473
474
|
});
|
|
474
|
-
|
|
475
|
+
var marshalCreateApplicationRequest = (request, defaults) => ({
|
|
475
476
|
description: request.description,
|
|
476
477
|
name: request.name || randomName("app"),
|
|
477
478
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
478
479
|
tags: request.tags
|
|
479
480
|
});
|
|
480
|
-
|
|
481
|
+
var marshalCreateGroupRequest = (request, defaults) => ({
|
|
481
482
|
description: request.description,
|
|
482
483
|
name: request.name || randomName("grp"),
|
|
483
484
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
484
485
|
tags: request.tags
|
|
485
486
|
});
|
|
486
|
-
|
|
487
|
+
var marshalCreateJWTRequest = (request, defaults) => ({
|
|
487
488
|
referrer: request.referrer,
|
|
488
489
|
user_id: request.userId
|
|
489
490
|
});
|
|
@@ -498,7 +499,7 @@ var marshalRuleSpecs = (request, defaults) => ({
|
|
|
498
499
|
value: request.organizationId
|
|
499
500
|
}])
|
|
500
501
|
});
|
|
501
|
-
|
|
502
|
+
var marshalCreatePolicyRequest = (request, defaults) => ({
|
|
502
503
|
description: request.description,
|
|
503
504
|
name: request.name || randomName("pol"),
|
|
504
505
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
@@ -523,7 +524,7 @@ const marshalCreatePolicyRequest = (request, defaults) => ({
|
|
|
523
524
|
}
|
|
524
525
|
])
|
|
525
526
|
});
|
|
526
|
-
|
|
527
|
+
var marshalCreateSSHKeyRequest = (request, defaults) => ({
|
|
527
528
|
name: request.name || randomName("key"),
|
|
528
529
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
529
530
|
public_key: request.publicKey
|
|
@@ -539,7 +540,7 @@ var marshalCreateUserRequestMember = (request, defaults) => ({
|
|
|
539
540
|
send_welcome_email: request.sendWelcomeEmail,
|
|
540
541
|
username: request.username
|
|
541
542
|
});
|
|
542
|
-
|
|
543
|
+
var marshalCreateUserRequest = (request, defaults) => ({
|
|
543
544
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
544
545
|
tags: request.tags,
|
|
545
546
|
...resolveOneOf([{
|
|
@@ -550,7 +551,7 @@ const marshalCreateUserRequest = (request, defaults) => ({
|
|
|
550
551
|
value: request.member !== void 0 ? marshalCreateUserRequestMember(request.member, defaults) : void 0
|
|
551
552
|
}])
|
|
552
553
|
});
|
|
553
|
-
|
|
554
|
+
var marshalFinishUserWebAuthnRegistrationRequest = (request, defaults) => ({
|
|
554
555
|
attestation_object: request.attestationObject,
|
|
555
556
|
authenticator_data: request.authenticatorData,
|
|
556
557
|
authenticator_name: request.authenticatorName,
|
|
@@ -561,54 +562,54 @@ const marshalFinishUserWebAuthnRegistrationRequest = (request, defaults) => ({
|
|
|
561
562
|
public_key_algorithm: request.publicKeyAlgorithm,
|
|
562
563
|
raw_id: request.rawId
|
|
563
564
|
});
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
var marshalJoinUserConnectionRequest = (request, defaults) => ({ token: request.token });
|
|
566
|
+
var marshalParseSamlMetadataRequest = async (request, defaults) => ({ file: await marshalBlobToScwFile(request.file) });
|
|
567
|
+
var marshalRemoveGroupMemberRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
567
568
|
param: "user_id",
|
|
568
569
|
value: request.userId
|
|
569
570
|
}, {
|
|
570
571
|
param: "application_id",
|
|
571
572
|
value: request.applicationId
|
|
572
573
|
}]) });
|
|
573
|
-
|
|
574
|
-
|
|
574
|
+
var marshalRemoveUserConnectionRequest = (request, defaults) => ({ target_user_id: request.targetUserId });
|
|
575
|
+
var marshalSetGroupMembersRequest = (request, defaults) => ({
|
|
575
576
|
application_ids: request.applicationIds,
|
|
576
577
|
user_ids: request.userIds
|
|
577
578
|
});
|
|
578
|
-
|
|
579
|
-
|
|
579
|
+
var marshalSetOrganizationAliasRequest = (request, defaults) => ({ alias: request.alias });
|
|
580
|
+
var marshalSetRulesRequest = (request, defaults) => ({
|
|
580
581
|
policy_id: request.policyId,
|
|
581
582
|
rules: request.rules.map((elt) => marshalRuleSpecs(elt, defaults))
|
|
582
583
|
});
|
|
583
|
-
|
|
584
|
+
var marshalUpdateAPIKeyRequest = (request, defaults) => ({
|
|
584
585
|
default_project_id: request.defaultProjectId,
|
|
585
586
|
description: request.description,
|
|
586
587
|
expires_at: request.expiresAt
|
|
587
588
|
});
|
|
588
|
-
|
|
589
|
+
var marshalUpdateApplicationRequest = (request, defaults) => ({
|
|
589
590
|
description: request.description,
|
|
590
591
|
name: request.name,
|
|
591
592
|
tags: request.tags
|
|
592
593
|
});
|
|
593
|
-
|
|
594
|
+
var marshalUpdateGroupRequest = (request, defaults) => ({
|
|
594
595
|
description: request.description,
|
|
595
596
|
name: request.name,
|
|
596
597
|
tags: request.tags
|
|
597
598
|
});
|
|
598
|
-
|
|
599
|
+
var marshalUpdateOrganizationLoginMethodsRequest = (request, defaults) => ({
|
|
599
600
|
login_magic_code_enabled: request.loginMagicCodeEnabled,
|
|
600
601
|
login_oauth2_enabled: request.loginOauth2Enabled,
|
|
601
602
|
login_password_enabled: request.loginPasswordEnabled,
|
|
602
603
|
login_saml_enabled: request.loginSamlEnabled
|
|
603
604
|
});
|
|
604
|
-
|
|
605
|
+
var marshalUpdateOrganizationSecuritySettingsRequest = (request, defaults) => ({
|
|
605
606
|
enforce_password_renewal: request.enforcePasswordRenewal,
|
|
606
607
|
grace_period_duration: request.gracePeriodDuration,
|
|
607
608
|
login_attempts_before_locked: request.loginAttemptsBeforeLocked,
|
|
608
609
|
max_api_key_expiration_duration: request.maxApiKeyExpirationDuration,
|
|
609
610
|
max_login_session_duration: request.maxLoginSessionDuration
|
|
610
611
|
});
|
|
611
|
-
|
|
612
|
+
var marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
612
613
|
description: request.description,
|
|
613
614
|
name: request.name,
|
|
614
615
|
tags: request.tags,
|
|
@@ -631,16 +632,16 @@ const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
|
631
632
|
}
|
|
632
633
|
])
|
|
633
634
|
});
|
|
634
|
-
|
|
635
|
+
var marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
635
636
|
disabled: request.disabled,
|
|
636
637
|
name: request.name
|
|
637
638
|
});
|
|
638
|
-
|
|
639
|
+
var marshalUpdateSamlRequest = (request, defaults) => ({
|
|
639
640
|
entity_id: request.entityId,
|
|
640
641
|
single_sign_on_url: request.singleSignOnUrl
|
|
641
642
|
});
|
|
642
|
-
|
|
643
|
-
|
|
643
|
+
var marshalUpdateUserPasswordRequest = (request, defaults) => ({ password: request.password });
|
|
644
|
+
var marshalUpdateUserRequest = (request, defaults) => ({
|
|
644
645
|
email: request.email,
|
|
645
646
|
first_name: request.firstName,
|
|
646
647
|
last_name: request.lastName,
|
|
@@ -648,7 +649,8 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
648
649
|
phone_number: request.phoneNumber,
|
|
649
650
|
tags: request.tags
|
|
650
651
|
});
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
var marshalUpdateUserUsernameRequest = (request, defaults) => ({ username: request.username });
|
|
653
|
+
var marshalUpdateWebAuthnAuthenticatorRequest = (request, defaults) => ({ authenticator_name: request.authenticatorName });
|
|
654
|
+
var marshalValidateUserMFAOTPRequest = (request, defaults) => ({ one_time_password: request.oneTimePassword });
|
|
655
|
+
//#endregion
|
|
654
656
|
export { 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 };
|
|
@@ -1158,6 +1158,12 @@ export type GetSSHKeyRequest = {
|
|
|
1158
1158
|
*/
|
|
1159
1159
|
sshKeyId: string;
|
|
1160
1160
|
};
|
|
1161
|
+
export type GetSamlCertificateRequest = {
|
|
1162
|
+
/**
|
|
1163
|
+
* ID of the certificate to get.
|
|
1164
|
+
*/
|
|
1165
|
+
certificateId: string;
|
|
1166
|
+
};
|
|
1161
1167
|
export type GetUserConnectionsRequest = {
|
|
1162
1168
|
/**
|
|
1163
1169
|
* ID of the user to list connections for.
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1alpha1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
AddSamlCertificateRequest: () => AddSamlCertificateRequest,
|
|
4
5
|
CreateAPIKeyRequest: () => CreateAPIKeyRequest,
|
|
@@ -37,15 +38,15 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
37
38
|
UpdateWebAuthnAuthenticatorRequest: () => UpdateWebAuthnAuthenticatorRequest,
|
|
38
39
|
ValidateUserMFAOTPRequest: () => ValidateUserMFAOTPRequest
|
|
39
40
|
});
|
|
40
|
-
|
|
41
|
+
var AddSamlCertificateRequest = { content: {
|
|
41
42
|
maxLength: 16384,
|
|
42
43
|
minLength: 1
|
|
43
44
|
} };
|
|
44
|
-
|
|
45
|
+
var CreateAPIKeyRequest = { description: {
|
|
45
46
|
ignoreEmpty: true,
|
|
46
47
|
maxLength: 200
|
|
47
48
|
} };
|
|
48
|
-
|
|
49
|
+
var CreateApplicationRequest = {
|
|
49
50
|
description: {
|
|
50
51
|
ignoreEmpty: true,
|
|
51
52
|
maxLength: 200
|
|
@@ -56,7 +57,7 @@ const CreateApplicationRequest = {
|
|
|
56
57
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
+
var CreateGroupRequest = {
|
|
60
61
|
description: {
|
|
61
62
|
ignoreEmpty: true,
|
|
62
63
|
maxLength: 200
|
|
@@ -67,7 +68,7 @@ const CreateGroupRequest = {
|
|
|
67
68
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
+
var CreatePolicyRequest = {
|
|
71
72
|
description: {
|
|
72
73
|
ignoreEmpty: true,
|
|
73
74
|
maxLength: 200
|
|
@@ -78,7 +79,7 @@ const CreatePolicyRequest = {
|
|
|
78
79
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
+
var CreateSSHKeyRequest = {
|
|
82
83
|
name: {
|
|
83
84
|
ignoreEmpty: true,
|
|
84
85
|
maxLength: 1e3
|
|
@@ -88,7 +89,7 @@ const CreateSSHKeyRequest = {
|
|
|
88
89
|
minLength: 1
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
|
-
|
|
92
|
+
var CreateUserRequestMember = {
|
|
92
93
|
firstName: { maxLength: 64 },
|
|
93
94
|
lastName: { maxLength: 64 },
|
|
94
95
|
password: { ignoreEmpty: true },
|
|
@@ -98,13 +99,13 @@ const CreateUserRequestMember = {
|
|
|
98
99
|
pattern: /^[a-zA-Z0-9@._-]+$/
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
var FinishUserWebAuthnRegistrationRequest = { authenticatorName: {
|
|
102
103
|
maxLength: 256,
|
|
103
104
|
minLength: 1
|
|
104
105
|
} };
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
var GetQuotumRequest = { quotumName: { minLength: 1 } };
|
|
107
|
+
var JoinUserConnectionRequest = { token: { minLength: 1 } };
|
|
108
|
+
var ListAPIKeysRequest = {
|
|
108
109
|
description: { maxLength: 200 },
|
|
109
110
|
page: {
|
|
110
111
|
greaterThanOrEqual: 1,
|
|
@@ -115,7 +116,7 @@ const ListAPIKeysRequest = {
|
|
|
115
116
|
lessThanOrEqual: 100
|
|
116
117
|
}
|
|
117
118
|
};
|
|
118
|
-
|
|
119
|
+
var ListApplicationsRequest = {
|
|
119
120
|
name: {
|
|
120
121
|
maxLength: 64,
|
|
121
122
|
minLength: 1,
|
|
@@ -130,7 +131,7 @@ const ListApplicationsRequest = {
|
|
|
130
131
|
lessThanOrEqual: 100
|
|
131
132
|
}
|
|
132
133
|
};
|
|
133
|
-
|
|
134
|
+
var ListGroupsRequest = {
|
|
134
135
|
name: { minLength: 1 },
|
|
135
136
|
page: {
|
|
136
137
|
greaterThanOrEqual: 1,
|
|
@@ -141,7 +142,7 @@ const ListGroupsRequest = {
|
|
|
141
142
|
lessThanOrEqual: 100
|
|
142
143
|
}
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
+
var ListJWTsRequest = {
|
|
145
146
|
page: {
|
|
146
147
|
greaterThanOrEqual: 1,
|
|
147
148
|
lessThanOrEqual: 1e4
|
|
@@ -151,7 +152,7 @@ const ListJWTsRequest = {
|
|
|
151
152
|
lessThanOrEqual: 100
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
|
-
|
|
155
|
+
var ListLogsRequest = {
|
|
155
156
|
page: {
|
|
156
157
|
greaterThanOrEqual: 1,
|
|
157
158
|
lessThanOrEqual: 1e4
|
|
@@ -161,7 +162,7 @@ const ListLogsRequest = {
|
|
|
161
162
|
lessThanOrEqual: 100
|
|
162
163
|
}
|
|
163
164
|
};
|
|
164
|
-
|
|
165
|
+
var ListPermissionSetsRequest = {
|
|
165
166
|
page: {
|
|
166
167
|
greaterThanOrEqual: 1,
|
|
167
168
|
lessThanOrEqual: 1e4
|
|
@@ -171,7 +172,7 @@ const ListPermissionSetsRequest = {
|
|
|
171
172
|
lessThanOrEqual: 100
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
|
-
|
|
175
|
+
var ListPoliciesRequest = {
|
|
175
176
|
page: {
|
|
176
177
|
greaterThanOrEqual: 1,
|
|
177
178
|
lessThanOrEqual: 1e4
|
|
@@ -182,7 +183,7 @@ const ListPoliciesRequest = {
|
|
|
182
183
|
},
|
|
183
184
|
policyName: { minLength: 1 }
|
|
184
185
|
};
|
|
185
|
-
|
|
186
|
+
var ListQuotaRequest = {
|
|
186
187
|
page: {
|
|
187
188
|
greaterThanOrEqual: 1,
|
|
188
189
|
lessThanOrEqual: 1e4
|
|
@@ -192,7 +193,7 @@ const ListQuotaRequest = {
|
|
|
192
193
|
lessThanOrEqual: 100
|
|
193
194
|
}
|
|
194
195
|
};
|
|
195
|
-
|
|
196
|
+
var ListRulesRequest = {
|
|
196
197
|
page: {
|
|
197
198
|
greaterThanOrEqual: 1,
|
|
198
199
|
lessThanOrEqual: 1e4
|
|
@@ -202,7 +203,7 @@ const ListRulesRequest = {
|
|
|
202
203
|
lessThanOrEqual: 100
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
|
-
|
|
206
|
+
var ListSSHKeysRequest = {
|
|
206
207
|
name: {
|
|
207
208
|
maxLength: 1e3,
|
|
208
209
|
minLength: 1
|
|
@@ -216,7 +217,7 @@ const ListSSHKeysRequest = {
|
|
|
216
217
|
lessThanOrEqual: 100
|
|
217
218
|
}
|
|
218
219
|
};
|
|
219
|
-
|
|
220
|
+
var ListScimTokensRequest = {
|
|
220
221
|
page: {
|
|
221
222
|
greaterThanOrEqual: 1,
|
|
222
223
|
lessThanOrEqual: 1e4
|
|
@@ -226,7 +227,7 @@ const ListScimTokensRequest = {
|
|
|
226
227
|
lessThanOrEqual: 100
|
|
227
228
|
}
|
|
228
229
|
};
|
|
229
|
-
|
|
230
|
+
var ListUserWebAuthnAuthenticatorsRequest = {
|
|
230
231
|
page: {
|
|
231
232
|
greaterThanOrEqual: 1,
|
|
232
233
|
lessThanOrEqual: 1e4
|
|
@@ -236,7 +237,7 @@ const ListUserWebAuthnAuthenticatorsRequest = {
|
|
|
236
237
|
lessThanOrEqual: 100
|
|
237
238
|
}
|
|
238
239
|
};
|
|
239
|
-
|
|
240
|
+
var ListUsersRequest = {
|
|
240
241
|
page: {
|
|
241
242
|
greaterThanOrEqual: 1,
|
|
242
243
|
lessThanOrEqual: 1e4
|
|
@@ -246,14 +247,14 @@ const ListUsersRequest = {
|
|
|
246
247
|
lessThanOrEqual: 100
|
|
247
248
|
}
|
|
248
249
|
};
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
var RuleSpecs = { condition: { maxLength: 2048 } };
|
|
251
|
+
var SetOrganizationAliasRequest = { alias: {
|
|
251
252
|
maxLength: 32,
|
|
252
253
|
minLength: 2,
|
|
253
254
|
pattern: /^[a-z0-9]+$/
|
|
254
255
|
} };
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
var UpdateAPIKeyRequest = { description: { maxLength: 200 } };
|
|
257
|
+
var UpdateApplicationRequest = {
|
|
257
258
|
description: { maxLength: 200 },
|
|
258
259
|
name: {
|
|
259
260
|
maxLength: 64,
|
|
@@ -261,7 +262,7 @@ const UpdateApplicationRequest = {
|
|
|
261
262
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
262
263
|
}
|
|
263
264
|
};
|
|
264
|
-
|
|
265
|
+
var UpdateGroupRequest = {
|
|
265
266
|
description: { maxLength: 200 },
|
|
266
267
|
name: {
|
|
267
268
|
maxLength: 64,
|
|
@@ -269,11 +270,11 @@ const UpdateGroupRequest = {
|
|
|
269
270
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
270
271
|
}
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
+
var UpdateOrganizationSecuritySettingsRequest = { loginAttemptsBeforeLocked: {
|
|
273
274
|
greaterThanOrEqual: 1,
|
|
274
275
|
lessThanOrEqual: 50
|
|
275
276
|
} };
|
|
276
|
-
|
|
277
|
+
var UpdatePolicyRequest = {
|
|
277
278
|
description: { maxLength: 200 },
|
|
278
279
|
name: {
|
|
279
280
|
maxLength: 64,
|
|
@@ -281,26 +282,27 @@ const UpdatePolicyRequest = {
|
|
|
281
282
|
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
|
|
282
283
|
}
|
|
283
284
|
};
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
var UpdateSSHKeyRequest = { name: { maxLength: 1e3 } };
|
|
286
|
+
var UpdateSamlRequest = {
|
|
286
287
|
entityId: {
|
|
287
288
|
maxLength: 1024,
|
|
288
289
|
minLength: 1
|
|
289
290
|
},
|
|
290
291
|
singleSignOnUrl: { prefix: "https://" }
|
|
291
292
|
};
|
|
292
|
-
|
|
293
|
+
var UpdateUserRequest = {
|
|
293
294
|
firstName: { maxLength: 64 },
|
|
294
295
|
lastName: { maxLength: 64 }
|
|
295
296
|
};
|
|
296
|
-
|
|
297
|
+
var UpdateUserUsernameRequest = { username: {
|
|
297
298
|
maxLength: 150,
|
|
298
299
|
minLength: 2,
|
|
299
300
|
pattern: /^[a-zA-Z0-9@._-]+$/
|
|
300
301
|
} };
|
|
301
|
-
|
|
302
|
+
var UpdateWebAuthnAuthenticatorRequest = { authenticatorName: {
|
|
302
303
|
maxLength: 256,
|
|
303
304
|
minLength: 1
|
|
304
305
|
} };
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
var ValidateUserMFAOTPRequest = { oneTimePassword: { pattern: /^[0-9]{6}$/ } };
|
|
307
|
+
//#endregion
|
|
308
|
+
export { AddSamlCertificateRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequestMember, FinishUserWebAuthnRegistrationRequest, GetQuotumRequest, JoinUserConnectionRequest, ListAPIKeysRequest, ListApplicationsRequest, ListGroupsRequest, ListJWTsRequest, ListLogsRequest, ListPermissionSetsRequest, ListPoliciesRequest, ListQuotaRequest, ListRulesRequest, ListSSHKeysRequest, ListScimTokensRequest, ListUserWebAuthnAuthenticatorsRequest, ListUsersRequest, RuleSpecs, SetOrganizationAliasRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateSamlRequest, UpdateUserRequest, UpdateUserUsernameRequest, UpdateWebAuthnAuthenticatorRequest, ValidateUserMFAOTPRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-iam",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Scaleway SDK iam",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|