@clossir-tech/ts-sdk 0.9.2 → 0.9.3

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.
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0.0";
34
- readonly sdkVersion: "0.9.2";
34
+ readonly sdkVersion: "0.9.3";
35
35
  readonly genVersion: "2.916.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.9.2 2.916.4 2.0.0 @clossir-tech/ts-sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.9.3 2.916.4 2.0.0 @clossir-tech/ts-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "2.0.0",
34
- sdkVersion: "0.9.2",
34
+ sdkVersion: "0.9.3",
35
35
  genVersion: "2.916.4",
36
- userAgent: "speakeasy-sdk/typescript 0.9.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.9.3 2.916.4 2.0.0 @clossir-tech/ts-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -21,6 +21,10 @@ export type ProblemDetailsErrorData = {
21
21
  * URI reference identifying the specific occurrence
22
22
  */
23
23
  instance?: string | undefined;
24
+ /**
25
+ * Seconds to wait before retrying. Present on rate-limit (429) and account-lockout (423) responses.
26
+ */
27
+ retryAfter?: number | undefined;
24
28
  [additionalProperties: string]: unknown;
25
29
  };
26
30
  export declare class ProblemDetailsError extends SDKError {
@@ -44,6 +48,10 @@ export declare class ProblemDetailsError extends SDKError {
44
48
  * URI reference identifying the specific occurrence
45
49
  */
46
50
  instance?: string | undefined;
51
+ /**
52
+ * Seconds to wait before retrying. Present on rate-limit (429) and account-lockout (423) responses.
53
+ */
54
+ retryAfter?: number | undefined;
47
55
  /** The original data that was passed to this error instance. */
48
56
  data$: ProblemDetailsErrorData;
49
57
  constructor(err: ProblemDetailsErrorData, httpMeta: {
@@ -1 +1 @@
1
- {"version":3,"file":"problem-details-error.d.ts","sourceRoot":"","sources":["../../../src/models/errors/problem-details-error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,gEAAgE;IAChE,KAAK,EAAE,uBAAuB,CAAC;IAE/B,YACE,GAAG,EAAE,uBAAuB,EAC5B,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAcjE;CACF;AAED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AAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAejE;CACF;AAED,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,mBAAmB,EACnB,OAAO,CAoBR,CAAC"}
@@ -25,6 +25,10 @@ export class ProblemDetailsError extends SDKError {
25
25
  * URI reference identifying the specific occurrence
26
26
  */
27
27
  instance;
28
+ /**
29
+ * Seconds to wait before retrying. Present on rate-limit (429) and account-lockout (423) responses.
30
+ */
31
+ retryAfter;
28
32
  /** The original data that was passed to this error instance. */
29
33
  data$;
30
34
  constructor(err, httpMeta) {
@@ -41,6 +45,8 @@ export class ProblemDetailsError extends SDKError {
41
45
  this.detail = err.detail;
42
46
  if (err.instance != null)
43
47
  this.instance = err.instance;
48
+ if (err.retryAfter != null)
49
+ this.retryAfter = err.retryAfter;
44
50
  this.name = "ProblemDetailsError";
45
51
  }
46
52
  }
@@ -51,6 +57,7 @@ export const ProblemDetailsError$inboundSchema = z.pipe(z.object({
51
57
  status: types.number(),
52
58
  detail: types.optional(types.string()),
53
59
  instance: types.optional(types.string()),
60
+ retryAfter: types.optional(types.number()),
54
61
  request$: z.custom(x => x instanceof Request),
55
62
  response$: z.custom(x => x instanceof Response),
56
63
  body$: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"problem-details-error.js","sourceRoot":"","sources":["../../../src/models/errors/problem-details-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA2B1C,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C;;OAEG;IACH,IAAI,CAAsB;IAC1B;;OAEG;IACH,KAAK,CAAS;IACd;;OAEG;IACH,MAAM,CAAS;IACf;;OAEG;IACH,MAAM,CAAsB;IAC5B;;OAEG;IACH,QAAQ,CAAsB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CAAC,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAW,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,QAAQ,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAI,mBAAmB,CAAC,CAAC,EAAE;QAChC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"problem-details-error.js","sourceRoot":"","sources":["../../../src/models/errors/problem-details-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA+B1C,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C;;OAEG;IACH,IAAI,CAAsB;IAC1B;;OAEG;IACH,KAAK,CAAS;IACd;;OAEG;IACH,MAAM,CAAS;IACf;;OAEG;IACH,MAAM,CAAsB;IAC5B;;OAEG;IACH,QAAQ,CAAsB;IAC9B;;OAEG;IACH,UAAU,CAAsB;IAEhC,gEAAgE;IAChE,KAAK,CAA0B;IAE/B,YACE,GAA4B,EAC5B,QAAgE,EAChE;QACA,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,SAAS,CAAC,KAAK,QAAQ;YACpE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;YAChB,CAAC,CAAC,uBAAuB,IAAI,CAA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CAAC,EAAE,CAAC,CAAC,YAAY,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAW,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,QAAQ,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAI,mBAAmB,CAAC,CAAC,EAAE;QAChC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@clossir-tech/ts-sdk",
5
- "version": "0.9.2",
5
+ "version": "0.9.3",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clossir-tech/ts-sdk",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "author": "Clossir Team",
5
5
  "description": "TypeScript SDK for the Clossir platform API",
6
6
  "homepage": "https://docs.clossir.com",
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.9.2",
68
+ sdkVersion: "0.9.3",
69
69
  genVersion: "2.916.4",
70
70
  userAgent:
71
- "speakeasy-sdk/typescript 0.9.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
71
+ "speakeasy-sdk/typescript 0.9.3 2.916.4 2.0.0 @clossir-tech/ts-sdk",
72
72
  } as const;
@@ -27,6 +27,10 @@ export type ProblemDetailsErrorData = {
27
27
  * URI reference identifying the specific occurrence
28
28
  */
29
29
  instance?: string | undefined;
30
+ /**
31
+ * Seconds to wait before retrying. Present on rate-limit (429) and account-lockout (423) responses.
32
+ */
33
+ retryAfter?: number | undefined;
30
34
 
31
35
  [additionalProperties: string]: unknown;
32
36
  };
@@ -52,6 +56,10 @@ export class ProblemDetailsError extends SDKError {
52
56
  * URI reference identifying the specific occurrence
53
57
  */
54
58
  instance?: string | undefined;
59
+ /**
60
+ * Seconds to wait before retrying. Present on rate-limit (429) and account-lockout (423) responses.
61
+ */
62
+ retryAfter?: number | undefined;
55
63
 
56
64
  /** The original data that was passed to this error instance. */
57
65
  data$: ProblemDetailsErrorData;
@@ -70,6 +78,7 @@ export class ProblemDetailsError extends SDKError {
70
78
  this.status = err.status;
71
79
  if (err.detail != null) this.detail = err.detail;
72
80
  if (err.instance != null) this.instance = err.instance;
81
+ if (err.retryAfter != null) this.retryAfter = err.retryAfter;
73
82
 
74
83
  this.name = "ProblemDetailsError";
75
84
  }
@@ -86,6 +95,7 @@ export const ProblemDetailsError$inboundSchema: z.ZodMiniType<
86
95
  status: types.number(),
87
96
  detail: types.optional(types.string()),
88
97
  instance: types.optional(types.string()),
98
+ retryAfter: types.optional(types.number()),
89
99
  request$: z.custom<Request>(x => x instanceof Request),
90
100
  response$: z.custom<Response>(x => x instanceof Response),
91
101
  body$: z.string(),