@fairmint/canton-node-sdk 0.0.230 → 0.0.232

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.
Files changed (57) hide show
  1. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +26 -26
  2. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +9 -1
  3. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts.map +1 -1
  4. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +26 -26
  5. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
  6. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js +12 -5
  7. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js.map +1 -1
  8. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +14 -14
  9. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts +2 -0
  10. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts.map +1 -1
  11. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js +12 -3
  12. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js.map +1 -1
  13. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts +15 -1
  14. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts.map +1 -1
  15. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js +23 -9
  16. package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js.map +1 -1
  17. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts +10 -1
  18. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts.map +1 -1
  19. package/build/src/clients/ledger-json-api/schemas/api/event-details.js +18 -2
  20. package/build/src/clients/ledger-json-api/schemas/api/event-details.js.map +1 -1
  21. package/build/src/clients/ledger-json-api/schemas/api/events.d.ts +36 -4
  22. package/build/src/clients/ledger-json-api/schemas/api/events.d.ts.map +1 -1
  23. package/build/src/clients/ledger-json-api/schemas/api/events.js +5 -4
  24. package/build/src/clients/ledger-json-api/schemas/api/events.js.map +1 -1
  25. package/build/src/clients/ledger-json-api/schemas/api/interface-view.d.ts +20 -0
  26. package/build/src/clients/ledger-json-api/schemas/api/interface-view.d.ts.map +1 -0
  27. package/build/src/clients/ledger-json-api/schemas/api/interface-view.js +21 -0
  28. package/build/src/clients/ledger-json-api/schemas/api/interface-view.js.map +1 -0
  29. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +36 -4
  30. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts.map +1 -1
  31. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts +72 -8
  32. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts.map +1 -1
  33. package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts +36 -4
  34. package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts.map +1 -1
  35. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +216 -24
  36. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts.map +1 -1
  37. package/build/src/clients/scan-api/ScanApiClient.generated.d.ts +4 -0
  38. package/build/src/clients/scan-api/ScanApiClient.generated.d.ts.map +1 -1
  39. package/build/src/clients/scan-api/ScanApiClient.generated.js +2 -0
  40. package/build/src/clients/scan-api/ScanApiClient.generated.js.map +1 -1
  41. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/index.d.ts +2 -0
  42. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/index.d.ts.map +1 -0
  43. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/index.js +18 -0
  44. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/index.js.map +1 -0
  45. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.d.ts +97 -0
  46. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.d.ts.map +1 -0
  47. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.js +51 -0
  48. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.js.map +1 -0
  49. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.d.ts +2 -0
  50. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.d.ts.map +1 -0
  51. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.js +18 -0
  52. package/build/src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.js.map +1 -0
  53. package/build/src/clients/scan-api/operations/v0/registry/index.d.ts +1 -0
  54. package/build/src/clients/scan-api/operations/v0/registry/index.d.ts.map +1 -1
  55. package/build/src/clients/scan-api/operations/v0/registry/index.js +1 -0
  56. package/build/src/clients/scan-api/operations/v0/registry/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -0,0 +1,97 @@
1
+ import { z } from 'zod';
2
+ import type { components, paths } from '../../../../../../../generated/token-standard/splice-api-token-allocation-instruction-v1/openapi/allocation-instruction-v1';
3
+ type ApiPath = '/registry/allocation-instruction/v1/allocation-factory';
4
+ export declare const GetAllocationFactoryFromRegistryParamsSchema: z.ZodObject<{
5
+ registryUrl: z.ZodURL;
6
+ choiceArguments: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
7
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
8
+ } | null)[] | {
9
+ [key: string]: string | number | boolean | any | any | null;
10
+ } | null)[] | {
11
+ [key: string]: string | number | boolean | any | any | null;
12
+ } | null)[] | {
13
+ [key: string]: string | number | boolean | any | any | null;
14
+ } | null)[] | {
15
+ [key: string]: string | number | boolean | any | any | null;
16
+ } | null)[] | {
17
+ [key: string]: string | number | boolean | any | any | null;
18
+ } | null)[] | {
19
+ [key: string]: string | number | boolean | any | any | null;
20
+ } | null)[] | {
21
+ [key: string]: string | number | boolean | any | any | null;
22
+ } | null)[] | {
23
+ [key: string]: string | number | boolean | any | any | null;
24
+ } | null)[] | {
25
+ [key: string]: string | number | boolean | any | any | null;
26
+ } | null)[] | {
27
+ [key: string]: string | number | boolean | any | any | null;
28
+ } | null)[] | {
29
+ [key: string]: string | number | boolean | any | any | null;
30
+ } | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
31
+ [key: string]: string | number | boolean | any | any | null;
32
+ } | null)[] | {
33
+ [key: string]: string | number | boolean | any | any | null;
34
+ } | null)[] | {
35
+ [key: string]: string | number | boolean | any | any | null;
36
+ } | null)[] | {
37
+ [key: string]: string | number | boolean | any | any | null;
38
+ } | null)[] | {
39
+ [key: string]: string | number | boolean | any | any | null;
40
+ } | null)[] | {
41
+ [key: string]: string | number | boolean | any | any | null;
42
+ } | null)[] | {
43
+ [key: string]: string | number | boolean | any | any | null;
44
+ } | null)[] | {
45
+ [key: string]: string | number | boolean | any | any | null;
46
+ } | null)[] | {
47
+ [key: string]: string | number | boolean | any | any | null;
48
+ } | null)[] | {
49
+ [key: string]: string | number | boolean | any | any | null;
50
+ } | null)[] | {
51
+ [key: string]: string | number | boolean | any | any | null;
52
+ } | null)[] | {
53
+ [key: string]: string | number | boolean | any | any | null;
54
+ } | null, unknown>>>;
55
+ excludeDebugFields: z.ZodOptional<z.ZodBoolean>;
56
+ }, z.core.$strip>;
57
+ export type GetAllocationFactoryFromRegistryParams = z.infer<typeof GetAllocationFactoryFromRegistryParamsSchema>;
58
+ export type GetAllocationFactoryFromRegistryRequest = components['schemas']['GetFactoryRequest'];
59
+ export type GetAllocationFactoryFromRegistryResponse = paths[ApiPath]['post']['responses']['200']['content']['application/json'];
60
+ /**
61
+ * Fetch the AllocationFactory and per-choice context from any Token Standard registry. The request is deliberately
62
+ * unauthenticated so Scan credentials are never forwarded to a third-party instrument registry.
63
+ */
64
+ export declare const GetAllocationFactoryFromRegistry: new (client: import("../../../../../../..").BaseClient) => import("../../../../../../..").ApiOperation<{
65
+ registryUrl: string;
66
+ choiceArguments: Record<string, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
67
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
68
+ } | null)[] | {
69
+ [key: string]: string | number | boolean | any | any | null;
70
+ } | null)[] | {
71
+ [key: string]: string | number | boolean | any | any | null;
72
+ } | null)[] | {
73
+ [key: string]: string | number | boolean | any | any | null;
74
+ } | null)[] | {
75
+ [key: string]: string | number | boolean | any | any | null;
76
+ } | null)[] | {
77
+ [key: string]: string | number | boolean | any | any | null;
78
+ } | null)[] | {
79
+ [key: string]: string | number | boolean | any | any | null;
80
+ } | null)[] | {
81
+ [key: string]: string | number | boolean | any | any | null;
82
+ } | null)[] | {
83
+ [key: string]: string | number | boolean | any | any | null;
84
+ } | null)[] | {
85
+ [key: string]: string | number | boolean | any | any | null;
86
+ } | null)[] | {
87
+ [key: string]: string | number | boolean | any | any | null;
88
+ } | null)[] | {
89
+ [key: string]: string | number | boolean | any | any | null;
90
+ } | null>;
91
+ excludeDebugFields?: boolean | undefined;
92
+ }, {
93
+ factoryId: string;
94
+ choiceContext: components["schemas"]["ChoiceContext"];
95
+ }>;
96
+ export {};
97
+ //# sourceMappingURL=get-allocation-factory-from-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-allocation-factory-from-registry.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EACV,UAAU,EACV,KAAK,EACN,MAAM,4HAA4H,CAAC;AAGpI,KAAK,OAAO,GAAG,wDAAwD,CAAC;AAiBxE,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvD,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAC;AAClH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACjG,MAAM,MAAM,wCAAwC,GAClD,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAY5E;;;GAGG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3C,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllocationFactoryFromRegistry = exports.GetAllocationFactoryFromRegistryParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const core_1 = require("../../../../../../../core");
6
+ const base_1 = require("../../../../../../ledger-json-api/schemas/base");
7
+ const endpoint = '/registry/allocation-instruction/v1/allocation-factory';
8
+ const publicRequestConfig = {
9
+ contentType: 'application/json',
10
+ includeBearerToken: false,
11
+ };
12
+ const RegistryUrlSchema = zod_1.z.url().refine((value) => {
13
+ try {
14
+ const { protocol } = new URL(value);
15
+ return protocol === 'http:' || protocol === 'https:';
16
+ }
17
+ catch {
18
+ return false;
19
+ }
20
+ }, 'registryUrl must use http or https');
21
+ exports.GetAllocationFactoryFromRegistryParamsSchema = zod_1.z.object({
22
+ /** Base URL advertised for the instrument admin's Token Standard registry. */
23
+ registryUrl: RegistryUrlSchema,
24
+ /** Complete AllocationFactory_Allocate choice argument used to derive context. */
25
+ choiceArguments: base_1.RecordSchema,
26
+ excludeDebugFields: zod_1.z.boolean().optional(),
27
+ });
28
+ function buildRegistryEndpoint(registryUrl) {
29
+ const url = new URL(registryUrl);
30
+ url.username = '';
31
+ url.password = '';
32
+ url.search = '';
33
+ url.hash = '';
34
+ url.pathname = `${url.pathname.replace(/\/+$/, '')}${endpoint}`;
35
+ return url.toString();
36
+ }
37
+ /**
38
+ * Fetch the AllocationFactory and per-choice context from any Token Standard registry. The request is deliberately
39
+ * unauthenticated so Scan credentials are never forwarded to a third-party instrument registry.
40
+ */
41
+ exports.GetAllocationFactoryFromRegistry = (0, core_1.createApiOperation)({
42
+ paramsSchema: exports.GetAllocationFactoryFromRegistryParamsSchema,
43
+ method: 'POST',
44
+ buildUrl: (params) => buildRegistryEndpoint(params.registryUrl),
45
+ buildRequestData: (params) => ({
46
+ choiceArguments: params.choiceArguments,
47
+ excludeDebugFields: params.excludeDebugFields ?? false,
48
+ }),
49
+ requestConfig: publicRequestConfig,
50
+ });
51
+ //# sourceMappingURL=get-allocation-factory-from-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-allocation-factory-from-registry.js","sourceRoot":"","sources":["../../../../../../../../../src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/get-allocation-factory-from-registry.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oDAA+D;AAK/D,yEAA8E;AAI9E,MAAM,QAAQ,GAAG,wDAAwD,CAAC;AAC1E,MAAM,mBAAmB,GAAG;IAC1B,WAAW,EAAE,kBAAkB;IAC/B,kBAAkB,EAAE,KAAK;CACjB,CAAC;AAEX,MAAM,iBAAiB,GAAG,OA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AC,CAAC;QAC7B,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,IAAI,KAAK;KACvD,CAAC;IACF,aAAa,EAAE,mBAAmB;CACnC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-allocation-factory-from-registry';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-allocation-factory-from-registry"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/clients/scan-api/operations/v0/registry/allocation-instruction/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yEAAuD"}
@@ -1,2 +1,3 @@
1
+ export * from './allocation-instruction';
1
2
  export * from './metadata';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/scan-api/operations/v0/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/scan-api/operations/v0/registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC"}
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./allocation-instruction"), exports);
17
18
  __exportStar(require("./metadata"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/scan-api/operations/v0/registry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/scan-api/operations/v0/registry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6CAA2B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/canton-node-sdk",
3
- "version": "0.0.230",
3
+ "version": "0.0.232",
4
4
  "description": "Canton Node SDK",
5
5
  "keywords": [
6
6
  "canton",