@dynamic-labs/sdk-api 0.0.222 → 0.0.224

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.222",
3
+ "version": "0.0.224",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -76,6 +76,40 @@ class InvitesApi extends runtime.BaseAPI {
76
76
  yield this.createInviteRaw(requestParameters, initOverrides);
77
77
  });
78
78
  }
79
+ /**
80
+ * Delete invite for user
81
+ */
82
+ deleteInviteRaw(requestParameters, initOverrides) {
83
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
84
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
85
+ throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling deleteInvite.');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ if (this.configuration && this.configuration.accessToken) {
90
+ const token = this.configuration.accessToken;
91
+ const tokenString = yield token("bearerAuth", []);
92
+ if (tokenString) {
93
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
94
+ }
95
+ }
96
+ const response = yield this.request({
97
+ path: `/invites/{inviteId}`.replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
98
+ method: 'DELETE',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ }, initOverrides);
102
+ return new runtime.VoidApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Delete invite for user
107
+ */
108
+ deleteInvite(requestParameters, initOverrides) {
109
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
110
+ yield this.deleteInviteRaw(requestParameters, initOverrides);
111
+ });
112
+ }
79
113
  /**
80
114
  * Get all the user invites
81
115
  */
@@ -15,6 +15,9 @@ export interface CreateInviteRequest {
15
15
  organizationId: string;
16
16
  inviteSendRequest: InviteSendRequest;
17
17
  }
18
+ export interface DeleteInviteRequest {
19
+ inviteId: string;
20
+ }
18
21
  export interface GetInvitesRequest {
19
22
  status: InviteStatusEnum;
20
23
  }
@@ -37,6 +40,14 @@ export declare class InvitesApi extends runtime.BaseAPI {
37
40
  * Creates an invite to the organization
38
41
  */
39
42
  createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit): Promise<void>;
43
+ /**
44
+ * Delete invite for user
45
+ */
46
+ deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
47
+ /**
48
+ * Delete invite for user
49
+ */
50
+ deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit): Promise<void>;
40
51
  /**
41
52
  * Get all the user invites
42
53
  */
@@ -72,6 +72,40 @@ class InvitesApi extends BaseAPI {
72
72
  yield this.createInviteRaw(requestParameters, initOverrides);
73
73
  });
74
74
  }
75
+ /**
76
+ * Delete invite for user
77
+ */
78
+ deleteInviteRaw(requestParameters, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
81
+ throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling deleteInvite.');
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: `/invites/{inviteId}`.replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
94
+ method: 'DELETE',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }, initOverrides);
98
+ return new VoidApiResponse(response);
99
+ });
100
+ }
101
+ /**
102
+ * Delete invite for user
103
+ */
104
+ deleteInvite(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ yield this.deleteInviteRaw(requestParameters, initOverrides);
107
+ });
108
+ }
75
109
  /**
76
110
  * Get all the user invites
77
111
  */
@@ -25,7 +25,6 @@ exports.InviteStatusEnum = void 0;
25
25
  InviteStatusEnum["Pending"] = "pending";
26
26
  InviteStatusEnum["Rejected"] = "rejected";
27
27
  InviteStatusEnum["Accepted"] = "accepted";
28
- InviteStatusEnum["Cancelled"] = "cancelled";
29
28
  })(exports.InviteStatusEnum || (exports.InviteStatusEnum = {}));
30
29
  function InviteStatusEnumFromJSON(json) {
31
30
  return InviteStatusEnumFromJSONTyped(json);
@@ -17,8 +17,7 @@
17
17
  export declare enum InviteStatusEnum {
18
18
  Pending = "pending",
19
19
  Rejected = "rejected",
20
- Accepted = "accepted",
21
- Cancelled = "cancelled"
20
+ Accepted = "accepted"
22
21
  }
23
22
  export declare function InviteStatusEnumFromJSON(json: any): InviteStatusEnum;
24
23
  export declare function InviteStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteStatusEnum;
@@ -21,7 +21,6 @@ var InviteStatusEnum;
21
21
  InviteStatusEnum["Pending"] = "pending";
22
22
  InviteStatusEnum["Rejected"] = "rejected";
23
23
  InviteStatusEnum["Accepted"] = "accepted";
24
- InviteStatusEnum["Cancelled"] = "cancelled";
25
24
  })(InviteStatusEnum || (InviteStatusEnum = {}));
26
25
  function InviteStatusEnumFromJSON(json) {
27
26
  return InviteStatusEnumFromJSONTyped(json);
@@ -71,7 +71,7 @@ export interface Provider {
71
71
  */
72
72
  defaultChainId?: number;
73
73
  /**
74
- *
74
+ * The url of the site to go to export wallets private keys
75
75
  * @type {string}
76
76
  * @memberof Provider
77
77
  */
@@ -47,7 +47,7 @@ export interface ProviderCreateRequest {
47
47
  */
48
48
  defaultChainId?: number;
49
49
  /**
50
- *
50
+ * The url of the site to go to export wallets private keys
51
51
  * @type {string}
52
52
  * @memberof ProviderCreateRequest
53
53
  */
@@ -40,7 +40,7 @@ export interface ProviderUpdateRequest {
40
40
  */
41
41
  defaultChainId?: number;
42
42
  /**
43
- *
43
+ * The url of the site to go to export wallets private keys
44
44
  * @type {string}
45
45
  * @memberof ProviderUpdateRequest
46
46
  */
@@ -45,6 +45,7 @@ exports.UnprocessableEntityErrorCode = void 0;
45
45
  UnprocessableEntityErrorCode["NftTokenGatingNotSupportedForChain"] = "nft_token_gating_not_supported_for_chain";
46
46
  UnprocessableEntityErrorCode["EmptyChainName"] = "empty_chain_name";
47
47
  UnprocessableEntityErrorCode["NoEnabledEmailProvider"] = "no_enabled_email_provider";
48
+ UnprocessableEntityErrorCode["InvalidKeyExportUrl"] = "invalid_key_export_url";
48
49
  })(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
49
50
  function UnprocessableEntityErrorCodeFromJSON(json) {
50
51
  return UnprocessableEntityErrorCodeFromJSONTyped(json);
@@ -37,7 +37,8 @@ export declare enum UnprocessableEntityErrorCode {
37
37
  LockTooManyAttempts = "lock_too_many_attempts",
38
38
  NftTokenGatingNotSupportedForChain = "nft_token_gating_not_supported_for_chain",
39
39
  EmptyChainName = "empty_chain_name",
40
- NoEnabledEmailProvider = "no_enabled_email_provider"
40
+ NoEnabledEmailProvider = "no_enabled_email_provider",
41
+ InvalidKeyExportUrl = "invalid_key_export_url"
41
42
  }
42
43
  export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
43
44
  export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
@@ -41,6 +41,7 @@ var UnprocessableEntityErrorCode;
41
41
  UnprocessableEntityErrorCode["NftTokenGatingNotSupportedForChain"] = "nft_token_gating_not_supported_for_chain";
42
42
  UnprocessableEntityErrorCode["EmptyChainName"] = "empty_chain_name";
43
43
  UnprocessableEntityErrorCode["NoEnabledEmailProvider"] = "no_enabled_email_provider";
44
+ UnprocessableEntityErrorCode["InvalidKeyExportUrl"] = "invalid_key_export_url";
44
45
  })(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
45
46
  function UnprocessableEntityErrorCodeFromJSON(json) {
46
47
  return UnprocessableEntityErrorCodeFromJSONTyped(json);