@polar-sh/sdk 0.46.5 → 0.46.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 (73) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/checkout.d.ts +0 -5
  4. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/checkout.js +0 -4
  6. package/dist/commonjs/models/components/checkout.js.map +1 -1
  7. package/dist/commonjs/models/components/checkoutpublic.d.ts +0 -4
  8. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/checkoutpublic.js +0 -2
  10. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  11. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +0 -4
  12. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +0 -2
  14. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  15. package/dist/commonjs/models/components/organization.d.ts +1 -1
  16. package/dist/commonjs/models/components/organizationdetails.d.ts +26 -6
  17. package/dist/commonjs/models/components/organizationdetails.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/organizationdetails.js +8 -4
  19. package/dist/commonjs/models/components/organizationdetails.js.map +1 -1
  20. package/dist/commonjs/models/components/productpriceseattiersinput.d.ts +3 -0
  21. package/dist/commonjs/models/components/productpriceseattiersinput.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/productpriceseattiersinput.js +9 -2
  23. package/dist/commonjs/models/components/productpriceseattiersinput.js.map +1 -1
  24. package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts +3 -0
  25. package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/productpriceseattiersoutput.js +5 -0
  27. package/dist/commonjs/models/components/productpriceseattiersoutput.js.map +1 -1
  28. package/dist/commonjs/models/components/seattiertype.d.ts +12 -0
  29. package/dist/commonjs/models/components/seattiertype.d.ts.map +1 -0
  30. package/dist/commonjs/models/components/seattiertype.js +49 -0
  31. package/dist/commonjs/models/components/seattiertype.js.map +1 -0
  32. package/dist/esm/lib/config.d.ts +2 -2
  33. package/dist/esm/lib/config.js +2 -2
  34. package/dist/esm/models/components/checkout.d.ts +0 -5
  35. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  36. package/dist/esm/models/components/checkout.js +0 -4
  37. package/dist/esm/models/components/checkout.js.map +1 -1
  38. package/dist/esm/models/components/checkoutpublic.d.ts +0 -4
  39. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  40. package/dist/esm/models/components/checkoutpublic.js +0 -2
  41. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  42. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +0 -4
  43. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  44. package/dist/esm/models/components/checkoutpublicconfirmed.js +0 -2
  45. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  46. package/dist/esm/models/components/organization.d.ts +1 -1
  47. package/dist/esm/models/components/organizationdetails.d.ts +26 -6
  48. package/dist/esm/models/components/organizationdetails.d.ts.map +1 -1
  49. package/dist/esm/models/components/organizationdetails.js +8 -4
  50. package/dist/esm/models/components/organizationdetails.js.map +1 -1
  51. package/dist/esm/models/components/productpriceseattiersinput.d.ts +3 -0
  52. package/dist/esm/models/components/productpriceseattiersinput.d.ts.map +1 -1
  53. package/dist/esm/models/components/productpriceseattiersinput.js +9 -2
  54. package/dist/esm/models/components/productpriceseattiersinput.js.map +1 -1
  55. package/dist/esm/models/components/productpriceseattiersoutput.d.ts +3 -0
  56. package/dist/esm/models/components/productpriceseattiersoutput.d.ts.map +1 -1
  57. package/dist/esm/models/components/productpriceseattiersoutput.js +5 -0
  58. package/dist/esm/models/components/productpriceseattiersoutput.js.map +1 -1
  59. package/dist/esm/models/components/seattiertype.d.ts +12 -0
  60. package/dist/esm/models/components/seattiertype.d.ts.map +1 -0
  61. package/dist/esm/models/components/seattiertype.js +13 -0
  62. package/dist/esm/models/components/seattiertype.js.map +1 -0
  63. package/jsr.json +1 -1
  64. package/package.json +1 -1
  65. package/src/lib/config.ts +2 -2
  66. package/src/models/components/checkout.ts +0 -9
  67. package/src/models/components/checkoutpublic.ts +0 -6
  68. package/src/models/components/checkoutpublicconfirmed.ts +0 -6
  69. package/src/models/components/organization.ts +1 -1
  70. package/src/models/components/organizationdetails.ts +34 -10
  71. package/src/models/components/productpriceseattiersinput.ts +15 -3
  72. package/src/models/components/productpriceseattiersoutput.ts +11 -0
  73. package/src/models/components/seattiertype.ts +20 -0
@@ -1 +1 @@
1
- {"version":3,"file":"organizationdetails.js","sourceRoot":"","sources":["../../../../src/models/components/organizationdetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAsCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GACvC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAcxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACpD,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC;IACxC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;IACnE,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;CAC9C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,qBAAqB;QACzC,WAAW,EAAE,cAAc;QAC3B,mBAAmB,EAAE,sBAAsB;QAC3C,mBAAmB,EAAE,uBAAuB;QAC5C,aAAa,EAAE,gBAAgB;QAC/B,qBAAqB,EAAE,yBAAyB;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"organizationdetails.js","sourceRoot":"","sources":["../../../../src/models/components/organizationdetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAwDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GACvC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAgBxB,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtD,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACpD,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;IACzC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;IACnE,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;CACvD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,oBAAoB;QACvC,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,cAAc;QAC3B,mBAAmB,EAAE,sBAAsB;QAC3C,mBAAmB,EAAE,uBAAuB;QAC5C,aAAa,EAAE,gBAAgB;QAC/B,qBAAqB,EAAE,yBAAyB;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { ProductPriceSeatTier, ProductPriceSeatTier$Outbound } from "./productpriceseattier.js";
3
+ import { SeatTierType } from "./seattiertype.js";
3
4
  /**
4
5
  * List of pricing tiers for seat-based pricing.
5
6
  *
@@ -10,6 +11,7 @@ import { ProductPriceSeatTier, ProductPriceSeatTier$Outbound } from "./productpr
10
11
  * - maximum_seats = last tier's max_seats (None for unlimited)
11
12
  */
12
13
  export type ProductPriceSeatTiersInput = {
14
+ seatTierType?: SeatTierType | undefined;
13
15
  /**
14
16
  * List of pricing tiers
15
17
  */
@@ -17,6 +19,7 @@ export type ProductPriceSeatTiersInput = {
17
19
  };
18
20
  /** @internal */
19
21
  export type ProductPriceSeatTiersInput$Outbound = {
22
+ seat_tier_type?: string | undefined;
20
23
  tiers: Array<ProductPriceSeatTier$Outbound>;
21
24
  };
22
25
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceseattiersinput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,mCAAmC,EACnC,0BAA0B,CAG1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR"}
1
+ {"version":3,"file":"productpriceseattiersinput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAA+B,MAAM,mBAAmB,CAAC;AAE9E;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,mCAAmC,EACnC,0BAA0B,CAW3B,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR"}
@@ -2,11 +2,18 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
5
6
  import { ProductPriceSeatTier$outboundSchema, } from "./productpriceseattier.js";
7
+ import { SeatTierType$outboundSchema } from "./seattiertype.js";
6
8
  /** @internal */
7
- export const ProductPriceSeatTiersInput$outboundSchema = z.object({
9
+ export const ProductPriceSeatTiersInput$outboundSchema = z.pipe(z.object({
10
+ seatTierType: z.optional(SeatTierType$outboundSchema),
8
11
  tiers: z.array(ProductPriceSeatTier$outboundSchema),
9
- });
12
+ }), z.transform((v) => {
13
+ return remap$(v, {
14
+ seatTierType: "seat_tier_type",
15
+ });
16
+ }));
10
17
  export function productPriceSeatTiersInputToJSON(productPriceSeatTiersInput) {
11
18
  return JSON.stringify(ProductPriceSeatTiersInput$outboundSchema.parse(productPriceSeatTiersInput));
12
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceseattiersinput.js","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersinput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AAuBnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"productpriceseattiersinput.js","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersinput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAGL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAgB,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAyB9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;CACpD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
@@ -2,6 +2,7 @@ import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { ProductPriceSeatTier, ProductPriceSeatTier$Outbound } from "./productpriceseattier.js";
5
+ import { SeatTierType } from "./seattiertype.js";
5
6
  /**
6
7
  * List of pricing tiers for seat-based pricing.
7
8
  *
@@ -12,6 +13,7 @@ import { ProductPriceSeatTier, ProductPriceSeatTier$Outbound } from "./productpr
12
13
  * - maximum_seats = last tier's max_seats (None for unlimited)
13
14
  */
14
15
  export type ProductPriceSeatTiersOutput = {
16
+ seatTierType?: SeatTierType | undefined;
15
17
  /**
16
18
  * List of pricing tiers
17
19
  */
@@ -29,6 +31,7 @@ export type ProductPriceSeatTiersOutput = {
29
31
  export declare const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<ProductPriceSeatTiersOutput, unknown>;
30
32
  /** @internal */
31
33
  export type ProductPriceSeatTiersOutput$Outbound = {
34
+ seat_tier_type?: string | undefined;
32
35
  tiers: Array<ProductPriceSeatTier$Outbound>;
33
36
  minimum_seats: number;
34
37
  maximum_seats: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceseattiersoutput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;GAQG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,2BAA2B,EAC3B,OAAO,CAaR,CAAC;AACF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,oCAAoC,EACpC,2BAA2B,CAa5B,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"productpriceseattiersoutput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,2BAA2B,EAC3B,OAAO,CAeR,CAAC;AACF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,oCAAoC,EACpC,2BAA2B,CAe5B,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -5,24 +5,29 @@ import * as z from "zod/v4-mini";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ProductPriceSeatTier$inboundSchema, ProductPriceSeatTier$outboundSchema, } from "./productpriceseattier.js";
8
+ import { SeatTierType$inboundSchema, SeatTierType$outboundSchema, } from "./seattiertype.js";
8
9
  /** @internal */
9
10
  export const ProductPriceSeatTiersOutput$inboundSchema = z.pipe(z.object({
11
+ seat_tier_type: z.optional(SeatTierType$inboundSchema),
10
12
  tiers: z.array(ProductPriceSeatTier$inboundSchema),
11
13
  minimum_seats: z.int(),
12
14
  maximum_seats: z.nullable(z.int()),
13
15
  }), z.transform((v) => {
14
16
  return remap$(v, {
17
+ "seat_tier_type": "seatTierType",
15
18
  "minimum_seats": "minimumSeats",
16
19
  "maximum_seats": "maximumSeats",
17
20
  });
18
21
  }));
19
22
  /** @internal */
20
23
  export const ProductPriceSeatTiersOutput$outboundSchema = z.pipe(z.object({
24
+ seatTierType: z.optional(SeatTierType$outboundSchema),
21
25
  tiers: z.array(ProductPriceSeatTier$outboundSchema),
22
26
  minimumSeats: z.int(),
23
27
  maximumSeats: z.nullable(z.int()),
24
28
  }), z.transform((v) => {
25
29
  return remap$(v, {
30
+ seatTierType: "seat_tier_type",
26
31
  minimumSeats: "minimum_seats",
27
32
  maximumSeats: "maximum_seats",
28
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceseattiersoutput.js","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersoutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AA0BnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,GAAG,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACnC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAQF,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;IACnD,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAClC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;QAC7B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"productpriceseattiersoutput.js","sourceRoot":"","sources":["../../../../src/models/components/productpriceseattiersoutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AA2B3B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,GAAG,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACnC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;QAChC,eAAe,EAAE,cAAc;QAC/B,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AASF,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;IACnD,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAClC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;QAC9B,YAAY,EAAE,eAAe;QAC7B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ export declare const SeatTierType: {
4
+ readonly Volume: "volume";
5
+ readonly Graduated: "graduated";
6
+ };
7
+ export type SeatTierType = OpenEnum<typeof SeatTierType>;
8
+ /** @internal */
9
+ export declare const SeatTierType$inboundSchema: z.ZodMiniType<SeatTierType, unknown>;
10
+ /** @internal */
11
+ export declare const SeatTierType$outboundSchema: z.ZodMiniType<string, SeatTierType>;
12
+ //# sourceMappingURL=seattiertype.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seattiertype.d.ts","sourceRoot":"","sources":["../../../../src/models/components/seattiertype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,EAAE,OAAO,CACrC,CAAC;AACxC,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,YAAY,CACpC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as openEnums from "../../types/enums.js";
5
+ export const SeatTierType = {
6
+ Volume: "volume",
7
+ Graduated: "graduated",
8
+ };
9
+ /** @internal */
10
+ export const SeatTierType$inboundSchema = openEnums.inboundSchema(SeatTierType);
11
+ /** @internal */
12
+ export const SeatTierType$outboundSchema = openEnums.outboundSchema(SeatTierType);
13
+ //# sourceMappingURL=seattiertype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seattiertype.js","sourceRoot":"","sources":["../../../../src/models/components/seattiertype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACd,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GACrC,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AACxC,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GACtC,SAAS,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@polar-sh/sdk",
5
- "version": "0.46.5",
5
+ "version": "0.46.6",
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": "@polar-sh/sdk",
3
- "version": "0.46.5",
3
+ "version": "0.46.6",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "tshy": {
package/src/lib/config.ts CHANGED
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "0.1.0",
67
- sdkVersion: "0.46.5",
67
+ sdkVersion: "0.46.6",
68
68
  genVersion: "2.866.2",
69
- userAgent: "speakeasy-sdk/typescript 0.46.5 2.866.2 0.1.0 @polar-sh/sdk",
69
+ userAgent: "speakeasy-sdk/typescript 0.46.6 2.866.2 0.1.0 @polar-sh/sdk",
70
70
  } as const;
@@ -168,10 +168,6 @@ export type Checkout = {
168
168
  * Maximum number of seats (works with seat-based pricing only)
169
169
  */
170
170
  maxSeats?: number | null | undefined;
171
- /**
172
- * Price per seat in cents for the current seat count, based on the applicable tier. Only relevant for seat-based pricing.
173
- */
174
- pricePerSeat?: number | null | undefined;
175
171
  /**
176
172
  * Discount amount in cents.
177
173
  */
@@ -555,7 +551,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
555
551
  seats: z.optional(z.nullable(z.int())),
556
552
  min_seats: z.optional(z.nullable(z.int())),
557
553
  max_seats: z.optional(z.nullable(z.int())),
558
- price_per_seat: z.optional(z.nullable(z.int())),
559
554
  discount_amount: z.int(),
560
555
  net_amount: z.int(),
561
556
  tax_amount: z.nullable(z.int()),
@@ -642,7 +637,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
642
637
  "embed_origin": "embedOrigin",
643
638
  "min_seats": "minSeats",
644
639
  "max_seats": "maxSeats",
645
- "price_per_seat": "pricePerSeat",
646
640
  "discount_amount": "discountAmount",
647
641
  "net_amount": "netAmount",
648
642
  "tax_amount": "taxAmount",
@@ -702,7 +696,6 @@ export type Checkout$Outbound = {
702
696
  seats?: number | null | undefined;
703
697
  min_seats?: number | null | undefined;
704
698
  max_seats?: number | null | undefined;
705
- price_per_seat?: number | null | undefined;
706
699
  discount_amount: number;
707
700
  net_amount: number;
708
701
  tax_amount: number | null;
@@ -794,7 +787,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
794
787
  seats: z.optional(z.nullable(z.int())),
795
788
  minSeats: z.optional(z.nullable(z.int())),
796
789
  maxSeats: z.optional(z.nullable(z.int())),
797
- pricePerSeat: z.optional(z.nullable(z.int())),
798
790
  discountAmount: z.int(),
799
791
  netAmount: z.int(),
800
792
  taxAmount: z.nullable(z.int()),
@@ -879,7 +871,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
879
871
  embedOrigin: "embed_origin",
880
872
  minSeats: "min_seats",
881
873
  maxSeats: "max_seats",
882
- pricePerSeat: "price_per_seat",
883
874
  discountAmount: "discount_amount",
884
875
  netAmount: "net_amount",
885
876
  taxAmount: "tax_amount",
@@ -134,10 +134,6 @@ export type CheckoutPublic = {
134
134
  * Maximum number of seats (works with seat-based pricing only)
135
135
  */
136
136
  maxSeats?: number | null | undefined;
137
- /**
138
- * Price per seat in cents for the current seat count, based on the applicable tier. Only relevant for seat-based pricing.
139
- */
140
- pricePerSeat?: number | null | undefined;
141
137
  /**
142
138
  * Discount amount in cents.
143
139
  */
@@ -395,7 +391,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
395
391
  seats: z.optional(z.nullable(z.int())),
396
392
  min_seats: z.optional(z.nullable(z.int())),
397
393
  max_seats: z.optional(z.nullable(z.int())),
398
- price_per_seat: z.optional(z.nullable(z.int())),
399
394
  discount_amount: z.int(),
400
395
  net_amount: z.int(),
401
396
  tax_amount: z.nullable(z.int()),
@@ -474,7 +469,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
474
469
  "embed_origin": "embedOrigin",
475
470
  "min_seats": "minSeats",
476
471
  "max_seats": "maxSeats",
477
- "price_per_seat": "pricePerSeat",
478
472
  "discount_amount": "discountAmount",
479
473
  "net_amount": "netAmount",
480
474
  "tax_amount": "taxAmount",
@@ -141,10 +141,6 @@ export type CheckoutPublicConfirmed = {
141
141
  * Maximum number of seats (works with seat-based pricing only)
142
142
  */
143
143
  maxSeats?: number | null | undefined;
144
- /**
145
- * Price per seat in cents for the current seat count, based on the applicable tier. Only relevant for seat-based pricing.
146
- */
147
- pricePerSeat?: number | null | undefined;
148
144
  /**
149
145
  * Discount amount in cents.
150
146
  */
@@ -403,7 +399,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
403
399
  seats: z.optional(z.nullable(z.int())),
404
400
  min_seats: z.optional(z.nullable(z.int())),
405
401
  max_seats: z.optional(z.nullable(z.int())),
406
- price_per_seat: z.optional(z.nullable(z.int())),
407
402
  discount_amount: z.int(),
408
403
  net_amount: z.int(),
409
404
  tax_amount: z.nullable(z.int()),
@@ -483,7 +478,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
483
478
  "embed_origin": "embedOrigin",
484
479
  "min_seats": "minSeats",
485
480
  "max_seats": "maxSeats",
486
- "price_per_seat": "pricePerSeat",
487
481
  "discount_amount": "discountAmount",
488
482
  "net_amount": "netAmount",
489
483
  "tax_amount": "taxAmount",
@@ -353,7 +353,7 @@ export type Organization = {
353
353
  socials: Array<OrganizationSocialLink>;
354
354
  status: OrganizationStatus;
355
355
  /**
356
- * When the business details were submitted.
356
+ * When the business details were submitted for review.
357
357
  */
358
358
  detailsSubmittedAt: Date | null;
359
359
  /**
@@ -18,24 +18,40 @@ export type SwitchingFrom = ClosedEnum<typeof SwitchingFrom>;
18
18
  export type OrganizationDetails = {
19
19
  /**
20
20
  * Brief information about you and your business.
21
+ *
22
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
21
23
  */
22
24
  about?: string | null | undefined;
23
25
  /**
24
26
  * Description of digital products being sold.
25
27
  */
26
- productDescription: string;
28
+ productDescription?: string | null | undefined;
29
+ /**
30
+ * Categories of products being sold.
31
+ */
32
+ sellingCategories?: Array<string> | undefined;
33
+ /**
34
+ * Pricing models used by the organization.
35
+ */
36
+ pricingModels?: Array<string> | undefined;
27
37
  /**
28
38
  * How the organization will integrate and use Polar.
39
+ *
40
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
29
41
  */
30
42
  intendedUse?: string | null | undefined;
31
43
  /**
32
44
  * Main customer acquisition channels.
45
+ *
46
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
33
47
  */
34
48
  customerAcquisition?: Array<string> | undefined;
35
49
  /**
36
50
  * Estimated revenue in the next 12 months
51
+ *
52
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
37
53
  */
38
- futureAnnualRevenue?: number | undefined;
54
+ futureAnnualRevenue?: number | null | undefined;
39
55
  /**
40
56
  * Switching from another platform?
41
57
  */
@@ -46,8 +62,10 @@ export type OrganizationDetails = {
46
62
  switchingFrom?: SwitchingFrom | null | undefined;
47
63
  /**
48
64
  * Revenue from last year if applicable.
65
+ *
66
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
49
67
  */
50
- previousAnnualRevenue?: number | undefined;
68
+ previousAnnualRevenue?: number | null | undefined;
51
69
  };
52
70
 
53
71
  /** @internal */
@@ -57,13 +75,15 @@ export const SwitchingFrom$outboundSchema: z.ZodMiniEnum<typeof SwitchingFrom> =
57
75
  /** @internal */
58
76
  export type OrganizationDetails$Outbound = {
59
77
  about?: string | null | undefined;
60
- product_description: string;
78
+ product_description?: string | null | undefined;
79
+ selling_categories?: Array<string> | undefined;
80
+ pricing_models?: Array<string> | undefined;
61
81
  intended_use?: string | null | undefined;
62
82
  customer_acquisition?: Array<string> | undefined;
63
- future_annual_revenue: number;
83
+ future_annual_revenue?: number | null | undefined;
64
84
  switching: boolean;
65
85
  switching_from?: string | null | undefined;
66
- previous_annual_revenue: number;
86
+ previous_annual_revenue?: number | null | undefined;
67
87
  };
68
88
 
69
89
  /** @internal */
@@ -73,17 +93,21 @@ export const OrganizationDetails$outboundSchema: z.ZodMiniType<
73
93
  > = z.pipe(
74
94
  z.object({
75
95
  about: z.optional(z.nullable(z.string())),
76
- productDescription: z.string(),
96
+ productDescription: z.optional(z.nullable(z.string())),
97
+ sellingCategories: z.optional(z.array(z.string())),
98
+ pricingModels: z.optional(z.array(z.string())),
77
99
  intendedUse: z.optional(z.nullable(z.string())),
78
100
  customerAcquisition: z.optional(z.array(z.string())),
79
- futureAnnualRevenue: z._default(z.int(), 0),
80
- switching: z._default(z.boolean(), true),
101
+ futureAnnualRevenue: z.optional(z.nullable(z.int())),
102
+ switching: z._default(z.boolean(), false),
81
103
  switchingFrom: z.optional(z.nullable(SwitchingFrom$outboundSchema)),
82
- previousAnnualRevenue: z._default(z.int(), 0),
104
+ previousAnnualRevenue: z.optional(z.nullable(z.int())),
83
105
  }),
84
106
  z.transform((v) => {
85
107
  return remap$(v, {
86
108
  productDescription: "product_description",
109
+ sellingCategories: "selling_categories",
110
+ pricingModels: "pricing_models",
87
111
  intendedUse: "intended_use",
88
112
  customerAcquisition: "customer_acquisition",
89
113
  futureAnnualRevenue: "future_annual_revenue",
@@ -3,11 +3,13 @@
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 {
7
8
  ProductPriceSeatTier,
8
9
  ProductPriceSeatTier$Outbound,
9
10
  ProductPriceSeatTier$outboundSchema,
10
11
  } from "./productpriceseattier.js";
12
+ import { SeatTierType, SeatTierType$outboundSchema } from "./seattiertype.js";
11
13
 
12
14
  /**
13
15
  * List of pricing tiers for seat-based pricing.
@@ -19,6 +21,7 @@ import {
19
21
  * - maximum_seats = last tier's max_seats (None for unlimited)
20
22
  */
21
23
  export type ProductPriceSeatTiersInput = {
24
+ seatTierType?: SeatTierType | undefined;
22
25
  /**
23
26
  * List of pricing tiers
24
27
  */
@@ -27,6 +30,7 @@ export type ProductPriceSeatTiersInput = {
27
30
 
28
31
  /** @internal */
29
32
  export type ProductPriceSeatTiersInput$Outbound = {
33
+ seat_tier_type?: string | undefined;
30
34
  tiers: Array<ProductPriceSeatTier$Outbound>;
31
35
  };
32
36
 
@@ -34,9 +38,17 @@ export type ProductPriceSeatTiersInput$Outbound = {
34
38
  export const ProductPriceSeatTiersInput$outboundSchema: z.ZodMiniType<
35
39
  ProductPriceSeatTiersInput$Outbound,
36
40
  ProductPriceSeatTiersInput
37
- > = z.object({
38
- tiers: z.array(ProductPriceSeatTier$outboundSchema),
39
- });
41
+ > = z.pipe(
42
+ z.object({
43
+ seatTierType: z.optional(SeatTierType$outboundSchema),
44
+ tiers: z.array(ProductPriceSeatTier$outboundSchema),
45
+ }),
46
+ z.transform((v) => {
47
+ return remap$(v, {
48
+ seatTierType: "seat_tier_type",
49
+ });
50
+ }),
51
+ );
40
52
 
41
53
  export function productPriceSeatTiersInputToJSON(
42
54
  productPriceSeatTiersInput: ProductPriceSeatTiersInput,
@@ -13,6 +13,11 @@ import {
13
13
  ProductPriceSeatTier$Outbound,
14
14
  ProductPriceSeatTier$outboundSchema,
15
15
  } from "./productpriceseattier.js";
16
+ import {
17
+ SeatTierType,
18
+ SeatTierType$inboundSchema,
19
+ SeatTierType$outboundSchema,
20
+ } from "./seattiertype.js";
16
21
 
17
22
  /**
18
23
  * List of pricing tiers for seat-based pricing.
@@ -24,6 +29,7 @@ import {
24
29
  * - maximum_seats = last tier's max_seats (None for unlimited)
25
30
  */
26
31
  export type ProductPriceSeatTiersOutput = {
32
+ seatTierType?: SeatTierType | undefined;
27
33
  /**
28
34
  * List of pricing tiers
29
35
  */
@@ -44,12 +50,14 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
44
50
  unknown
45
51
  > = z.pipe(
46
52
  z.object({
53
+ seat_tier_type: z.optional(SeatTierType$inboundSchema),
47
54
  tiers: z.array(ProductPriceSeatTier$inboundSchema),
48
55
  minimum_seats: z.int(),
49
56
  maximum_seats: z.nullable(z.int()),
50
57
  }),
51
58
  z.transform((v) => {
52
59
  return remap$(v, {
60
+ "seat_tier_type": "seatTierType",
53
61
  "minimum_seats": "minimumSeats",
54
62
  "maximum_seats": "maximumSeats",
55
63
  });
@@ -57,6 +65,7 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
57
65
  );
58
66
  /** @internal */
59
67
  export type ProductPriceSeatTiersOutput$Outbound = {
68
+ seat_tier_type?: string | undefined;
60
69
  tiers: Array<ProductPriceSeatTier$Outbound>;
61
70
  minimum_seats: number;
62
71
  maximum_seats: number | null;
@@ -68,12 +77,14 @@ export const ProductPriceSeatTiersOutput$outboundSchema: z.ZodMiniType<
68
77
  ProductPriceSeatTiersOutput
69
78
  > = z.pipe(
70
79
  z.object({
80
+ seatTierType: z.optional(SeatTierType$outboundSchema),
71
81
  tiers: z.array(ProductPriceSeatTier$outboundSchema),
72
82
  minimumSeats: z.int(),
73
83
  maximumSeats: z.nullable(z.int()),
74
84
  }),
75
85
  z.transform((v) => {
76
86
  return remap$(v, {
87
+ seatTierType: "seat_tier_type",
77
88
  minimumSeats: "minimum_seats",
78
89
  maximumSeats: "maximum_seats",
79
90
  });
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const SeatTierType = {
10
+ Volume: "volume",
11
+ Graduated: "graduated",
12
+ } as const;
13
+ export type SeatTierType = OpenEnum<typeof SeatTierType>;
14
+
15
+ /** @internal */
16
+ export const SeatTierType$inboundSchema: z.ZodMiniType<SeatTierType, unknown> =
17
+ openEnums.inboundSchema(SeatTierType);
18
+ /** @internal */
19
+ export const SeatTierType$outboundSchema: z.ZodMiniType<string, SeatTierType> =
20
+ openEnums.outboundSchema(SeatTierType);