@settlemint/dalp-sdk 3.1.26-main.37333678815 → 3.1.26-main.37348696308

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/dist/effect.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  data2
3
- } from "./chunk-yrw64w7d.js";
3
+ } from "./chunk-zhe5wcbw.js";
4
4
  import"./chunk-k3ntysxx.js";
5
5
  import {
6
6
  DalpApiError2,
@@ -8,7 +8,7 @@ import {
8
8
  streamRequest,
9
9
  sendRequest,
10
10
  queryKeyFor2
11
- } from "./chunk-15xj59az.js";
11
+ } from "./chunk-5qcn189z.js";
12
12
  import"./chunk-hcpk89xj.js";
13
13
  import {
14
14
  buildProxy,
@@ -2423,6 +2423,8 @@ export type CustodyAccountLifecycleStatusOutput = {
2423
2423
  readonly terminalCode: string | null;
2424
2424
  };
2425
2425
 
2426
+ export type CustodyAccountLifecycleStatusOutputEncoded = string;
2427
+
2426
2428
  export type CustodyAccountOrganizationContextId = string;
2427
2429
 
2428
2430
  export type CustodyOpsMovementsPage = {
@@ -17523,6 +17525,37 @@ export type custodyUserLegacyV2_readLifecycle_Response = {
17523
17525
 
17524
17526
  export type custodyUserLegacyV2_readLifecycle_ErrorCode = "ACTIVE_ORGANIZATION_REQUIRED" | "BAD_REQUEST" | "CHAIN_ID_HEADER_INVALID" | "CHAIN_NOT_AVAILABLE_FOR_ORGANIZATION" | "CHAIN_NOT_READY" | "CONFLICT" | "CONTRACT_ERROR" | "CUSTODY_ACCOUNT_NOT_FOUND_PUBLIC" | "CUSTODY_ACCOUNT_SELECTION_INVALID" | "CUSTODY_APPROVAL_PENDING" | "CUSTODY_APPROVAL_REJECTED" | "CUSTODY_PROOF_INVALID" | "CUSTODY_PROVIDER_CONFIG_CONFLICT" | "CUSTODY_PROVIDER_CONFIG_INVALID" | "CUSTODY_WALLET_NOT_SIGNER" | "DALP-0083" | "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_EXECUTOR" | "LOGIN_2FA_REQUIRED" | "NOT_FOUND" | "PRIMARY_CUSTODY_ACCOUNT_REQUIRED" | "REQUEST_CHAIN_SYSTEM_REQUIRED" | "REQUEST_CUSTODY_ACCOUNT_UNAVAILABLE" | "REQUEST_DEADLINE_EXCEEDED" | "REQUEST_EXECUTOR_UNAVAILABLE" | "REQUEST_PARTICIPANT_FORBIDDEN" | "SERVICE_UNAVAILABLE" | "SESSION_EVIDENCE_INVALID" | "SESSION_POLICY_DENIED" | "SESSION_RESOLUTION_FAILED" | "UNAUTHORIZED" | "WALLET_VERIFICATION_REQUIRED" | "X_EXECUTOR_AA_DISABLED_FOR_ORG" | "X_EXECUTOR_AA_DISABLED_GLOBALLY" | "auth.apikey.THROTTLED" | "custody.write.OUTCOME_UNKNOWN" | "dapi.runtime.INVALID_REQUEST_CUSTODY_ACCOUNT" | "dapi.runtime.REQUEST_CHAIN_LOOKUP_FAILED";
17525
17527
 
17528
+ export type custodyUserLegacyV2_readLifecycleStream_Request = {
17529
+ readonly requestId: string;
17530
+ readonly invitationId?: string;
17531
+ readonly participantId?: string;
17532
+ };
17533
+
17534
+ export type custodyUserLegacyV2_readLifecycleStream_RequestParts = {
17535
+ readonly path: {
17536
+ readonly requestId: string;
17537
+ };
17538
+ readonly query?: {
17539
+ readonly invitationId?: string;
17540
+ readonly participantId?: string;
17541
+ };
17542
+ };
17543
+
17544
+ export type custodyUserLegacyV2_readLifecycleStream_Response = {
17545
+ readonly requestId: string;
17546
+ readonly custodyAccountId: string;
17547
+ readonly organizationContextId: string;
17548
+ readonly operation: "onboard" | "add" | "revoke" | "archive";
17549
+ readonly state: "awaiting-proof" | "awaiting-existing-approval" | "claimed" | "awaiting-aa-reconciliation" | "reconciling" | "awaiting-external-message-authorization" | "awaiting-external-authorization" | "succeeded" | "failed" | "expired";
17550
+ readonly externalPreparationId: string | null;
17551
+ readonly externalAuthorizingCustodyAccountId: string | null;
17552
+ readonly externalMessageDigest: string | null;
17553
+ readonly terminalResult: "succeeded" | "failed" | "expired" | null;
17554
+ readonly terminalCode: string | null;
17555
+ };
17556
+
17557
+ export type custodyUserLegacyV2_readLifecycleStream_ErrorCode = "ACTIVE_ORGANIZATION_REQUIRED" | "BAD_REQUEST" | "CHAIN_ID_HEADER_INVALID" | "CHAIN_NOT_AVAILABLE_FOR_ORGANIZATION" | "CHAIN_NOT_READY" | "CONFLICT" | "CONTRACT_ERROR" | "CUSTODY_ACCOUNT_NOT_FOUND_PUBLIC" | "CUSTODY_ACCOUNT_SELECTION_INVALID" | "CUSTODY_APPROVAL_PENDING" | "CUSTODY_APPROVAL_REJECTED" | "CUSTODY_PROOF_INVALID" | "CUSTODY_PROVIDER_CONFIG_CONFLICT" | "CUSTODY_PROVIDER_CONFIG_INVALID" | "CUSTODY_WALLET_NOT_SIGNER" | "DALP-0083" | "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_EXECUTOR" | "LOGIN_2FA_REQUIRED" | "NOT_FOUND" | "PRIMARY_CUSTODY_ACCOUNT_REQUIRED" | "REQUEST_CHAIN_SYSTEM_REQUIRED" | "REQUEST_CUSTODY_ACCOUNT_UNAVAILABLE" | "REQUEST_DEADLINE_EXCEEDED" | "REQUEST_EXECUTOR_UNAVAILABLE" | "REQUEST_PARTICIPANT_FORBIDDEN" | "SERVICE_UNAVAILABLE" | "SESSION_EVIDENCE_INVALID" | "SESSION_POLICY_DENIED" | "SESSION_RESOLUTION_FAILED" | "UNAUTHORIZED" | "WALLET_VERIFICATION_REQUIRED" | "X_EXECUTOR_AA_DISABLED_FOR_ORG" | "X_EXECUTOR_AA_DISABLED_GLOBALLY" | "auth.apikey.THROTTLED" | "custody.write.OUTCOME_UNKNOWN" | "dapi.runtime.INVALID_REQUEST_CUSTODY_ACCOUNT" | "dapi.runtime.REQUEST_CHAIN_LOOKUP_FAILED";
17558
+
17526
17559
  export type custodyUserLegacyV2_resumeLifecycle_Request = {
17527
17560
  readonly requestId: string;
17528
17561
  readonly externalMessageAuthorization?: {
@@ -22882,6 +22915,34 @@ export type party_participants_custodyAccountRequestRead_Response = {
22882
22915
 
22883
22916
  export type party_participants_custodyAccountRequestRead_ErrorCode = "ACTIVE_ORGANIZATION_REQUIRED" | "BAD_REQUEST" | "CHAIN_ID_HEADER_INVALID" | "CHAIN_NOT_AVAILABLE_FOR_ORGANIZATION" | "CHAIN_NOT_READY" | "CONFLICT" | "CONTRACT_ERROR" | "CUSTODY_ACCOUNT_SELECTION_INVALID" | "DALP-0083" | "FORBIDDEN" | "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_EXECUTOR" | "LOGIN_2FA_REQUIRED" | "MULTISIG_NOT_ENABLED" | "NOT_FOUND" | "PRIMARY_CUSTODY_ACCOUNT_REQUIRED" | "REQUEST_CHAIN_SYSTEM_REQUIRED" | "REQUEST_CUSTODY_ACCOUNT_UNAVAILABLE" | "REQUEST_DEADLINE_EXCEEDED" | "REQUEST_EXECUTOR_UNAVAILABLE" | "REQUEST_PARTICIPANT_FORBIDDEN" | "SERVICE_UNAVAILABLE" | "SESSION_EVIDENCE_INVALID" | "SESSION_POLICY_DENIED" | "SESSION_RESOLUTION_FAILED" | "UNAUTHORIZED" | "X_EXECUTOR_AA_DISABLED_FOR_ORG" | "X_EXECUTOR_AA_DISABLED_GLOBALLY" | "auth.apikey.THROTTLED" | "dapi.runtime.INVALID_REQUEST_CUSTODY_ACCOUNT" | "dapi.runtime.REQUEST_CHAIN_LOOKUP_FAILED" | "party.dependency.FAILED" | "party.write.OUTCOME_UNKNOWN";
22884
22917
 
22918
+ export type party_participants_custodyAccountRequestStream_Request = {
22919
+ readonly participantId: string;
22920
+ readonly requestId: string;
22921
+ };
22922
+
22923
+ export type party_participants_custodyAccountRequestStream_RequestParts = {
22924
+ readonly path: {
22925
+ readonly participantId: string;
22926
+ readonly requestId: string;
22927
+ };
22928
+ readonly query?: Readonly<Record<string, never>>;
22929
+ };
22930
+
22931
+ export type party_participants_custodyAccountRequestStream_Response = {
22932
+ readonly requestId: string;
22933
+ readonly custodyAccountId: string;
22934
+ readonly organizationContextId: string;
22935
+ readonly operation: "onboard" | "add" | "revoke" | "archive";
22936
+ readonly state: "awaiting-proof" | "awaiting-existing-approval" | "claimed" | "awaiting-aa-reconciliation" | "reconciling" | "awaiting-external-message-authorization" | "awaiting-external-authorization" | "succeeded" | "failed" | "expired";
22937
+ readonly externalPreparationId: string | null;
22938
+ readonly externalAuthorizingCustodyAccountId: string | null;
22939
+ readonly externalMessageDigest: string | null;
22940
+ readonly terminalResult: "succeeded" | "failed" | "expired" | null;
22941
+ readonly terminalCode: string | null;
22942
+ };
22943
+
22944
+ export type party_participants_custodyAccountRequestStream_ErrorCode = "ACTIVE_ORGANIZATION_REQUIRED" | "BAD_REQUEST" | "CHAIN_ID_HEADER_INVALID" | "CHAIN_NOT_AVAILABLE_FOR_ORGANIZATION" | "CHAIN_NOT_READY" | "CONFLICT" | "CONTRACT_ERROR" | "CUSTODY_ACCOUNT_SELECTION_INVALID" | "DALP-0083" | "FORBIDDEN" | "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_EXECUTOR" | "LOGIN_2FA_REQUIRED" | "MULTISIG_NOT_ENABLED" | "NOT_FOUND" | "PRIMARY_CUSTODY_ACCOUNT_REQUIRED" | "REQUEST_CHAIN_SYSTEM_REQUIRED" | "REQUEST_CUSTODY_ACCOUNT_UNAVAILABLE" | "REQUEST_DEADLINE_EXCEEDED" | "REQUEST_EXECUTOR_UNAVAILABLE" | "REQUEST_PARTICIPANT_FORBIDDEN" | "SERVICE_UNAVAILABLE" | "SESSION_EVIDENCE_INVALID" | "SESSION_POLICY_DENIED" | "SESSION_RESOLUTION_FAILED" | "UNAUTHORIZED" | "X_EXECUTOR_AA_DISABLED_FOR_ORG" | "X_EXECUTOR_AA_DISABLED_GLOBALLY" | "auth.apikey.THROTTLED" | "dapi.runtime.INVALID_REQUEST_CUSTODY_ACCOUNT" | "dapi.runtime.REQUEST_CHAIN_LOOKUP_FAILED" | "party.dependency.FAILED" | "party.write.OUTCOME_UNKNOWN";
22945
+
22885
22946
  export type party_participants_holdings_Request = {
22886
22947
  readonly participantId: string;
22887
22948
  readonly filter?: {
@@ -58111,6 +58172,7 @@ export type DalpApi = {
58111
58172
  readonly prepareControl: DalpOperation<custodyUserLegacyV2_prepareControl_Request, custodyUserLegacyV2_prepareControl_Response, custodyUserLegacyV2_prepareControl_ErrorCode>;
58112
58173
  readonly prepareExistingControl: DalpOperation<custodyUserLegacyV2_prepareExistingControl_Request, custodyUserLegacyV2_prepareExistingControl_Response, custodyUserLegacyV2_prepareExistingControl_ErrorCode>;
58113
58174
  readonly readLifecycle: DalpOperation<custodyUserLegacyV2_readLifecycle_Request, custodyUserLegacyV2_readLifecycle_Response, custodyUserLegacyV2_readLifecycle_ErrorCode>;
58175
+ readonly readLifecycleStream: DalpStreamOperation<custodyUserLegacyV2_readLifecycleStream_Request, custodyUserLegacyV2_readLifecycleStream_Response, custodyUserLegacyV2_readLifecycleStream_ErrorCode>;
58114
58176
  readonly runLifecycle: DalpOperation<custodyUserLegacyV2_runLifecycle_Request, custodyUserLegacyV2_runLifecycle_Response, custodyUserLegacyV2_runLifecycle_ErrorCode>;
58115
58177
  readonly selectPrimary: DalpOperation<custodyUserLegacyV2_selectPrimary_Request, custodyUserLegacyV2_selectPrimary_Response, custodyUserLegacyV2_selectPrimary_ErrorCode>;
58116
58178
  readonly startManagedLifecycle: DalpOperation<custodyUserLegacyV2_startManagedLifecycle_Request, custodyUserLegacyV2_startManagedLifecycle_Response, custodyUserLegacyV2_startManagedLifecycle_ErrorCode>;
@@ -58307,6 +58369,7 @@ export type DalpApi = {
58307
58369
  readonly assumableList: DalpOperation<party_participants_assumableList_Request, party_participants_assumableList_Response, party_participants_assumableList_ErrorCode>;
58308
58370
  readonly create: DalpOperation<party_participants_create_Request, party_participants_create_Response, party_participants_create_ErrorCode>;
58309
58371
  readonly custodyAccountRequestRead: DalpOperation<party_participants_custodyAccountRequestRead_Request, party_participants_custodyAccountRequestRead_Response, party_participants_custodyAccountRequestRead_ErrorCode>;
58372
+ readonly custodyAccountRequestStream: DalpStreamOperation<party_participants_custodyAccountRequestStream_Request, party_participants_custodyAccountRequestStream_Response, party_participants_custodyAccountRequestStream_ErrorCode>;
58310
58373
  readonly holdings: DalpOperation<party_participants_holdings_Request, party_participants_holdings_Response, party_participants_holdings_ErrorCode>;
58311
58374
  readonly list: DalpOperation<party_participants_list_Request, party_participants_list_Response, party_participants_list_ErrorCode>;
58312
58375
  };
@@ -59170,6 +59233,7 @@ export type DalpConsoleApi = {
59170
59233
  readonly prepareControl: DalpOperation<custodyUserLegacyV2_prepareControl_Request, custodyUserLegacyV2_prepareControl_Response, custodyUserLegacyV2_prepareControl_ErrorCode>;
59171
59234
  readonly prepareExistingControl: DalpOperation<custodyUserLegacyV2_prepareExistingControl_Request, custodyUserLegacyV2_prepareExistingControl_Response, custodyUserLegacyV2_prepareExistingControl_ErrorCode>;
59172
59235
  readonly readLifecycle: DalpOperation<custodyUserLegacyV2_readLifecycle_Request, custodyUserLegacyV2_readLifecycle_Response, custodyUserLegacyV2_readLifecycle_ErrorCode>;
59236
+ readonly readLifecycleStream: DalpStreamOperation<custodyUserLegacyV2_readLifecycleStream_Request, custodyUserLegacyV2_readLifecycleStream_Response, custodyUserLegacyV2_readLifecycleStream_ErrorCode>;
59173
59237
  readonly resumeLifecycle: DalpOperation<custodyUserLegacyV2_resumeLifecycle_Request, custodyUserLegacyV2_resumeLifecycle_Response, custodyUserLegacyV2_resumeLifecycle_ErrorCode>;
59174
59238
  readonly runLifecycle: DalpOperation<custodyUserLegacyV2_runLifecycle_Request, custodyUserLegacyV2_runLifecycle_Response, custodyUserLegacyV2_runLifecycle_ErrorCode>;
59175
59239
  readonly selectPrimary: DalpOperation<custodyUserLegacyV2_selectPrimary_Request, custodyUserLegacyV2_selectPrimary_Response, custodyUserLegacyV2_selectPrimary_ErrorCode>;
@@ -59384,6 +59448,7 @@ export type DalpConsoleApi = {
59384
59448
  readonly assumableList: DalpOperation<party_participants_assumableList_Request, party_participants_assumableList_Response, party_participants_assumableList_ErrorCode>;
59385
59449
  readonly create: DalpOperation<party_participants_create_Request, party_participants_create_Response, party_participants_create_ErrorCode>;
59386
59450
  readonly custodyAccountRequestRead: DalpOperation<party_participants_custodyAccountRequestRead_Request, party_participants_custodyAccountRequestRead_Response, party_participants_custodyAccountRequestRead_ErrorCode>;
59451
+ readonly custodyAccountRequestStream: DalpStreamOperation<party_participants_custodyAccountRequestStream_Request, party_participants_custodyAccountRequestStream_Response, party_participants_custodyAccountRequestStream_ErrorCode>;
59387
59452
  readonly holdings: DalpOperation<party_participants_holdings_Request, party_participants_holdings_Response, party_participants_holdings_ErrorCode>;
59388
59453
  readonly list: DalpOperation<party_participants_list_Request, party_participants_list_Response, party_participants_list_ErrorCode>;
59389
59454
  };
@@ -60891,6 +60956,13 @@ export interface DalpRouteTypes {
60891
60956
  readonly errorCode: custodyUserLegacyV2_readLifecycle_ErrorCode;
60892
60957
  readonly streaming: false;
60893
60958
  };
60959
+ readonly "custodyUserLegacyV2.readLifecycleStream": {
60960
+ readonly request: custodyUserLegacyV2_readLifecycleStream_Request;
60961
+ readonly requestParts: custodyUserLegacyV2_readLifecycleStream_RequestParts;
60962
+ readonly response: custodyUserLegacyV2_readLifecycleStream_Response;
60963
+ readonly errorCode: custodyUserLegacyV2_readLifecycleStream_ErrorCode;
60964
+ readonly streaming: true;
60965
+ };
60894
60966
  readonly "custodyUserLegacyV2.runLifecycle": {
60895
60967
  readonly request: custodyUserLegacyV2_runLifecycle_Request;
60896
60968
  readonly requestParts: custodyUserLegacyV2_runLifecycle_RequestParts;
@@ -61766,6 +61838,13 @@ export interface DalpRouteTypes {
61766
61838
  readonly errorCode: party_participants_custodyAccountRequestRead_ErrorCode;
61767
61839
  readonly streaming: false;
61768
61840
  };
61841
+ readonly "party.participants.custodyAccountRequestStream": {
61842
+ readonly request: party_participants_custodyAccountRequestStream_Request;
61843
+ readonly requestParts: party_participants_custodyAccountRequestStream_RequestParts;
61844
+ readonly response: party_participants_custodyAccountRequestStream_Response;
61845
+ readonly errorCode: party_participants_custodyAccountRequestStream_ErrorCode;
61846
+ readonly streaming: true;
61847
+ };
61769
61848
  readonly "party.participants.holdings": {
61770
61849
  readonly request: party_participants_holdings_Request;
61771
61850
  readonly requestParts: party_participants_holdings_RequestParts;
@@ -66351,6 +66430,13 @@ export interface DalpConsoleRouteTypes {
66351
66430
  readonly errorCode: custodyUserLegacyV2_readLifecycle_ErrorCode;
66352
66431
  readonly streaming: false;
66353
66432
  };
66433
+ readonly "custodyUserLegacyV2.readLifecycleStream": {
66434
+ readonly request: custodyUserLegacyV2_readLifecycleStream_Request;
66435
+ readonly requestParts: custodyUserLegacyV2_readLifecycleStream_RequestParts;
66436
+ readonly response: custodyUserLegacyV2_readLifecycleStream_Response;
66437
+ readonly errorCode: custodyUserLegacyV2_readLifecycleStream_ErrorCode;
66438
+ readonly streaming: true;
66439
+ };
66354
66440
  readonly "custodyUserLegacyV2.resumeLifecycle": {
66355
66441
  readonly request: custodyUserLegacyV2_resumeLifecycle_Request;
66356
66442
  readonly requestParts: custodyUserLegacyV2_resumeLifecycle_RequestParts;
@@ -67310,6 +67396,13 @@ export interface DalpConsoleRouteTypes {
67310
67396
  readonly errorCode: party_participants_custodyAccountRequestRead_ErrorCode;
67311
67397
  readonly streaming: false;
67312
67398
  };
67399
+ readonly "party.participants.custodyAccountRequestStream": {
67400
+ readonly request: party_participants_custodyAccountRequestStream_Request;
67401
+ readonly requestParts: party_participants_custodyAccountRequestStream_RequestParts;
67402
+ readonly response: party_participants_custodyAccountRequestStream_Response;
67403
+ readonly errorCode: party_participants_custodyAccountRequestStream_ErrorCode;
67404
+ readonly streaming: true;
67405
+ };
67313
67406
  readonly "party.participants.holdings": {
67314
67407
  readonly request: party_participants_holdings_Request;
67315
67408
  readonly requestParts: party_participants_holdings_RequestParts;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  data2
3
- } from "./chunk-yrw64w7d.js";
3
+ } from "./chunk-zhe5wcbw.js";
4
4
  import {
5
5
  DalpSdkError2,
6
6
  createDalpSdkConfigurationError2
@@ -22,7 +22,7 @@ import {
22
22
  STREAM_FAILED_ERROR_CODE2,
23
23
  STREAM_UNREADABLE_BODY_ERROR_CODE2,
24
24
  decodeEventStream2
25
- } from "./chunk-15xj59az.js";
25
+ } from "./chunk-5qcn189z.js";
26
26
  import {
27
27
  DALP_AUTH_SURFACE_HEADER2,
28
28
  SECRET_REDACTION_MARKER2,
@@ -34,10 +34,10 @@ import {
34
34
  createCookieStoreFetch2,
35
35
  SDK_VERSION2,
36
36
  SDK_USER_AGENT2
37
- } from "./chunk-tkrd0g9d.js";
37
+ } from "./chunk-che7wj17.js";
38
38
  import {
39
39
  buildDalpClient
40
- } from "./chunk-029n1m41.js";
40
+ } from "./chunk-r02b1cbh.js";
41
41
  import"./chunk-h9e65x5z.js";
42
42
 
43
43
  // src/proxy/client.ts
@@ -3,7 +3,7 @@ import {
3
3
  canonicalize2,
4
4
  queryKeyFor2,
5
5
  UI_SETTLEMENT_TIMEOUT_MS2
6
- } from "./chunk-15xj59az.js";
6
+ } from "./chunk-5qcn189z.js";
7
7
  import"./chunk-hcpk89xj.js";
8
8
  import"./chunk-h9e65x5z.js";
9
9
  export {