@dynamic-labs/sdk-api 0.159.0 → 0.160.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/AdminActionsApi.cjs +2 -1
- package/src/apis/AdminActionsApi.js +2 -1
- package/src/apis/AllowlistsApi.cjs +2 -1
- package/src/apis/AllowlistsApi.js +2 -1
- package/src/apis/AnalyticsApi.cjs +2 -1
- package/src/apis/AnalyticsApi.js +2 -1
- package/src/apis/AuthorizedClientsApi.cjs +2 -1
- package/src/apis/AuthorizedClientsApi.js +2 -1
- package/src/apis/BusinessAccountsApi.cjs +2 -1
- package/src/apis/BusinessAccountsApi.js +2 -1
- package/src/apis/CaptchaApi.cjs +2 -1
- package/src/apis/CaptchaApi.js +2 -1
- package/src/apis/ChainalysisApi.cjs +2 -1
- package/src/apis/ChainalysisApi.js +2 -1
- package/src/apis/ChainsApi.cjs +2 -1
- package/src/apis/ChainsApi.js +2 -1
- package/src/apis/CheckoutApi.cjs +2 -1
- package/src/apis/CheckoutApi.js +2 -1
- package/src/apis/ClientGrantApi.cjs +2 -1
- package/src/apis/ClientGrantApi.js +2 -1
- package/src/apis/CustomFieldsApi.cjs +2 -1
- package/src/apis/CustomFieldsApi.js +2 -1
- package/src/apis/CustomHostnamesApi.cjs +2 -1
- package/src/apis/CustomHostnamesApi.js +2 -1
- package/src/apis/CustomNetworksApi.cjs +2 -1
- package/src/apis/CustomNetworksApi.js +2 -1
- package/src/apis/DeeplinkUrlsApi.cjs +2 -1
- package/src/apis/DeeplinkUrlsApi.js +2 -1
- package/src/apis/EnvironmentsApi.cjs +2 -1
- package/src/apis/EnvironmentsApi.js +2 -1
- package/src/apis/EventsApi.cjs +2 -1
- package/src/apis/EventsApi.js +2 -1
- package/src/apis/ExchangesApi.cjs +2 -1
- package/src/apis/ExchangesApi.js +2 -1
- package/src/apis/ExportsApi.cjs +2 -1
- package/src/apis/ExportsApi.js +2 -1
- package/src/apis/ExternalJwtApi.cjs +2 -1
- package/src/apis/ExternalJwtApi.js +2 -1
- package/src/apis/FlowAnalyticsApi.cjs +2 -1
- package/src/apis/FlowAnalyticsApi.js +2 -1
- package/src/apis/GaslessApi.cjs +2 -1
- package/src/apis/GaslessApi.js +2 -1
- package/src/apis/GatesApi.cjs +2 -1
- package/src/apis/GatesApi.js +2 -1
- package/src/apis/GlobalWalletAccessControlApi.cjs +2 -1
- package/src/apis/GlobalWalletAccessControlApi.js +2 -1
- package/src/apis/GlobalWalletConnectionsApi.cjs +2 -1
- package/src/apis/GlobalWalletConnectionsApi.js +2 -1
- package/src/apis/GlobalWalletsApi.cjs +2 -1
- package/src/apis/GlobalWalletsApi.js +2 -1
- package/src/apis/InvitesApi.cjs +2 -1
- package/src/apis/InvitesApi.js +2 -1
- package/src/apis/KybApi.cjs +2 -1
- package/src/apis/KybApi.js +2 -1
- package/src/apis/MembersApi.cjs +2 -1
- package/src/apis/MembersApi.js +2 -1
- package/src/apis/MfaSettingsApi.cjs +2 -1
- package/src/apis/MfaSettingsApi.js +2 -1
- package/src/apis/NameServicesApi.cjs +2 -1
- package/src/apis/NameServicesApi.js +2 -1
- package/src/apis/OrganizationSettingsApi.cjs +2 -1
- package/src/apis/OrganizationSettingsApi.js +2 -1
- package/src/apis/OrganizationsApi.cjs +2 -1
- package/src/apis/OrganizationsApi.js +2 -1
- package/src/apis/OriginsApi.cjs +2 -1
- package/src/apis/OriginsApi.js +2 -1
- package/src/apis/ProjectsApi.cjs +2 -1
- package/src/apis/ProjectsApi.js +2 -1
- package/src/apis/ProvidersApi.cjs +2 -1
- package/src/apis/ProvidersApi.js +2 -1
- package/src/apis/SDKApi.cjs +8 -6
- package/src/apis/SDKApi.d.ts +8 -8
- package/src/apis/SDKApi.js +8 -6
- package/src/apis/SDKViewsApi.cjs +2 -1
- package/src/apis/SDKViewsApi.js +2 -1
- package/src/apis/ScreeningPoliciesApi.cjs +2 -1
- package/src/apis/ScreeningPoliciesApi.js +2 -1
- package/src/apis/ServerApi.cjs +7 -5
- package/src/apis/ServerApi.d.ts +6 -6
- package/src/apis/ServerApi.js +7 -5
- package/src/apis/SessionsApi.cjs +2 -1
- package/src/apis/SessionsApi.js +2 -1
- package/src/apis/TestAccountApi.cjs +2 -1
- package/src/apis/TestAccountApi.js +2 -1
- package/src/apis/TokensApi.cjs +2 -1
- package/src/apis/TokensApi.js +2 -1
- package/src/apis/UserApiTokensApi.cjs +2 -1
- package/src/apis/UserApiTokensApi.js +2 -1
- package/src/apis/UsersApi.cjs +2 -1
- package/src/apis/UsersApi.js +2 -1
- package/src/apis/VisitsApi.cjs +2 -1
- package/src/apis/VisitsApi.js +2 -1
- package/src/apis/WaasApi.cjs +2 -1
- package/src/apis/WaasApi.js +2 -1
- package/src/apis/WalletConnectApi.cjs +2 -1
- package/src/apis/WalletConnectApi.js +2 -1
- package/src/apis/WalletsApi.cjs +2 -1
- package/src/apis/WalletsApi.js +2 -1
- package/src/apis/WebhooksApi.cjs +2 -1
- package/src/apis/WebhooksApi.js +2 -1
- package/src/apis/YieldApi.cjs +2 -1
- package/src/apis/YieldApi.js +2 -1
- package/src/apis/ZendeskApi.cjs +2 -1
- package/src/apis/ZendeskApi.js +2 -1
- package/src/index.cjs +20 -0
- package/src/index.js +4 -0
- package/src/models/BusinessAccountPolicyLayerResponse.cjs +49 -0
- package/src/models/BusinessAccountPolicyLayerResponse.d.ts +71 -0
- package/src/models/BusinessAccountPolicyLayerResponse.js +43 -0
- package/src/models/BusinessAccountPolicyLayerResponseAllOf.cjs +35 -0
- package/src/models/BusinessAccountPolicyLayerResponseAllOf.d.ts +33 -0
- package/src/models/BusinessAccountPolicyLayerResponseAllOf.js +29 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequest.cjs +64 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequest.d.ts +93 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequest.js +58 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.cjs +37 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.d.ts +43 -0
- package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.js +31 -0
- package/src/models/DynamicJwt.cjs +2 -0
- package/src/models/DynamicJwt.d.ts +6 -0
- package/src/models/DynamicJwt.js +2 -0
- package/src/models/MinifiedDynamicJwt.cjs +2 -0
- package/src/models/MinifiedDynamicJwt.d.ts +6 -0
- package/src/models/MinifiedDynamicJwt.js +2 -0
- package/src/models/index.d.ts +4 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BusinessAccountPolicyLayerResponseAllOfFromJSON(json) {
|
|
5
|
+
return BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BusinessAccountPolicyLayerResponseAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'layerDigest': !exists(json, 'layerDigest') ? undefined : json['layerDigest'],
|
|
13
|
+
'rbacVersion': !exists(json, 'rbacVersion') ? undefined : json['rbacVersion'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function BusinessAccountPolicyLayerResponseAllOfToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'layerDigest': value.layerDigest,
|
|
25
|
+
'rbacVersion': value.rbacVersion,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { BusinessAccountPolicyLayerResponseAllOfFromJSON, BusinessAccountPolicyLayerResponseAllOfFromJSONTyped, BusinessAccountPolicyLayerResponseAllOfToJSON };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasPolicyDeclarativeRuleInput = require('./WaasPolicyDeclarativeRuleInput.cjs');
|
|
7
|
+
var WaasPolicyLayerRuleInput = require('./WaasPolicyLayerRuleInput.cjs');
|
|
8
|
+
var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
|
|
9
|
+
var WaasPolicyRule = require('./WaasPolicyRule.cjs');
|
|
10
|
+
|
|
11
|
+
/* tslint:disable */
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
* @enum {string}
|
|
15
|
+
*/
|
|
16
|
+
exports.BusinessAccountPolicyLayerUpdateRequestOpEnum = void 0;
|
|
17
|
+
(function (BusinessAccountPolicyLayerUpdateRequestOpEnum) {
|
|
18
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
|
|
19
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
|
|
20
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
|
|
21
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
|
|
22
|
+
})(exports.BusinessAccountPolicyLayerUpdateRequestOpEnum || (exports.BusinessAccountPolicyLayerUpdateRequestOpEnum = {}));
|
|
23
|
+
function BusinessAccountPolicyLayerUpdateRequestFromJSON(json) {
|
|
24
|
+
return BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'op': json['op'],
|
|
32
|
+
'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
|
|
33
|
+
'declarativeRule': !runtime.exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
34
|
+
'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
35
|
+
'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
|
|
36
|
+
'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputFromJSON)),
|
|
37
|
+
'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
|
|
38
|
+
'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
39
|
+
'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function BusinessAccountPolicyLayerUpdateRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'op': value.op,
|
|
51
|
+
'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
|
|
52
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInput.WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
53
|
+
'ruleId': value.ruleId,
|
|
54
|
+
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
|
|
55
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInput.WaasPolicyLayerRuleInputToJSON)),
|
|
56
|
+
'intent': value.intent,
|
|
57
|
+
'intentSignature': value.intentSignature,
|
|
58
|
+
'proposalId': value.proposalId,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.BusinessAccountPolicyLayerUpdateRequestFromJSON = BusinessAccountPolicyLayerUpdateRequestFromJSON;
|
|
63
|
+
exports.BusinessAccountPolicyLayerUpdateRequestFromJSONTyped = BusinessAccountPolicyLayerUpdateRequestFromJSONTyped;
|
|
64
|
+
exports.BusinessAccountPolicyLayerUpdateRequestToJSON = BusinessAccountPolicyLayerUpdateRequestToJSON;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { WaasPolicyDeclarativeRuleInput } from './WaasPolicyDeclarativeRuleInput';
|
|
13
|
+
import { WaasPolicyLayerRuleInput } from './WaasPolicyLayerRuleInput';
|
|
14
|
+
import { WaasPolicyLayerRuleOperation } from './WaasPolicyLayerRuleOperation';
|
|
15
|
+
import { WaasPolicyRule } from './WaasPolicyRule';
|
|
16
|
+
/**
|
|
17
|
+
* The account-Layer update, plus the consent fields when the account governs updatePolicyLayer. All three added fields are optional: send none when it does not. `intentSignature` goes with `intent`, never alone.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BusinessAccountPolicyLayerUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface BusinessAccountPolicyLayerUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The per-Rule operation to apply to the wallet-Layer, batch to apply multiple operations atomically in one enclave cycle, or replace to set the Layer's full Rule list
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
op: BusinessAccountPolicyLayerUpdateRequestOpEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {WaasPolicyRule}
|
|
31
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
rule?: WaasPolicyRule;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {WaasPolicyDeclarativeRuleInput}
|
|
37
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
declarativeRule?: WaasPolicyDeclarativeRuleInput;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
44
|
+
*/
|
|
45
|
+
ruleId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Only used when op is batch — applied atomically in one enclave cycle
|
|
48
|
+
* @type {Array<WaasPolicyLayerRuleOperation>}
|
|
49
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
50
|
+
*/
|
|
51
|
+
operations?: Array<WaasPolicyLayerRuleOperation>;
|
|
52
|
+
/**
|
|
53
|
+
* Only used when op is replace — the Layer's full Rule list, in either syntax. A declarative Rule sent without a ruleId is given one. Only admins and business-account admins may replace.
|
|
54
|
+
* @type {Array<WaasPolicyLayerRuleInput>}
|
|
55
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
56
|
+
*/
|
|
57
|
+
rules?: Array<WaasPolicyLayerRuleInput>;
|
|
58
|
+
/**
|
|
59
|
+
* The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
|
|
60
|
+
* `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
|
|
61
|
+
* @type {{ [key: string]: object; }}
|
|
62
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
63
|
+
*/
|
|
64
|
+
intent?: {
|
|
65
|
+
[key: string]: object;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Hex-encoded ECDSA P-256 signature over the canonicalized payload, produced by the signer's session key — which never leaves their device, so consent cannot be given on their behalf.
|
|
69
|
+
* Exactly 128 hex characters. WebCrypto emits the raw r‖s form with both halves padded to 32 bytes, so unlike DER the length never varies. Constrained here so a malformed value is a 400 at the edge rather than an enclave round trip that returns INTENT_SIGNATURE_INVALID, and so an unbounded string cannot be persisted against a proposal.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
72
|
+
*/
|
|
73
|
+
intentSignature?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The approved updatePolicyLayer proposal to redeem. Resend the same update with it; the stored proposal is what runs, and `intent` and `intentSignature` are not needed.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequest
|
|
78
|
+
*/
|
|
79
|
+
proposalId?: string | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
* @enum {string}
|
|
84
|
+
*/
|
|
85
|
+
export declare enum BusinessAccountPolicyLayerUpdateRequestOpEnum {
|
|
86
|
+
Upsert = "upsert",
|
|
87
|
+
Remove = "remove",
|
|
88
|
+
Batch = "batch",
|
|
89
|
+
Replace = "replace"
|
|
90
|
+
}
|
|
91
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestFromJSON(json: any): BusinessAccountPolicyLayerUpdateRequest;
|
|
92
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerUpdateRequest;
|
|
93
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestToJSON(value?: BusinessAccountPolicyLayerUpdateRequest | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasPolicyDeclarativeRuleInputFromJSON, WaasPolicyDeclarativeRuleInputToJSON } from './WaasPolicyDeclarativeRuleInput.js';
|
|
3
|
+
import { WaasPolicyLayerRuleInputFromJSON, WaasPolicyLayerRuleInputToJSON } from './WaasPolicyLayerRuleInput.js';
|
|
4
|
+
import { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationToJSON } from './WaasPolicyLayerRuleOperation.js';
|
|
5
|
+
import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
/**
|
|
9
|
+
* @export
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
var BusinessAccountPolicyLayerUpdateRequestOpEnum;
|
|
13
|
+
(function (BusinessAccountPolicyLayerUpdateRequestOpEnum) {
|
|
14
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
|
|
15
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
|
|
16
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
|
|
17
|
+
BusinessAccountPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
|
|
18
|
+
})(BusinessAccountPolicyLayerUpdateRequestOpEnum || (BusinessAccountPolicyLayerUpdateRequestOpEnum = {}));
|
|
19
|
+
function BusinessAccountPolicyLayerUpdateRequestFromJSON(json) {
|
|
20
|
+
return BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json);
|
|
21
|
+
}
|
|
22
|
+
function BusinessAccountPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'op': json['op'],
|
|
28
|
+
'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
|
|
29
|
+
'declarativeRule': !exists(json, 'declarativeRule') ? undefined : WaasPolicyDeclarativeRuleInputFromJSON(json['declarativeRule']),
|
|
30
|
+
'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
|
|
31
|
+
'operations': !exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperationFromJSON)),
|
|
32
|
+
'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRuleInputFromJSON)),
|
|
33
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
34
|
+
'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
35
|
+
'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function BusinessAccountPolicyLayerUpdateRequestToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'op': value.op,
|
|
47
|
+
'rule': WaasPolicyRuleToJSON(value.rule),
|
|
48
|
+
'declarativeRule': WaasPolicyDeclarativeRuleInputToJSON(value.declarativeRule),
|
|
49
|
+
'ruleId': value.ruleId,
|
|
50
|
+
'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperationToJSON)),
|
|
51
|
+
'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRuleInputToJSON)),
|
|
52
|
+
'intent': value.intent,
|
|
53
|
+
'intentSignature': value.intentSignature,
|
|
54
|
+
'proposalId': value.proposalId,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { BusinessAccountPolicyLayerUpdateRequestFromJSON, BusinessAccountPolicyLayerUpdateRequestFromJSONTyped, BusinessAccountPolicyLayerUpdateRequestOpEnum, BusinessAccountPolicyLayerUpdateRequestToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
|
|
9
|
+
return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
|
|
17
|
+
'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
18
|
+
'proposalId': !runtime.exists(json, 'proposalId') ? undefined : json['proposalId'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'intent': value.intent,
|
|
30
|
+
'intentSignature': value.intentSignature,
|
|
31
|
+
'proposalId': value.proposalId,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON;
|
|
36
|
+
exports.BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped = BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped;
|
|
37
|
+
exports.BusinessAccountPolicyLayerUpdateRequestAllOfToJSON = BusinessAccountPolicyLayerUpdateRequestAllOfToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 BusinessAccountPolicyLayerUpdateRequestAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface BusinessAccountPolicyLayerUpdateRequestAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
|
|
20
|
+
* `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
|
|
21
|
+
* @type {{ [key: string]: object; }}
|
|
22
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
|
|
23
|
+
*/
|
|
24
|
+
intent?: {
|
|
25
|
+
[key: string]: object;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Hex-encoded ECDSA P-256 signature over the canonicalized payload, produced by the signer's session key — which never leaves their device, so consent cannot be given on their behalf.
|
|
29
|
+
* Exactly 128 hex characters. WebCrypto emits the raw r‖s form with both halves padded to 32 bytes, so unlike DER the length never varies. Constrained here so a malformed value is a 400 at the edge rather than an enclave round trip that returns INTENT_SIGNATURE_INVALID, and so an unbounded string cannot be persisted against a proposal.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
|
|
32
|
+
*/
|
|
33
|
+
intentSignature?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The approved updatePolicyLayer proposal to redeem. Resend the same update with it; the stored proposal is what runs, and `intent` and `intentSignature` are not needed.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BusinessAccountPolicyLayerUpdateRequestAllOf
|
|
38
|
+
*/
|
|
39
|
+
proposalId?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json: any): BusinessAccountPolicyLayerUpdateRequestAllOf;
|
|
42
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountPolicyLayerUpdateRequestAllOf;
|
|
43
|
+
export declare function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value?: BusinessAccountPolicyLayerUpdateRequestAllOf | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON(json) {
|
|
5
|
+
return BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
13
|
+
'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
14
|
+
'proposalId': !exists(json, 'proposalId') ? undefined : json['proposalId'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BusinessAccountPolicyLayerUpdateRequestAllOfToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'intent': value.intent,
|
|
26
|
+
'intentSignature': value.intentSignature,
|
|
27
|
+
'proposalId': value.proposalId,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { BusinessAccountPolicyLayerUpdateRequestAllOfFromJSON, BusinessAccountPolicyLayerUpdateRequestAllOfFromJSONTyped, BusinessAccountPolicyLayerUpdateRequestAllOfToJSON };
|
|
@@ -31,6 +31,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'country': !runtime.exists(json, 'country') ? undefined : json['country'],
|
|
32
32
|
'email': !runtime.exists(json, 'email') ? undefined : json['email'],
|
|
33
33
|
'environmentId': json['environment_id'],
|
|
34
|
+
'dynSigner': !runtime.exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
|
|
34
35
|
'familyName': !runtime.exists(json, 'family_name') ? undefined : json['family_name'],
|
|
35
36
|
'givenName': !runtime.exists(json, 'given_name') ? undefined : json['given_name'],
|
|
36
37
|
'jobTitle': !runtime.exists(json, 'job_title') ? undefined : json['job_title'],
|
|
@@ -92,6 +93,7 @@ function DynamicJwtToJSON(value) {
|
|
|
92
93
|
'country': value.country,
|
|
93
94
|
'email': value.email,
|
|
94
95
|
'environment_id': value.environmentId,
|
|
96
|
+
'dyn_signer': value.dynSigner,
|
|
95
97
|
'family_name': value.familyName,
|
|
96
98
|
'given_name': value.givenName,
|
|
97
99
|
'job_title': value.jobTitle,
|
|
@@ -98,6 +98,12 @@ export interface DynamicJwt {
|
|
|
98
98
|
* @memberof DynamicJwt
|
|
99
99
|
*/
|
|
100
100
|
environmentId: string;
|
|
101
|
+
/**
|
|
102
|
+
* JWT signer attribution claim identifying which service minted this JWT (e.g. auth-service). Preserved verbatim across re-mints.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof DynamicJwt
|
|
105
|
+
*/
|
|
106
|
+
dynSigner?: string;
|
|
101
107
|
/**
|
|
102
108
|
* Last name of the user
|
|
103
109
|
* @type {string}
|
package/src/models/DynamicJwt.js
CHANGED
|
@@ -27,6 +27,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
28
28
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
29
29
|
'environmentId': json['environment_id'],
|
|
30
|
+
'dynSigner': !exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
|
|
30
31
|
'familyName': !exists(json, 'family_name') ? undefined : json['family_name'],
|
|
31
32
|
'givenName': !exists(json, 'given_name') ? undefined : json['given_name'],
|
|
32
33
|
'jobTitle': !exists(json, 'job_title') ? undefined : json['job_title'],
|
|
@@ -88,6 +89,7 @@ function DynamicJwtToJSON(value) {
|
|
|
88
89
|
'country': value.country,
|
|
89
90
|
'email': value.email,
|
|
90
91
|
'environment_id': value.environmentId,
|
|
92
|
+
'dyn_signer': value.dynSigner,
|
|
91
93
|
'family_name': value.familyName,
|
|
92
94
|
'given_name': value.givenName,
|
|
93
95
|
'job_title': value.jobTitle,
|
|
@@ -35,6 +35,7 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'refreshExp': !runtime.exists(json, 'refreshExp') ? undefined : json['refreshExp'],
|
|
36
36
|
'sdkVersion': !runtime.exists(json, 'sdkVersion') ? undefined : json['sdkVersion'],
|
|
37
37
|
'deviceRegistrationId': !runtime.exists(json, 'deviceRegistrationId') ? undefined : json['deviceRegistrationId'],
|
|
38
|
+
'dynSigner': !runtime.exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
|
|
38
39
|
'roles': !runtime.exists(json, 'roles') ? undefined : json['roles'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
@@ -67,6 +68,7 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
67
68
|
'refreshExp': value.refreshExp,
|
|
68
69
|
'sdkVersion': value.sdkVersion,
|
|
69
70
|
'deviceRegistrationId': value.deviceRegistrationId,
|
|
71
|
+
'dyn_signer': value.dynSigner,
|
|
70
72
|
'roles': value.roles,
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -142,6 +142,12 @@ export interface MinifiedDynamicJwt {
|
|
|
142
142
|
* @memberof MinifiedDynamicJwt
|
|
143
143
|
*/
|
|
144
144
|
deviceRegistrationId?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Signer attribution claim identifying which service minted this JWT (e.g. auth-service). Preserved verbatim across re-mints.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof MinifiedDynamicJwt
|
|
149
|
+
*/
|
|
150
|
+
dynSigner?: string;
|
|
145
151
|
/**
|
|
146
152
|
* Role assignments as org:{organizationId}:{role} and account:{businessAccountId}:{role} entries. Empty array when the user has no memberships.
|
|
147
153
|
* @type {Array<string>}
|
|
@@ -31,6 +31,7 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'refreshExp': !exists(json, 'refreshExp') ? undefined : json['refreshExp'],
|
|
32
32
|
'sdkVersion': !exists(json, 'sdkVersion') ? undefined : json['sdkVersion'],
|
|
33
33
|
'deviceRegistrationId': !exists(json, 'deviceRegistrationId') ? undefined : json['deviceRegistrationId'],
|
|
34
|
+
'dynSigner': !exists(json, 'dyn_signer') ? undefined : json['dyn_signer'],
|
|
34
35
|
'roles': !exists(json, 'roles') ? undefined : json['roles'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -63,6 +64,7 @@ function MinifiedDynamicJwtToJSON(value) {
|
|
|
63
64
|
'refreshExp': value.refreshExp,
|
|
64
65
|
'sdkVersion': value.sdkVersion,
|
|
65
66
|
'deviceRegistrationId': value.deviceRegistrationId,
|
|
67
|
+
'dyn_signer': value.dynSigner,
|
|
66
68
|
'roles': value.roles,
|
|
67
69
|
};
|
|
68
70
|
}
|
package/src/models/index.d.ts
CHANGED
|
@@ -121,6 +121,10 @@ export * from './BusinessAccountMemberPreview';
|
|
|
121
121
|
export * from './BusinessAccountMemberRole';
|
|
122
122
|
export * from './BusinessAccountMemberSelection';
|
|
123
123
|
export * from './BusinessAccountMutationVersion';
|
|
124
|
+
export * from './BusinessAccountPolicyLayerResponse';
|
|
125
|
+
export * from './BusinessAccountPolicyLayerResponseAllOf';
|
|
126
|
+
export * from './BusinessAccountPolicyLayerUpdateRequest';
|
|
127
|
+
export * from './BusinessAccountPolicyLayerUpdateRequestAllOf';
|
|
124
128
|
export * from './BusinessAccountProperties';
|
|
125
129
|
export * from './BusinessAccountProposal';
|
|
126
130
|
export * from './BusinessAccountProposalApprovalRecord';
|