@dynamic-labs/sdk-api-core 0.128.0 → 0.130.0
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 +1 -1
- package/src/apis/SDKApi.d.ts +2 -2
- package/src/apis/SDKApi.js +2 -2
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/models/FlowCreateRequest.d.ts +1 -1
- package/src/models/FlowSourceResponse.d.ts +1 -1
- package/src/models/NotFoundWithoutCode.d.ts +27 -0
- package/src/models/NotFoundWithoutCode.js +37 -0
- package/src/models/NotFoundWithoutCode.js.map +1 -0
- package/src/models/TokenScope.d.ts +1 -0
- package/src/models/TokenScope.js +1 -0
- package/src/models/TokenScope.js.map +1 -1
- package/src/models/index.d.ts +1 -0
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -1763,12 +1763,12 @@ export interface YieldVaultWithdrawOptionsRequest {
|
|
|
1763
1763
|
*/
|
|
1764
1764
|
export declare class SDKApi extends runtime.BaseAPI {
|
|
1765
1765
|
/**
|
|
1766
|
-
* Sets the source wallet address and chain on
|
|
1766
|
+
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
1767
1767
|
* Attach a source to a flow and mint a session token
|
|
1768
1768
|
*/
|
|
1769
1769
|
attachFlowSourceRaw(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceResponse>>;
|
|
1770
1770
|
/**
|
|
1771
|
-
* Sets the source wallet address and chain on
|
|
1771
|
+
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
1772
1772
|
* Attach a source to a flow and mint a session token
|
|
1773
1773
|
*/
|
|
1774
1774
|
attachFlowSource(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<FlowSourceResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -357,7 +357,7 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
|
|
|
357
357
|
*/
|
|
358
358
|
class SDKApi extends BaseAPI {
|
|
359
359
|
/**
|
|
360
|
-
* Sets the source wallet address and chain on
|
|
360
|
+
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
361
361
|
* Attach a source to a flow and mint a session token
|
|
362
362
|
*/
|
|
363
363
|
async attachFlowSourceRaw(requestParameters, initOverrides) {
|
|
@@ -386,7 +386,7 @@ class SDKApi extends BaseAPI {
|
|
|
386
386
|
return new JSONApiResponse(response, (jsonValue) => FlowSourceResponseFromJSON(jsonValue));
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
|
-
* Sets the source wallet address and chain on
|
|
389
|
+
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
390
390
|
* Attach a source to a flow and mint a session token
|
|
391
391
|
*/
|
|
392
392
|
async attachFlowSource(requestParameters, initOverrides) {
|
package/src/index.js
CHANGED
|
@@ -333,6 +333,7 @@ export { NextViewEnum, NextViewEnumFromJSON, NextViewEnumFromJSONTyped, NextView
|
|
|
333
333
|
export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON } from './models/NonceResponse.js';
|
|
334
334
|
export { NoncesResponseFromJSON, NoncesResponseFromJSONTyped, NoncesResponseToJSON } from './models/NoncesResponse.js';
|
|
335
335
|
export { NotFoundFromJSON, NotFoundFromJSONTyped, NotFoundToJSON } from './models/NotFound.js';
|
|
336
|
+
export { NotFoundWithoutCodeFromJSON, NotFoundWithoutCodeFromJSONTyped, NotFoundWithoutCodeToJSON } from './models/NotFoundWithoutCode.js';
|
|
336
337
|
export { OAuthAccountFromJSON, OAuthAccountFromJSONTyped, OAuthAccountToJSON } from './models/OAuthAccount.js';
|
|
337
338
|
export { OauthInitAuthRequestFromJSON, OauthInitAuthRequestFromJSONTyped, OauthInitAuthRequestToJSON } from './models/OauthInitAuthRequest.js';
|
|
338
339
|
export { OauthProviderLoginUrlFromJSON, OauthProviderLoginUrlFromJSONTyped, OauthProviderLoginUrlToJSON } from './models/OauthProviderLoginUrl.js';
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -57,7 +57,7 @@ export interface FlowCreateRequest {
|
|
|
57
57
|
*/
|
|
58
58
|
feeConfig?: FlowFeeConfig;
|
|
59
59
|
/**
|
|
60
|
-
* Seconds until the flow expires (
|
|
60
|
+
* Seconds until the flow expires. Default 86400 (24 hours); values above 31536000 (365 days) are clamped. Expiry applies only before the payment is broadcast.
|
|
61
61
|
* @type {number}
|
|
62
62
|
* @memberof FlowCreateRequest
|
|
63
63
|
*/
|
|
@@ -23,7 +23,7 @@ export interface FlowSourceResponse {
|
|
|
23
23
|
*/
|
|
24
24
|
sessionExpiresAt: Date;
|
|
25
25
|
/**
|
|
26
|
-
* Opaque capability token for authenticating subsequent calls on this flow (quote
|
|
26
|
+
* Opaque capability token for authenticating subsequent calls on this flow (quote, prepare, broadcast, cancel). Minted by the source endpoint and returned exactly once — store it immediately. At most one live token exists per flow at a time. Format: dft_<base64url>.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof FlowSourceResponse
|
|
29
29
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* @interface NotFoundWithoutCode
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundWithoutCode {
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable error message
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundWithoutCode
|
|
22
|
+
*/
|
|
23
|
+
error: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function NotFoundWithoutCodeFromJSON(json: any): NotFoundWithoutCode;
|
|
26
|
+
export declare function NotFoundWithoutCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundWithoutCode;
|
|
27
|
+
export declare function NotFoundWithoutCodeToJSON(value?: NotFoundWithoutCode | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
function NotFoundWithoutCodeFromJSON(json) {
|
|
15
|
+
return NotFoundWithoutCodeFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function NotFoundWithoutCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'error': json['error'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function NotFoundWithoutCodeToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'error': value.error,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { NotFoundWithoutCodeFromJSON, NotFoundWithoutCodeFromJSONTyped, NotFoundWithoutCodeToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundWithoutCode.js","sources":["../../../../../libs/sdk-api-core/src/models/NotFoundWithoutCode.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAiBG,SAAU,2BAA2B,CAAC,IAAS,EAAA;AACjD,IAAA,OAAO,gCAAgC,CAAC,IAAW,CAAC,CAAC;AACzD,CAAC;AAEe,SAAA,gCAAgC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAEK,SAAU,yBAAyB,CAAC,KAAkC,EAAA;AACxE,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN;;;;"}
|
|
@@ -20,6 +20,7 @@ export declare enum TokenScope {
|
|
|
20
20
|
BusinessAccountmemberadd = "business_account:member:add",
|
|
21
21
|
BusinessAccountmemberremove = "business_account:member:remove",
|
|
22
22
|
BusinessAccountmemberroleupdate = "business_account:member:role:update",
|
|
23
|
+
BusinessAccountpolicyupdate = "business_account:policy:update",
|
|
23
24
|
BusinessAccountproposalapprove = "business_account:proposal:approve",
|
|
24
25
|
BusinessAccountproposalveto = "business_account:proposal:veto",
|
|
25
26
|
BusinessAccountroledefine = "business_account:role:define",
|
package/src/models/TokenScope.js
CHANGED
|
@@ -23,6 +23,7 @@ var TokenScope;
|
|
|
23
23
|
TokenScope["BusinessAccountmemberadd"] = "business_account:member:add";
|
|
24
24
|
TokenScope["BusinessAccountmemberremove"] = "business_account:member:remove";
|
|
25
25
|
TokenScope["BusinessAccountmemberroleupdate"] = "business_account:member:role:update";
|
|
26
|
+
TokenScope["BusinessAccountpolicyupdate"] = "business_account:policy:update";
|
|
26
27
|
TokenScope["BusinessAccountproposalapprove"] = "business_account:proposal:approve";
|
|
27
28
|
TokenScope["BusinessAccountproposalveto"] = "business_account:proposal:veto";
|
|
28
29
|
TokenScope["BusinessAccountroledefine"] = "business_account:role:define";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenScope.js","sources":["../../../../../libs/sdk-api-core/src/models/TokenScope.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;IACS,
|
|
1
|
+
{"version":3,"file":"TokenScope.js","sources":["../../../../../libs/sdk-api-core/src/models/TokenScope.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;IACS,WAsCX;AAtCD,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,iCAAA,CAAA,GAAA,oCAAsE,CAAA;AACtE,IAAA,UAAA,CAAA,2BAAA,CAAA,GAAA,8BAA0D,CAAA;AAC1D,IAAA,UAAA,CAAA,0BAAA,CAAA,GAAA,6BAAwD,CAAA;AACxD,IAAA,UAAA,CAAA,6BAAA,CAAA,GAAA,gCAA8D,CAAA;AAC9D,IAAA,UAAA,CAAA,iCAAA,CAAA,GAAA,qCAAuE,CAAA;AACvE,IAAA,UAAA,CAAA,6BAAA,CAAA,GAAA,gCAA8D,CAAA;AAC9D,IAAA,UAAA,CAAA,gCAAA,CAAA,GAAA,mCAAoE,CAAA;AACpE,IAAA,UAAA,CAAA,6BAAA,CAAA,GAAA,gCAA8D,CAAA;AAC9D,IAAA,UAAA,CAAA,2BAAA,CAAA,GAAA,8BAA0D,CAAA;AAC1D,IAAA,UAAA,CAAA,2BAAA,CAAA,GAAA,8BAA0D,CAAA;AAC1D,IAAA,UAAA,CAAA,0BAAA,CAAA,GAAA,6BAAwD,CAAA;AACxD,IAAA,UAAA,CAAA,6BAAA,CAAA,GAAA,gCAA8D,CAAA;AAC9D,IAAA,UAAA,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AAA,iBAAkC,CAAA;AAClC,IAAA,UAAA,CAAA,YAAA,CAAA,GAAA,aAA0B,CAAA;AAC1B,IAAA,UAAA,CAAA,eAAA,CAAA,GAAA,gBAAgC,CAAA;AAChC,IAAA,UAAA,CAAA,oBAAA,CAAA,GAAA,sBAA2C,CAAA;AAC/C,CAAC,EAtCW,UAAU,KAAV,UAAU,GAsCrB,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,kBAAkB,CAAC,IAAS,EAAA;AACxC,IAAA,OAAO,uBAAuB,CAAC,IAAW,CAAC,CAAC;AAChD,CAAC;AAEe,SAAA,uBAAuB,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC3E,IAAA,OAAO,IAAkB,CAAC;AAC9B,CAAC;AAEK,SAAU,gBAAgB,CAAC,KAAyB,EAAA;AACtD,IAAA,OAAO,KAAY,CAAC;AACxB;;;;"}
|
package/src/models/index.d.ts
CHANGED
|
@@ -330,6 +330,7 @@ export * from './NextViewEnum';
|
|
|
330
330
|
export * from './NonceResponse';
|
|
331
331
|
export * from './NoncesResponse';
|
|
332
332
|
export * from './NotFound';
|
|
333
|
+
export * from './NotFoundWithoutCode';
|
|
333
334
|
export * from './OAuthAccount';
|
|
334
335
|
export * from './OauthInitAuthRequest';
|
|
335
336
|
export * from './OauthProviderLoginUrl';
|
package/src/version.js
CHANGED