@clossir-tech/ts-sdk 0.10.4 → 0.10.6

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 (228) hide show
  1. package/README.md +30 -24
  2. package/esm/funcs/assets-get-assets-by-asset-id.d.ts +2 -2
  3. package/esm/funcs/assets-get-assets-by-asset-id.js +3 -3
  4. package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -1
  5. package/esm/funcs/assets-get-assets.d.ts +2 -2
  6. package/esm/funcs/assets-get-assets.js +3 -3
  7. package/esm/funcs/assets-get-assets.js.map +1 -1
  8. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
  9. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +2 -4
  10. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  11. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
  12. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
  13. package/esm/funcs/commands-get-commands-by-command-id.d.ts +20 -0
  14. package/esm/funcs/commands-get-commands-by-command-id.d.ts.map +1 -0
  15. package/esm/funcs/commands-get-commands-by-command-id.js +98 -0
  16. package/esm/funcs/commands-get-commands-by-command-id.js.map +1 -0
  17. package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
  18. package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
  19. package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
  20. package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
  21. package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
  22. package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
  23. package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
  24. package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
  25. package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
  26. package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
  27. package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
  28. package/esm/funcs/o-auth-post-oauth-token.d.ts +1 -1
  29. package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
  30. package/esm/funcs/o-auth-post-oauth-token.js +3 -1
  31. package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
  32. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
  33. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
  34. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
  35. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
  36. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
  37. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
  38. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
  39. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
  40. package/esm/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.js +3 -1
  41. package/esm/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.js.map +1 -1
  42. package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
  43. package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
  44. package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
  45. package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
  46. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.js +1 -1
  47. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.js.map +1 -1
  48. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.js +1 -1
  49. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.js.map +1 -1
  50. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
  51. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
  52. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
  53. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
  54. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
  55. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
  56. package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
  57. package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
  58. package/esm/funcs/transfers-get-transfers.d.ts +1 -1
  59. package/esm/funcs/transfers-get-transfers.js +1 -1
  60. package/esm/lib/config.d.ts +2 -2
  61. package/esm/lib/config.js +2 -2
  62. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  63. package/esm/models/errors/get-oauth-authorize.js +3 -3
  64. package/esm/models/errors/get-oauth-userinfo.d.ts +4 -4
  65. package/esm/models/errors/get-oauth-userinfo.js +2 -2
  66. package/esm/models/errors/index.d.ts +1 -1
  67. package/esm/models/errors/index.d.ts.map +1 -1
  68. package/esm/models/errors/index.js +1 -1
  69. package/esm/models/errors/index.js.map +1 -1
  70. package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
  71. package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
  72. package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
  73. package/esm/models/errors/post-oauth-par.js.map +1 -0
  74. package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
  75. package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
  76. package/esm/models/errors/post-oauth-revoke.js +9 -9
  77. package/esm/models/errors/post-oauth-revoke.js.map +1 -1
  78. package/esm/models/errors/post-oauth-token.d.ts +6 -6
  79. package/esm/models/errors/post-oauth-token.js +3 -3
  80. package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
  81. package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
  82. package/esm/models/operations/get-assets-by-asset-id.js +35 -0
  83. package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
  84. package/esm/models/operations/get-assets.d.ts +55 -2
  85. package/esm/models/operations/get-assets.d.ts.map +1 -1
  86. package/esm/models/operations/get-assets.js +35 -0
  87. package/esm/models/operations/get-assets.js.map +1 -1
  88. package/esm/models/operations/get-commands-by-command-id.d.ts +91 -0
  89. package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -0
  90. package/esm/models/operations/get-commands-by-command-id.js +73 -0
  91. package/esm/models/operations/get-commands-by-command-id.js.map +1 -0
  92. package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
  93. package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
  94. package/esm/models/operations/get-oauth-authorize.js +2 -0
  95. package/esm/models/operations/get-oauth-authorize.js.map +1 -1
  96. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
  97. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  98. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
  99. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  100. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
  101. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
  102. package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
  103. package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
  104. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
  105. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
  106. package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
  107. package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
  108. package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
  109. package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
  110. package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
  111. package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
  112. package/esm/models/operations/index.d.ts +2 -1
  113. package/esm/models/operations/index.d.ts.map +1 -1
  114. package/esm/models/operations/index.js +2 -1
  115. package/esm/models/operations/index.js.map +1 -1
  116. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
  117. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  118. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
  119. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  120. package/esm/models/operations/post-oauth-par.d.ts +98 -0
  121. package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
  122. package/esm/models/operations/post-oauth-par.js +53 -0
  123. package/esm/models/operations/post-oauth-par.js.map +1 -0
  124. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +1 -0
  125. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
  126. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +1 -0
  127. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  128. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts +1 -0
  129. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.d.ts.map +1 -1
  130. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js +1 -0
  131. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
  132. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.d.ts +1 -0
  133. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.d.ts.map +1 -1
  134. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -0
  135. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
  136. package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts +11 -0
  137. package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts.map +1 -1
  138. package/esm/models/operations/post-orgs-by-org-id-issuer-register.js +9 -0
  139. package/esm/models/operations/post-orgs-by-org-id-issuer-register.js.map +1 -1
  140. package/esm/models/operations/post-transfers.d.ts +1 -0
  141. package/esm/models/operations/post-transfers.d.ts.map +1 -1
  142. package/esm/models/operations/post-transfers.js +1 -0
  143. package/esm/models/operations/post-transfers.js.map +1 -1
  144. package/esm/sdk/assets.d.ts +5 -5
  145. package/esm/sdk/assets.js +5 -5
  146. package/esm/sdk/bridge.d.ts +1 -1
  147. package/esm/sdk/bridge.js +1 -1
  148. package/esm/sdk/commands.d.ts +12 -0
  149. package/esm/sdk/commands.d.ts.map +1 -0
  150. package/esm/sdk/commands.js +18 -0
  151. package/esm/sdk/commands.js.map +1 -0
  152. package/esm/sdk/o-auth.d.ts +5 -5
  153. package/esm/sdk/o-auth.d.ts.map +1 -1
  154. package/esm/sdk/o-auth.js +7 -7
  155. package/esm/sdk/o-auth.js.map +1 -1
  156. package/esm/sdk/organizations.d.ts +13 -4
  157. package/esm/sdk/organizations.d.ts.map +1 -1
  158. package/esm/sdk/organizations.js +13 -4
  159. package/esm/sdk/organizations.js.map +1 -1
  160. package/esm/sdk/sdk.d.ts +3 -0
  161. package/esm/sdk/sdk.d.ts.map +1 -1
  162. package/esm/sdk/sdk.js +5 -0
  163. package/esm/sdk/sdk.js.map +1 -1
  164. package/esm/sdk/transfers.d.ts +1 -1
  165. package/esm/sdk/transfers.js +1 -1
  166. package/jsr.json +1 -1
  167. package/package.json +1 -1
  168. package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
  169. package/src/funcs/assets-get-assets.ts +3 -3
  170. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
  171. package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
  172. package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → commands-get-commands-by-command-id.ts} +46 -51
  173. package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
  174. package/src/funcs/o-auth-post-oauth-par.ts +191 -0
  175. package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
  176. package/src/funcs/o-auth-post-oauth-token.ts +6 -0
  177. package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
  178. package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
  179. package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
  180. package/src/funcs/organizations-get-orgs-by-org-id-members-by-user-id-holdings.ts +4 -1
  181. package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
  182. package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
  183. package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-balance-summary.ts +1 -1
  184. package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-holdings.ts +1 -1
  185. package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
  186. package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
  187. package/src/funcs/transfers-get-transfers.ts +1 -1
  188. package/src/lib/config.ts +2 -2
  189. package/src/models/errors/get-oauth-authorize.ts +6 -6
  190. package/src/models/errors/get-oauth-userinfo.ts +4 -4
  191. package/src/models/errors/index.ts +1 -1
  192. package/src/models/errors/post-oauth-par.ts +493 -0
  193. package/src/models/errors/post-oauth-revoke.ts +40 -42
  194. package/src/models/errors/post-oauth-token.ts +6 -6
  195. package/src/models/operations/get-assets-by-asset-id.ts +95 -0
  196. package/src/models/operations/get-assets.ts +93 -2
  197. package/src/models/operations/get-commands-by-command-id.ts +199 -0
  198. package/src/models/operations/get-oauth-authorize.ts +8 -1
  199. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
  200. package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
  201. package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
  202. package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
  203. package/src/models/operations/index.ts +2 -1
  204. package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
  205. package/src/models/operations/post-oauth-par.ts +172 -0
  206. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +2 -0
  207. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-deploy.ts +2 -0
  208. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets.ts +2 -0
  209. package/src/models/operations/post-orgs-by-org-id-issuer-register.ts +26 -0
  210. package/src/models/operations/post-transfers.ts +2 -0
  211. package/src/sdk/assets.ts +5 -5
  212. package/src/sdk/bridge.ts +1 -1
  213. package/src/sdk/commands.ts +27 -0
  214. package/src/sdk/o-auth.ts +9 -9
  215. package/src/sdk/organizations.ts +13 -4
  216. package/src/sdk/sdk.ts +6 -0
  217. package/src/sdk/transfers.ts +1 -1
  218. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
  219. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
  220. package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
  221. package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
  222. package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
  223. package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
  224. package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
  225. package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
  226. package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
  227. package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
  228. package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
@@ -42,6 +42,20 @@ export type GetOrgsByOrgIdAssetsStatus = OpenEnum<
42
42
  typeof GetOrgsByOrgIdAssetsStatus
43
43
  >;
44
44
 
45
+ /**
46
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
47
+ */
48
+ export const GetOrgsByOrgIdAssetsVisibility = {
49
+ Private: "private",
50
+ Public: "public",
51
+ } as const;
52
+ /**
53
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
54
+ */
55
+ export type GetOrgsByOrgIdAssetsVisibility = OpenEnum<
56
+ typeof GetOrgsByOrgIdAssetsVisibility
57
+ >;
58
+
45
59
  export type GetOrgsByOrgIdAssetsAsset = {
46
60
  id: string;
47
61
  organizationId: string;
@@ -63,6 +77,10 @@ export type GetOrgsByOrgIdAssetsAsset = {
63
77
  */
64
78
  status: GetOrgsByOrgIdAssetsStatus;
65
79
  orgOnly?: boolean | null | undefined;
80
+ /**
81
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
82
+ */
83
+ visibility?: GetOrgsByOrgIdAssetsVisibility | undefined;
66
84
  requiredKycLevel?: number | null | undefined;
67
85
  maxHolders?: number | null | undefined;
68
86
  complianceRules?: { [k: string]: any } | null | undefined;
@@ -145,6 +163,12 @@ export const GetOrgsByOrgIdAssetsStatus$inboundSchema: z.ZodMiniType<
145
163
  unknown
146
164
  > = openEnums.inboundSchema(GetOrgsByOrgIdAssetsStatus);
147
165
 
166
+ /** @internal */
167
+ export const GetOrgsByOrgIdAssetsVisibility$inboundSchema: z.ZodMiniType<
168
+ GetOrgsByOrgIdAssetsVisibility,
169
+ unknown
170
+ > = openEnums.inboundSchema(GetOrgsByOrgIdAssetsVisibility);
171
+
148
172
  /** @internal */
149
173
  export const GetOrgsByOrgIdAssetsAsset$inboundSchema: z.ZodMiniType<
150
174
  GetOrgsByOrgIdAssetsAsset,
@@ -165,6 +189,7 @@ export const GetOrgsByOrgIdAssetsAsset$inboundSchema: z.ZodMiniType<
165
189
  unit_price_usd: z.optional(z.nullable(types.number())),
166
190
  status: GetOrgsByOrgIdAssetsStatus$inboundSchema,
167
191
  org_only: z.optional(z.nullable(types.boolean())),
192
+ visibility: types.optional(GetOrgsByOrgIdAssetsVisibility$inboundSchema),
168
193
  required_kyc_level: z.optional(z.nullable(types.number())),
169
194
  max_holders: z.optional(z.nullable(types.number())),
170
195
  compliance_rules: z.optional(z.nullable(z.record(z.string(), z.any()))),
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import { safeParse } from "../../lib/schemas.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import * as types from "../../types/primitives.js";
@@ -23,6 +24,7 @@ export type GetOrgsByOrgIdIssuerRequest = {
23
24
  export type GetOrgsByOrgIdIssuerResponse = {
24
25
  registered: boolean;
25
26
  issuer?: any | null | undefined;
27
+ coveredJurisdictions: Array<string>;
26
28
  };
27
29
 
28
30
  /** @internal */
@@ -77,10 +79,18 @@ export function getOrgsByOrgIdIssuerRequestToJSON(
77
79
  export const GetOrgsByOrgIdIssuerResponse$inboundSchema: z.ZodMiniType<
78
80
  GetOrgsByOrgIdIssuerResponse,
79
81
  unknown
80
- > = z.object({
81
- registered: types.boolean(),
82
- issuer: z.optional(z.nullable(z.any())),
83
- });
82
+ > = z.pipe(
83
+ z.object({
84
+ registered: types.boolean(),
85
+ issuer: z.optional(z.nullable(z.any())),
86
+ covered_jurisdictions: z.array(types.string()),
87
+ }),
88
+ z.transform((v) => {
89
+ return remap$(v, {
90
+ "covered_jurisdictions": "coveredJurisdictions",
91
+ });
92
+ }),
93
+ );
84
94
 
85
95
  export function getOrgsByOrgIdIssuerResponseFromJSON(
86
96
  jsonString: string,
@@ -9,15 +9,35 @@ import * as types from "../../types/primitives.js";
9
9
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
10
 
11
11
  export type Scope = {
12
+ /**
13
+ * Compatibility alias of `scope` (the table's natural key). Always equal to `scope`; kept so existing clients that key on `id` keep working.
14
+ */
12
15
  id: string;
16
+ /**
17
+ * Permission scope identifier, e.g. `orgs:read`.
18
+ */
13
19
  scope: string;
14
- description?: string | null | undefined;
20
+ /**
21
+ * Human-readable description of the scope.
22
+ */
23
+ description: string;
24
+ /**
25
+ * Resource the scope applies to, e.g. `orgs`.
26
+ */
27
+ resource: string;
28
+ /**
29
+ * Action the scope grants on the resource, e.g. `read`.
30
+ */
31
+ action: string;
15
32
  };
16
33
 
17
34
  /**
18
35
  * Response
19
36
  */
20
37
  export type GetOrgsPermissionScopesResponse = {
38
+ /**
39
+ * All permission scopes, ordered by resource.
40
+ */
21
41
  scopes: Array<Scope>;
22
42
  };
23
43
 
@@ -25,7 +45,9 @@ export type GetOrgsPermissionScopesResponse = {
25
45
  export const Scope$inboundSchema: z.ZodMiniType<Scope, unknown> = z.object({
26
46
  id: types.string(),
27
47
  scope: types.string(),
28
- description: z.optional(z.nullable(types.string())),
48
+ description: types.string(),
49
+ resource: types.string(),
50
+ action: types.string(),
29
51
  });
30
52
 
31
53
  export function scopeFromJSON(
@@ -43,6 +43,7 @@ export * from "./get-chain-events-by-tx-by-tx-hash.js";
43
43
  export * from "./get-chain-events.js";
44
44
  export * from "./get-chains-by-eid.js";
45
45
  export * from "./get-chains.js";
46
+ export * from "./get-commands-by-command-id.js";
46
47
  export * from "./get-compliance-by-wallet.js";
47
48
  export * from "./get-compliance-dossier-by-wallet-address.js";
48
49
  export * from "./get-compliance-transfer-rejections.js";
@@ -166,7 +167,7 @@ export * from "./post-consent.js";
166
167
  export * from "./post-kyc-access-token.js";
167
168
  export * from "./post-kyc-initiate.js";
168
169
  export * from "./post-login.js";
169
- export * from "./post-oauth-authorize-callback.js";
170
+ export * from "./post-oauth-par.js";
170
171
  export * from "./post-oauth-revoke.js";
171
172
  export * from "./post-oauth-token.js";
172
173
  export * from "./post-orgs-by-org-id-api-keys-by-key-id-rotate.js";
@@ -69,6 +69,20 @@ export type PatchOrgsByOrgIdAssetsByAssetIdComplianceRules = {
69
69
  coolingOffPeriodHours?: number | undefined;
70
70
  };
71
71
 
72
+ /**
73
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`; sending `org_only: true` with `visibility: "public"` is rejected 422 `visibility_conflict`.
74
+ */
75
+ export const PatchOrgsByOrgIdAssetsByAssetIdVisibility = {
76
+ Private: "private",
77
+ Public: "public",
78
+ } as const;
79
+ /**
80
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`; sending `org_only: true` with `visibility: "public"` is rejected 422 `visibility_conflict`.
81
+ */
82
+ export type PatchOrgsByOrgIdAssetsByAssetIdVisibility = ClosedEnum<
83
+ typeof PatchOrgsByOrgIdAssetsByAssetIdVisibility
84
+ >;
85
+
72
86
  export type PatchOrgsByOrgIdAssetsByAssetIdRequestBody = {
73
87
  name?: string | undefined;
74
88
  description?: string | undefined;
@@ -83,6 +97,10 @@ export type PatchOrgsByOrgIdAssetsByAssetIdRequestBody = {
83
97
  maxHolders?: number | undefined;
84
98
  requiredKycLevel?: number | undefined;
85
99
  orgOnly?: boolean | undefined;
100
+ /**
101
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`; sending `org_only: true` with `visibility: "public"` is rejected 422 `visibility_conflict`.
102
+ */
103
+ visibility?: PatchOrgsByOrgIdAssetsByAssetIdVisibility | undefined;
86
104
  };
87
105
 
88
106
  export type PatchOrgsByOrgIdAssetsByAssetIdRequest = {
@@ -239,6 +257,12 @@ export function patchOrgsByOrgIdAssetsByAssetIdComplianceRulesToJSON(
239
257
  );
240
258
  }
241
259
 
260
+ /** @internal */
261
+ export const PatchOrgsByOrgIdAssetsByAssetIdVisibility$outboundSchema:
262
+ z.ZodMiniEnum<typeof PatchOrgsByOrgIdAssetsByAssetIdVisibility> = z.enum(
263
+ PatchOrgsByOrgIdAssetsByAssetIdVisibility,
264
+ );
265
+
242
266
  /** @internal */
243
267
  export type PatchOrgsByOrgIdAssetsByAssetIdRequestBody$Outbound = {
244
268
  name?: string | undefined;
@@ -250,6 +274,7 @@ export type PatchOrgsByOrgIdAssetsByAssetIdRequestBody$Outbound = {
250
274
  max_holders?: number | undefined;
251
275
  required_kyc_level?: number | undefined;
252
276
  org_only?: boolean | undefined;
277
+ visibility?: string | undefined;
253
278
  };
254
279
 
255
280
  /** @internal */
@@ -276,6 +301,9 @@ export const PatchOrgsByOrgIdAssetsByAssetIdRequestBody$outboundSchema:
276
301
  maxHolders: z.optional(z.number()),
277
302
  requiredKycLevel: z.optional(z.number()),
278
303
  orgOnly: z.optional(z.boolean()),
304
+ visibility: z.optional(
305
+ PatchOrgsByOrgIdAssetsByAssetIdVisibility$outboundSchema,
306
+ ),
279
307
  }),
280
308
  z.transform((v) => {
281
309
  return remap$(v, {
@@ -0,0 +1,172 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
+
12
+ export type PostOauthParRequest = {
13
+ /**
14
+ * Client ID. With client_secret_post this authenticates the client; with client_secret_basic it must equal the authenticated client.
15
+ */
16
+ clientId?: string | undefined;
17
+ /**
18
+ * Client secret (client_secret_post)
19
+ */
20
+ clientSecret?: string | undefined;
21
+ /**
22
+ * Must be 'code'
23
+ */
24
+ responseType?: string | undefined;
25
+ /**
26
+ * Redirect URI registered for the client
27
+ */
28
+ redirectUri?: string | undefined;
29
+ /**
30
+ * Space-separated scopes
31
+ */
32
+ scope?: string | undefined;
33
+ /**
34
+ * REQUIRED here (non-empty): the hosted sign-in keys the flow on it
35
+ */
36
+ state?: string | undefined;
37
+ /**
38
+ * REQUIRED. PKCE S256 challenge, 43..128 unreserved characters (RFC 7636 §4.2)
39
+ */
40
+ codeChallenge?: string | undefined;
41
+ /**
42
+ * Only 'S256' is accepted (default S256)
43
+ */
44
+ codeChallengeMethod?: string | undefined;
45
+ /**
46
+ * OIDC nonce
47
+ */
48
+ nonce?: string | undefined;
49
+ /**
50
+ * Space-separated subset of none, login, consent, select_account; 'none' must stand alone. Accepted and stored with the request; not yet enforced.
51
+ */
52
+ prompt?: string | undefined;
53
+ /**
54
+ * Maximum authentication age in seconds (1..10 digits). Accepted and stored with the request; not yet enforced.
55
+ */
56
+ maxAge?: string | undefined;
57
+ /**
58
+ * Requested authentication context classes. Accepted and stored with the request; not yet enforced.
59
+ */
60
+ acrValues?: string | undefined;
61
+ /**
62
+ * Not allowed in a pushed request (RFC 9126 §2.1)
63
+ */
64
+ requestUri?: string | undefined;
65
+ /**
66
+ * Request objects (JAR) are not supported
67
+ */
68
+ request?: string | undefined;
69
+ };
70
+
71
+ /**
72
+ * Response
73
+ */
74
+ export type PostOauthParResponse = {
75
+ /**
76
+ * urn:ietf:params:oauth:request_uri:<reference>; pass it to GET /oauth/authorize with client_id. Single use.
77
+ */
78
+ requestUri: string;
79
+ /**
80
+ * Lifetime of request_uri in seconds
81
+ */
82
+ expiresIn: number;
83
+ };
84
+
85
+ /** @internal */
86
+ export type PostOauthParRequest$Outbound = {
87
+ client_id?: string | undefined;
88
+ client_secret?: string | undefined;
89
+ response_type?: string | undefined;
90
+ redirect_uri?: string | undefined;
91
+ scope?: string | undefined;
92
+ state?: string | undefined;
93
+ code_challenge?: string | undefined;
94
+ code_challenge_method?: string | undefined;
95
+ nonce?: string | undefined;
96
+ prompt?: string | undefined;
97
+ max_age?: string | undefined;
98
+ acr_values?: string | undefined;
99
+ request_uri?: string | undefined;
100
+ request?: string | undefined;
101
+ };
102
+
103
+ /** @internal */
104
+ export const PostOauthParRequest$outboundSchema: z.ZodMiniType<
105
+ PostOauthParRequest$Outbound,
106
+ PostOauthParRequest
107
+ > = z.pipe(
108
+ z.object({
109
+ clientId: z.optional(z.string()),
110
+ clientSecret: z.optional(z.string()),
111
+ responseType: z.optional(z.string()),
112
+ redirectUri: z.optional(z.string()),
113
+ scope: z.optional(z.string()),
114
+ state: z.optional(z.string()),
115
+ codeChallenge: z.optional(z.string()),
116
+ codeChallengeMethod: z.optional(z.string()),
117
+ nonce: z.optional(z.string()),
118
+ prompt: z.optional(z.string()),
119
+ maxAge: z.optional(z.string()),
120
+ acrValues: z.optional(z.string()),
121
+ requestUri: z.optional(z.string()),
122
+ request: z.optional(z.string()),
123
+ }),
124
+ z.transform((v) => {
125
+ return remap$(v, {
126
+ clientId: "client_id",
127
+ clientSecret: "client_secret",
128
+ responseType: "response_type",
129
+ redirectUri: "redirect_uri",
130
+ codeChallenge: "code_challenge",
131
+ codeChallengeMethod: "code_challenge_method",
132
+ maxAge: "max_age",
133
+ acrValues: "acr_values",
134
+ requestUri: "request_uri",
135
+ });
136
+ }),
137
+ );
138
+
139
+ export function postOauthParRequestToJSON(
140
+ postOauthParRequest: PostOauthParRequest,
141
+ ): string {
142
+ return JSON.stringify(
143
+ PostOauthParRequest$outboundSchema.parse(postOauthParRequest),
144
+ );
145
+ }
146
+
147
+ /** @internal */
148
+ export const PostOauthParResponse$inboundSchema: z.ZodMiniType<
149
+ PostOauthParResponse,
150
+ unknown
151
+ > = z.pipe(
152
+ z.object({
153
+ request_uri: types.string(),
154
+ expires_in: types.number(),
155
+ }),
156
+ z.transform((v) => {
157
+ return remap$(v, {
158
+ "request_uri": "requestUri",
159
+ "expires_in": "expiresIn",
160
+ });
161
+ }),
162
+ );
163
+
164
+ export function postOauthParResponseFromJSON(
165
+ jsonString: string,
166
+ ): SafeParseResult<PostOauthParResponse, SDKValidationError> {
167
+ return safeParse(
168
+ jsonString,
169
+ (x) => PostOauthParResponse$inboundSchema.parse(JSON.parse(x)),
170
+ `Failed to parse 'PostOauthParResponse' from JSON`,
171
+ );
172
+ }
@@ -53,6 +53,7 @@ export type ErrorT = {
53
53
  export type PostOrgsByOrgIdAssetsByAssetIdAllocateResponse = {
54
54
  accepted: boolean;
55
55
  transferIds: Array<string>;
56
+ commandIds: Array<string | null>;
56
57
  requestId: string;
57
58
  errors?: Array<ErrorT> | undefined;
58
59
  };
@@ -185,6 +186,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdAllocateResponse$inboundSchema:
185
186
  .object({
186
187
  accepted: types.boolean(),
187
188
  transferIds: z.array(types.string()),
189
+ commandIds: z.array(types.nullable(types.string())),
188
190
  requestId: types.string(),
189
191
  errors: types.optional(z.array(z.lazy(() => ErrorT$inboundSchema))),
190
192
  });
@@ -52,6 +52,7 @@ export type PostOrgsByOrgIdAssetsByAssetIdDeployResponse = {
52
52
  chainEid: number;
53
53
  status: PostOrgsByOrgIdAssetsByAssetIdDeployStatus;
54
54
  requestId: string;
55
+ commandId: string | null;
55
56
  message: string;
56
57
  };
57
58
 
@@ -159,6 +160,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdDeployResponse$inboundSchema:
159
160
  chainEid: types.number(),
160
161
  status: PostOrgsByOrgIdAssetsByAssetIdDeployStatus$inboundSchema,
161
162
  requestId: types.string(),
163
+ commandId: types.nullable(types.string()),
162
164
  message: types.string(),
163
165
  });
164
166
 
@@ -81,6 +81,7 @@ export type PostOrgsByOrgIdAssetsByAssetIdMarketsResponse = {
81
81
  chainEid: number;
82
82
  status: string;
83
83
  requestId: string;
84
+ commandId: string | null;
84
85
  message: string;
85
86
  };
86
87
 
@@ -217,6 +218,7 @@ export const PostOrgsByOrgIdAssetsByAssetIdMarketsResponse$inboundSchema:
217
218
  chainEid: types.number(),
218
219
  status: types.string(),
219
220
  requestId: types.string(),
221
+ commandId: types.nullable(types.string()),
220
222
  message: types.string(),
221
223
  });
222
224
 
@@ -25,12 +25,21 @@ export type PostOrgsByOrgIdIssuerRegisterRequest = {
25
25
  body: PostOrgsByOrgIdIssuerRegisterRequestBody;
26
26
  };
27
27
 
28
+ export type Command = {
29
+ chainEid: number;
30
+ commandId: string | null;
31
+ };
32
+
28
33
  /**
29
34
  * Response
30
35
  */
31
36
  export type PostOrgsByOrgIdIssuerRegisterResponse = {
32
37
  registered: boolean;
33
38
  issuer?: any | null | undefined;
39
+ /**
40
+ * One entry per chain leg the org has a server wallet for.
41
+ */
42
+ commands: Array<Command>;
34
43
  };
35
44
 
36
45
  /** @internal */
@@ -121,6 +130,22 @@ export function postOrgsByOrgIdIssuerRegisterRequestToJSON(
121
130
  );
122
131
  }
123
132
 
133
+ /** @internal */
134
+ export const Command$inboundSchema: z.ZodMiniType<Command, unknown> = z.object({
135
+ chainEid: types.number(),
136
+ commandId: types.nullable(types.string()),
137
+ });
138
+
139
+ export function commandFromJSON(
140
+ jsonString: string,
141
+ ): SafeParseResult<Command, SDKValidationError> {
142
+ return safeParse(
143
+ jsonString,
144
+ (x) => Command$inboundSchema.parse(JSON.parse(x)),
145
+ `Failed to parse 'Command' from JSON`,
146
+ );
147
+ }
148
+
124
149
  /** @internal */
125
150
  export const PostOrgsByOrgIdIssuerRegisterResponse$inboundSchema: z.ZodMiniType<
126
151
  PostOrgsByOrgIdIssuerRegisterResponse,
@@ -128,6 +153,7 @@ export const PostOrgsByOrgIdIssuerRegisterResponse$inboundSchema: z.ZodMiniType<
128
153
  > = z.object({
129
154
  registered: types.boolean(),
130
155
  issuer: z.optional(z.nullable(z.any())),
156
+ commands: z.array(z.lazy(() => Command$inboundSchema)),
131
157
  });
132
158
 
133
159
  export function postOrgsByOrgIdIssuerRegisterResponseFromJSON(
@@ -62,6 +62,7 @@ export type PostTransfersStatus = ClosedEnum<typeof PostTransfersStatus>;
62
62
  export type PostTransfersResponse = {
63
63
  accepted: true;
64
64
  transferId: string;
65
+ commandId: string | null;
65
66
  status: PostTransfersStatus;
66
67
  message: string;
67
68
  };
@@ -145,6 +146,7 @@ export const PostTransfersResponse$inboundSchema: z.ZodMiniType<
145
146
  > = z.object({
146
147
  accepted: types.literal(true),
147
148
  transferId: types.string(),
149
+ commandId: types.nullable(types.string()),
148
150
  status: PostTransfersStatus$inboundSchema,
149
151
  message: types.string(),
150
152
  });
package/src/sdk/assets.ts CHANGED
@@ -92,7 +92,7 @@ export class Assets extends ClientSDK {
92
92
  * Update asset
93
93
  *
94
94
  * @remarks
95
- * Update asset details, status, or compliance configuration. Requires write:assets permission.
95
+ * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
96
96
  */
97
97
  async patchOrgsByOrgIdAssetsByAssetId(
98
98
  security: operations.PatchOrgsByOrgIdAssetsByAssetIdSecurity,
@@ -328,10 +328,10 @@ export class Assets extends ClientSDK {
328
328
  }
329
329
 
330
330
  /**
331
- * Discover public assets
331
+ * Discover assets
332
332
  *
333
333
  * @remarks
334
- * Returns all publicly available assets across all organizations. Only includes assets where org_only = false and status is deployed or active, plus the caller's own org's assets in the same statuses. Requires authentication but does NOT require org membership. Supports filtering by type, regulation, KYC level, accreditation, and chain.
334
+ * Lists deployed or active assets the caller may discover: every asset of the caller's own organizations (a JWT caller's active memberships, or an API key's organization), plus every asset another organization has made discoverable (visibility public, not org_only). A JWT caller's results are always narrowed by its active attestation (KYC level, accreditation); with no active attestation the list is empty. API keys need assets:read and are not narrowed. Discovery is not authority to invest: subscription and transfer remain gated by compliance. Supports filtering by type, regulation, KYC level, accreditation, and chain.
335
335
  */
336
336
  async getAssets(
337
337
  security: operations.GetAssetsSecurity,
@@ -347,10 +347,10 @@ export class Assets extends ClientSDK {
347
347
  }
348
348
 
349
349
  /**
350
- * Get public asset detail
350
+ * Get a discoverable asset
351
351
  *
352
352
  * @remarks
353
- * Returns detail for a single publicly available asset including per-chain deployments and a compliance subset. Requires authentication but does NOT require org membership.
353
+ * Returns one asset, with its per-chain deployments and a compliance subset, on exactly the terms of GET /assets: 200 when the asset is in the caller's list without narrowing parameters, 404 otherwise (including a JWT caller with no active attestation). API keys need assets:read. Discovery is not authority to invest.
354
354
  */
355
355
  async getAssetsByAssetId(
356
356
  security: operations.GetAssetsByAssetIdSecurity,
package/src/sdk/bridge.ts CHANGED
@@ -62,7 +62,7 @@ export class Bridge extends ClientSDK {
62
62
  * List bridge transactions
63
63
  *
64
64
  * @remarks
65
- * Returns bridge transaction history for the organization. Supports filtering by asset ID and status, with cursor-based pagination.
65
+ * Returns the bridge transactions initiated by the organization's active members (rows are selected by member user id, so a member's bridges of another organization's assets are included unless `assetId` narrows them). Supports filtering by asset ID and status, with cursor-based pagination. Readable by admin, operator or compliance_officer in the organization; an API key needs `assets:read`.
66
66
  */
67
67
  async getOrgsByOrgIdBridgeHistory(
68
68
  security: operations.GetOrgsByOrgIdBridgeHistorySecurity,
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { commandsGetCommandsByCommandId } from "../funcs/commands-get-commands-by-command-id.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Commands extends ClientSDK {
11
+ /**
12
+ * Get command lifecycle
13
+ *
14
+ * @remarks
15
+ * Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"); for a cross-chain transfer, LayerZero delivery to dstChainEid is tracked separately. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
16
+ */
17
+ async getCommandsByCommandId(
18
+ commandId: string,
19
+ options?: RequestOptions,
20
+ ): Promise<operations.GetCommandsByCommandIdResponse> {
21
+ return unwrapAsync(commandsGetCommandsByCommandId(
22
+ this,
23
+ commandId,
24
+ options,
25
+ ));
26
+ }
27
+ }
package/src/sdk/o-auth.ts CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  import { oAuthGetOauthAuthorize } from "../funcs/o-auth-get-oauth-authorize.js";
6
6
  import { oAuthGetOauthUserinfo } from "../funcs/o-auth-get-oauth-userinfo.js";
7
- import { oAuthPostOauthAuthorizeCallback } from "../funcs/o-auth-post-oauth-authorize-callback.js";
7
+ import { oAuthPostOauthPar } from "../funcs/o-auth-post-oauth-par.js";
8
8
  import { oAuthPostOauthRevoke } from "../funcs/o-auth-post-oauth-revoke.js";
9
9
  import { oAuthPostOauthToken } from "../funcs/o-auth-post-oauth-token.js";
10
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -16,7 +16,7 @@ export class OAuth extends ClientSDK {
16
16
  * OAuth2 Authorization
17
17
  *
18
18
  * @remarks
19
- * Initiate OAuth2 authorization code flow. Redirects to login page for user authentication.
19
+ * Initiate OAuth2 authorization code flow. Redirects to login page for user authentication. Either pass the authorization parameters in the query, or pass client_id and a request_uri from POST /oauth/par (RFC 9126); clients registered to require PAR must use the latter. A bad, expired, reused or foreign request_uri is a 400 invalid_request_uri.
20
20
  */
21
21
  async getOauthAuthorize(
22
22
  request: operations.GetOauthAuthorizeRequest,
@@ -30,16 +30,16 @@ export class OAuth extends ClientSDK {
30
30
  }
31
31
 
32
32
  /**
33
- * Authorization callback
33
+ * Pushed authorization request (RFC 9126)
34
34
  *
35
35
  * @remarks
36
- * Internal endpoint called after user login to generate authorization code.
36
+ * Push the authorization request parameters over an authenticated back channel (client_secret_basic, client_secret_post, or client_id alone for public clients). Form-encoded body, at most 16 KiB. Returns a single-use request_uri valid for 60 seconds; start the authorization with GET /oauth/authorize?client_id=…&request_uri=…. Clients registered to require PAR can start an authorization only this way. prompt, max_age and acr_values are accepted and stored with the request; they are not yet enforced.
37
37
  */
38
- async postOauthAuthorizeCallback(
39
- request: operations.PostOauthAuthorizeCallbackRequest,
38
+ async postOauthPar(
39
+ request: operations.PostOauthParRequest,
40
40
  options?: RequestOptions,
41
- ): Promise<operations.PostOauthAuthorizeCallbackResponse> {
42
- return unwrapAsync(oAuthPostOauthAuthorizeCallback(
41
+ ): Promise<operations.PostOauthParResponse> {
42
+ return unwrapAsync(oAuthPostOauthPar(
43
43
  this,
44
44
  request,
45
45
  options,
@@ -67,7 +67,7 @@ export class OAuth extends ClientSDK {
67
67
  * Revoke token
68
68
  *
69
69
  * @remarks
70
- * Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A refresh token is revoked only for the client it was issued to. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
70
+ * Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A token is revoked only for the client it was issued to; first-party session tokens are revoked via /auth/logout, not here. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2 and nothing is revoked; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
71
71
  */
72
72
  async postOauthRevoke(
73
73
  request: operations.PostOauthRevokeRequest,