@dynamic-labs/sdk-api 0.0.540 → 0.0.542

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.540",
3
+ "version": "0.0.542",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -72,40 +72,6 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
72
72
  *
73
73
  */
74
74
  class EnvironmentsApi extends runtime.BaseAPI {
75
- /**
76
- * Deletes an environment by ID
77
- */
78
- deleteEnvironmentByIdRaw(requestParameters, initOverrides) {
79
- return _tslib.__awaiter(this, void 0, void 0, function* () {
80
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
81
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteEnvironmentById.');
82
- }
83
- const queryParameters = {};
84
- const headerParameters = {};
85
- if (this.configuration && this.configuration.accessToken) {
86
- const token = this.configuration.accessToken;
87
- const tokenString = yield token("bearerAuth", []);
88
- if (tokenString) {
89
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
- }
91
- }
92
- const response = yield this.request({
93
- path: `/environments/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
94
- method: 'DELETE',
95
- headers: headerParameters,
96
- query: queryParameters,
97
- }, initOverrides);
98
- return new runtime.VoidApiResponse(response);
99
- });
100
- }
101
- /**
102
- * Deletes an environment by ID
103
- */
104
- deleteEnvironmentById(requestParameters, initOverrides) {
105
- return _tslib.__awaiter(this, void 0, void 0, function* () {
106
- yield this.deleteEnvironmentByIdRaw(requestParameters, initOverrides);
107
- });
108
- }
109
75
  /**
110
76
  * Find an environment by ID
111
77
  */
@@ -11,9 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { EnvironmentVisitorsResponse, EnvironmentsResponse, KeyResponse, ProjectEnvironment, ProjectSettings } from '../models';
14
- export interface DeleteEnvironmentByIdRequest {
15
- environmentId: string;
16
- }
17
14
  export interface GetEnvironmentByIdRequest {
18
15
  environmentId: string;
19
16
  }
@@ -34,14 +31,6 @@ export interface UpdateProjectSettingsRequest {
34
31
  *
35
32
  */
36
33
  export declare class EnvironmentsApi extends runtime.BaseAPI {
37
- /**
38
- * Deletes an environment by ID
39
- */
40
- deleteEnvironmentByIdRaw(requestParameters: DeleteEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
41
- /**
42
- * Deletes an environment by ID
43
- */
44
- deleteEnvironmentById(requestParameters: DeleteEnvironmentByIdRequest, initOverrides?: RequestInit): Promise<void>;
45
34
  /**
46
35
  * Find an environment by ID
47
36
  */
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from '../../_virtual/_tslib.js';
2
- import { BaseAPI, RequiredError, VoidApiResponse, JSONApiResponse } from '../runtime.js';
2
+ import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
3
3
  import '../models/AccessOutcomeEnum.js';
4
4
  import '../models/AttestationConveyancePreference.js';
5
5
  import '../models/AuthModeEnum.js';
@@ -68,40 +68,6 @@ import '../models/VisitorFilterableFieldsEnum.js';
68
68
  *
69
69
  */
70
70
  class EnvironmentsApi extends BaseAPI {
71
- /**
72
- * Deletes an environment by ID
73
- */
74
- deleteEnvironmentByIdRaw(requestParameters, initOverrides) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
77
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteEnvironmentById.');
78
- }
79
- const queryParameters = {};
80
- const headerParameters = {};
81
- if (this.configuration && this.configuration.accessToken) {
82
- const token = this.configuration.accessToken;
83
- const tokenString = yield token("bearerAuth", []);
84
- if (tokenString) {
85
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
86
- }
87
- }
88
- const response = yield this.request({
89
- path: `/environments/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
90
- method: 'DELETE',
91
- headers: headerParameters,
92
- query: queryParameters,
93
- }, initOverrides);
94
- return new VoidApiResponse(response);
95
- });
96
- }
97
- /**
98
- * Deletes an environment by ID
99
- */
100
- deleteEnvironmentById(requestParameters, initOverrides) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- yield this.deleteEnvironmentByIdRaw(requestParameters, initOverrides);
103
- });
104
- }
105
71
  /**
106
72
  * Find an environment by ID
107
73
  */
@@ -48,6 +48,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'defaultChain': !runtime.exists(json, 'defaultChain') ? undefined : json['defaultChain'],
49
49
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
50
50
  'termsAcceptedByUser': !runtime.exists(json, 'termsAcceptedByUser') ? undefined : ProviderAgreement.ProviderAgreementFromJSON(json['termsAcceptedByUser']),
51
+ 'scopes': !runtime.exists(json, 'scopes') ? undefined : json['scopes'],
51
52
  'appleKeyId': !runtime.exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
52
53
  'appleTeamId': !runtime.exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
53
54
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -80,6 +81,7 @@ function ProviderToJSON(value) {
80
81
  'defaultChain': value.defaultChain,
81
82
  'keyExportUrl': value.keyExportUrl,
82
83
  'termsAcceptedByUser': ProviderAgreement.ProviderAgreementToJSON(value.termsAcceptedByUser),
84
+ 'scopes': value.scopes,
83
85
  'appleKeyId': value.appleKeyId,
84
86
  'appleTeamId': value.appleTeamId,
85
87
  'accountSid': value.accountSid,
@@ -92,6 +92,12 @@ export interface Provider {
92
92
  * @memberof Provider
93
93
  */
94
94
  termsAcceptedByUser?: ProviderAgreement;
95
+ /**
96
+ * Optional custom list of Oauth scopes for the social provider
97
+ * @type {Array<string>}
98
+ * @memberof Provider
99
+ */
100
+ scopes?: Array<string>;
95
101
  /**
96
102
  * Key ID required for Apple Oauth2 applications. This is the identifier for a private key.
97
103
  * @type {string}
@@ -44,6 +44,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'defaultChain': !exists(json, 'defaultChain') ? undefined : json['defaultChain'],
45
45
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
46
46
  'termsAcceptedByUser': !exists(json, 'termsAcceptedByUser') ? undefined : ProviderAgreementFromJSON(json['termsAcceptedByUser']),
47
+ 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
47
48
  'appleKeyId': !exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
48
49
  'appleTeamId': !exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
49
50
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -76,6 +77,7 @@ function ProviderToJSON(value) {
76
77
  'defaultChain': value.defaultChain,
77
78
  'keyExportUrl': value.keyExportUrl,
78
79
  'termsAcceptedByUser': ProviderAgreementToJSON(value.termsAcceptedByUser),
80
+ 'scopes': value.scopes,
79
81
  'appleKeyId': value.appleKeyId,
80
82
  'appleTeamId': value.appleTeamId,
81
83
  'accountSid': value.accountSid,
@@ -25,6 +25,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
25
25
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
26
26
  'termsUrl': !runtime.exists(json, 'termsUrl') ? undefined : json['termsUrl'],
27
27
  'useDynamicCredentials': !runtime.exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
28
+ 'scopes': !runtime.exists(json, 'scopes') ? undefined : json['scopes'],
28
29
  'appleKeyId': !runtime.exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
29
30
  'appleTeamId': !runtime.exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
30
31
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -50,6 +51,7 @@ function ProviderCreateRequestToJSON(value) {
50
51
  'keyExportUrl': value.keyExportUrl,
51
52
  'termsUrl': value.termsUrl,
52
53
  'useDynamicCredentials': value.useDynamicCredentials,
54
+ 'scopes': value.scopes,
53
55
  'appleKeyId': value.appleKeyId,
54
56
  'appleTeamId': value.appleTeamId,
55
57
  'accountSid': value.accountSid,
@@ -72,6 +72,12 @@ export interface ProviderCreateRequest {
72
72
  * @memberof ProviderCreateRequest
73
73
  */
74
74
  useDynamicCredentials?: boolean;
75
+ /**
76
+ * Optional custom list of Oauth scopes for the social provider
77
+ * @type {Array<string>}
78
+ * @memberof ProviderCreateRequest
79
+ */
80
+ scopes?: Array<string>;
75
81
  /**
76
82
  * Key ID required for Apple Oauth2 applications. This is the identifier for a private key.
77
83
  * @type {string}
@@ -21,6 +21,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
21
21
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
22
22
  'termsUrl': !exists(json, 'termsUrl') ? undefined : json['termsUrl'],
23
23
  'useDynamicCredentials': !exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
24
+ 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
24
25
  'appleKeyId': !exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
25
26
  'appleTeamId': !exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
26
27
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -46,6 +47,7 @@ function ProviderCreateRequestToJSON(value) {
46
47
  'keyExportUrl': value.keyExportUrl,
47
48
  'termsUrl': value.termsUrl,
48
49
  'useDynamicCredentials': value.useDynamicCredentials,
50
+ 'scopes': value.scopes,
49
51
  'appleKeyId': value.appleKeyId,
50
52
  'appleTeamId': value.appleTeamId,
51
53
  'accountSid': value.accountSid,
@@ -22,6 +22,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
22
22
  'defaultChain': !runtime.exists(json, 'defaultChain') ? undefined : json['defaultChain'],
23
23
  'keyExportUrl': !runtime.exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
24
24
  'useDynamicCredentials': !runtime.exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
25
+ 'scopes': !runtime.exists(json, 'scopes') ? undefined : json['scopes'],
25
26
  'appleKeyId': !runtime.exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
26
27
  'appleTeamId': !runtime.exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
27
28
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -45,6 +46,7 @@ function ProviderUpdateRequestToJSON(value) {
45
46
  'defaultChain': value.defaultChain,
46
47
  'keyExportUrl': value.keyExportUrl,
47
48
  'useDynamicCredentials': value.useDynamicCredentials,
49
+ 'scopes': value.scopes,
48
50
  'appleKeyId': value.appleKeyId,
49
51
  'appleTeamId': value.appleTeamId,
50
52
  'accountSid': value.accountSid,
@@ -59,6 +59,12 @@ export interface ProviderUpdateRequest {
59
59
  * @memberof ProviderUpdateRequest
60
60
  */
61
61
  useDynamicCredentials?: boolean;
62
+ /**
63
+ * Optional custom list of Oauth scopes for the social provider
64
+ * @type {Array<string>}
65
+ * @memberof ProviderUpdateRequest
66
+ */
67
+ scopes?: Array<string>;
62
68
  /**
63
69
  * Key ID required for Apple Oauth2 applications. This is the identifier for a private key.
64
70
  * @type {string}
@@ -18,6 +18,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
18
18
  'defaultChain': !exists(json, 'defaultChain') ? undefined : json['defaultChain'],
19
19
  'keyExportUrl': !exists(json, 'keyExportUrl') ? undefined : json['keyExportUrl'],
20
20
  'useDynamicCredentials': !exists(json, 'useDynamicCredentials') ? undefined : json['useDynamicCredentials'],
21
+ 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
21
22
  'appleKeyId': !exists(json, 'appleKeyId') ? undefined : json['appleKeyId'],
22
23
  'appleTeamId': !exists(json, 'appleTeamId') ? undefined : json['appleTeamId'],
23
24
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
@@ -41,6 +42,7 @@ function ProviderUpdateRequestToJSON(value) {
41
42
  'defaultChain': value.defaultChain,
42
43
  'keyExportUrl': value.keyExportUrl,
43
44
  'useDynamicCredentials': value.useDynamicCredentials,
45
+ 'scopes': value.scopes,
44
46
  'appleKeyId': value.appleKeyId,
45
47
  'appleTeamId': value.appleTeamId,
46
48
  'accountSid': value.accountSid,