@clossir-tech/ts-sdk 0.10.5 → 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 (174) hide show
  1. package/README.md +13 -12
  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/o-auth-get-oauth-authorize.d.ts +1 -1
  14. package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
  15. package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
  16. package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
  17. package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
  18. package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
  19. package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
  20. package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
  21. package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
  22. package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
  23. package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
  24. package/esm/funcs/o-auth-post-oauth-token.d.ts +1 -1
  25. package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
  26. package/esm/funcs/o-auth-post-oauth-token.js +3 -1
  27. package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
  28. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
  29. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
  30. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
  31. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
  32. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
  33. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
  34. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
  35. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
  36. package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
  37. package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
  38. package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
  39. package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
  40. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
  41. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
  42. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
  43. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
  44. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
  45. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
  46. package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
  47. package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
  48. package/esm/funcs/transfers-get-transfers.d.ts +1 -1
  49. package/esm/funcs/transfers-get-transfers.js +1 -1
  50. package/esm/lib/config.d.ts +2 -2
  51. package/esm/lib/config.js +2 -2
  52. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  53. package/esm/models/errors/get-oauth-authorize.js +3 -3
  54. package/esm/models/errors/get-oauth-userinfo.d.ts +4 -4
  55. package/esm/models/errors/get-oauth-userinfo.js +2 -2
  56. package/esm/models/errors/index.d.ts +1 -1
  57. package/esm/models/errors/index.d.ts.map +1 -1
  58. package/esm/models/errors/index.js +1 -1
  59. package/esm/models/errors/index.js.map +1 -1
  60. package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
  61. package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
  62. package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
  63. package/esm/models/errors/post-oauth-par.js.map +1 -0
  64. package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
  65. package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
  66. package/esm/models/errors/post-oauth-revoke.js +9 -9
  67. package/esm/models/errors/post-oauth-revoke.js.map +1 -1
  68. package/esm/models/errors/post-oauth-token.d.ts +6 -6
  69. package/esm/models/errors/post-oauth-token.js +3 -3
  70. package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
  71. package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
  72. package/esm/models/operations/get-assets-by-asset-id.js +35 -0
  73. package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
  74. package/esm/models/operations/get-assets.d.ts +55 -2
  75. package/esm/models/operations/get-assets.d.ts.map +1 -1
  76. package/esm/models/operations/get-assets.js +35 -0
  77. package/esm/models/operations/get-assets.js.map +1 -1
  78. package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
  79. package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
  80. package/esm/models/operations/get-oauth-authorize.js +2 -0
  81. package/esm/models/operations/get-oauth-authorize.js.map +1 -1
  82. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
  83. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  84. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
  85. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  86. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
  87. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
  88. package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
  89. package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
  90. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
  91. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
  92. package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
  93. package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
  94. package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
  95. package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
  96. package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
  97. package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
  98. package/esm/models/operations/index.d.ts +1 -1
  99. package/esm/models/operations/index.d.ts.map +1 -1
  100. package/esm/models/operations/index.js +1 -1
  101. package/esm/models/operations/index.js.map +1 -1
  102. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
  103. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  104. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
  105. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  106. package/esm/models/operations/post-oauth-par.d.ts +98 -0
  107. package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
  108. package/esm/models/operations/post-oauth-par.js +53 -0
  109. package/esm/models/operations/post-oauth-par.js.map +1 -0
  110. package/esm/sdk/assets.d.ts +5 -5
  111. package/esm/sdk/assets.js +5 -5
  112. package/esm/sdk/bridge.d.ts +1 -1
  113. package/esm/sdk/bridge.js +1 -1
  114. package/esm/sdk/o-auth.d.ts +5 -5
  115. package/esm/sdk/o-auth.d.ts.map +1 -1
  116. package/esm/sdk/o-auth.js +7 -7
  117. package/esm/sdk/o-auth.js.map +1 -1
  118. package/esm/sdk/organizations.d.ts +13 -4
  119. package/esm/sdk/organizations.d.ts.map +1 -1
  120. package/esm/sdk/organizations.js +13 -4
  121. package/esm/sdk/organizations.js.map +1 -1
  122. package/esm/sdk/transfers.d.ts +1 -1
  123. package/esm/sdk/transfers.js +1 -1
  124. package/jsr.json +1 -1
  125. package/package.json +1 -1
  126. package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
  127. package/src/funcs/assets-get-assets.ts +3 -3
  128. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
  129. package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
  130. package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
  131. package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → o-auth-post-oauth-par.ts} +44 -47
  132. package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
  133. package/src/funcs/o-auth-post-oauth-token.ts +6 -0
  134. package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
  135. package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
  136. package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
  137. package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
  138. package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
  139. package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
  140. package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
  141. package/src/funcs/transfers-get-transfers.ts +1 -1
  142. package/src/lib/config.ts +2 -2
  143. package/src/models/errors/get-oauth-authorize.ts +6 -6
  144. package/src/models/errors/get-oauth-userinfo.ts +4 -4
  145. package/src/models/errors/index.ts +1 -1
  146. package/src/models/errors/post-oauth-par.ts +493 -0
  147. package/src/models/errors/post-oauth-revoke.ts +40 -42
  148. package/src/models/errors/post-oauth-token.ts +6 -6
  149. package/src/models/operations/get-assets-by-asset-id.ts +95 -0
  150. package/src/models/operations/get-assets.ts +93 -2
  151. package/src/models/operations/get-oauth-authorize.ts +8 -1
  152. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
  153. package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
  154. package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
  155. package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
  156. package/src/models/operations/index.ts +1 -1
  157. package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
  158. package/src/models/operations/post-oauth-par.ts +172 -0
  159. package/src/sdk/assets.ts +5 -5
  160. package/src/sdk/bridge.ts +1 -1
  161. package/src/sdk/o-auth.ts +9 -9
  162. package/src/sdk/organizations.ts +13 -4
  163. package/src/sdk/transfers.ts +1 -1
  164. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
  165. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
  166. package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
  167. package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
  168. package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
  169. package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
  170. package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
  171. package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
  172. package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
  173. package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
  174. package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
@@ -10,9 +10,9 @@ import { SDKError } from "./sdk-error.js";
10
10
  /**
11
11
  * Response
12
12
  */
13
- export type ServiceUnavailableErrorData = {
13
+ export type PostOauthRevokeServiceUnavailableErrorData = {
14
14
  /**
15
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
15
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
16
16
  */
17
17
  error: string;
18
18
  /**
@@ -36,9 +36,9 @@ export type ServiceUnavailableErrorData = {
36
36
  /**
37
37
  * Response
38
38
  */
39
- export class ServiceUnavailableError extends SDKError {
39
+ export class PostOauthRevokeServiceUnavailableError extends SDKError {
40
40
  /**
41
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
41
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
42
42
  */
43
43
  error: string;
44
44
  /**
@@ -55,10 +55,10 @@ export class ServiceUnavailableError extends SDKError {
55
55
  retryAfter?: number | undefined;
56
56
 
57
57
  /** The original data that was passed to this error instance. */
58
- data$: ServiceUnavailableErrorData;
58
+ data$: PostOauthRevokeServiceUnavailableErrorData;
59
59
 
60
60
  constructor(
61
- err: ServiceUnavailableErrorData,
61
+ err: PostOauthRevokeServiceUnavailableErrorData,
62
62
  httpMeta: { response: Response; request: Request; body: string },
63
63
  ) {
64
64
  const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
@@ -71,7 +71,7 @@ export class ServiceUnavailableError extends SDKError {
71
71
  if (err.errorUri != null) this.errorUri = err.errorUri;
72
72
  if (err.retryAfter != null) this.retryAfter = err.retryAfter;
73
73
 
74
- this.name = "ServiceUnavailableError";
74
+ this.name = "PostOauthRevokeServiceUnavailableError";
75
75
  }
76
76
  }
77
77
 
@@ -80,7 +80,7 @@ export class ServiceUnavailableError extends SDKError {
80
80
  */
81
81
  export type PostOauthRevokeInternalServerErrorData = {
82
82
  /**
83
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
83
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
84
84
  */
85
85
  error: string;
86
86
  /**
@@ -106,7 +106,7 @@ export type PostOauthRevokeInternalServerErrorData = {
106
106
  */
107
107
  export class PostOauthRevokeInternalServerError extends SDKError {
108
108
  /**
109
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
109
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
110
110
  */
111
111
  error: string;
112
112
  /**
@@ -148,7 +148,7 @@ export class PostOauthRevokeInternalServerError extends SDKError {
148
148
  */
149
149
  export type PostOauthRevokeTooManyRequestsErrorData = {
150
150
  /**
151
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
151
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
152
152
  */
153
153
  error: string;
154
154
  /**
@@ -174,7 +174,7 @@ export type PostOauthRevokeTooManyRequestsErrorData = {
174
174
  */
175
175
  export class PostOauthRevokeTooManyRequestsError extends SDKError {
176
176
  /**
177
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
177
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
178
178
  */
179
179
  error: string;
180
180
  /**
@@ -216,7 +216,7 @@ export class PostOauthRevokeTooManyRequestsError extends SDKError {
216
216
  */
217
217
  export type PostOauthRevokeUnauthorizedErrorData = {
218
218
  /**
219
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
219
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
220
220
  */
221
221
  error: string;
222
222
  /**
@@ -242,7 +242,7 @@ export type PostOauthRevokeUnauthorizedErrorData = {
242
242
  */
243
243
  export class PostOauthRevokeUnauthorizedError extends SDKError {
244
244
  /**
245
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
245
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
246
246
  */
247
247
  error: string;
248
248
  /**
@@ -284,7 +284,7 @@ export class PostOauthRevokeUnauthorizedError extends SDKError {
284
284
  */
285
285
  export type PostOauthRevokeBadRequestErrorData = {
286
286
  /**
287
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
287
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
288
288
  */
289
289
  error: string;
290
290
  /**
@@ -310,7 +310,7 @@ export type PostOauthRevokeBadRequestErrorData = {
310
310
  */
311
311
  export class PostOauthRevokeBadRequestError extends SDKError {
312
312
  /**
313
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
313
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
314
314
  */
315
315
  error: string;
316
316
  /**
@@ -348,33 +348,31 @@ export class PostOauthRevokeBadRequestError extends SDKError {
348
348
  }
349
349
 
350
350
  /** @internal */
351
- export const ServiceUnavailableError$inboundSchema: z.ZodMiniType<
352
- ServiceUnavailableError,
353
- unknown
354
- > = z.pipe(
355
- z.object({
356
- error: types.string(),
357
- error_description: types.optional(types.string()),
358
- error_uri: types.optional(types.string()),
359
- message: types.optional(types.string()),
360
- retryAfter: types.optional(types.number()),
361
- request$: z.custom<Request>(x => x instanceof Request),
362
- response$: z.custom<Response>(x => x instanceof Response),
363
- body$: z.string(),
364
- }),
365
- z.transform((v) => {
366
- const remapped = remap$(v, {
367
- "error_description": "errorDescription",
368
- "error_uri": "errorUri",
369
- });
370
-
371
- return new ServiceUnavailableError(remapped, {
372
- request: v.request$,
373
- response: v.response$,
374
- body: v.body$,
375
- });
376
- }),
377
- );
351
+ export const PostOauthRevokeServiceUnavailableError$inboundSchema:
352
+ z.ZodMiniType<PostOauthRevokeServiceUnavailableError, unknown> = z.pipe(
353
+ z.object({
354
+ error: types.string(),
355
+ error_description: types.optional(types.string()),
356
+ error_uri: types.optional(types.string()),
357
+ message: types.optional(types.string()),
358
+ retryAfter: types.optional(types.number()),
359
+ request$: z.custom<Request>(x => x instanceof Request),
360
+ response$: z.custom<Response>(x => x instanceof Response),
361
+ body$: z.string(),
362
+ }),
363
+ z.transform((v) => {
364
+ const remapped = remap$(v, {
365
+ "error_description": "errorDescription",
366
+ "error_uri": "errorUri",
367
+ });
368
+
369
+ return new PostOauthRevokeServiceUnavailableError(remapped, {
370
+ request: v.request$,
371
+ response: v.response$,
372
+ body: v.body$,
373
+ });
374
+ }),
375
+ );
378
376
 
379
377
  /** @internal */
380
378
  export const PostOauthRevokeInternalServerError$inboundSchema: z.ZodMiniType<
@@ -12,7 +12,7 @@ import { SDKError } from "./sdk-error.js";
12
12
  */
13
13
  export type PostOauthTokenInternalServerErrorData = {
14
14
  /**
15
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
15
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
16
16
  */
17
17
  error: string;
18
18
  /**
@@ -38,7 +38,7 @@ export type PostOauthTokenInternalServerErrorData = {
38
38
  */
39
39
  export class PostOauthTokenInternalServerError extends SDKError {
40
40
  /**
41
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
41
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
42
42
  */
43
43
  error: string;
44
44
  /**
@@ -80,7 +80,7 @@ export class PostOauthTokenInternalServerError extends SDKError {
80
80
  */
81
81
  export type PostOauthTokenUnauthorizedErrorData = {
82
82
  /**
83
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
83
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
84
84
  */
85
85
  error: string;
86
86
  /**
@@ -106,7 +106,7 @@ export type PostOauthTokenUnauthorizedErrorData = {
106
106
  */
107
107
  export class PostOauthTokenUnauthorizedError extends SDKError {
108
108
  /**
109
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
109
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
110
110
  */
111
111
  error: string;
112
112
  /**
@@ -148,7 +148,7 @@ export class PostOauthTokenUnauthorizedError extends SDKError {
148
148
  */
149
149
  export type PostOauthTokenBadRequestErrorData = {
150
150
  /**
151
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
151
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
152
152
  */
153
153
  error: string;
154
154
  /**
@@ -174,7 +174,7 @@ export type PostOauthTokenBadRequestErrorData = {
174
174
  */
175
175
  export class PostOauthTokenBadRequestError extends SDKError {
176
176
  /**
177
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
177
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
178
178
  */
179
179
  error: string;
180
180
  /**
@@ -5,6 +5,8 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
8
10
  import { Result as SafeParseResult } from "../../types/fp.js";
9
11
  import * as types from "../../types/primitives.js";
10
12
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
@@ -18,6 +20,20 @@ export type GetAssetsByAssetIdRequest = {
18
20
  assetId: string;
19
21
  };
20
22
 
23
+ /**
24
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
25
+ */
26
+ export const GetAssetsByAssetIdVisibility = {
27
+ Private: "private",
28
+ Public: "public",
29
+ } as const;
30
+ /**
31
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
32
+ */
33
+ export type GetAssetsByAssetIdVisibility = OpenEnum<
34
+ typeof GetAssetsByAssetIdVisibility
35
+ >;
36
+
21
37
  export type GetAssetsByAssetIdDeployment = {
22
38
  chainEid: number;
23
39
  contractAddress: string | null;
@@ -35,6 +51,33 @@ export type Compliance = {
35
51
  transferRestricted?: boolean | null | undefined;
36
52
  };
37
53
 
54
+ /**
55
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
56
+ */
57
+ export const GetAssetsByAssetIdStatus = {
58
+ Applied: "applied",
59
+ NoActiveAttestation: "no_active_attestation",
60
+ NotApplicable: "not_applicable",
61
+ } as const;
62
+ /**
63
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
64
+ */
65
+ export type GetAssetsByAssetIdStatus = OpenEnum<
66
+ typeof GetAssetsByAssetIdStatus
67
+ >;
68
+
69
+ /**
70
+ * How the caller's eligibility narrowed the result
71
+ */
72
+ export type GetAssetsByAssetIdEligibility = {
73
+ /**
74
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
75
+ */
76
+ status: GetAssetsByAssetIdStatus;
77
+ kycLevel: number | null;
78
+ accredited: boolean | null;
79
+ };
80
+
38
81
  /**
39
82
  * Response
40
83
  */
@@ -51,6 +94,10 @@ export type GetAssetsByAssetIdResponse = {
51
94
  decimals?: number | null | undefined;
52
95
  status: string;
53
96
  orgOnly?: boolean | null | undefined;
97
+ /**
98
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
99
+ */
100
+ visibility: GetAssetsByAssetIdVisibility;
54
101
  requiredKycLevel?: number | null | undefined;
55
102
  maxHolders?: number | null | undefined;
56
103
  deployedChains?: Array<number> | null | undefined;
@@ -63,10 +110,17 @@ export type GetAssetsByAssetIdResponse = {
63
110
  orgName: string;
64
111
  orgLogoUrl?: string | null | undefined;
65
112
  orgBannerUrl?: string | null | undefined;
113
+ /**
114
+ * True when the asset belongs to one of the caller's own organizations (a JWT caller's active memberships; an API key's organization)
115
+ */
66
116
  isOwnOrg: boolean;
67
117
  heldBalance: string | null;
68
118
  deployments: Array<GetAssetsByAssetIdDeployment>;
69
119
  compliance: Compliance;
120
+ /**
121
+ * How the caller's eligibility narrowed the result
122
+ */
123
+ eligibility: GetAssetsByAssetIdEligibility;
70
124
  };
71
125
 
72
126
  /** @internal */
@@ -113,6 +167,12 @@ export function getAssetsByAssetIdRequestToJSON(
113
167
  );
114
168
  }
115
169
 
170
+ /** @internal */
171
+ export const GetAssetsByAssetIdVisibility$inboundSchema: z.ZodMiniType<
172
+ GetAssetsByAssetIdVisibility,
173
+ unknown
174
+ > = openEnums.inboundSchema(GetAssetsByAssetIdVisibility);
175
+
116
176
  /** @internal */
117
177
  export const GetAssetsByAssetIdDeployment$inboundSchema: z.ZodMiniType<
118
178
  GetAssetsByAssetIdDeployment,
@@ -177,6 +237,39 @@ export function complianceFromJSON(
177
237
  );
178
238
  }
179
239
 
240
+ /** @internal */
241
+ export const GetAssetsByAssetIdStatus$inboundSchema: z.ZodMiniType<
242
+ GetAssetsByAssetIdStatus,
243
+ unknown
244
+ > = openEnums.inboundSchema(GetAssetsByAssetIdStatus);
245
+
246
+ /** @internal */
247
+ export const GetAssetsByAssetIdEligibility$inboundSchema: z.ZodMiniType<
248
+ GetAssetsByAssetIdEligibility,
249
+ unknown
250
+ > = z.pipe(
251
+ z.object({
252
+ status: GetAssetsByAssetIdStatus$inboundSchema,
253
+ kyc_level: types.nullable(types.number()),
254
+ accredited: types.nullable(types.boolean()),
255
+ }),
256
+ z.transform((v) => {
257
+ return remap$(v, {
258
+ "kyc_level": "kycLevel",
259
+ });
260
+ }),
261
+ );
262
+
263
+ export function getAssetsByAssetIdEligibilityFromJSON(
264
+ jsonString: string,
265
+ ): SafeParseResult<GetAssetsByAssetIdEligibility, SDKValidationError> {
266
+ return safeParse(
267
+ jsonString,
268
+ (x) => GetAssetsByAssetIdEligibility$inboundSchema.parse(JSON.parse(x)),
269
+ `Failed to parse 'GetAssetsByAssetIdEligibility' from JSON`,
270
+ );
271
+ }
272
+
180
273
  /** @internal */
181
274
  export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
182
275
  GetAssetsByAssetIdResponse,
@@ -195,6 +288,7 @@ export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
195
288
  decimals: z.optional(z.nullable(types.number())),
196
289
  status: types.string(),
197
290
  org_only: z.optional(z.nullable(types.boolean())),
291
+ visibility: GetAssetsByAssetIdVisibility$inboundSchema,
198
292
  required_kyc_level: z.optional(z.nullable(types.number())),
199
293
  max_holders: z.optional(z.nullable(types.number())),
200
294
  deployed_chains: z.optional(z.nullable(z.array(types.number()))),
@@ -215,6 +309,7 @@ export const GetAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
215
309
  z.lazy(() => GetAssetsByAssetIdDeployment$inboundSchema),
216
310
  ),
217
311
  compliance: z.lazy(() => Compliance$inboundSchema),
312
+ eligibility: z.lazy(() => GetAssetsByAssetIdEligibility$inboundSchema),
218
313
  }),
219
314
  z.transform((v) => {
220
315
  return remap$(v, {
@@ -5,6 +5,8 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
8
10
  import { Result as SafeParseResult } from "../../types/fp.js";
9
11
  import * as types from "../../types/primitives.js";
10
12
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
@@ -32,7 +34,7 @@ export type GetAssetsRequest = {
32
34
  */
33
35
  maxKycLevel?: string | undefined;
34
36
  /**
35
- * Filter by accreditation requirement (true/false)
37
+ * When 'false', return only assets that do not require an accredited investor
36
38
  */
37
39
  accredited?: string | undefined;
38
40
  /**
@@ -40,7 +42,7 @@ export type GetAssetsRequest = {
40
42
  */
41
43
  chainEid?: string | undefined;
42
44
  /**
43
- * When 'true', filter to assets the caller is eligible for based on their active attestation (KYC level, accreditation). Requires JWT auth.
45
+ * Deprecated and ignored. Eligibility is always applied to a JWT caller and never to an API key; the response's `eligibility` block says which.
44
46
  */
45
47
  eligible?: string | undefined;
46
48
  /**
@@ -53,6 +55,18 @@ export type GetAssetsRequest = {
53
55
  offset?: string | undefined;
54
56
  };
55
57
 
58
+ /**
59
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
60
+ */
61
+ export const GetAssetsVisibility = {
62
+ Private: "private",
63
+ Public: "public",
64
+ } as const;
65
+ /**
66
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
67
+ */
68
+ export type GetAssetsVisibility = OpenEnum<typeof GetAssetsVisibility>;
69
+
56
70
  export type GetAssetsAsset = {
57
71
  id: string;
58
72
  organizationId: string;
@@ -66,6 +80,10 @@ export type GetAssetsAsset = {
66
80
  decimals?: number | null | undefined;
67
81
  status: string;
68
82
  orgOnly?: boolean | null | undefined;
83
+ /**
84
+ * Cross-org discovery opt-in. `public` rows of other orgs are listed once deployed or active and not org_only; own-org rows are listed whatever their visibility.
85
+ */
86
+ visibility: GetAssetsVisibility;
69
87
  requiredKycLevel?: number | null | undefined;
70
88
  maxHolders?: number | null | undefined;
71
89
  deployedChains?: Array<number> | null | undefined;
@@ -78,16 +96,48 @@ export type GetAssetsAsset = {
78
96
  orgName: string;
79
97
  orgLogoUrl?: string | null | undefined;
80
98
  orgBannerUrl?: string | null | undefined;
99
+ /**
100
+ * True when the asset belongs to one of the caller's own organizations (a JWT caller's active memberships; an API key's organization)
101
+ */
81
102
  isOwnOrg: boolean;
82
103
  heldBalance: string | null;
83
104
  };
84
105
 
106
+ /**
107
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
108
+ */
109
+ export const GetAssetsStatus = {
110
+ Applied: "applied",
111
+ NoActiveAttestation: "no_active_attestation",
112
+ NotApplicable: "not_applicable",
113
+ } as const;
114
+ /**
115
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
116
+ */
117
+ export type GetAssetsStatus = OpenEnum<typeof GetAssetsStatus>;
118
+
119
+ /**
120
+ * How the caller's eligibility narrowed the result
121
+ */
122
+ export type GetAssetsEligibility = {
123
+ /**
124
+ * applied: rows are narrowed by the caller's active attestation. no_active_attestation: a JWT caller with none sees no assets. not_applicable: API keys are not narrowed.
125
+ */
126
+ status: GetAssetsStatus;
127
+ kycLevel: number | null;
128
+ accredited: boolean | null;
129
+ };
130
+
85
131
  /**
86
132
  * Response
87
133
  */
88
134
  export type GetAssetsResponse = {
89
135
  assets: Array<GetAssetsAsset>;
90
136
  total: number;
137
+ /**
138
+ * How the caller's eligibility narrowed the result
139
+ */
140
+ eligibility: GetAssetsEligibility;
91
141
  };
92
142
 
93
143
  /** @internal */
@@ -159,6 +209,12 @@ export function getAssetsRequestToJSON(
159
209
  );
160
210
  }
161
211
 
212
+ /** @internal */
213
+ export const GetAssetsVisibility$inboundSchema: z.ZodMiniType<
214
+ GetAssetsVisibility,
215
+ unknown
216
+ > = openEnums.inboundSchema(GetAssetsVisibility);
217
+
162
218
  /** @internal */
163
219
  export const GetAssetsAsset$inboundSchema: z.ZodMiniType<
164
220
  GetAssetsAsset,
@@ -177,6 +233,7 @@ export const GetAssetsAsset$inboundSchema: z.ZodMiniType<
177
233
  decimals: z.optional(z.nullable(types.number())),
178
234
  status: types.string(),
179
235
  org_only: z.optional(z.nullable(types.boolean())),
236
+ visibility: GetAssetsVisibility$inboundSchema,
180
237
  required_kyc_level: z.optional(z.nullable(types.number())),
181
238
  max_holders: z.optional(z.nullable(types.number())),
182
239
  deployed_chains: z.optional(z.nullable(z.array(types.number()))),
@@ -230,6 +287,39 @@ export function getAssetsAssetFromJSON(
230
287
  );
231
288
  }
232
289
 
290
+ /** @internal */
291
+ export const GetAssetsStatus$inboundSchema: z.ZodMiniType<
292
+ GetAssetsStatus,
293
+ unknown
294
+ > = openEnums.inboundSchema(GetAssetsStatus);
295
+
296
+ /** @internal */
297
+ export const GetAssetsEligibility$inboundSchema: z.ZodMiniType<
298
+ GetAssetsEligibility,
299
+ unknown
300
+ > = z.pipe(
301
+ z.object({
302
+ status: GetAssetsStatus$inboundSchema,
303
+ kyc_level: types.nullable(types.number()),
304
+ accredited: types.nullable(types.boolean()),
305
+ }),
306
+ z.transform((v) => {
307
+ return remap$(v, {
308
+ "kyc_level": "kycLevel",
309
+ });
310
+ }),
311
+ );
312
+
313
+ export function getAssetsEligibilityFromJSON(
314
+ jsonString: string,
315
+ ): SafeParseResult<GetAssetsEligibility, SDKValidationError> {
316
+ return safeParse(
317
+ jsonString,
318
+ (x) => GetAssetsEligibility$inboundSchema.parse(JSON.parse(x)),
319
+ `Failed to parse 'GetAssetsEligibility' from JSON`,
320
+ );
321
+ }
322
+
233
323
  /** @internal */
234
324
  export const GetAssetsResponse$inboundSchema: z.ZodMiniType<
235
325
  GetAssetsResponse,
@@ -237,6 +327,7 @@ export const GetAssetsResponse$inboundSchema: z.ZodMiniType<
237
327
  > = z.object({
238
328
  assets: z.array(z.lazy(() => GetAssetsAsset$inboundSchema)),
239
329
  total: types.number(),
330
+ eligibility: z.lazy(() => GetAssetsEligibility$inboundSchema),
240
331
  });
241
332
 
242
333
  export function getAssetsResponseFromJSON(
@@ -27,7 +27,7 @@ export type GetOauthAuthorizeRequest = {
27
27
  */
28
28
  state?: string | undefined;
29
29
  /**
30
- * PKCE code challenge (RFC 7636 §4.2: BASE64URL of SHA-256, 43 chars)
30
+ * PKCE code challenge, REQUIRED for every client (public, confidential and first-party). S256 only: BASE64URL(SHA-256(code_verifier)), 43..128 unreserved characters (RFC 7636 §4.2).
31
31
  */
32
32
  codeChallenge?: string | undefined;
33
33
  /**
@@ -38,6 +38,10 @@ export type GetOauthAuthorizeRequest = {
38
38
  * OIDC nonce
39
39
  */
40
40
  nonce?: string | undefined;
41
+ /**
42
+ * Reference returned by POST /oauth/par (RFC 9126 §4). When present, only the pushed parameters are used (client_id must match); every other query parameter is ignored. Single use, 60 s.
43
+ */
44
+ requestUri?: string | undefined;
41
45
  };
42
46
 
43
47
  /** @internal */
@@ -50,6 +54,7 @@ export type GetOauthAuthorizeRequest$Outbound = {
50
54
  code_challenge?: string | undefined;
51
55
  code_challenge_method?: string | undefined;
52
56
  nonce?: string | undefined;
57
+ request_uri?: string | undefined;
53
58
  };
54
59
 
55
60
  /** @internal */
@@ -66,6 +71,7 @@ export const GetOauthAuthorizeRequest$outboundSchema: z.ZodMiniType<
66
71
  codeChallenge: z.optional(z.string()),
67
72
  codeChallengeMethod: z.optional(z.string()),
68
73
  nonce: z.optional(z.string()),
74
+ requestUri: z.optional(z.string()),
69
75
  }),
70
76
  z.transform((v) => {
71
77
  return remap$(v, {
@@ -74,6 +80,7 @@ export const GetOauthAuthorizeRequest$outboundSchema: z.ZodMiniType<
74
80
  redirectUri: "redirect_uri",
75
81
  codeChallenge: "code_challenge",
76
82
  codeChallengeMethod: "code_challenge_method",
83
+ requestUri: "request_uri",
77
84
  });
78
85
  }),
79
86
  );
@@ -35,6 +35,20 @@ export type GetOrgsByOrgIdAssetsByAssetIdStatus = OpenEnum<
35
35
  typeof GetOrgsByOrgIdAssetsByAssetIdStatus
36
36
  >;
37
37
 
38
+ /**
39
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
40
+ */
41
+ export const GetOrgsByOrgIdAssetsByAssetIdVisibility = {
42
+ Private: "private",
43
+ Public: "public",
44
+ } as const;
45
+ /**
46
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
47
+ */
48
+ export type GetOrgsByOrgIdAssetsByAssetIdVisibility = OpenEnum<
49
+ typeof GetOrgsByOrgIdAssetsByAssetIdVisibility
50
+ >;
51
+
38
52
  export type Metadata = {
39
53
  /**
40
54
  * Raw chain-agent failure message. OPERATOR-FACING: credential-bearing, never render it to a user.
@@ -99,6 +113,10 @@ export type GetOrgsByOrgIdAssetsByAssetIdResponse = {
99
113
  unitPriceUsd?: number | null | undefined;
100
114
  status: GetOrgsByOrgIdAssetsByAssetIdStatus;
101
115
  orgOnly?: boolean | null | undefined;
116
+ /**
117
+ * Cross-org discovery opt-in: `private` (default) or `public`. Independent of `org_only`, which restricts holding.
118
+ */
119
+ visibility?: GetOrgsByOrgIdAssetsByAssetIdVisibility | undefined;
102
120
  requiredKycLevel?: number | null | undefined;
103
121
  maxHolders?: number | null | undefined;
104
122
  complianceRules?: { [k: string]: any } | null | undefined;
@@ -174,6 +192,11 @@ export const GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema: z.ZodMiniType<
174
192
  unknown
175
193
  > = openEnums.inboundSchema(GetOrgsByOrgIdAssetsByAssetIdStatus);
176
194
 
195
+ /** @internal */
196
+ export const GetOrgsByOrgIdAssetsByAssetIdVisibility$inboundSchema:
197
+ z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVisibility, unknown> = openEnums
198
+ .inboundSchema(GetOrgsByOrgIdAssetsByAssetIdVisibility);
199
+
177
200
  /** @internal */
178
201
  export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
179
202
  z.catchall(
@@ -279,6 +302,9 @@ export const GetOrgsByOrgIdAssetsByAssetIdResponse$inboundSchema: z.ZodMiniType<
279
302
  unit_price_usd: z.optional(z.nullable(types.number())),
280
303
  status: GetOrgsByOrgIdAssetsByAssetIdStatus$inboundSchema,
281
304
  org_only: z.optional(z.nullable(types.boolean())),
305
+ visibility: types.optional(
306
+ GetOrgsByOrgIdAssetsByAssetIdVisibility$inboundSchema,
307
+ ),
282
308
  required_kyc_level: z.optional(z.nullable(types.number())),
283
309
  max_holders: z.optional(z.nullable(types.number())),
284
310
  compliance_rules: z.optional(z.nullable(z.record(z.string(), z.any()))),