@privy-io/api-types 0.4.0 → 0.6.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.
Files changed (142) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/client.d.mts +25 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +32 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +32 -5
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/internal/tslib.js +17 -17
  17. package/internal/utils/query.d.mts +2 -0
  18. package/internal/utils/query.d.mts.map +1 -0
  19. package/internal/utils/query.d.ts +2 -0
  20. package/internal/utils/query.d.ts.map +1 -0
  21. package/internal/utils/query.js +10 -0
  22. package/internal/utils/query.js.map +1 -0
  23. package/internal/utils/query.mjs +6 -0
  24. package/internal/utils/query.mjs.map +1 -0
  25. package/internal/utils.d.mts +1 -0
  26. package/internal/utils.d.ts +1 -0
  27. package/internal/utils.js +1 -0
  28. package/internal/utils.js.map +1 -1
  29. package/internal/utils.mjs +1 -0
  30. package/package.json +1 -1
  31. package/resources/accounts.d.mts +85 -0
  32. package/resources/accounts.d.mts.map +1 -0
  33. package/resources/accounts.d.ts +85 -0
  34. package/resources/accounts.d.ts.map +1 -0
  35. package/resources/accounts.js +9 -0
  36. package/resources/accounts.js.map +1 -0
  37. package/resources/accounts.mjs +5 -0
  38. package/resources/accounts.mjs.map +1 -0
  39. package/resources/aggregations.d.mts +213 -2
  40. package/resources/aggregations.d.mts.map +1 -1
  41. package/resources/aggregations.d.ts +213 -2
  42. package/resources/aggregations.d.ts.map +1 -1
  43. package/resources/client-auth.d.mts +181 -1
  44. package/resources/client-auth.d.mts.map +1 -1
  45. package/resources/client-auth.d.ts +181 -1
  46. package/resources/client-auth.d.ts.map +1 -1
  47. package/resources/funding.d.mts +4 -4
  48. package/resources/funding.d.mts.map +1 -1
  49. package/resources/funding.d.ts +4 -4
  50. package/resources/funding.d.ts.map +1 -1
  51. package/resources/index.d.mts +9 -5
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +9 -5
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +9 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +4 -0
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +104 -0
  60. package/resources/intents.d.mts.map +1 -0
  61. package/resources/intents.d.ts +104 -0
  62. package/resources/intents.d.ts.map +1 -0
  63. package/resources/intents.js +9 -0
  64. package/resources/intents.js.map +1 -0
  65. package/resources/intents.mjs +5 -0
  66. package/resources/intents.mjs.map +1 -0
  67. package/resources/key-quorums.d.mts +14 -0
  68. package/resources/key-quorums.d.mts.map +1 -1
  69. package/resources/key-quorums.d.ts +14 -0
  70. package/resources/key-quorums.d.ts.map +1 -1
  71. package/resources/policies.d.mts +66 -68
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +66 -68
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/users.d.mts +72 -62
  76. package/resources/users.d.mts.map +1 -1
  77. package/resources/users.d.ts +72 -62
  78. package/resources/users.d.ts.map +1 -1
  79. package/resources/wallets/balance.d.mts +10 -5
  80. package/resources/wallets/balance.d.mts.map +1 -1
  81. package/resources/wallets/balance.d.ts +10 -5
  82. package/resources/wallets/balance.d.ts.map +1 -1
  83. package/resources/wallets/balance.js +1 -2
  84. package/resources/wallets/balance.js.map +1 -1
  85. package/resources/wallets/balance.mjs +1 -2
  86. package/resources/wallets/balance.mjs.map +1 -1
  87. package/resources/wallets/index.d.mts +1 -1
  88. package/resources/wallets/index.d.mts.map +1 -1
  89. package/resources/wallets/index.d.ts +1 -1
  90. package/resources/wallets/index.d.ts.map +1 -1
  91. package/resources/wallets/index.js.map +1 -1
  92. package/resources/wallets/index.mjs.map +1 -1
  93. package/resources/wallets/transactions.d.mts +2 -2
  94. package/resources/wallets/transactions.d.mts.map +1 -1
  95. package/resources/wallets/transactions.d.ts +2 -2
  96. package/resources/wallets/transactions.d.ts.map +1 -1
  97. package/resources/wallets/wallets.d.mts +203 -76
  98. package/resources/wallets/wallets.d.mts.map +1 -1
  99. package/resources/wallets/wallets.d.ts +203 -76
  100. package/resources/wallets/wallets.d.ts.map +1 -1
  101. package/resources/wallets/wallets.js.map +1 -1
  102. package/resources/wallets/wallets.mjs.map +1 -1
  103. package/resources/webhooks.d.mts +977 -0
  104. package/resources/webhooks.d.mts.map +1 -0
  105. package/resources/webhooks.d.ts +977 -0
  106. package/resources/webhooks.d.ts.map +1 -0
  107. package/resources/webhooks.js +9 -0
  108. package/resources/webhooks.js.map +1 -0
  109. package/resources/webhooks.mjs +5 -0
  110. package/resources/webhooks.mjs.map +1 -0
  111. package/resources/yield.d.mts +311 -0
  112. package/resources/yield.d.mts.map +1 -0
  113. package/resources/yield.d.ts +311 -0
  114. package/resources/yield.d.ts.map +1 -0
  115. package/resources/yield.js +9 -0
  116. package/resources/yield.js.map +1 -0
  117. package/resources/yield.mjs +5 -0
  118. package/resources/yield.mjs.map +1 -0
  119. package/src/client.ts +240 -18
  120. package/src/internal/parse.ts +6 -0
  121. package/src/internal/utils/query.ts +7 -0
  122. package/src/internal/utils.ts +1 -0
  123. package/src/resources/accounts.ts +106 -0
  124. package/src/resources/aggregations.ts +361 -5
  125. package/src/resources/client-auth.ts +309 -0
  126. package/src/resources/funding.ts +4 -1
  127. package/src/resources/index.ts +101 -8
  128. package/src/resources/intents.ts +138 -0
  129. package/src/resources/key-quorums.ts +17 -0
  130. package/src/resources/policies.ts +86 -88
  131. package/src/resources/users.ts +128 -111
  132. package/src/resources/wallets/balance.ts +15 -5
  133. package/src/resources/wallets/index.ts +7 -3
  134. package/src/resources/wallets/transactions.ts +2 -2
  135. package/src/resources/wallets/wallets.ts +250 -96
  136. package/src/resources/webhooks.ts +1347 -0
  137. package/src/resources/yield.ts +389 -0
  138. package/src/version.ts +1 -1
  139. package/version.d.mts +1 -1
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
  142. package/version.mjs +1 -1
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Wallets = exports.Users = exports.Transactions = exports.Policies = exports.KeyQuorums = exports.Funding = exports.EmbeddedWallets = exports.CrossApp = exports.ClientAuth = exports.Apps = exports.Analytics = exports.Aggregations = void 0;
4
+ exports.Yield = exports.Webhooks = exports.Wallets = exports.Users = exports.Transactions = exports.Policies = exports.KeyQuorums = exports.Intents = exports.Funding = exports.EmbeddedWallets = exports.CrossApp = exports.ClientAuth = exports.Apps = exports.Analytics = exports.Aggregations = exports.Accounts = void 0;
5
+ var accounts_1 = require("./accounts.js");
6
+ Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
5
7
  var aggregations_1 = require("./aggregations.js");
6
8
  Object.defineProperty(exports, "Aggregations", { enumerable: true, get: function () { return aggregations_1.Aggregations; } });
7
9
  var analytics_1 = require("./analytics.js");
@@ -16,6 +18,8 @@ var embedded_wallets_1 = require("./embedded-wallets.js");
16
18
  Object.defineProperty(exports, "EmbeddedWallets", { enumerable: true, get: function () { return embedded_wallets_1.EmbeddedWallets; } });
17
19
  var funding_1 = require("./funding.js");
18
20
  Object.defineProperty(exports, "Funding", { enumerable: true, get: function () { return funding_1.Funding; } });
21
+ var intents_1 = require("./intents.js");
22
+ Object.defineProperty(exports, "Intents", { enumerable: true, get: function () { return intents_1.Intents; } });
19
23
  var key_quorums_1 = require("./key-quorums.js");
20
24
  Object.defineProperty(exports, "KeyQuorums", { enumerable: true, get: function () { return key_quorums_1.KeyQuorums; } });
21
25
  var policies_1 = require("./policies.js");
@@ -26,4 +30,8 @@ var users_1 = require("./users.js");
26
30
  Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
27
31
  var wallets_1 = require("./wallets/wallets.js");
28
32
  Object.defineProperty(exports, "Wallets", { enumerable: true, get: function () { return wallets_1.Wallets; } });
33
+ var webhooks_1 = require("./webhooks.js");
34
+ Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
35
+ var yield_1 = require("./yield.js");
36
+ Object.defineProperty(exports, "Yield", { enumerable: true, get: function () { return yield_1.Yield; } });
29
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAOwB;AANtB,4GAAA,YAAY,OAAA;AAOd,4CAAkE;AAAzD,sGAAA,SAAS,OAAA;AAClB,kCAAgD;AAAvC,4FAAA,IAAI,OAAA;AACb,gDA0EuB;AAzErB,yGAAA,UAAU,OAAA;AA0EZ,4CAAyE;AAAhE,qGAAA,QAAQ,OAAA;AACjB,0DAY4B;AAX1B,mHAAA,eAAe,OAAA;AAYjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,0CAoBoB;AAnBlB,oGAAA,QAAQ,OAAA;AAoBV,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAsFiB;AArFf,8FAAA,KAAK,OAAA;AAsFP,gDAoD2B;AAnDzB,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,kDAQwB;AAPtB,4GAAA,YAAY,OAAA;AAQd,4CAAkE;AAAzD,sGAAA,SAAS,OAAA;AAClB,kCAAgD;AAAvC,4FAAA,IAAI,OAAA;AACb,gDAkGuB;AAjGrB,yGAAA,UAAU,OAAA;AAkGZ,4CAAyE;AAAhE,qGAAA,QAAQ,OAAA;AACjB,0DAY4B;AAX1B,mHAAA,eAAe,OAAA;AAYjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAA6G;AAApG,kGAAA,OAAO,OAAA;AAChB,gDAOuB;AANrB,yGAAA,UAAU,OAAA;AAOZ,0CAoBoB;AAnBlB,oGAAA,QAAQ,OAAA;AAoBV,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAuFiB;AAtFf,8FAAA,KAAK,OAAA;AAuFP,gDAwD2B;AAvDzB,kGAAA,OAAO,OAAA;AAwDT,0CAiCoB;AAhClB,oGAAA,QAAQ,OAAA;AAiCV,oCAmBiB;AAlBf,8FAAA,KAAK,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Accounts, } from "./accounts.mjs";
2
3
  export { Aggregations, } from "./aggregations.mjs";
3
4
  export { Analytics } from "./analytics.mjs";
4
5
  export { Apps } from "./apps.mjs";
@@ -6,9 +7,12 @@ export { ClientAuth, } from "./client-auth.mjs";
6
7
  export { CrossApp } from "./cross-app.mjs";
7
8
  export { EmbeddedWallets, } from "./embedded-wallets.mjs";
8
9
  export { Funding, } from "./funding.mjs";
10
+ export { Intents } from "./intents.mjs";
9
11
  export { KeyQuorums, } from "./key-quorums.mjs";
10
12
  export { Policies, } from "./policies.mjs";
11
13
  export { Transactions, } from "./transactions.mjs";
12
14
  export { Users, } from "./users.mjs";
13
15
  export { Wallets, } from "./wallets/wallets.mjs";
16
+ export { Webhooks, } from "./webhooks.mjs";
17
+ export { Yield, } from "./yield.mjs";
14
18
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAMb;OACM,EAAE,SAAS,EAA4B;OACvC,EAAE,IAAI,EAAoB;OAC1B,EACL,UAAU,GAyEX;OACM,EAAE,QAAQ,EAAoC;OAC9C,EACL,eAAe,GAWhB;OACM,EACL,OAAO,GAMR;OACM,EACL,UAAU,GAMX;OACM,EACL,QAAQ,GAmBT;OACM,EACL,YAAY,GAIb;OACM,EACL,KAAK,GAqFN;OACM,EACL,OAAO,GAmDR"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAMT;OACM,EACL,YAAY,GAOb;OACM,EAAE,SAAS,EAA4B;OACvC,EAAE,IAAI,EAAoB;OAC1B,EACL,UAAU,GAiGX;OACM,EAAE,QAAQ,EAAoC;OAC9C,EACL,eAAe,GAWhB;OACM,EACL,OAAO,GAMR;OACM,EAAE,OAAO,EAA2E;OACpF,EACL,UAAU,GAMX;OACM,EACL,QAAQ,GAmBT;OACM,EACL,YAAY,GAIb;OACM,EACL,KAAK,GAsFN;OACM,EACL,OAAO,GAuDR;OACM,EACL,QAAQ,GAgCT;OACM,EACL,KAAK,GAkBN"}
@@ -0,0 +1,104 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as IntentsAPI from "./intents.mjs";
3
+ export declare class Intents extends APIResource {
4
+ }
5
+ /**
6
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
7
+ */
8
+ export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationKeyQuorumMember.UserMember | IntentAuthorizationKeyQuorumMember.KeyMember;
9
+ export declare namespace IntentAuthorizationKeyQuorumMember {
10
+ interface UserMember {
11
+ /**
12
+ * Whether this member has signed the intent
13
+ */
14
+ has_signed: boolean;
15
+ type: 'user';
16
+ /**
17
+ * User ID of the key quorum member
18
+ */
19
+ user_id: string;
20
+ /**
21
+ * Display name for the user (email, etc)
22
+ */
23
+ display_name?: string;
24
+ }
25
+ interface KeyMember {
26
+ /**
27
+ * Whether this key has signed the intent
28
+ */
29
+ has_signed: boolean;
30
+ /**
31
+ * Public key of the key quorum member
32
+ */
33
+ public_key: string;
34
+ type: 'key';
35
+ /**
36
+ * Display name for the key (if any)
37
+ */
38
+ display_name?: string;
39
+ }
40
+ }
41
+ /**
42
+ * A member of an intent authorization quorum. Can be a user, key, or nested key
43
+ * quorum.
44
+ */
45
+ export type IntentAuthorizationMember = IntentAuthorizationMember.UserMember | IntentAuthorizationMember.KeyMember | IntentAuthorizationMember.KeyQuorumMember;
46
+ export declare namespace IntentAuthorizationMember {
47
+ interface UserMember {
48
+ /**
49
+ * Whether this member has signed the intent
50
+ */
51
+ has_signed: boolean;
52
+ type: 'user';
53
+ /**
54
+ * User ID of the key quorum member
55
+ */
56
+ user_id: string;
57
+ /**
58
+ * Display name for the user (email, etc)
59
+ */
60
+ display_name?: string;
61
+ }
62
+ interface KeyMember {
63
+ /**
64
+ * Whether this key has signed the intent
65
+ */
66
+ has_signed: boolean;
67
+ /**
68
+ * Public key of the key quorum member
69
+ */
70
+ public_key: string;
71
+ type: 'key';
72
+ /**
73
+ * Display name for the key (if any)
74
+ */
75
+ display_name?: string;
76
+ }
77
+ interface KeyQuorumMember {
78
+ /**
79
+ * Whether this child key quorum has fulfilled its threshold
80
+ */
81
+ has_signed: boolean;
82
+ /**
83
+ * ID of the child key quorum member
84
+ */
85
+ key_quorum_id: string;
86
+ /**
87
+ * Members of this child quorum
88
+ */
89
+ members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
90
+ /**
91
+ * Number of signatures required from this child quorum
92
+ */
93
+ threshold: number;
94
+ type: 'key_quorum';
95
+ /**
96
+ * Display name for the child key quorum (if any)
97
+ */
98
+ display_name?: string;
99
+ }
100
+ }
101
+ export declare namespace Intents {
102
+ export { type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember as IntentAuthorizationMember, };
103
+ }
104
+ //# sourceMappingURL=intents.d.mts.map
@@ -0,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AC9B;;WAEG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC;QAE9D;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,YAAY,CAAC;QAEnB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,104 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as IntentsAPI from "./intents.js";
3
+ export declare class Intents extends APIResource {
4
+ }
5
+ /**
6
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
7
+ */
8
+ export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationKeyQuorumMember.UserMember | IntentAuthorizationKeyQuorumMember.KeyMember;
9
+ export declare namespace IntentAuthorizationKeyQuorumMember {
10
+ interface UserMember {
11
+ /**
12
+ * Whether this member has signed the intent
13
+ */
14
+ has_signed: boolean;
15
+ type: 'user';
16
+ /**
17
+ * User ID of the key quorum member
18
+ */
19
+ user_id: string;
20
+ /**
21
+ * Display name for the user (email, etc)
22
+ */
23
+ display_name?: string;
24
+ }
25
+ interface KeyMember {
26
+ /**
27
+ * Whether this key has signed the intent
28
+ */
29
+ has_signed: boolean;
30
+ /**
31
+ * Public key of the key quorum member
32
+ */
33
+ public_key: string;
34
+ type: 'key';
35
+ /**
36
+ * Display name for the key (if any)
37
+ */
38
+ display_name?: string;
39
+ }
40
+ }
41
+ /**
42
+ * A member of an intent authorization quorum. Can be a user, key, or nested key
43
+ * quorum.
44
+ */
45
+ export type IntentAuthorizationMember = IntentAuthorizationMember.UserMember | IntentAuthorizationMember.KeyMember | IntentAuthorizationMember.KeyQuorumMember;
46
+ export declare namespace IntentAuthorizationMember {
47
+ interface UserMember {
48
+ /**
49
+ * Whether this member has signed the intent
50
+ */
51
+ has_signed: boolean;
52
+ type: 'user';
53
+ /**
54
+ * User ID of the key quorum member
55
+ */
56
+ user_id: string;
57
+ /**
58
+ * Display name for the user (email, etc)
59
+ */
60
+ display_name?: string;
61
+ }
62
+ interface KeyMember {
63
+ /**
64
+ * Whether this key has signed the intent
65
+ */
66
+ has_signed: boolean;
67
+ /**
68
+ * Public key of the key quorum member
69
+ */
70
+ public_key: string;
71
+ type: 'key';
72
+ /**
73
+ * Display name for the key (if any)
74
+ */
75
+ display_name?: string;
76
+ }
77
+ interface KeyQuorumMember {
78
+ /**
79
+ * Whether this child key quorum has fulfilled its threshold
80
+ */
81
+ has_signed: boolean;
82
+ /**
83
+ * ID of the child key quorum member
84
+ */
85
+ key_quorum_id: string;
86
+ /**
87
+ * Members of this child quorum
88
+ */
89
+ members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
90
+ /**
91
+ * Number of signatures required from this child quorum
92
+ */
93
+ threshold: number;
94
+ type: 'key_quorum';
95
+ /**
96
+ * Display name for the child key quorum (if any)
97
+ */
98
+ display_name?: string;
99
+ }
100
+ }
101
+ export declare namespace Intents {
102
+ export { type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember as IntentAuthorizationMember, };
103
+ }
104
+ //# sourceMappingURL=intents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../src/resources/intents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,UAAU,GAC7C,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD,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MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Intents = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Intents extends resource_1.APIResource {
7
+ }
8
+ exports.Intents = Intents;
9
+ //# sourceMappingURL=intents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intents.js","sourceRoot":"","sources":["../src/resources/intents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Intents extends APIResource {
4
+ }
5
+ //# sourceMappingURL=intents.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intents.mjs","sourceRoot":"","sources":["../src/resources/intents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
@@ -53,6 +53,10 @@ export interface KeyQuorum {
53
53
  authorization_keys: Array<KeyQuorum.AuthorizationKey>;
54
54
  authorization_threshold?: number;
55
55
  display_name?: string;
56
+ /**
57
+ * List of nested key quorum IDs that are members of this key quorum.
58
+ */
59
+ key_quorum_ids?: Array<string>;
56
60
  user_ids?: Array<string>;
57
61
  }
58
62
  export declare namespace KeyQuorum {
@@ -74,6 +78,11 @@ export interface KeyQuorumCreateParams {
74
78
  */
75
79
  authorization_threshold?: number;
76
80
  display_name?: string;
81
+ /**
82
+ * List of key quorum IDs that should be members of this key quorum. Key quorums
83
+ * can only be nested 1 level deep.
84
+ */
85
+ key_quorum_ids?: Array<string>;
77
86
  /**
78
87
  * List of P-256 public keys of the keys that should be authorized to sign on the
79
88
  * key quorum, in base64-encoded DER format.
@@ -102,6 +111,11 @@ export interface KeyQuorumUpdateParams {
102
111
  * Body param
103
112
  */
104
113
  display_name?: string;
114
+ /**
115
+ * Body param: List of key quorum IDs that should be members of this key quorum.
116
+ * Key quorums can only be nested 1 level deep.
117
+ */
118
+ key_quorum_ids?: Array<string>;
105
119
  /**
106
120
  * Body param: List of P-256 public keys of the keys that should be authorized to
107
121
  * sign on the key quorum, in base64-encoded DER format.
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.d.mts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,MAAM,EACnB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAetC;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC;IAgBxB;;;;;;;;;OASG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,kBAAkB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.AuthorizationKey>;
54
54
  authorization_threshold?: number;
55
55
  display_name?: string;
56
+ /**
57
+ * List of nested key quorum IDs that are members of this key quorum.
58
+ */
59
+ key_quorum_ids?: Array<string>;
56
60
  user_ids?: Array<string>;
57
61
  }
58
62
  export declare namespace KeyQuorum {
@@ -74,6 +78,11 @@ export interface KeyQuorumCreateParams {
74
78
  */
75
79
  authorization_threshold?: number;
76
80
  display_name?: string;
81
+ /**
82
+ * List of key quorum IDs that should be members of this key quorum. Key quorums
83
+ * can only be nested 1 level deep.
84
+ */
85
+ key_quorum_ids?: Array<string>;
77
86
  /**
78
87
  * List of P-256 public keys of the keys that should be authorized to sign on the
79
88
  * key quorum, in base64-encoded DER format.
@@ -102,6 +111,11 @@ export interface KeyQuorumUpdateParams {
102
111
  * Body param
103
112
  */
104
113
  display_name?: string;
114
+ /**
115
+ * Body param: List of key quorum IDs that should be members of this key quorum.
116
+ * Key quorums can only be nested 1 level deep.
117
+ */
118
+ key_quorum_ids?: Array<string>;
105
119
  /**
106
120
  * Body param: List of P-256 public keys of the keys that should be authorized to
107
121
  * sign on the key quorum, in base64-encoded DER format.
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.d.ts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,MAAM,EACnB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAetC;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,MAAM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,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -139,6 +139,61 @@ export declare class Policies extends APIResource {
139
139
  */
140
140
  getRule(ruleID: string, params: PolicyGetRuleParams, options?: RequestOptions): APIPromise<PolicyGetRuleResponse>;
141
141
  }
142
+ /**
143
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
144
+ * supported for command names.
145
+ */
146
+ export type SuiTransactionCommandOperator = 'eq' | 'in';
147
+ /**
148
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
149
+ * and 'amount' are supported.
150
+ */
151
+ export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
152
+ /**
153
+ * TRON transaction fields for TransferContract and TriggerSmartContract
154
+ * transaction types.
155
+ */
156
+ export interface TronTransactionCondition {
157
+ /**
158
+ * Supported TRON transaction fields in format "TransactionType.field_name"
159
+ */
160
+ field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
161
+ field_source: 'tron_transaction';
162
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
163
+ value: string | Array<string>;
164
+ }
165
+ /**
166
+ * SUI transaction command attributes, enables allowlisting specific command types.
167
+ * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
168
+ * 'in' operators are supported.
169
+ */
170
+ export interface SuiTransactionCommandCondition {
171
+ field: 'commandName';
172
+ field_source: 'sui_transaction_command';
173
+ /**
174
+ * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
175
+ * supported for command names.
176
+ */
177
+ operator: SuiTransactionCommandOperator;
178
+ /**
179
+ * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
180
+ * 'MergeCoins'
181
+ */
182
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
183
+ }
184
+ /**
185
+ * SUI TransferObjects command attributes, including recipient and amount fields.
186
+ */
187
+ export interface SuiTransferObjectsCommandCondition {
188
+ /**
189
+ * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
190
+ * and 'amount' are supported.
191
+ */
192
+ field: SuiTransferObjectsCommandField;
193
+ field_source: 'sui_transfer_objects_command';
194
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
195
+ value: string | Array<string>;
196
+ }
142
197
  /**
143
198
  * A policy for controlling wallet operations.
144
199
  */
@@ -246,7 +301,7 @@ export declare namespace Policy {
246
301
  }
247
302
  }
248
303
  /**
249
- * Allowed contract addresses for eth_signAuthorization requests.
304
+ * Allowed contract addresses for eth_sign7702Authorization requests.
250
305
  */
251
306
  interface Ethereum7702AuthorizationCondition {
252
307
  field: 'contract';
@@ -294,61 +349,6 @@ export declare namespace Policy {
294
349
  }
295
350
  }
296
351
  }
297
- /**
298
- * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
299
- * supported for command names.
300
- */
301
- export type SuiTransactionCommandOperator = 'eq' | 'in';
302
- /**
303
- * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
304
- * and 'amount' are supported.
305
- */
306
- export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
307
- /**
308
- * TRON transaction fields for TransferContract and TriggerSmartContract
309
- * transaction types.
310
- */
311
- export interface TronTransactionCondition {
312
- /**
313
- * Supported TRON transaction fields in format "TransactionType.field_name"
314
- */
315
- field: 'TransferContract.to_address' | 'TransferContract.amount' | 'TriggerSmartContract.contract_address' | 'TriggerSmartContract.call_value' | 'TriggerSmartContract.token_id' | 'TriggerSmartContract.call_token_value';
316
- field_source: 'tron_transaction';
317
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
318
- value: string | Array<string>;
319
- }
320
- /**
321
- * SUI transaction command attributes, enables allowlisting specific command types.
322
- * Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
323
- * 'in' operators are supported.
324
- */
325
- export interface SuiTransactionCommandCondition {
326
- field: 'commandName';
327
- field_source: 'sui_transaction_command';
328
- /**
329
- * Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
330
- * supported for command names.
331
- */
332
- operator: SuiTransactionCommandOperator;
333
- /**
334
- * Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
335
- * 'MergeCoins'
336
- */
337
- value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
338
- }
339
- /**
340
- * SUI TransferObjects command attributes, including recipient and amount fields.
341
- */
342
- export interface SuiTransferObjectsCommandCondition {
343
- /**
344
- * Supported fields for SUI TransferObjects command conditions. Only 'recipient'
345
- * and 'amount' are supported.
346
- */
347
- field: SuiTransferObjectsCommandField;
348
- field_source: 'sui_transfer_objects_command';
349
- operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
350
- value: string | Array<string>;
351
- }
352
352
  /**
353
353
  * A rule that defines the conditions and action to take if the conditions are
354
354
  * true.
@@ -424,7 +424,7 @@ export declare namespace PolicyCreateRuleResponse {
424
424
  }
425
425
  }
426
426
  /**
427
- * Allowed contract addresses for eth_signAuthorization requests.
427
+ * Allowed contract addresses for eth_sign7702Authorization requests.
428
428
  */
429
429
  interface Ethereum7702AuthorizationCondition {
430
430
  field: 'contract';
@@ -554,7 +554,7 @@ export declare namespace PolicyUpdateRuleResponse {
554
554
  }
555
555
  }
556
556
  /**
557
- * Allowed contract addresses for eth_signAuthorization requests.
557
+ * Allowed contract addresses for eth_sign7702Authorization requests.
558
558
  */
559
559
  interface Ethereum7702AuthorizationCondition {
560
560
  field: 'contract';
@@ -676,7 +676,7 @@ export declare namespace PolicyGetRuleResponse {
676
676
  }
677
677
  }
678
678
  /**
679
- * Allowed contract addresses for eth_signAuthorization requests.
679
+ * Allowed contract addresses for eth_sign7702Authorization requests.
680
680
  */
681
681
  interface Ethereum7702AuthorizationCondition {
682
682
  field: 'contract';
@@ -747,8 +747,7 @@ export interface PolicyCreateParams {
747
747
  */
748
748
  owner?: PolicyCreateParams.PublicKeyOwner | PolicyCreateParams.UserOwner | null;
749
749
  /**
750
- * Body param: The key quorum ID to set as the owner of the resource. If you
751
- * provide this, do not specify an owner.
750
+ * Body param
752
751
  */
753
752
  owner_id?: string | null;
754
753
  /**
@@ -831,7 +830,7 @@ export declare namespace PolicyCreateParams {
831
830
  }
832
831
  }
833
832
  /**
834
- * Allowed contract addresses for eth_signAuthorization requests.
833
+ * Allowed contract addresses for eth_sign7702Authorization requests.
835
834
  */
836
835
  interface Ethereum7702AuthorizationCondition {
837
836
  field: 'contract';
@@ -976,7 +975,7 @@ export declare namespace PolicyCreateRuleParams {
976
975
  }
977
976
  }
978
977
  /**
979
- * Allowed contract addresses for eth_signAuthorization requests.
978
+ * Allowed contract addresses for eth_sign7702Authorization requests.
980
979
  */
981
980
  interface Ethereum7702AuthorizationCondition {
982
981
  field: 'contract';
@@ -1053,8 +1052,7 @@ export interface PolicyUpdateParams {
1053
1052
  */
1054
1053
  owner?: PolicyUpdateParams.PublicKeyOwner | PolicyUpdateParams.UserOwner | null;
1055
1054
  /**
1056
- * Body param: The key quorum ID to set as the owner of the resource. If you
1057
- * provide this, do not specify an owner.
1055
+ * Body param
1058
1056
  */
1059
1057
  owner_id?: string | null;
1060
1058
  /**
@@ -1157,7 +1155,7 @@ export declare namespace PolicyUpdateParams {
1157
1155
  }
1158
1156
  }
1159
1157
  /**
1160
- * Allowed contract addresses for eth_signAuthorization requests.
1158
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1161
1159
  */
1162
1160
  interface Ethereum7702AuthorizationCondition {
1163
1161
  field: 'contract';
@@ -1290,7 +1288,7 @@ export declare namespace PolicyUpdateRuleParams {
1290
1288
  }
1291
1289
  }
1292
1290
  /**
1293
- * Allowed contract addresses for eth_signAuthorization requests.
1291
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1294
1292
  */
1295
1293
  interface Ethereum7702AuthorizationCondition {
1296
1294
  field: 'contract';
@@ -1341,6 +1339,6 @@ export interface PolicyGetRuleParams {
1341
1339
  policy_id: string;
1342
1340
  }
1343
1341
  export declare namespace Policies {
1344
- export { type Policy as Policy, type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type TronTransactionCondition as TronTransactionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type PolicyCreateRuleResponse as PolicyCreateRuleResponse, type PolicyDeleteResponse as PolicyDeleteResponse, type PolicyDeleteRuleResponse as PolicyDeleteRuleResponse, type PolicyUpdateRuleResponse as PolicyUpdateRuleResponse, type PolicyGetRuleResponse as PolicyGetRuleResponse, type PolicyCreateParams as PolicyCreateParams, type PolicyCreateRuleParams as PolicyCreateRuleParams, type PolicyDeleteParams as PolicyDeleteParams, type PolicyDeleteRuleParams as PolicyDeleteRuleParams, type PolicyUpdateParams as PolicyUpdateParams, type PolicyUpdateRuleParams as PolicyUpdateRuleParams, type PolicyGetRuleParams as PolicyGetRuleParams, };
1342
+ export { type SuiTransactionCommandOperator as SuiTransactionCommandOperator, type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField, type TronTransactionCondition as TronTransactionCondition, type SuiTransactionCommandCondition as SuiTransactionCommandCondition, type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition, type Policy as Policy, type PolicyCreateRuleResponse as PolicyCreateRuleResponse, type PolicyDeleteResponse as PolicyDeleteResponse, type PolicyDeleteRuleResponse as PolicyDeleteRuleResponse, type PolicyUpdateRuleResponse as PolicyUpdateRuleResponse, type PolicyGetRuleResponse as PolicyGetRuleResponse, type PolicyCreateParams as PolicyCreateParams, type PolicyCreateRuleParams as PolicyCreateRuleParams, type PolicyDeleteParams as PolicyDeleteParams, type PolicyDeleteRuleParams as PolicyDeleteRuleParams, type PolicyUpdateParams as PolicyUpdateParams, type PolicyUpdateRuleParams as PolicyUpdateRuleParams, type PolicyGetRuleParams as PolicyGetRuleParams, };
1345
1343
  }
1346
1344
  //# sourceMappingURL=policies.d.mts.map