@fairmint/canton-node-sdk 0.0.82 → 0.0.84

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 (74) hide show
  1. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +18 -6
  2. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts.map +1 -1
  3. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js +2 -2
  4. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js.map +1 -1
  5. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +19 -8
  6. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
  7. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js +5 -8
  8. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js.map +1 -1
  9. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +18 -6
  10. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts.map +1 -1
  11. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js +2 -2
  12. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js.map +1 -1
  13. package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts +3 -2
  14. package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts.map +1 -1
  15. package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.js +2 -2
  16. package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.js.map +1 -1
  17. package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts +17 -4
  18. package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts.map +1 -1
  19. package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js +2 -2
  20. package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js.map +1 -1
  21. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts.map +1 -1
  22. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js +20 -10
  23. package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js.map +1 -1
  24. package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts +3 -2
  25. package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts.map +1 -1
  26. package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.js +10 -3
  27. package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.js.map +1 -1
  28. package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts +3 -2
  29. package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts.map +1 -1
  30. package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js +2 -2
  31. package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js.map +1 -1
  32. package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts +3 -2
  33. package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts.map +1 -1
  34. package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.js +2 -2
  35. package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.js.map +1 -1
  36. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts +52 -3
  37. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts.map +1 -1
  38. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js +2 -2
  39. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js.map +1 -1
  40. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts +52 -3
  41. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts.map +1 -1
  42. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js +2 -2
  43. package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js.map +1 -1
  44. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts +106 -2
  45. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts.map +1 -1
  46. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js +2 -2
  47. package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js.map +1 -1
  48. package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts +31 -3
  49. package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts.map +1 -1
  50. package/build/src/clients/ledger-json-api/operations/v2/users/create-user.js +2 -2
  51. package/build/src/clients/ledger-json-api/operations/v2/users/create-user.js.map +1 -1
  52. package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts +25 -4
  53. package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts.map +1 -1
  54. package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js +2 -2
  55. package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js.map +1 -1
  56. package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts +25 -4
  57. package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts.map +1 -1
  58. package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js +2 -2
  59. package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js.map +1 -1
  60. package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts +7 -4
  61. package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts.map +1 -1
  62. package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js +2 -2
  63. package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js.map +1 -1
  64. package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts +18 -4
  65. package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts.map +1 -1
  66. package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js +2 -2
  67. package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js.map +1 -1
  68. package/build/src/utils/amulet/get-amulets-for-transfer.d.ts.map +1 -1
  69. package/build/src/utils/amulet/get-amulets-for-transfer.js +0 -2
  70. package/build/src/utils/amulet/get-amulets-for-transfer.js.map +1 -1
  71. package/build/src/utils/contracts/contract-monitor.d.ts.map +1 -1
  72. package/build/src/utils/contracts/contract-monitor.js +0 -2
  73. package/build/src/utils/contracts/contract-monitor.js.map +1 -1
  74. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-transaction-by-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,+BAAwC,CAAC;AAE1D,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACpH,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE3H,eAAO,MAAM,kBAAkB;;;;;gCAKoxmE,yIAAsB;;yBAAu/xB,yIAAsB;;;;;;;;;;;;;CAAp14F,CAAC"}
1
+ {"version":3,"file":"get-transaction-by-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,QAAA,MAAM,QAAQ,EAAG,+BAAwC,CAAC;AAE1D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE3H,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAK0t4F,yIAAsB;;;;;;;;;;;;;CAA7w4F,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTransactionById = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/updates/transaction-by-id';
7
7
  exports.GetTransactionById = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.GetTransactionByIdParamsSchema,
9
9
  method: 'POST',
10
10
  buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
11
11
  buildRequestData: (params) => params,
@@ -1 +1 @@
1
- {"version":3,"file":"get-transaction-by-id.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,+BAAwC,CAAC;AAK7C,QAAA,kBAAkB,GAAG,IAAA,yBAAkB,EAAuD;IACzG,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"get-transaction-by-id.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAA6E;AAE7E,MAAM,QAAQ,GAAG,+BAAwC,CAAC;AAK7C,QAAA,kBAAkB,GAAG,IAAA,yBAAkB,EAAuD;IACzG,YAAY,EAAE,2CAA8B;IAC5C,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
@@ -1,14 +1,63 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { GetTransactionByOffsetParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/updates/transaction-by-offset";
4
- export type GetTransactionByOffsetParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
5
+ export type GetTransactionByOffsetParams = z.infer<typeof GetTransactionByOffsetParamsSchema>;
5
6
  export type GetTransactionByOffsetResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
6
7
  export declare const GetTransactionByOffset: {
7
8
  new (client: import("../../../../../core").BaseClient): {
8
9
  execute(params: {
9
10
  offset: number;
10
- requestingParties?: string[];
11
- transactionFormat?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["TransactionFormat"];
11
+ transactionFormat: {
12
+ eventFormat: {
13
+ filtersByParty: Record<string, {
14
+ cumulative: {
15
+ identifierFilter: {
16
+ Empty: Record<string, never>;
17
+ } | {
18
+ InterfaceFilter: {
19
+ interfaceId: string;
20
+ includeInterfaceView?: boolean | undefined;
21
+ includeCreatedEventBlob?: boolean | undefined;
22
+ };
23
+ } | {
24
+ TemplateFilter: {
25
+ templateId: string;
26
+ includeCreatedEventBlob?: boolean | undefined;
27
+ };
28
+ } | {
29
+ WildcardFilter: {
30
+ includeCreatedEventBlob?: boolean | undefined;
31
+ };
32
+ };
33
+ }[];
34
+ }>;
35
+ filtersForAnyParty?: {
36
+ cumulative: {
37
+ identifierFilter: {
38
+ Empty: Record<string, never>;
39
+ } | {
40
+ InterfaceFilter: {
41
+ interfaceId: string;
42
+ includeInterfaceView?: boolean | undefined;
43
+ includeCreatedEventBlob?: boolean | undefined;
44
+ };
45
+ } | {
46
+ TemplateFilter: {
47
+ templateId: string;
48
+ includeCreatedEventBlob?: boolean | undefined;
49
+ };
50
+ } | {
51
+ WildcardFilter: {
52
+ includeCreatedEventBlob?: boolean | undefined;
53
+ };
54
+ };
55
+ }[];
56
+ } | undefined;
57
+ verbose?: boolean | undefined;
58
+ };
59
+ transactionShape: "TRANSACTION_SHAPE_ACS_DELTA" | "TRANSACTION_SHAPE_LEDGER_EFFECTS";
60
+ };
12
61
  }): Promise<{
13
62
  transaction: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransaction"];
14
63
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-transaction-by-offset.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,mCAA4C,CAAC;AAE9D,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACxH,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE/H,eAAO,MAAM,sBAAsB;;;;;gCAKigqE,yIAAsB;;yBAA8uuB,yIAAsB;;;;;;;;;;;;;CAA5z4F,CAAC"}
1
+ {"version":3,"file":"get-transaction-by-offset.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AAEjF,QAAA,MAAM,QAAQ,EAAG,mCAA4C,CAAC;AAE9D,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE/H,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAKkr4F,yIAAsB;;;;;;;;;;;;;CAAzu4F,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTransactionByOffset = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/updates/transaction-by-offset';
7
7
  exports.GetTransactionByOffset = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.GetTransactionByOffsetParamsSchema,
9
9
  method: 'POST',
10
10
  buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
11
11
  buildRequestData: (params) => params,
@@ -1 +1 @@
1
- {"version":3,"file":"get-transaction-by-offset.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,mCAA4C,CAAC;AAKjD,QAAA,sBAAsB,GAAG,IAAA,yBAAkB,EAA+D;IACrH,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"get-transaction-by-offset.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAAiF;AAEjF,MAAM,QAAQ,GAAG,mCAA4C,CAAC;AAKjD,QAAA,sBAAsB,GAAG,IAAA,yBAAkB,EAA+D;IACrH,YAAY,EAAE,+CAAkC;IAChD,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
@@ -1,13 +1,117 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { GetUpdateByOffsetParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/updates/update-by-offset";
4
- export type GetUpdateByOffsetParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
5
+ export type GetUpdateByOffsetParams = z.infer<typeof GetUpdateByOffsetParamsSchema>;
5
6
  export type GetUpdateByOffsetResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
6
7
  export declare const GetUpdateByOffset: {
7
8
  new (client: import("../../../../../core").BaseClient): {
8
9
  execute(params: {
9
10
  offset: number;
10
- updateFormat?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["UpdateFormat"];
11
+ updateFormat: {
12
+ includeTransactions?: {
13
+ eventFormat: {
14
+ filtersByParty: Record<string, {
15
+ cumulative: {
16
+ identifierFilter: {
17
+ Empty: Record<string, never>;
18
+ } | {
19
+ InterfaceFilter: {
20
+ interfaceId: string;
21
+ includeInterfaceView?: boolean | undefined;
22
+ includeCreatedEventBlob?: boolean | undefined;
23
+ };
24
+ } | {
25
+ TemplateFilter: {
26
+ templateId: string;
27
+ includeCreatedEventBlob?: boolean | undefined;
28
+ };
29
+ } | {
30
+ WildcardFilter: {
31
+ includeCreatedEventBlob?: boolean | undefined;
32
+ };
33
+ };
34
+ }[];
35
+ }>;
36
+ filtersForAnyParty?: {
37
+ cumulative: {
38
+ identifierFilter: {
39
+ Empty: Record<string, never>;
40
+ } | {
41
+ InterfaceFilter: {
42
+ interfaceId: string;
43
+ includeInterfaceView?: boolean | undefined;
44
+ includeCreatedEventBlob?: boolean | undefined;
45
+ };
46
+ } | {
47
+ TemplateFilter: {
48
+ templateId: string;
49
+ includeCreatedEventBlob?: boolean | undefined;
50
+ };
51
+ } | {
52
+ WildcardFilter: {
53
+ includeCreatedEventBlob?: boolean | undefined;
54
+ };
55
+ };
56
+ }[];
57
+ } | undefined;
58
+ verbose?: boolean | undefined;
59
+ };
60
+ transactionShape: "TRANSACTION_SHAPE_ACS_DELTA" | "TRANSACTION_SHAPE_LEDGER_EFFECTS";
61
+ } | undefined;
62
+ includeReassignments?: {
63
+ filtersByParty: Record<string, {
64
+ cumulative: {
65
+ identifierFilter: {
66
+ Empty: Record<string, never>;
67
+ } | {
68
+ InterfaceFilter: {
69
+ interfaceId: string;
70
+ includeInterfaceView?: boolean | undefined;
71
+ includeCreatedEventBlob?: boolean | undefined;
72
+ };
73
+ } | {
74
+ TemplateFilter: {
75
+ templateId: string;
76
+ includeCreatedEventBlob?: boolean | undefined;
77
+ };
78
+ } | {
79
+ WildcardFilter: {
80
+ includeCreatedEventBlob?: boolean | undefined;
81
+ };
82
+ };
83
+ }[];
84
+ }>;
85
+ filtersForAnyParty?: {
86
+ cumulative: {
87
+ identifierFilter: {
88
+ Empty: Record<string, never>;
89
+ } | {
90
+ InterfaceFilter: {
91
+ interfaceId: string;
92
+ includeInterfaceView?: boolean | undefined;
93
+ includeCreatedEventBlob?: boolean | undefined;
94
+ };
95
+ } | {
96
+ TemplateFilter: {
97
+ templateId: string;
98
+ includeCreatedEventBlob?: boolean | undefined;
99
+ };
100
+ } | {
101
+ WildcardFilter: {
102
+ includeCreatedEventBlob?: boolean | undefined;
103
+ };
104
+ };
105
+ }[];
106
+ } | undefined;
107
+ verbose?: boolean | undefined;
108
+ } | undefined;
109
+ includeTopologyEvents?: {
110
+ includeParticipantAuthorizationEvents?: {
111
+ parties?: string[] | undefined;
112
+ } | undefined;
113
+ } | undefined;
114
+ };
11
115
  }): Promise<{
12
116
  update: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Update"];
13
117
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-update-by-offset.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,8BAAuC,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACnH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE1H,eAAO,MAAM,iBAAiB;;;;2BAK+8rE,yIAAsB;;oBAA2xtB,yIAAsB;;;;;;;;;;;;;CAAlz5F,CAAC"}
1
+ {"version":3,"file":"get-update-by-offset.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAE5E,QAAA,MAAM,QAAQ,EAAG,8BAAuC,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE1H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAK4r5F,yIAAsB;;;;;;;;;;;;;CAA9u5F,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetUpdateByOffset = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/updates/update-by-offset';
7
7
  exports.GetUpdateByOffset = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.GetUpdateByOffsetParamsSchema,
9
9
  method: 'POST',
10
10
  buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
11
11
  buildRequestData: (params) => params,
@@ -1 +1 @@
1
- {"version":3,"file":"get-update-by-offset.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,8BAAuC,CAAC;AAK5C,QAAA,iBAAiB,GAAG,IAAA,yBAAkB,EAAqD;IACtG,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"get-update-by-offset.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAA4E;AAE5E,MAAM,QAAQ,GAAG,8BAAuC,CAAC;AAK5C,QAAA,iBAAiB,GAAG,IAAA,yBAAkB,EAAqD;IACtG,YAAY,EAAE,0CAA6B;IAC3C,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
@@ -1,13 +1,41 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { CreateUserParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/users";
4
- export type CreateUserParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
5
+ export type CreateUserParams = z.infer<typeof CreateUserParamsSchema>;
5
6
  export type CreateUserResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
6
7
  export declare const CreateUser: {
7
8
  new (client: import("../../../../../core").BaseClient): {
8
9
  execute(params: {
9
- user?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["User"];
10
- rights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][];
10
+ user: {
11
+ id: string;
12
+ isDeactivated: boolean;
13
+ primaryParty?: string | undefined;
14
+ metadata?: {
15
+ resourceVersion: string;
16
+ annotations: Record<string, string>;
17
+ } | undefined;
18
+ identityProviderId?: string | undefined;
19
+ };
20
+ rights?: {
21
+ kind: {
22
+ CanActAs: {
23
+ party: string;
24
+ };
25
+ } | {
26
+ CanReadAs: {
27
+ party: string;
28
+ };
29
+ } | {
30
+ CanReadAsAnyParty: Record<string, never>;
31
+ } | {
32
+ Empty: Record<string, never>;
33
+ } | {
34
+ IdentityProviderAdmin: Record<string, never>;
35
+ } | {
36
+ ParticipantAdmin: Record<string, never>;
37
+ };
38
+ }[] | undefined;
11
39
  }): Promise<{
12
40
  user?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["User"];
13
41
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/create-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,WAAoB,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC5G,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEnH,eAAO,MAAM,UAAU;;;mBAKqqgC,yIAAsB;qBAA0O,yIAAsB;;mBAAwJ,yIAAsB;;;;;;;;;;;;;CAA9nhC,CAAC"}
1
+ {"version":3,"file":"create-user.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/create-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,QAAA,MAAM,QAAQ,EAAG,WAAoB,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEnH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKoihC,yIAAsB;;;;;;;;;;;;;CAA/khC,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateUser = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/users';
7
7
  exports.CreateUser = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.CreateUserParamsSchema,
9
9
  method: 'POST',
10
10
  buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
11
11
  buildRequestData: (params) => params,
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/create-user.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,WAAoB,CAAC;AAKzB,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"create-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/create-user.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAAqE;AAErE,MAAM,QAAQ,GAAG,WAAoB,CAAC;AAKzB,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,mCAAsB;IACpC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
@@ -1,13 +1,34 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { GrantUserRightsParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/users/{user-id}/rights";
4
- export type GrantUserRightsParams = {
5
- userId: string;
6
- } & paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
5
+ export type GrantUserRightsParams = z.infer<typeof GrantUserRightsParamsSchema>;
7
6
  export type GrantUserRightsResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
8
7
  export declare const GrantUserRights: {
9
8
  new (client: import("../../../../../core").BaseClient): {
10
- execute(params: GrantUserRightsParams): Promise<{
9
+ execute(params: {
10
+ userId: string;
11
+ rights?: {
12
+ kind: {
13
+ CanActAs: {
14
+ party: string;
15
+ };
16
+ } | {
17
+ CanReadAs: {
18
+ party: string;
19
+ };
20
+ } | {
21
+ CanReadAsAnyParty: Record<string, never>;
22
+ } | {
23
+ Empty: Record<string, never>;
24
+ } | {
25
+ IdentityProviderAdmin: Record<string, never>;
26
+ } | {
27
+ ParticipantAdmin: Record<string, never>;
28
+ };
29
+ }[] | undefined;
30
+ identityProviderId?: string | undefined;
31
+ }): Promise<{
11
32
  newlyGrantedRights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][];
12
33
  }>;
13
34
  client: import("../../../../../core").BaseClient;
@@ -1 +1 @@
1
- {"version":3,"file":"grant-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,4BAAqC,CAAC;AAGvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAExH,eAAO,MAAM,eAAe;;;iCAQ++zE,yIAAsB;;;;;;;;;;;;;CAA/h0E,CAAC"}
1
+ {"version":3,"file":"grant-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,QAAA,MAAM,QAAQ,EAAG,4BAAqC,CAAC;AAGvD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAExH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;iCAQ29zE,yIAAsB;;;;;;;;;;;;;CAA3g0E,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GrantUserRights = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/users/{user-id}/rights';
7
7
  exports.GrantUserRights = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.GrantUserRightsParamsSchema,
9
9
  method: 'POST',
10
10
  buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/rights`,
11
11
  buildRequestData: (params) => {
@@ -1 +1 @@
1
- {"version":3,"file":"grant-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,4BAAqC,CAAC;AAS1C,QAAA,eAAe,GAAG,IAAA,yBAAkB,EAAiD;IAChG,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;IAC1E,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"grant-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/grant-user-rights.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAA0E;AAE1E,MAAM,QAAQ,GAAG,4BAAqC,CAAC;AAO1C,QAAA,eAAe,GAAG,IAAA,yBAAkB,EAAiD;IAChG,YAAY,EAAE,wCAA2B;IACzC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;IAC1E,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
@@ -1,13 +1,34 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { RevokeUserRightsParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/users/{user-id}/rights";
4
- export type RevokeUserRightsParams = {
5
- userId: string;
6
- } & paths[typeof endpoint]['patch']['requestBody']['content']['application/json'];
5
+ export type RevokeUserRightsParams = z.infer<typeof RevokeUserRightsParamsSchema>;
7
6
  export type RevokeUserRightsResponse = paths[typeof endpoint]['patch']['responses']['200']['content']['application/json'];
8
7
  export declare const RevokeUserRights: {
9
8
  new (client: import("../../../../../core").BaseClient): {
10
- execute(params: RevokeUserRightsParams): Promise<{
9
+ execute(params: {
10
+ userId: string;
11
+ rights?: {
12
+ kind: {
13
+ CanActAs: {
14
+ party: string;
15
+ };
16
+ } | {
17
+ CanReadAs: {
18
+ party: string;
19
+ };
20
+ } | {
21
+ CanReadAsAnyParty: Record<string, never>;
22
+ } | {
23
+ Empty: Record<string, never>;
24
+ } | {
25
+ IdentityProviderAdmin: Record<string, never>;
26
+ } | {
27
+ ParticipantAdmin: Record<string, never>;
28
+ };
29
+ }[] | undefined;
30
+ identityProviderId?: string | undefined;
31
+ }): Promise<{
11
32
  newlyRevokedRights?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Right"][];
12
33
  }>;
13
34
  client: import("../../../../../core").BaseClient;
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,4BAAqC,CAAC;AAGvD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAElF,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE1H,eAAO,MAAM,gBAAgB;;;iCAQu9kI,yIAAsB;;;;;;;;;;;;;CAAxglI,CAAC"}
1
+ {"version":3,"file":"revoke-user-rights.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAE3E,QAAA,MAAM,QAAQ,EAAG,4BAAqC,CAAC;AAGvD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE1H,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;iCAQi8kI,yIAAsB;;;;;;;;;;;;;CAAl/kI,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RevokeUserRights = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/users/{user-id}/rights';
7
7
  exports.RevokeUserRights = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.RevokeUserRightsParamsSchema,
9
9
  method: 'PATCH',
10
10
  buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/rights`,
11
11
  buildRequestData: (params) => {
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,4BAAqC,CAAC;AAS1C,QAAA,gBAAgB,GAAG,IAAA,yBAAkB,EAAmD;IACnG,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;IAC1E,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"revoke-user-rights.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAA2E;AAE3E,MAAM,QAAQ,GAAG,4BAAqC,CAAC;AAO1C,QAAA,gBAAgB,GAAG,IAAA,yBAAkB,EAAmD;IACnG,YAAY,EAAE,yCAA4B;IAC1C,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,SAAS;IAC1E,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { UpdateUserIdentityProviderParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/users/{user-id}/identity-provider-id";
4
- export type UpdateUserIdentityProviderParams = {
5
- userId: string;
6
- } & paths[typeof endpoint]['patch']['requestBody']['content']['application/json'];
5
+ export type UpdateUserIdentityProviderParams = z.infer<typeof UpdateUserIdentityProviderParamsSchema>;
7
6
  export type UpdateUserIdentityProviderResponse = paths[typeof endpoint]['patch']['responses']['200']['content']['application/json'];
8
7
  export declare const UpdateUserIdentityProvider: {
9
8
  new (client: import("../../../../../core").BaseClient): {
10
- execute(params: UpdateUserIdentityProviderParams): Promise<Record<string, never>>;
9
+ execute(params: {
10
+ userId: string;
11
+ sourceIdentityProviderId: string;
12
+ targetIdentityProviderId: string;
13
+ }): Promise<Record<string, never>>;
11
14
  client: import("../../../../../core").BaseClient;
12
15
  validateParams<T>(params: T, schema: z.ZodSchema<T>): T;
13
16
  makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-identity-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,0CAAmD,CAAC;AAGrE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAElF,MAAM,MAAM,kCAAkC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpI,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;CAQrC,CAAC"}
1
+ {"version":3,"file":"update-user-identity-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,sCAAsC,EAAE,MAAM,6BAA6B,CAAC;AAErF,QAAA,MAAM,QAAQ,EAAG,0CAAmD,CAAC;AAGrE,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG,MAAM,MAAM,kCAAkC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpI,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;CAQrC,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateUserIdentityProvider = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/users/{user-id}/identity-provider-id';
7
7
  exports.UpdateUserIdentityProvider = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.UpdateUserIdentityProviderParamsSchema,
9
9
  method: 'PATCH',
10
10
  buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}/identity-provider-id`,
11
11
  buildRequestData: (params) => {
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-identity-provider.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,0CAAmD,CAAC;AASxD,QAAA,0BAA0B,GAAG,IAAA,yBAAkB,EAAuE;IACjI,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,uBAAuB;IACxF,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"update-user-identity-provider.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAAqF;AAErF,MAAM,QAAQ,GAAG,0CAAmD,CAAC;AAOxD,QAAA,0BAA0B,GAAG,IAAA,yBAAkB,EAAuE;IACjI,YAAY,EAAE,mDAAsC;IACpD,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,uBAAuB;IACxF,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
@@ -1,13 +1,27 @@
1
1
  import { z } from 'zod';
2
2
  import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ import { UpdateUserParamsSchema } from '../../../schemas/operations';
3
4
  declare const endpoint: "/v2/users/{user-id}";
4
- export type UpdateUserParams = {
5
- userId: string;
6
- } & paths[typeof endpoint]['patch']['requestBody']['content']['application/json'];
5
+ export type UpdateUserParams = z.infer<typeof UpdateUserParamsSchema>;
7
6
  export type UpdateUserResponse = paths[typeof endpoint]['patch']['responses']['200']['content']['application/json'];
8
7
  export declare const UpdateUser: {
9
8
  new (client: import("../../../../../core").BaseClient): {
10
- execute(params: UpdateUserParams): Promise<{
9
+ execute(params: {
10
+ userId: string;
11
+ user: {
12
+ id: string;
13
+ isDeactivated: boolean;
14
+ primaryParty?: string | undefined;
15
+ metadata?: {
16
+ resourceVersion: string;
17
+ annotations: Record<string, string>;
18
+ } | undefined;
19
+ identityProviderId?: string | undefined;
20
+ };
21
+ updateMask: {
22
+ paths: string[];
23
+ };
24
+ }): Promise<{
11
25
  user?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["User"];
12
26
  }>;
13
27
  client: import("../../../../../core").BaseClient;
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,qBAA8B,CAAC;AAGhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAElF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH,eAAO,MAAM,UAAU;;;mBAQ+wwJ,yIAAsB;;;;;;;;;;;;;CAA1zwJ,CAAC"}
1
+ {"version":3,"file":"update-user.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AACvI,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,QAAA,MAAM,QAAQ,EAAG,qBAA8B,CAAC;AAGhD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;mBAQ2wwJ,yIAAsB;;;;;;;;;;;;;CAAtzwJ,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateUser = void 0;
4
4
  const core_1 = require("../../../../../core");
5
- const zod_1 = require("zod");
5
+ const operations_1 = require("../../../schemas/operations");
6
6
  const endpoint = '/v2/users/{user-id}';
7
7
  exports.UpdateUser = (0, core_1.createApiOperation)({
8
- paramsSchema: zod_1.z.any(),
8
+ paramsSchema: operations_1.UpdateUserParamsSchema,
9
9
  method: 'PATCH',
10
10
  buildUrl: (params, apiUrl) => `${apiUrl}/v2/users/${params.userId}`,
11
11
  buildRequestData: (params) => {
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,qBAA8B,CAAC;AASnC,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,EAAE;IACnE,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"update-user.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/users/update-user.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAGzD,4DAAqE;AAErE,MAAM,QAAQ,GAAG,qBAA8B,CAAC;AAOnC,QAAA,UAAU,GAAG,IAAA,yBAAkB,EAAuC;IACjF,YAAY,EAAE,mCAAsB;IACpC,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,aAAa,MAAM,CAAC,MAAM,EAAE;IACnE,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC3B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-amulets-for-transfer.d.ts","sourceRoot":"","sources":["../../../../src/utils/amulet/get-amulets-for-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC3C,2DAA2D;IAC3D,aAAa,EAAE,mBAAmB,CAAC;IACnC,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,2BAA2B,GACjC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAwH9B"}
1
+ {"version":3,"file":"get-amulets-for-transfer.d.ts","sourceRoot":"","sources":["../../../../src/utils/amulet/get-amulets-for-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC3C,2DAA2D;IAC3D,aAAa,EAAE,mBAAmB,CAAC;IACnC,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAC1C,MAAM,EAAE,2BAA2B,GACjC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAsH9B"}
@@ -16,8 +16,6 @@ async function getAmuletsForTransfer(params) {
16
16
  const senderParty = readAs[0];
17
17
  const activeContracts = await jsonApiClient.getActiveContracts({
18
18
  parties: [senderParty],
19
- verbose: true,
20
- activeAtOffset: (await jsonApiClient.getLedgerEnd(undefined)).offset,
21
19
  });
22
20
  const allAmulets = [];
23
21
  const contractsArr = Array.isArray(activeContracts) ? activeContracts : [];