@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
@@ -12,7 +12,7 @@ import { SDKError } from "./sdk-error.js";
12
12
  */
13
13
  export type GetOauthUserinfoInternalServerErrorData = {
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 GetOauthUserinfoInternalServerErrorData = {
38
38
  */
39
39
  export class GetOauthUserinfoInternalServerError 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 GetOauthUserinfoInternalServerError extends SDKError {
80
80
  */
81
81
  export type GetOauthUserinfoUnauthorizedErrorData = {
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 GetOauthUserinfoUnauthorizedErrorData = {
106
106
  */
107
107
  export class GetOauthUserinfoUnauthorizedError 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
  /**
@@ -6,7 +6,7 @@ export * from "./default-error.js";
6
6
  export * from "./get-oauth-authorize.js";
7
7
  export * from "./get-oauth-userinfo.js";
8
8
  export * from "./http-client-errors.js";
9
- export * from "./post-oauth-authorize-callback.js";
9
+ export * from "./post-oauth-par.js";
10
10
  export * from "./post-oauth-revoke.js";
11
11
  export * from "./post-oauth-token.js";
12
12
  export * from "./problem-details-error.js";
@@ -0,0 +1,493 @@
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 * as types from "../../types/primitives.js";
8
+ import { SDKError } from "./sdk-error.js";
9
+
10
+ /**
11
+ * Response
12
+ */
13
+ export type PostOauthParServiceUnavailableErrorData = {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
16
+ */
17
+ error: string;
18
+ /**
19
+ * Human-readable error description
20
+ */
21
+ errorDescription?: string | undefined;
22
+ /**
23
+ * URI for more information
24
+ */
25
+ errorUri?: string | undefined;
26
+ /**
27
+ * Legacy 'rate_limited' message (deprecated — prefer error_description)
28
+ */
29
+ message?: string | undefined;
30
+ /**
31
+ * Seconds until retry (set on 429 responses)
32
+ */
33
+ retryAfter?: number | undefined;
34
+ };
35
+
36
+ /**
37
+ * Response
38
+ */
39
+ export class PostOauthParServiceUnavailableError extends SDKError {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
42
+ */
43
+ error: string;
44
+ /**
45
+ * Human-readable error description
46
+ */
47
+ errorDescription?: string | undefined;
48
+ /**
49
+ * URI for more information
50
+ */
51
+ errorUri?: string | undefined;
52
+ /**
53
+ * Seconds until retry (set on 429 responses)
54
+ */
55
+ retryAfter?: number | undefined;
56
+
57
+ /** The original data that was passed to this error instance. */
58
+ data$: PostOauthParServiceUnavailableErrorData;
59
+
60
+ constructor(
61
+ err: PostOauthParServiceUnavailableErrorData,
62
+ httpMeta: { response: Response; request: Request; body: string },
63
+ ) {
64
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
65
+ super(message, httpMeta);
66
+ this.data$ = err;
67
+ this.error = err.error;
68
+ if (err.errorDescription != null) {
69
+ this.errorDescription = err.errorDescription;
70
+ }
71
+ if (err.errorUri != null) this.errorUri = err.errorUri;
72
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
73
+
74
+ this.name = "PostOauthParServiceUnavailableError";
75
+ }
76
+ }
77
+
78
+ /**
79
+ * Response
80
+ */
81
+ export type PostOauthParInternalServerErrorData = {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
84
+ */
85
+ error: string;
86
+ /**
87
+ * Human-readable error description
88
+ */
89
+ errorDescription?: string | undefined;
90
+ /**
91
+ * URI for more information
92
+ */
93
+ errorUri?: string | undefined;
94
+ /**
95
+ * Legacy 'rate_limited' message (deprecated — prefer error_description)
96
+ */
97
+ message?: string | undefined;
98
+ /**
99
+ * Seconds until retry (set on 429 responses)
100
+ */
101
+ retryAfter?: number | undefined;
102
+ };
103
+
104
+ /**
105
+ * Response
106
+ */
107
+ export class PostOauthParInternalServerError extends SDKError {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
110
+ */
111
+ error: string;
112
+ /**
113
+ * Human-readable error description
114
+ */
115
+ errorDescription?: string | undefined;
116
+ /**
117
+ * URI for more information
118
+ */
119
+ errorUri?: string | undefined;
120
+ /**
121
+ * Seconds until retry (set on 429 responses)
122
+ */
123
+ retryAfter?: number | undefined;
124
+
125
+ /** The original data that was passed to this error instance. */
126
+ data$: PostOauthParInternalServerErrorData;
127
+
128
+ constructor(
129
+ err: PostOauthParInternalServerErrorData,
130
+ httpMeta: { response: Response; request: Request; body: string },
131
+ ) {
132
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
133
+ super(message, httpMeta);
134
+ this.data$ = err;
135
+ this.error = err.error;
136
+ if (err.errorDescription != null) {
137
+ this.errorDescription = err.errorDescription;
138
+ }
139
+ if (err.errorUri != null) this.errorUri = err.errorUri;
140
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
141
+
142
+ this.name = "PostOauthParInternalServerError";
143
+ }
144
+ }
145
+
146
+ /**
147
+ * Response
148
+ */
149
+ export type PostOauthParTooManyRequestsErrorData = {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
152
+ */
153
+ error: string;
154
+ /**
155
+ * Human-readable error description
156
+ */
157
+ errorDescription?: string | undefined;
158
+ /**
159
+ * URI for more information
160
+ */
161
+ errorUri?: string | undefined;
162
+ /**
163
+ * Legacy 'rate_limited' message (deprecated — prefer error_description)
164
+ */
165
+ message?: string | undefined;
166
+ /**
167
+ * Seconds until retry (set on 429 responses)
168
+ */
169
+ retryAfter?: number | undefined;
170
+ };
171
+
172
+ /**
173
+ * Response
174
+ */
175
+ export class PostOauthParTooManyRequestsError extends SDKError {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
178
+ */
179
+ error: string;
180
+ /**
181
+ * Human-readable error description
182
+ */
183
+ errorDescription?: string | undefined;
184
+ /**
185
+ * URI for more information
186
+ */
187
+ errorUri?: string | undefined;
188
+ /**
189
+ * Seconds until retry (set on 429 responses)
190
+ */
191
+ retryAfter?: number | undefined;
192
+
193
+ /** The original data that was passed to this error instance. */
194
+ data$: PostOauthParTooManyRequestsErrorData;
195
+
196
+ constructor(
197
+ err: PostOauthParTooManyRequestsErrorData,
198
+ httpMeta: { response: Response; request: Request; body: string },
199
+ ) {
200
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
201
+ super(message, httpMeta);
202
+ this.data$ = err;
203
+ this.error = err.error;
204
+ if (err.errorDescription != null) {
205
+ this.errorDescription = err.errorDescription;
206
+ }
207
+ if (err.errorUri != null) this.errorUri = err.errorUri;
208
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
209
+
210
+ this.name = "PostOauthParTooManyRequestsError";
211
+ }
212
+ }
213
+
214
+ /**
215
+ * Response
216
+ */
217
+ export type PostOauthParUnauthorizedErrorData = {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
220
+ */
221
+ error: string;
222
+ /**
223
+ * Human-readable error description
224
+ */
225
+ errorDescription?: string | undefined;
226
+ /**
227
+ * URI for more information
228
+ */
229
+ errorUri?: string | undefined;
230
+ /**
231
+ * Legacy 'rate_limited' message (deprecated — prefer error_description)
232
+ */
233
+ message?: string | undefined;
234
+ /**
235
+ * Seconds until retry (set on 429 responses)
236
+ */
237
+ retryAfter?: number | undefined;
238
+ };
239
+
240
+ /**
241
+ * Response
242
+ */
243
+ export class PostOauthParUnauthorizedError extends SDKError {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
246
+ */
247
+ error: string;
248
+ /**
249
+ * Human-readable error description
250
+ */
251
+ errorDescription?: string | undefined;
252
+ /**
253
+ * URI for more information
254
+ */
255
+ errorUri?: string | undefined;
256
+ /**
257
+ * Seconds until retry (set on 429 responses)
258
+ */
259
+ retryAfter?: number | undefined;
260
+
261
+ /** The original data that was passed to this error instance. */
262
+ data$: PostOauthParUnauthorizedErrorData;
263
+
264
+ constructor(
265
+ err: PostOauthParUnauthorizedErrorData,
266
+ httpMeta: { response: Response; request: Request; body: string },
267
+ ) {
268
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
269
+ super(message, httpMeta);
270
+ this.data$ = err;
271
+ this.error = err.error;
272
+ if (err.errorDescription != null) {
273
+ this.errorDescription = err.errorDescription;
274
+ }
275
+ if (err.errorUri != null) this.errorUri = err.errorUri;
276
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
277
+
278
+ this.name = "PostOauthParUnauthorizedError";
279
+ }
280
+ }
281
+
282
+ /**
283
+ * Response
284
+ */
285
+ export type PostOauthParBadRequestErrorData = {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
288
+ */
289
+ error: string;
290
+ /**
291
+ * Human-readable error description
292
+ */
293
+ errorDescription?: string | undefined;
294
+ /**
295
+ * URI for more information
296
+ */
297
+ errorUri?: string | undefined;
298
+ /**
299
+ * Legacy 'rate_limited' message (deprecated — prefer error_description)
300
+ */
301
+ message?: string | undefined;
302
+ /**
303
+ * Seconds until retry (set on 429 responses)
304
+ */
305
+ retryAfter?: number | undefined;
306
+ };
307
+
308
+ /**
309
+ * Response
310
+ */
311
+ export class PostOauthParBadRequestError extends SDKError {
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, invalid_request_uri, or "rate_limited" (Signum-wide rate-limit middleware)
314
+ */
315
+ error: string;
316
+ /**
317
+ * Human-readable error description
318
+ */
319
+ errorDescription?: string | undefined;
320
+ /**
321
+ * URI for more information
322
+ */
323
+ errorUri?: string | undefined;
324
+ /**
325
+ * Seconds until retry (set on 429 responses)
326
+ */
327
+ retryAfter?: number | undefined;
328
+
329
+ /** The original data that was passed to this error instance. */
330
+ data$: PostOauthParBadRequestErrorData;
331
+
332
+ constructor(
333
+ err: PostOauthParBadRequestErrorData,
334
+ httpMeta: { response: Response; request: Request; body: string },
335
+ ) {
336
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
337
+ super(message, httpMeta);
338
+ this.data$ = err;
339
+ this.error = err.error;
340
+ if (err.errorDescription != null) {
341
+ this.errorDescription = err.errorDescription;
342
+ }
343
+ if (err.errorUri != null) this.errorUri = err.errorUri;
344
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
345
+
346
+ this.name = "PostOauthParBadRequestError";
347
+ }
348
+ }
349
+
350
+ /** @internal */
351
+ export const PostOauthParServiceUnavailableError$inboundSchema: z.ZodMiniType<
352
+ PostOauthParServiceUnavailableError,
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 PostOauthParServiceUnavailableError(remapped, {
372
+ request: v.request$,
373
+ response: v.response$,
374
+ body: v.body$,
375
+ });
376
+ }),
377
+ );
378
+
379
+ /** @internal */
380
+ export const PostOauthParInternalServerError$inboundSchema: z.ZodMiniType<
381
+ PostOauthParInternalServerError,
382
+ unknown
383
+ > = z.pipe(
384
+ z.object({
385
+ error: types.string(),
386
+ error_description: types.optional(types.string()),
387
+ error_uri: types.optional(types.string()),
388
+ message: types.optional(types.string()),
389
+ retryAfter: types.optional(types.number()),
390
+ request$: z.custom<Request>(x => x instanceof Request),
391
+ response$: z.custom<Response>(x => x instanceof Response),
392
+ body$: z.string(),
393
+ }),
394
+ z.transform((v) => {
395
+ const remapped = remap$(v, {
396
+ "error_description": "errorDescription",
397
+ "error_uri": "errorUri",
398
+ });
399
+
400
+ return new PostOauthParInternalServerError(remapped, {
401
+ request: v.request$,
402
+ response: v.response$,
403
+ body: v.body$,
404
+ });
405
+ }),
406
+ );
407
+
408
+ /** @internal */
409
+ export const PostOauthParTooManyRequestsError$inboundSchema: z.ZodMiniType<
410
+ PostOauthParTooManyRequestsError,
411
+ unknown
412
+ > = z.pipe(
413
+ z.object({
414
+ error: types.string(),
415
+ error_description: types.optional(types.string()),
416
+ error_uri: types.optional(types.string()),
417
+ message: types.optional(types.string()),
418
+ retryAfter: types.optional(types.number()),
419
+ request$: z.custom<Request>(x => x instanceof Request),
420
+ response$: z.custom<Response>(x => x instanceof Response),
421
+ body$: z.string(),
422
+ }),
423
+ z.transform((v) => {
424
+ const remapped = remap$(v, {
425
+ "error_description": "errorDescription",
426
+ "error_uri": "errorUri",
427
+ });
428
+
429
+ return new PostOauthParTooManyRequestsError(remapped, {
430
+ request: v.request$,
431
+ response: v.response$,
432
+ body: v.body$,
433
+ });
434
+ }),
435
+ );
436
+
437
+ /** @internal */
438
+ export const PostOauthParUnauthorizedError$inboundSchema: z.ZodMiniType<
439
+ PostOauthParUnauthorizedError,
440
+ unknown
441
+ > = z.pipe(
442
+ z.object({
443
+ error: types.string(),
444
+ error_description: types.optional(types.string()),
445
+ error_uri: types.optional(types.string()),
446
+ message: types.optional(types.string()),
447
+ retryAfter: types.optional(types.number()),
448
+ request$: z.custom<Request>(x => x instanceof Request),
449
+ response$: z.custom<Response>(x => x instanceof Response),
450
+ body$: z.string(),
451
+ }),
452
+ z.transform((v) => {
453
+ const remapped = remap$(v, {
454
+ "error_description": "errorDescription",
455
+ "error_uri": "errorUri",
456
+ });
457
+
458
+ return new PostOauthParUnauthorizedError(remapped, {
459
+ request: v.request$,
460
+ response: v.response$,
461
+ body: v.body$,
462
+ });
463
+ }),
464
+ );
465
+
466
+ /** @internal */
467
+ export const PostOauthParBadRequestError$inboundSchema: z.ZodMiniType<
468
+ PostOauthParBadRequestError,
469
+ unknown
470
+ > = z.pipe(
471
+ z.object({
472
+ error: types.string(),
473
+ error_description: types.optional(types.string()),
474
+ error_uri: types.optional(types.string()),
475
+ message: types.optional(types.string()),
476
+ retryAfter: types.optional(types.number()),
477
+ request$: z.custom<Request>(x => x instanceof Request),
478
+ response$: z.custom<Response>(x => x instanceof Response),
479
+ body$: z.string(),
480
+ }),
481
+ z.transform((v) => {
482
+ const remapped = remap$(v, {
483
+ "error_description": "errorDescription",
484
+ "error_uri": "errorUri",
485
+ });
486
+
487
+ return new PostOauthParBadRequestError(remapped, {
488
+ request: v.request$,
489
+ response: v.response$,
490
+ body: v.body$,
491
+ });
492
+ }),
493
+ );