@dynamic-labs/sdk-api 0.0.773 → 0.0.775

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.
Files changed (87) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AllowlistsApi.cjs +2 -0
  3. package/src/apis/AllowlistsApi.js +2 -0
  4. package/src/apis/AnalyticsApi.cjs +2 -0
  5. package/src/apis/AnalyticsApi.js +2 -0
  6. package/src/apis/ChainalysisApi.cjs +2 -0
  7. package/src/apis/ChainalysisApi.js +2 -0
  8. package/src/apis/ChainsApi.cjs +2 -0
  9. package/src/apis/ChainsApi.js +2 -0
  10. package/src/apis/CustomFieldsApi.cjs +2 -0
  11. package/src/apis/CustomFieldsApi.js +2 -0
  12. package/src/apis/CustomHostnamesApi.cjs +2 -0
  13. package/src/apis/CustomHostnamesApi.js +2 -0
  14. package/src/apis/CustomNetworksApi.cjs +2 -0
  15. package/src/apis/CustomNetworksApi.js +2 -0
  16. package/src/apis/DeeplinkUrlsApi.cjs +2 -0
  17. package/src/apis/DeeplinkUrlsApi.js +2 -0
  18. package/src/apis/EnvironmentsApi.cjs +2 -0
  19. package/src/apis/EnvironmentsApi.js +2 -0
  20. package/src/apis/EventsApi.cjs +2 -0
  21. package/src/apis/EventsApi.js +2 -0
  22. package/src/apis/ExportsApi.cjs +2 -0
  23. package/src/apis/ExportsApi.js +2 -0
  24. package/src/apis/ExternalJwtApi.cjs +2 -0
  25. package/src/apis/ExternalJwtApi.js +2 -0
  26. package/src/apis/GatesApi.cjs +2 -0
  27. package/src/apis/GatesApi.js +2 -0
  28. package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
  29. package/src/apis/GlobalWalletAccessControlApi.js +2 -0
  30. package/src/apis/GlobalWalletConnectionsApi.cjs +2 -0
  31. package/src/apis/GlobalWalletConnectionsApi.js +2 -0
  32. package/src/apis/GlobalWalletsApi.cjs +2 -0
  33. package/src/apis/GlobalWalletsApi.js +2 -0
  34. package/src/apis/InvitesApi.cjs +2 -0
  35. package/src/apis/InvitesApi.js +2 -0
  36. package/src/apis/MembersApi.cjs +2 -0
  37. package/src/apis/MembersApi.js +2 -0
  38. package/src/apis/MfaSettingsApi.cjs +2 -0
  39. package/src/apis/MfaSettingsApi.js +2 -0
  40. package/src/apis/NameServicesApi.cjs +2 -0
  41. package/src/apis/NameServicesApi.js +2 -0
  42. package/src/apis/OrganizationsApi.cjs +2 -0
  43. package/src/apis/OrganizationsApi.js +2 -0
  44. package/src/apis/OriginsApi.cjs +2 -0
  45. package/src/apis/OriginsApi.js +2 -0
  46. package/src/apis/ProjectsApi.cjs +2 -0
  47. package/src/apis/ProjectsApi.js +2 -0
  48. package/src/apis/SDKApi.cjs +2 -0
  49. package/src/apis/SDKApi.js +2 -0
  50. package/src/apis/SDKViewsApi.cjs +2 -0
  51. package/src/apis/SDKViewsApi.js +2 -0
  52. package/src/apis/SessionsApi.cjs +2 -0
  53. package/src/apis/SessionsApi.js +2 -0
  54. package/src/apis/SettingsApi.cjs +2 -0
  55. package/src/apis/SettingsApi.js +2 -0
  56. package/src/apis/TestAccountApi.cjs +2 -0
  57. package/src/apis/TestAccountApi.js +2 -0
  58. package/src/apis/TokensApi.cjs +2 -0
  59. package/src/apis/TokensApi.js +2 -0
  60. package/src/apis/UserApiTokensApi.cjs +2 -0
  61. package/src/apis/UserApiTokensApi.js +2 -0
  62. package/src/apis/UsersApi.cjs +2 -0
  63. package/src/apis/UsersApi.js +2 -0
  64. package/src/apis/VisitsApi.cjs +2 -0
  65. package/src/apis/VisitsApi.js +2 -0
  66. package/src/apis/WaasApi.cjs +36 -0
  67. package/src/apis/WaasApi.d.ts +13 -1
  68. package/src/apis/WaasApi.js +36 -0
  69. package/src/apis/WalletsApi.cjs +2 -0
  70. package/src/apis/WalletsApi.js +2 -0
  71. package/src/apis/WebhooksApi.cjs +2 -0
  72. package/src/apis/WebhooksApi.js +2 -0
  73. package/src/index.cjs +20 -0
  74. package/src/index.js +3 -0
  75. package/src/models/DelegatedAccessEncryptionPublicKey.cjs +3 -0
  76. package/src/models/DelegatedAccessEncryptionPublicKey.d.ts +7 -0
  77. package/src/models/DelegatedAccessEncryptionPublicKey.js +3 -0
  78. package/src/models/WaasDelegatedAccessEncryptionPublicKeyType.cjs +40 -0
  79. package/src/models/WaasDelegatedAccessEncryptionPublicKeyType.d.ts +23 -0
  80. package/src/models/WaasDelegatedAccessEncryptionPublicKeyType.js +34 -0
  81. package/src/models/WaasDelegationCredentialsRequest.cjs +38 -0
  82. package/src/models/WaasDelegationCredentialsRequest.d.ts +40 -0
  83. package/src/models/WaasDelegationCredentialsRequest.js +32 -0
  84. package/src/models/WaasDelegationCredentialsResponse.cjs +52 -0
  85. package/src/models/WaasDelegationCredentialsResponse.d.ts +65 -0
  86. package/src/models/WaasDelegationCredentialsResponse.js +46 -0
  87. package/src/models/index.d.ts +3 -0
@@ -84,6 +84,8 @@ var TokensResponse = require('../models/TokensResponse.cjs');
84
84
  require('../models/UserFieldsCheckEnum.cjs');
85
85
  require('../models/UserFilterableFieldsEnum.cjs');
86
86
  require('../models/VisitorFilterableFieldsEnum.cjs');
87
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
88
+ require('../models/WaasDelegationCredentialsResponse.cjs');
87
89
  require('../models/WaasPolicyConstraintCondition.cjs');
88
90
  require('../models/WaasPolicyRuleType.cjs');
89
91
 
@@ -80,6 +80,8 @@ import { TokensResponseFromJSON } from '../models/TokensResponse.js';
80
80
  import '../models/UserFieldsCheckEnum.js';
81
81
  import '../models/UserFilterableFieldsEnum.js';
82
82
  import '../models/VisitorFilterableFieldsEnum.js';
83
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
84
+ import '../models/WaasDelegationCredentialsResponse.js';
83
85
  import '../models/WaasPolicyConstraintCondition.js';
84
86
  import '../models/WaasPolicyRuleType.js';
85
87
 
@@ -88,6 +88,8 @@ var UserOauthAccessTokenResponse = require('../models/UserOauthAccessTokenRespon
88
88
  var UserResponse = require('../models/UserResponse.cjs');
89
89
  var UsersResponse = require('../models/UsersResponse.cjs');
90
90
  require('../models/VisitorFilterableFieldsEnum.cjs');
91
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
92
+ require('../models/WaasDelegationCredentialsResponse.cjs');
91
93
  require('../models/WaasPolicyConstraintCondition.cjs');
92
94
  require('../models/WaasPolicyRuleType.cjs');
93
95
 
@@ -84,6 +84,8 @@ import { UserOauthAccessTokenResponseFromJSON } from '../models/UserOauthAccessT
84
84
  import { UserResponseFromJSON } from '../models/UserResponse.js';
85
85
  import { UsersResponseFromJSON } from '../models/UsersResponse.js';
86
86
  import '../models/VisitorFilterableFieldsEnum.js';
87
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
88
+ import '../models/WaasDelegationCredentialsResponse.js';
87
89
  import '../models/WaasPolicyConstraintCondition.js';
88
90
  import '../models/WaasPolicyRuleType.js';
89
91
 
@@ -82,6 +82,8 @@ require('../models/UserFieldsCheckEnum.cjs');
82
82
  require('../models/UserFilterableFieldsEnum.cjs');
83
83
  require('../models/VisitorFilterableFieldsEnum.cjs');
84
84
  var VisitorsResponse = require('../models/VisitorsResponse.cjs');
85
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
86
+ require('../models/WaasDelegationCredentialsResponse.cjs');
85
87
  require('../models/WaasPolicyConstraintCondition.cjs');
86
88
  require('../models/WaasPolicyRuleType.cjs');
87
89
 
@@ -78,6 +78,8 @@ import '../models/UserFieldsCheckEnum.js';
78
78
  import '../models/UserFilterableFieldsEnum.js';
79
79
  import '../models/VisitorFilterableFieldsEnum.js';
80
80
  import { VisitorsResponseFromJSON } from '../models/VisitorsResponse.js';
81
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
82
+ import '../models/WaasDelegationCredentialsResponse.js';
81
83
  import '../models/WaasPolicyConstraintCondition.js';
82
84
  import '../models/WaasPolicyRuleType.js';
83
85
 
@@ -86,6 +86,9 @@ require('../models/UserFilterableFieldsEnum.cjs');
86
86
  require('../models/VisitorFilterableFieldsEnum.cjs');
87
87
  var WaasAuthenticateResponse = require('../models/WaasAuthenticateResponse.cjs');
88
88
  var WaasDelegateSignMessageRequest = require('../models/WaasDelegateSignMessageRequest.cjs');
89
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
90
+ var WaasDelegationCredentialsRequest = require('../models/WaasDelegationCredentialsRequest.cjs');
91
+ var WaasDelegationCredentialsResponse = require('../models/WaasDelegationCredentialsResponse.cjs');
89
92
  require('../models/WaasPolicyConstraintCondition.cjs');
90
93
  var WaasPolicyCreateRequest = require('../models/WaasPolicyCreateRequest.cjs');
91
94
  var WaasPolicyDeleteRequest = require('../models/WaasPolicyDeleteRequest.cjs');
@@ -133,6 +136,39 @@ class WaasApi extends runtime.BaseAPI {
133
136
  return yield response.value();
134
137
  });
135
138
  }
139
+ /**
140
+ * Create credentials for waas wallet delegation
141
+ */
142
+ createDelegatedCredentialsRaw(requestParameters, initOverrides) {
143
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
144
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
145
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createDelegatedCredentials.');
146
+ }
147
+ if (requestParameters.waasDelegationCredentialsRequest === null || requestParameters.waasDelegationCredentialsRequest === undefined) {
148
+ throw new runtime.RequiredError('waasDelegationCredentialsRequest', 'Required parameter requestParameters.waasDelegationCredentialsRequest was null or undefined when calling createDelegatedCredentials.');
149
+ }
150
+ const queryParameters = {};
151
+ const headerParameters = {};
152
+ headerParameters['Content-Type'] = 'application/json';
153
+ const response = yield this.request({
154
+ path: `/environments/{environmentId}/waas/delegatedAccess/encryptionPublicKeys`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
155
+ method: 'POST',
156
+ headers: headerParameters,
157
+ query: queryParameters,
158
+ body: WaasDelegationCredentialsRequest.WaasDelegationCredentialsRequestToJSON(requestParameters.waasDelegationCredentialsRequest),
159
+ }, initOverrides);
160
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasDelegationCredentialsResponse.WaasDelegationCredentialsResponseFromJSON(jsonValue));
161
+ });
162
+ }
163
+ /**
164
+ * Create credentials for waas wallet delegation
165
+ */
166
+ createDelegatedCredentials(requestParameters, initOverrides) {
167
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
168
+ const response = yield this.createDelegatedCredentialsRaw(requestParameters, initOverrides);
169
+ return yield response.value();
170
+ });
171
+ }
136
172
  /**
137
173
  * Create a new WAAS policy for an environment or add new rules to an existing policy
138
174
  */
@@ -10,10 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
13
+ import { DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest } from '../models';
14
14
  export interface AuthenticateWaasRequest {
15
15
  environmentId: string;
16
16
  }
17
+ export interface CreateDelegatedCredentialsRequest {
18
+ environmentId: string;
19
+ waasDelegationCredentialsRequest: WaasDelegationCredentialsRequest;
20
+ }
17
21
  export interface CreateWaasPolicyRequest {
18
22
  environmentId: string;
19
23
  waasPolicyCreateRequest: WaasPolicyCreateRequest;
@@ -54,6 +58,14 @@ export declare class WaasApi extends runtime.BaseAPI {
54
58
  * Authenticate for WAAS using api key
55
59
  */
56
60
  authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<WaasAuthenticateResponse>;
61
+ /**
62
+ * Create credentials for waas wallet delegation
63
+ */
64
+ createDelegatedCredentialsRaw(requestParameters: CreateDelegatedCredentialsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasDelegationCredentialsResponse>>;
65
+ /**
66
+ * Create credentials for waas wallet delegation
67
+ */
68
+ createDelegatedCredentials(requestParameters: CreateDelegatedCredentialsRequest, initOverrides?: RequestInit): Promise<WaasDelegationCredentialsResponse>;
57
69
  /**
58
70
  * Create a new WAAS policy for an environment or add new rules to an existing policy
59
71
  */
@@ -82,6 +82,9 @@ import '../models/UserFilterableFieldsEnum.js';
82
82
  import '../models/VisitorFilterableFieldsEnum.js';
83
83
  import { WaasAuthenticateResponseFromJSON } from '../models/WaasAuthenticateResponse.js';
84
84
  import { WaasDelegateSignMessageRequestToJSON } from '../models/WaasDelegateSignMessageRequest.js';
85
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
86
+ import { WaasDelegationCredentialsRequestToJSON } from '../models/WaasDelegationCredentialsRequest.js';
87
+ import { WaasDelegationCredentialsResponseFromJSON } from '../models/WaasDelegationCredentialsResponse.js';
85
88
  import '../models/WaasPolicyConstraintCondition.js';
86
89
  import { WaasPolicyCreateRequestToJSON } from '../models/WaasPolicyCreateRequest.js';
87
90
  import { WaasPolicyDeleteRequestToJSON } from '../models/WaasPolicyDeleteRequest.js';
@@ -129,6 +132,39 @@ class WaasApi extends BaseAPI {
129
132
  return yield response.value();
130
133
  });
131
134
  }
135
+ /**
136
+ * Create credentials for waas wallet delegation
137
+ */
138
+ createDelegatedCredentialsRaw(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
141
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createDelegatedCredentials.');
142
+ }
143
+ if (requestParameters.waasDelegationCredentialsRequest === null || requestParameters.waasDelegationCredentialsRequest === undefined) {
144
+ throw new RequiredError('waasDelegationCredentialsRequest', 'Required parameter requestParameters.waasDelegationCredentialsRequest was null or undefined when calling createDelegatedCredentials.');
145
+ }
146
+ const queryParameters = {};
147
+ const headerParameters = {};
148
+ headerParameters['Content-Type'] = 'application/json';
149
+ const response = yield this.request({
150
+ path: `/environments/{environmentId}/waas/delegatedAccess/encryptionPublicKeys`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
151
+ method: 'POST',
152
+ headers: headerParameters,
153
+ query: queryParameters,
154
+ body: WaasDelegationCredentialsRequestToJSON(requestParameters.waasDelegationCredentialsRequest),
155
+ }, initOverrides);
156
+ return new JSONApiResponse(response, (jsonValue) => WaasDelegationCredentialsResponseFromJSON(jsonValue));
157
+ });
158
+ }
159
+ /**
160
+ * Create credentials for waas wallet delegation
161
+ */
162
+ createDelegatedCredentials(requestParameters, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const response = yield this.createDelegatedCredentialsRaw(requestParameters, initOverrides);
165
+ return yield response.value();
166
+ });
167
+ }
132
168
  /**
133
169
  * Create a new WAAS policy for an environment or add new rules to an existing policy
134
170
  */
@@ -87,6 +87,8 @@ require('../models/UserIdentifierTypeEnum.cjs');
87
87
  var UserResponse = require('../models/UserResponse.cjs');
88
88
  var UserWalletsResponse = require('../models/UserWalletsResponse.cjs');
89
89
  require('../models/VisitorFilterableFieldsEnum.cjs');
90
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
91
+ require('../models/WaasDelegationCredentialsResponse.cjs');
90
92
  require('../models/WaasPolicyConstraintCondition.cjs');
91
93
  require('../models/WaasPolicyRuleType.cjs');
92
94
 
@@ -83,6 +83,8 @@ import '../models/UserIdentifierTypeEnum.js';
83
83
  import { UserResponseFromJSON } from '../models/UserResponse.js';
84
84
  import { UserWalletsResponseFromJSON } from '../models/UserWalletsResponse.js';
85
85
  import '../models/VisitorFilterableFieldsEnum.js';
86
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
87
+ import '../models/WaasDelegationCredentialsResponse.js';
86
88
  import '../models/WaasPolicyConstraintCondition.js';
87
89
  import '../models/WaasPolicyRuleType.js';
88
90
 
@@ -81,6 +81,8 @@ require('../models/SubscriptionFreeScopeEnum.cjs');
81
81
  require('../models/UserFieldsCheckEnum.cjs');
82
82
  require('../models/UserFilterableFieldsEnum.cjs');
83
83
  require('../models/VisitorFilterableFieldsEnum.cjs');
84
+ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
85
+ require('../models/WaasDelegationCredentialsResponse.cjs');
84
86
  require('../models/WaasPolicyConstraintCondition.cjs');
85
87
  require('../models/WaasPolicyRuleType.cjs');
86
88
  var Webhook = require('../models/Webhook.cjs');
@@ -77,6 +77,8 @@ import '../models/SubscriptionFreeScopeEnum.js';
77
77
  import '../models/UserFieldsCheckEnum.js';
78
78
  import '../models/UserFilterableFieldsEnum.js';
79
79
  import '../models/VisitorFilterableFieldsEnum.js';
80
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
81
+ import '../models/WaasDelegationCredentialsResponse.js';
80
82
  import '../models/WaasPolicyConstraintCondition.js';
81
83
  import '../models/WaasPolicyRuleType.js';
82
84
  import { WebhookFromJSON } from '../models/Webhook.js';
package/src/index.cjs CHANGED
@@ -533,6 +533,9 @@ var WaasAuthenticateResponseEncodedJwts = require('./models/WaasAuthenticateResp
533
533
  var WaasBackupOptionsEnum = require('./models/WaasBackupOptionsEnum.cjs');
534
534
  var WaasChainEnum = require('./models/WaasChainEnum.cjs');
535
535
  var WaasDelegateSignMessageRequest = require('./models/WaasDelegateSignMessageRequest.cjs');
536
+ var WaasDelegatedAccessEncryptionPublicKeyType = require('./models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
537
+ var WaasDelegationCredentialsRequest = require('./models/WaasDelegationCredentialsRequest.cjs');
538
+ var WaasDelegationCredentialsResponse = require('./models/WaasDelegationCredentialsResponse.cjs');
536
539
  var WaasPolicyArgumentConstraint = require('./models/WaasPolicyArgumentConstraint.cjs');
537
540
  var WaasPolicyConstraintCondition = require('./models/WaasPolicyConstraintCondition.cjs');
538
541
  var WaasPolicyCreateRequest = require('./models/WaasPolicyCreateRequest.cjs');
@@ -2399,6 +2402,23 @@ exports.WaasChainEnumToJSON = WaasChainEnum.WaasChainEnumToJSON;
2399
2402
  exports.WaasDelegateSignMessageRequestFromJSON = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestFromJSON;
2400
2403
  exports.WaasDelegateSignMessageRequestFromJSONTyped = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestFromJSONTyped;
2401
2404
  exports.WaasDelegateSignMessageRequestToJSON = WaasDelegateSignMessageRequest.WaasDelegateSignMessageRequestToJSON;
2405
+ Object.defineProperty(exports, 'WaasDelegatedAccessEncryptionPublicKeyType', {
2406
+ enumerable: true,
2407
+ get: function () { return WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyType; }
2408
+ });
2409
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON;
2410
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped;
2411
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON = WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON;
2412
+ exports.WaasDelegationCredentialsRequestFromJSON = WaasDelegationCredentialsRequest.WaasDelegationCredentialsRequestFromJSON;
2413
+ exports.WaasDelegationCredentialsRequestFromJSONTyped = WaasDelegationCredentialsRequest.WaasDelegationCredentialsRequestFromJSONTyped;
2414
+ exports.WaasDelegationCredentialsRequestToJSON = WaasDelegationCredentialsRequest.WaasDelegationCredentialsRequestToJSON;
2415
+ Object.defineProperty(exports, 'WaasDelegationCredentialsResponseAlgEnum', {
2416
+ enumerable: true,
2417
+ get: function () { return WaasDelegationCredentialsResponse.WaasDelegationCredentialsResponseAlgEnum; }
2418
+ });
2419
+ exports.WaasDelegationCredentialsResponseFromJSON = WaasDelegationCredentialsResponse.WaasDelegationCredentialsResponseFromJSON;
2420
+ exports.WaasDelegationCredentialsResponseFromJSONTyped = WaasDelegationCredentialsResponse.WaasDelegationCredentialsResponseFromJSONTyped;
2421
+ exports.WaasDelegationCredentialsResponseToJSON = WaasDelegationCredentialsResponse.WaasDelegationCredentialsResponseToJSON;
2402
2422
  exports.WaasPolicyArgumentConstraintFromJSON = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON;
2403
2423
  exports.WaasPolicyArgumentConstraintFromJSONTyped = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSONTyped;
2404
2424
  exports.WaasPolicyArgumentConstraintToJSON = WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON;
package/src/index.js CHANGED
@@ -529,6 +529,9 @@ export { WaasAuthenticateResponseEncodedJwtsFromJSON, WaasAuthenticateResponseEn
529
529
  export { WaasBackupOptionsEnum, WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumFromJSONTyped, WaasBackupOptionsEnumToJSON } from './models/WaasBackupOptionsEnum.js';
530
530
  export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
531
531
  export { WaasDelegateSignMessageRequestFromJSON, WaasDelegateSignMessageRequestFromJSONTyped, WaasDelegateSignMessageRequestToJSON } from './models/WaasDelegateSignMessageRequest.js';
532
+ export { WaasDelegatedAccessEncryptionPublicKeyType, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON } from './models/WaasDelegatedAccessEncryptionPublicKeyType.js';
533
+ export { WaasDelegationCredentialsRequestFromJSON, WaasDelegationCredentialsRequestFromJSONTyped, WaasDelegationCredentialsRequestToJSON } from './models/WaasDelegationCredentialsRequest.js';
534
+ export { WaasDelegationCredentialsResponseAlgEnum, WaasDelegationCredentialsResponseFromJSON, WaasDelegationCredentialsResponseFromJSONTyped, WaasDelegationCredentialsResponseToJSON } from './models/WaasDelegationCredentialsResponse.js';
532
535
  export { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintFromJSONTyped, WaasPolicyArgumentConstraintToJSON } from './models/WaasPolicyArgumentConstraint.js';
533
536
  export { WaasPolicyConstraintCondition, WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionFromJSONTyped, WaasPolicyConstraintConditionToJSON } from './models/WaasPolicyConstraintCondition.js';
534
537
  export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped, WaasPolicyCreateRequestToJSON } from './models/WaasPolicyCreateRequest.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var WaasDelegatedAccessEncryptionPublicKeyType = require('./WaasDelegatedAccessEncryptionPublicKeyType.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  /**
@@ -36,6 +37,7 @@ function DelegatedAccessEncryptionPublicKeyFromJSONTyped(json, ignoreDiscriminat
36
37
  'alg': json['alg'],
37
38
  'publicKeyPemB64': json['publicKeyPemB64'],
38
39
  'status': json['status'],
40
+ 'type': WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json['type']),
39
41
  'expiresAt': !runtime.exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
40
42
  'revokedAt': !runtime.exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
41
43
  'createdAt': (new Date(json['createdAt'])),
@@ -56,6 +58,7 @@ function DelegatedAccessEncryptionPublicKeyToJSON(value) {
56
58
  'alg': value.alg,
57
59
  'publicKeyPemB64': value.publicKeyPemB64,
58
60
  'status': value.status,
61
+ 'type': WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value.type),
59
62
  'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
60
63
  'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
61
64
  'createdAt': (value.createdAt.toISOString()),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { WaasDelegatedAccessEncryptionPublicKeyType } from './WaasDelegatedAccessEncryptionPublicKeyType';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -51,6 +52,12 @@ export interface DelegatedAccessEncryptionPublicKey {
51
52
  * @memberof DelegatedAccessEncryptionPublicKey
52
53
  */
53
54
  status: DelegatedAccessEncryptionPublicKeyStatusEnum;
55
+ /**
56
+ *
57
+ * @type {WaasDelegatedAccessEncryptionPublicKeyType}
58
+ * @memberof DelegatedAccessEncryptionPublicKey
59
+ */
60
+ type: WaasDelegatedAccessEncryptionPublicKeyType;
54
61
  /**
55
62
  * Optional expiry for planned rotations
56
63
  * @type {Date}
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON } from './WaasDelegatedAccessEncryptionPublicKeyType.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  /**
@@ -32,6 +33,7 @@ function DelegatedAccessEncryptionPublicKeyFromJSONTyped(json, ignoreDiscriminat
32
33
  'alg': json['alg'],
33
34
  'publicKeyPemB64': json['publicKeyPemB64'],
34
35
  'status': json['status'],
36
+ 'type': WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json['type']),
35
37
  'expiresAt': !exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
36
38
  'revokedAt': !exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
37
39
  'createdAt': (new Date(json['createdAt'])),
@@ -52,6 +54,7 @@ function DelegatedAccessEncryptionPublicKeyToJSON(value) {
52
54
  'alg': value.alg,
53
55
  'publicKeyPemB64': value.publicKeyPemB64,
54
56
  'status': value.status,
57
+ 'type': WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value.type),
55
58
  'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
56
59
  'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
57
60
  'createdAt': (value.createdAt.toISOString()),
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ /**
19
+ *
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.WaasDelegatedAccessEncryptionPublicKeyType = void 0;
24
+ (function (WaasDelegatedAccessEncryptionPublicKeyType) {
25
+ WaasDelegatedAccessEncryptionPublicKeyType["Dynamic"] = "dynamic";
26
+ WaasDelegatedAccessEncryptionPublicKeyType["External"] = "external";
27
+ })(exports.WaasDelegatedAccessEncryptionPublicKeyType || (exports.WaasDelegatedAccessEncryptionPublicKeyType = {}));
28
+ function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json) {
29
+ return WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped(json);
30
+ }
31
+ function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ function WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value) {
35
+ return value;
36
+ }
37
+
38
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON = WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON;
39
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped = WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped;
40
+ exports.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON = WaasDelegatedAccessEncryptionPublicKeyTypeToJSON;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum WaasDelegatedAccessEncryptionPublicKeyType {
18
+ Dynamic = "dynamic",
19
+ External = "external"
20
+ }
21
+ export declare function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json: any): WaasDelegatedAccessEncryptionPublicKeyType;
22
+ export declare function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasDelegatedAccessEncryptionPublicKeyType;
23
+ export declare function WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value?: WaasDelegatedAccessEncryptionPublicKeyType | null): any;
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var WaasDelegatedAccessEncryptionPublicKeyType;
20
+ (function (WaasDelegatedAccessEncryptionPublicKeyType) {
21
+ WaasDelegatedAccessEncryptionPublicKeyType["Dynamic"] = "dynamic";
22
+ WaasDelegatedAccessEncryptionPublicKeyType["External"] = "external";
23
+ })(WaasDelegatedAccessEncryptionPublicKeyType || (WaasDelegatedAccessEncryptionPublicKeyType = {}));
24
+ function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json) {
25
+ return WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped(json);
26
+ }
27
+ function WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ function WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value) {
31
+ return value;
32
+ }
33
+
34
+ export { WaasDelegatedAccessEncryptionPublicKeyType, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeFromJSONTyped, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON };
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasDelegatedAccessEncryptionPublicKeyType = require('./WaasDelegatedAccessEncryptionPublicKeyType.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WaasDelegationCredentialsRequestFromJSON(json) {
10
+ return WaasDelegationCredentialsRequestFromJSONTyped(json);
11
+ }
12
+ function WaasDelegationCredentialsRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'publicKey': json['publicKey'],
18
+ 'alg': !runtime.exists(json, 'alg') ? undefined : json['alg'],
19
+ 'type': !runtime.exists(json, 'type') ? undefined : WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json['type']),
20
+ };
21
+ }
22
+ function WaasDelegationCredentialsRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'publicKey': value.publicKey,
31
+ 'alg': value.alg,
32
+ 'type': WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value.type),
33
+ };
34
+ }
35
+
36
+ exports.WaasDelegationCredentialsRequestFromJSON = WaasDelegationCredentialsRequestFromJSON;
37
+ exports.WaasDelegationCredentialsRequestFromJSONTyped = WaasDelegationCredentialsRequestFromJSONTyped;
38
+ exports.WaasDelegationCredentialsRequestToJSON = WaasDelegationCredentialsRequestToJSON;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { WaasDelegatedAccessEncryptionPublicKeyType } from './WaasDelegatedAccessEncryptionPublicKeyType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasDelegationCredentialsRequest
17
+ */
18
+ export interface WaasDelegationCredentialsRequest {
19
+ /**
20
+ * A string with a max length of 4096 characters
21
+ * @type {string}
22
+ * @memberof WaasDelegationCredentialsRequest
23
+ */
24
+ publicKey: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof WaasDelegationCredentialsRequest
29
+ */
30
+ alg?: string;
31
+ /**
32
+ *
33
+ * @type {WaasDelegatedAccessEncryptionPublicKeyType}
34
+ * @memberof WaasDelegationCredentialsRequest
35
+ */
36
+ type?: WaasDelegatedAccessEncryptionPublicKeyType;
37
+ }
38
+ export declare function WaasDelegationCredentialsRequestFromJSON(json: any): WaasDelegationCredentialsRequest;
39
+ export declare function WaasDelegationCredentialsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasDelegationCredentialsRequest;
40
+ export declare function WaasDelegationCredentialsRequestToJSON(value?: WaasDelegationCredentialsRequest | null): any;
@@ -0,0 +1,32 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccessEncryptionPublicKeyTypeToJSON } from './WaasDelegatedAccessEncryptionPublicKeyType.js';
3
+
4
+ /* tslint:disable */
5
+ function WaasDelegationCredentialsRequestFromJSON(json) {
6
+ return WaasDelegationCredentialsRequestFromJSONTyped(json);
7
+ }
8
+ function WaasDelegationCredentialsRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'publicKey': json['publicKey'],
14
+ 'alg': !exists(json, 'alg') ? undefined : json['alg'],
15
+ 'type': !exists(json, 'type') ? undefined : WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json['type']),
16
+ };
17
+ }
18
+ function WaasDelegationCredentialsRequestToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'publicKey': value.publicKey,
27
+ 'alg': value.alg,
28
+ 'type': WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value.type),
29
+ };
30
+ }
31
+
32
+ export { WaasDelegationCredentialsRequestFromJSON, WaasDelegationCredentialsRequestFromJSONTyped, WaasDelegationCredentialsRequestToJSON };
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasDelegatedAccessEncryptionPublicKeyType = require('./WaasDelegatedAccessEncryptionPublicKeyType.cjs');
7
+
8
+ /* tslint:disable */
9
+ /**
10
+ * @export
11
+ * @enum {string}
12
+ */
13
+ exports.WaasDelegationCredentialsResponseAlgEnum = void 0;
14
+ (function (WaasDelegationCredentialsResponseAlgEnum) {
15
+ WaasDelegationCredentialsResponseAlgEnum["RsaOaep256"] = "RSA-OAEP-256";
16
+ })(exports.WaasDelegationCredentialsResponseAlgEnum || (exports.WaasDelegationCredentialsResponseAlgEnum = {}));
17
+ function WaasDelegationCredentialsResponseFromJSON(json) {
18
+ return WaasDelegationCredentialsResponseFromJSONTyped(json);
19
+ }
20
+ function WaasDelegationCredentialsResponseFromJSONTyped(json, ignoreDiscriminator) {
21
+ if ((json === undefined) || (json === null)) {
22
+ return json;
23
+ }
24
+ return {
25
+ 'publicKey': json['publicKey'],
26
+ 'kid': json['kid'],
27
+ 'alg': json['alg'],
28
+ 'type': !runtime.exists(json, 'type') ? undefined : WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON(json['type']),
29
+ 'createdAt': (new Date(json['createdAt'])),
30
+ 'updatedAt': (new Date(json['updatedAt'])),
31
+ };
32
+ }
33
+ function WaasDelegationCredentialsResponseToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'publicKey': value.publicKey,
42
+ 'kid': value.kid,
43
+ 'alg': value.alg,
44
+ 'type': WaasDelegatedAccessEncryptionPublicKeyType.WaasDelegatedAccessEncryptionPublicKeyTypeToJSON(value.type),
45
+ 'createdAt': (value.createdAt.toISOString()),
46
+ 'updatedAt': (value.updatedAt.toISOString()),
47
+ };
48
+ }
49
+
50
+ exports.WaasDelegationCredentialsResponseFromJSON = WaasDelegationCredentialsResponseFromJSON;
51
+ exports.WaasDelegationCredentialsResponseFromJSONTyped = WaasDelegationCredentialsResponseFromJSONTyped;
52
+ exports.WaasDelegationCredentialsResponseToJSON = WaasDelegationCredentialsResponseToJSON;