@polar-sh/sdk 0.8.1 → 0.9.0

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 (204) hide show
  1. package/README.md +7 -6
  2. package/docs/sdks/products/README.md +2 -2
  3. package/funcs/advertisementsList.js +2 -2
  4. package/funcs/advertisementsList.js.map +1 -1
  5. package/funcs/articlesList.js +2 -2
  6. package/funcs/articlesList.js.map +1 -1
  7. package/funcs/benefitsGrants.js +2 -2
  8. package/funcs/benefitsGrants.js.map +1 -1
  9. package/funcs/benefitsList.js +2 -2
  10. package/funcs/benefitsList.js.map +1 -1
  11. package/funcs/externalOrganizationsList.js +2 -2
  12. package/funcs/externalOrganizationsList.js.map +1 -1
  13. package/funcs/filesList.js +2 -2
  14. package/funcs/filesList.js.map +1 -1
  15. package/funcs/licenseKeysList.js +2 -2
  16. package/funcs/licenseKeysList.js.map +1 -1
  17. package/funcs/oauth2ClientsList.js +2 -2
  18. package/funcs/oauth2ClientsList.js.map +1 -1
  19. package/funcs/ordersList.js +2 -2
  20. package/funcs/ordersList.js.map +1 -1
  21. package/funcs/organizationsList.js +2 -2
  22. package/funcs/organizationsList.js.map +1 -1
  23. package/funcs/productsList.js +2 -2
  24. package/funcs/productsList.js.map +1 -1
  25. package/funcs/repositoriesList.js +2 -2
  26. package/funcs/repositoriesList.js.map +1 -1
  27. package/funcs/subscriptionsList.js +2 -2
  28. package/funcs/subscriptionsList.js.map +1 -1
  29. package/funcs/usersAdvertisementsList.js +2 -2
  30. package/funcs/usersAdvertisementsList.js.map +1 -1
  31. package/funcs/usersBenefitsList.js +2 -2
  32. package/funcs/usersBenefitsList.js.map +1 -1
  33. package/funcs/usersDownloadablesList.js +2 -2
  34. package/funcs/usersDownloadablesList.js.map +1 -1
  35. package/funcs/usersLicenseKeysList.js +2 -2
  36. package/funcs/usersLicenseKeysList.js.map +1 -1
  37. package/funcs/usersOrdersList.js +2 -2
  38. package/funcs/usersOrdersList.js.map +1 -1
  39. package/funcs/usersSubscriptionsList.js +2 -2
  40. package/funcs/usersSubscriptionsList.js.map +1 -1
  41. package/lib/config.d.ts +16 -5
  42. package/lib/config.d.ts.map +1 -1
  43. package/lib/config.js +18 -12
  44. package/lib/config.js.map +1 -1
  45. package/models/components/bodysubscriptionsimport.d.ts +2 -2
  46. package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
  47. package/models/components/bodysubscriptionsimport.js +2 -0
  48. package/models/components/bodysubscriptionsimport.js.map +1 -1
  49. package/models/components/index.d.ts +9 -3
  50. package/models/components/index.d.ts.map +1 -1
  51. package/models/components/index.js +9 -3
  52. package/models/components/index.js.map +1 -1
  53. package/models/components/ordersubscription.d.ts +7 -0
  54. package/models/components/ordersubscription.d.ts.map +1 -1
  55. package/models/components/ordersubscription.js +9 -0
  56. package/models/components/ordersubscription.js.map +1 -1
  57. package/models/components/organizationfeaturesettings.d.ts +0 -5
  58. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  59. package/models/components/organizationfeaturesettings.js +0 -4
  60. package/models/components/organizationfeaturesettings.js.map +1 -1
  61. package/models/components/organizationprofilesettings.d.ts +10 -0
  62. package/models/components/organizationprofilesettings.d.ts.map +1 -1
  63. package/models/components/organizationprofilesettings.js +6 -0
  64. package/models/components/organizationprofilesettings.js.map +1 -1
  65. package/models/components/productonetimecreate.d.ts +23 -3
  66. package/models/components/productonetimecreate.d.ts.map +1 -1
  67. package/models/components/productonetimecreate.js +33 -4
  68. package/models/components/productonetimecreate.js.map +1 -1
  69. package/models/components/productpriceinput.d.ts +3 -11
  70. package/models/components/productpriceinput.d.ts.map +1 -1
  71. package/models/components/productpriceinput.js +5 -13
  72. package/models/components/productpriceinput.js.map +1 -1
  73. package/models/components/productpriceonetime.d.ts +4 -71
  74. package/models/components/productpriceonetime.d.ts.map +1 -1
  75. package/models/components/productpriceonetime.js +11 -57
  76. package/models/components/productpriceonetime.js.map +1 -1
  77. package/models/components/productpriceonetimecustom.d.ts +124 -0
  78. package/models/components/productpriceonetimecustom.d.ts.map +1 -0
  79. package/models/components/productpriceonetimecustom.js +130 -0
  80. package/models/components/productpriceonetimecustom.js.map +1 -0
  81. package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
  82. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
  83. package/models/components/productpriceonetimecustomcreate.js +91 -0
  84. package/models/components/productpriceonetimecustomcreate.js.map +1 -0
  85. package/models/components/productpriceonetimefixed.d.ts +114 -0
  86. package/models/components/productpriceonetimefixed.d.ts.map +1 -0
  87. package/models/components/productpriceonetimefixed.js +122 -0
  88. package/models/components/productpriceonetimefixed.js.map +1 -0
  89. package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
  90. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
  91. package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
  92. package/models/components/productpriceonetimefixedcreate.js.map +1 -0
  93. package/models/components/productpriceoutput.d.ts +3 -11
  94. package/models/components/productpriceoutput.d.ts.map +1 -1
  95. package/models/components/productpriceoutput.js +5 -13
  96. package/models/components/productpriceoutput.js.map +1 -1
  97. package/models/components/productpricerecurringcreate.d.ts +7 -7
  98. package/models/components/productpricerecurringcreate.d.ts.map +1 -1
  99. package/models/components/productpricerecurringcreate.js +9 -9
  100. package/models/components/productpricerecurringcreate.js.map +1 -1
  101. package/models/components/productpricerecurringcustom.d.ts +130 -0
  102. package/models/components/productpricerecurringcustom.d.ts.map +1 -0
  103. package/models/components/productpricerecurringcustom.js +135 -0
  104. package/models/components/productpricerecurringcustom.js.map +1 -0
  105. package/models/components/productpricerecurringfixed.d.ts +120 -0
  106. package/models/components/productpricerecurringfixed.d.ts.map +1 -0
  107. package/models/components/productpricerecurringfixed.js +128 -0
  108. package/models/components/productpricerecurringfixed.js.map +1 -0
  109. package/models/components/productpricerecurringinput.d.ts +31 -0
  110. package/models/components/productpricerecurringinput.d.ts.map +1 -0
  111. package/models/components/productpricerecurringinput.js +62 -0
  112. package/models/components/productpricerecurringinput.js.map +1 -0
  113. package/models/components/productpricerecurringoutput.d.ts +31 -0
  114. package/models/components/productpricerecurringoutput.d.ts.map +1 -0
  115. package/models/components/productpricerecurringoutput.js +62 -0
  116. package/models/components/productpricerecurringoutput.js.map +1 -0
  117. package/models/components/productupdate.d.ts +15 -14
  118. package/models/components/productupdate.d.ts.map +1 -1
  119. package/models/components/productupdate.js +20 -16
  120. package/models/components/productupdate.js.map +1 -1
  121. package/models/components/subscriptioninput.d.ts +7 -0
  122. package/models/components/subscriptioninput.d.ts.map +1 -1
  123. package/models/components/subscriptioninput.js +9 -0
  124. package/models/components/subscriptioninput.js.map +1 -1
  125. package/models/components/subscriptionoutput.d.ts +7 -0
  126. package/models/components/subscriptionoutput.d.ts.map +1 -1
  127. package/models/components/subscriptionoutput.js +9 -0
  128. package/models/components/subscriptionoutput.js.map +1 -1
  129. package/models/components/subscriptionrecurringinterval.d.ts +28 -0
  130. package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
  131. package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
  132. package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
  133. package/models/components/subscriptionsortproperty.d.ts +6 -6
  134. package/models/components/subscriptionsortproperty.js +2 -2
  135. package/models/components/subscriptionsortproperty.js.map +1 -1
  136. package/models/components/userordersubscription.d.ts +7 -0
  137. package/models/components/userordersubscription.d.ts.map +1 -1
  138. package/models/components/userordersubscription.js +9 -0
  139. package/models/components/userordersubscription.js.map +1 -1
  140. package/models/components/usersubscription.d.ts +10 -0
  141. package/models/components/usersubscription.d.ts.map +1 -1
  142. package/models/components/usersubscription.js +9 -0
  143. package/models/components/usersubscription.js.map +1 -1
  144. package/models/components/usersubscriptionsortproperty.d.ts +6 -6
  145. package/models/components/usersubscriptionsortproperty.js +2 -2
  146. package/models/components/usersubscriptionsortproperty.js.map +1 -1
  147. package/package.json +1 -1
  148. package/src/funcs/advertisementsList.ts +2 -2
  149. package/src/funcs/articlesList.ts +2 -2
  150. package/src/funcs/benefitsGrants.ts +2 -2
  151. package/src/funcs/benefitsList.ts +2 -2
  152. package/src/funcs/externalOrganizationsList.ts +2 -2
  153. package/src/funcs/filesList.ts +2 -2
  154. package/src/funcs/licenseKeysList.ts +2 -2
  155. package/src/funcs/oauth2ClientsList.ts +2 -2
  156. package/src/funcs/ordersList.ts +2 -2
  157. package/src/funcs/organizationsList.ts +2 -2
  158. package/src/funcs/productsList.ts +2 -2
  159. package/src/funcs/repositoriesList.ts +2 -2
  160. package/src/funcs/subscriptionsList.ts +2 -2
  161. package/src/funcs/usersAdvertisementsList.ts +2 -2
  162. package/src/funcs/usersBenefitsList.ts +2 -2
  163. package/src/funcs/usersDownloadablesList.ts +2 -2
  164. package/src/funcs/usersLicenseKeysList.ts +2 -2
  165. package/src/funcs/usersOrdersList.ts +2 -2
  166. package/src/funcs/usersSubscriptionsList.ts +2 -2
  167. package/src/lib/config.ts +18 -12
  168. package/src/models/components/bodysubscriptionsimport.ts +4 -2
  169. package/src/models/components/index.ts +9 -3
  170. package/src/models/components/ordersubscription.ts +19 -0
  171. package/src/models/components/organizationfeaturesettings.ts +0 -9
  172. package/src/models/components/organizationprofilesettings.ts +16 -0
  173. package/src/models/components/productonetimecreate.ts +69 -9
  174. package/src/models/components/productpriceinput.ts +13 -29
  175. package/src/models/components/productpriceonetime.ts +27 -115
  176. package/src/models/components/productpriceonetimecustom.ts +201 -0
  177. package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
  178. package/src/models/components/productpriceonetimefixed.ts +182 -0
  179. package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
  180. package/src/models/components/productpriceoutput.ts +13 -29
  181. package/src/models/components/productpricerecurringcreate.ts +18 -18
  182. package/src/models/components/productpricerecurringcustom.ts +216 -0
  183. package/src/models/components/productpricerecurringfixed.ts +191 -0
  184. package/src/models/components/productpricerecurringinput.ts +75 -0
  185. package/src/models/components/productpricerecurringoutput.ts +75 -0
  186. package/src/models/components/productupdate.ts +49 -32
  187. package/src/models/components/subscriptioninput.ts +19 -0
  188. package/src/models/components/subscriptionoutput.ts +19 -0
  189. package/src/models/components/subscriptionrecurringinterval.ts +35 -0
  190. package/src/models/components/subscriptionsortproperty.ts +2 -2
  191. package/src/models/components/userordersubscription.ts +19 -0
  192. package/src/models/components/usersubscription.ts +22 -0
  193. package/src/models/components/usersubscriptionsortproperty.ts +2 -2
  194. package/models/components/productpriceonetimecreate.d.ts +0 -61
  195. package/models/components/productpriceonetimecreate.d.ts.map +0 -1
  196. package/models/components/productpriceonetimecreate.js.map +0 -1
  197. package/models/components/productpricerecurring.d.ts +0 -96
  198. package/models/components/productpricerecurring.d.ts.map +0 -1
  199. package/models/components/productpricerecurring.js +0 -105
  200. package/models/components/productpricerecurring.js.map +0 -1
  201. package/models/components/productpricerecurringinterval.d.ts +0 -28
  202. package/src/models/components/productpriceonetimecreate.ts +0 -102
  203. package/src/models/components/productpricerecurring.ts +0 -161
  204. package/src/models/components/productpricerecurringinterval.ts +0 -35
@@ -11,11 +11,17 @@ import {
11
11
  ExistingProductPrice$outboundSchema,
12
12
  } from "./existingproductprice.js";
13
13
  import {
14
- ProductPriceOneTimeCreate,
15
- ProductPriceOneTimeCreate$inboundSchema,
16
- ProductPriceOneTimeCreate$Outbound,
17
- ProductPriceOneTimeCreate$outboundSchema,
18
- } from "./productpriceonetimecreate.js";
14
+ ProductPriceOneTimeCustomCreate,
15
+ ProductPriceOneTimeCustomCreate$inboundSchema,
16
+ ProductPriceOneTimeCustomCreate$Outbound,
17
+ ProductPriceOneTimeCustomCreate$outboundSchema,
18
+ } from "./productpriceonetimecustomcreate.js";
19
+ import {
20
+ ProductPriceOneTimeFixedCreate,
21
+ ProductPriceOneTimeFixedCreate$inboundSchema,
22
+ ProductPriceOneTimeFixedCreate$Outbound,
23
+ ProductPriceOneTimeFixedCreate$outboundSchema,
24
+ } from "./productpriceonetimefixedcreate.js";
19
25
  import {
20
26
  ProductPriceRecurringCreate,
21
27
  ProductPriceRecurringCreate$inboundSchema,
@@ -23,10 +29,11 @@ import {
23
29
  ProductPriceRecurringCreate$outboundSchema,
24
30
  } from "./productpricerecurringcreate.js";
25
31
 
26
- export type Prices =
32
+ export type ProductUpdatePrices =
27
33
  | ExistingProductPrice
28
- | ProductPriceOneTimeCreate
29
- | ProductPriceRecurringCreate;
34
+ | ProductPriceOneTimeFixedCreate
35
+ | ProductPriceRecurringCreate
36
+ | ProductPriceOneTimeCustomCreate;
30
37
 
31
38
  /**
32
39
  * Schema to update a product.
@@ -51,8 +58,9 @@ export type ProductUpdate = {
51
58
  prices?:
52
59
  | Array<
53
60
  | ExistingProductPrice
54
- | ProductPriceOneTimeCreate
61
+ | ProductPriceOneTimeFixedCreate
55
62
  | ProductPriceRecurringCreate
63
+ | ProductPriceOneTimeCustomCreate
56
64
  >
57
65
  | null
58
66
  | undefined;
@@ -63,41 +71,47 @@ export type ProductUpdate = {
63
71
  };
64
72
 
65
73
  /** @internal */
66
- export const Prices$inboundSchema: z.ZodType<Prices, z.ZodTypeDef, unknown> = z
67
- .union([
68
- ExistingProductPrice$inboundSchema,
69
- ProductPriceOneTimeCreate$inboundSchema,
70
- ProductPriceRecurringCreate$inboundSchema,
71
- ]);
74
+ export const ProductUpdatePrices$inboundSchema: z.ZodType<
75
+ ProductUpdatePrices,
76
+ z.ZodTypeDef,
77
+ unknown
78
+ > = z.union([
79
+ ExistingProductPrice$inboundSchema,
80
+ ProductPriceOneTimeFixedCreate$inboundSchema,
81
+ ProductPriceRecurringCreate$inboundSchema,
82
+ ProductPriceOneTimeCustomCreate$inboundSchema,
83
+ ]);
72
84
 
73
85
  /** @internal */
74
- export type Prices$Outbound =
86
+ export type ProductUpdatePrices$Outbound =
75
87
  | ExistingProductPrice$Outbound
76
- | ProductPriceOneTimeCreate$Outbound
77
- | ProductPriceRecurringCreate$Outbound;
88
+ | ProductPriceOneTimeFixedCreate$Outbound
89
+ | ProductPriceRecurringCreate$Outbound
90
+ | ProductPriceOneTimeCustomCreate$Outbound;
78
91
 
79
92
  /** @internal */
80
- export const Prices$outboundSchema: z.ZodType<
81
- Prices$Outbound,
93
+ export const ProductUpdatePrices$outboundSchema: z.ZodType<
94
+ ProductUpdatePrices$Outbound,
82
95
  z.ZodTypeDef,
83
- Prices
96
+ ProductUpdatePrices
84
97
  > = z.union([
85
98
  ExistingProductPrice$outboundSchema,
86
- ProductPriceOneTimeCreate$outboundSchema,
99
+ ProductPriceOneTimeFixedCreate$outboundSchema,
87
100
  ProductPriceRecurringCreate$outboundSchema,
101
+ ProductPriceOneTimeCustomCreate$outboundSchema,
88
102
  ]);
89
103
 
90
104
  /**
91
105
  * @internal
92
106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
107
  */
94
- export namespace Prices$ {
95
- /** @deprecated use `Prices$inboundSchema` instead. */
96
- export const inboundSchema = Prices$inboundSchema;
97
- /** @deprecated use `Prices$outboundSchema` instead. */
98
- export const outboundSchema = Prices$outboundSchema;
99
- /** @deprecated use `Prices$Outbound` instead. */
100
- export type Outbound = Prices$Outbound;
108
+ export namespace ProductUpdatePrices$ {
109
+ /** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
110
+ export const inboundSchema = ProductUpdatePrices$inboundSchema;
111
+ /** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
112
+ export const outboundSchema = ProductUpdatePrices$outboundSchema;
113
+ /** @deprecated use `ProductUpdatePrices$Outbound` instead. */
114
+ export type Outbound = ProductUpdatePrices$Outbound;
101
115
  }
102
116
 
103
117
  /** @internal */
@@ -114,8 +128,9 @@ export const ProductUpdate$inboundSchema: z.ZodType<
114
128
  z.array(
115
129
  z.union([
116
130
  ExistingProductPrice$inboundSchema,
117
- ProductPriceOneTimeCreate$inboundSchema,
131
+ ProductPriceOneTimeFixedCreate$inboundSchema,
118
132
  ProductPriceRecurringCreate$inboundSchema,
133
+ ProductPriceOneTimeCustomCreate$inboundSchema,
119
134
  ]),
120
135
  ),
121
136
  ).optional(),
@@ -136,8 +151,9 @@ export type ProductUpdate$Outbound = {
136
151
  prices?:
137
152
  | Array<
138
153
  | ExistingProductPrice$Outbound
139
- | ProductPriceOneTimeCreate$Outbound
154
+ | ProductPriceOneTimeFixedCreate$Outbound
140
155
  | ProductPriceRecurringCreate$Outbound
156
+ | ProductPriceOneTimeCustomCreate$Outbound
141
157
  >
142
158
  | null
143
159
  | undefined;
@@ -158,8 +174,9 @@ export const ProductUpdate$outboundSchema: z.ZodType<
158
174
  z.array(
159
175
  z.union([
160
176
  ExistingProductPrice$outboundSchema,
161
- ProductPriceOneTimeCreate$outboundSchema,
177
+ ProductPriceOneTimeFixedCreate$outboundSchema,
162
178
  ProductPriceRecurringCreate$outboundSchema,
179
+ ProductPriceOneTimeCustomCreate$outboundSchema,
163
180
  ]),
164
181
  ),
165
182
  ).optional(),
@@ -16,6 +16,11 @@ import {
16
16
  ProductPriceInput$Outbound,
17
17
  ProductPriceInput$outboundSchema,
18
18
  } from "./productpriceinput.js";
19
+ import {
20
+ SubscriptionRecurringInterval,
21
+ SubscriptionRecurringInterval$inboundSchema,
22
+ SubscriptionRecurringInterval$outboundSchema,
23
+ } from "./subscriptionrecurringinterval.js";
19
24
  import {
20
25
  SubscriptionStatus,
21
26
  SubscriptionStatus$inboundSchema,
@@ -41,6 +46,9 @@ export type SubscriptionInput = {
41
46
  * The ID of the object.
42
47
  */
43
48
  id: string;
49
+ amount: number | null;
50
+ currency: string | null;
51
+ recurringInterval: SubscriptionRecurringInterval;
44
52
  status: SubscriptionStatus;
45
53
  currentPeriodStart: Date;
46
54
  currentPeriodEnd: Date | null;
@@ -69,6 +77,9 @@ export const SubscriptionInput$inboundSchema: z.ZodType<
69
77
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
70
78
  ),
71
79
  id: z.string(),
80
+ amount: z.nullable(z.number().int()),
81
+ currency: z.nullable(z.string()),
82
+ recurring_interval: SubscriptionRecurringInterval$inboundSchema,
72
83
  status: SubscriptionStatus$inboundSchema,
73
84
  current_period_start: z.string().datetime({ offset: true }).transform(v =>
74
85
  new Date(v)
@@ -93,6 +104,7 @@ export const SubscriptionInput$inboundSchema: z.ZodType<
93
104
  return remap$(v, {
94
105
  "created_at": "createdAt",
95
106
  "modified_at": "modifiedAt",
107
+ "recurring_interval": "recurringInterval",
96
108
  "current_period_start": "currentPeriodStart",
97
109
  "current_period_end": "currentPeriodEnd",
98
110
  "cancel_at_period_end": "cancelAtPeriodEnd",
@@ -109,6 +121,9 @@ export type SubscriptionInput$Outbound = {
109
121
  created_at: string;
110
122
  modified_at: string | null;
111
123
  id: string;
124
+ amount: number | null;
125
+ currency: string | null;
126
+ recurring_interval: string;
112
127
  status: string;
113
128
  current_period_start: string;
114
129
  current_period_end: string | null;
@@ -132,6 +147,9 @@ export const SubscriptionInput$outboundSchema: z.ZodType<
132
147
  createdAt: z.date().transform(v => v.toISOString()),
133
148
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
134
149
  id: z.string(),
150
+ amount: z.nullable(z.number().int()),
151
+ currency: z.nullable(z.string()),
152
+ recurringInterval: SubscriptionRecurringInterval$outboundSchema,
135
153
  status: SubscriptionStatus$outboundSchema,
136
154
  currentPeriodStart: z.date().transform(v => v.toISOString()),
137
155
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
@@ -148,6 +166,7 @@ export const SubscriptionInput$outboundSchema: z.ZodType<
148
166
  return remap$(v, {
149
167
  createdAt: "created_at",
150
168
  modifiedAt: "modified_at",
169
+ recurringInterval: "recurring_interval",
151
170
  currentPeriodStart: "current_period_start",
152
171
  currentPeriodEnd: "current_period_end",
153
172
  cancelAtPeriodEnd: "cancel_at_period_end",
@@ -16,6 +16,11 @@ import {
16
16
  ProductPriceOutput$Outbound,
17
17
  ProductPriceOutput$outboundSchema,
18
18
  } from "./productpriceoutput.js";
19
+ import {
20
+ SubscriptionRecurringInterval,
21
+ SubscriptionRecurringInterval$inboundSchema,
22
+ SubscriptionRecurringInterval$outboundSchema,
23
+ } from "./subscriptionrecurringinterval.js";
19
24
  import {
20
25
  SubscriptionStatus,
21
26
  SubscriptionStatus$inboundSchema,
@@ -41,6 +46,9 @@ export type SubscriptionOutput = {
41
46
  * The ID of the object.
42
47
  */
43
48
  id: string;
49
+ amount: number | null;
50
+ currency: string | null;
51
+ recurringInterval: SubscriptionRecurringInterval;
44
52
  status: SubscriptionStatus;
45
53
  currentPeriodStart: Date;
46
54
  currentPeriodEnd: Date | null;
@@ -69,6 +77,9 @@ export const SubscriptionOutput$inboundSchema: z.ZodType<
69
77
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
70
78
  ),
71
79
  id: z.string(),
80
+ amount: z.nullable(z.number().int()),
81
+ currency: z.nullable(z.string()),
82
+ recurring_interval: SubscriptionRecurringInterval$inboundSchema,
72
83
  status: SubscriptionStatus$inboundSchema,
73
84
  current_period_start: z.string().datetime({ offset: true }).transform(v =>
74
85
  new Date(v)
@@ -93,6 +104,7 @@ export const SubscriptionOutput$inboundSchema: z.ZodType<
93
104
  return remap$(v, {
94
105
  "created_at": "createdAt",
95
106
  "modified_at": "modifiedAt",
107
+ "recurring_interval": "recurringInterval",
96
108
  "current_period_start": "currentPeriodStart",
97
109
  "current_period_end": "currentPeriodEnd",
98
110
  "cancel_at_period_end": "cancelAtPeriodEnd",
@@ -109,6 +121,9 @@ export type SubscriptionOutput$Outbound = {
109
121
  created_at: string;
110
122
  modified_at: string | null;
111
123
  id: string;
124
+ amount: number | null;
125
+ currency: string | null;
126
+ recurring_interval: string;
112
127
  status: string;
113
128
  current_period_start: string;
114
129
  current_period_end: string | null;
@@ -132,6 +147,9 @@ export const SubscriptionOutput$outboundSchema: z.ZodType<
132
147
  createdAt: z.date().transform(v => v.toISOString()),
133
148
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
134
149
  id: z.string(),
150
+ amount: z.nullable(z.number().int()),
151
+ currency: z.nullable(z.string()),
152
+ recurringInterval: SubscriptionRecurringInterval$outboundSchema,
135
153
  status: SubscriptionStatus$outboundSchema,
136
154
  currentPeriodStart: z.date().transform(v => v.toISOString()),
137
155
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
@@ -148,6 +166,7 @@ export const SubscriptionOutput$outboundSchema: z.ZodType<
148
166
  return remap$(v, {
149
167
  createdAt: "created_at",
150
168
  modifiedAt: "modified_at",
169
+ recurringInterval: "recurring_interval",
151
170
  currentPeriodStart: "current_period_start",
152
171
  currentPeriodEnd: "current_period_end",
153
172
  cancelAtPeriodEnd: "cancel_at_period_end",
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const SubscriptionRecurringInterval = {
9
+ Month: "month",
10
+ Year: "year",
11
+ } as const;
12
+ export type SubscriptionRecurringInterval = ClosedEnum<
13
+ typeof SubscriptionRecurringInterval
14
+ >;
15
+
16
+ /** @internal */
17
+ export const SubscriptionRecurringInterval$inboundSchema: z.ZodNativeEnum<
18
+ typeof SubscriptionRecurringInterval
19
+ > = z.nativeEnum(SubscriptionRecurringInterval);
20
+
21
+ /** @internal */
22
+ export const SubscriptionRecurringInterval$outboundSchema: z.ZodNativeEnum<
23
+ typeof SubscriptionRecurringInterval
24
+ > = SubscriptionRecurringInterval$inboundSchema;
25
+
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export namespace SubscriptionRecurringInterval$ {
31
+ /** @deprecated use `SubscriptionRecurringInterval$inboundSchema` instead. */
32
+ export const inboundSchema = SubscriptionRecurringInterval$inboundSchema;
33
+ /** @deprecated use `SubscriptionRecurringInterval$outboundSchema` instead. */
34
+ export const outboundSchema = SubscriptionRecurringInterval$outboundSchema;
35
+ }
@@ -14,8 +14,8 @@ export const SubscriptionSortProperty = {
14
14
  MinusStartedAt: "-started_at",
15
15
  CurrentPeriodEnd: "current_period_end",
16
16
  MinusCurrentPeriodEnd: "-current_period_end",
17
- PriceAmount: "price_amount",
18
- MinusPriceAmount: "-price_amount",
17
+ Amount: "amount",
18
+ MinusAmount: "-amount",
19
19
  SubscriptionTierType: "subscription_tier_type",
20
20
  MinusSubscriptionTierType: "-subscription_tier_type",
21
21
  Product: "product",
@@ -4,6 +4,11 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ SubscriptionRecurringInterval,
9
+ SubscriptionRecurringInterval$inboundSchema,
10
+ SubscriptionRecurringInterval$outboundSchema,
11
+ } from "./subscriptionrecurringinterval.js";
7
12
  import {
8
13
  SubscriptionStatus,
9
14
  SubscriptionStatus$inboundSchema,
@@ -23,6 +28,9 @@ export type UserOrderSubscription = {
23
28
  * The ID of the object.
24
29
  */
25
30
  id: string;
31
+ amount: number | null;
32
+ currency: string | null;
33
+ recurringInterval: SubscriptionRecurringInterval;
26
34
  status: SubscriptionStatus;
27
35
  currentPeriodStart: Date;
28
36
  currentPeriodEnd: Date | null;
@@ -45,6 +53,9 @@ export const UserOrderSubscription$inboundSchema: z.ZodType<
45
53
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
46
54
  ),
47
55
  id: z.string(),
56
+ amount: z.nullable(z.number().int()),
57
+ currency: z.nullable(z.string()),
58
+ recurring_interval: SubscriptionRecurringInterval$inboundSchema,
48
59
  status: SubscriptionStatus$inboundSchema,
49
60
  current_period_start: z.string().datetime({ offset: true }).transform(v =>
50
61
  new Date(v)
@@ -66,6 +77,7 @@ export const UserOrderSubscription$inboundSchema: z.ZodType<
66
77
  return remap$(v, {
67
78
  "created_at": "createdAt",
68
79
  "modified_at": "modifiedAt",
80
+ "recurring_interval": "recurringInterval",
69
81
  "current_period_start": "currentPeriodStart",
70
82
  "current_period_end": "currentPeriodEnd",
71
83
  "cancel_at_period_end": "cancelAtPeriodEnd",
@@ -82,6 +94,9 @@ export type UserOrderSubscription$Outbound = {
82
94
  created_at: string;
83
95
  modified_at: string | null;
84
96
  id: string;
97
+ amount: number | null;
98
+ currency: string | null;
99
+ recurring_interval: string;
85
100
  status: string;
86
101
  current_period_start: string;
87
102
  current_period_end: string | null;
@@ -102,6 +117,9 @@ export const UserOrderSubscription$outboundSchema: z.ZodType<
102
117
  createdAt: z.date().transform(v => v.toISOString()),
103
118
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
104
119
  id: z.string(),
120
+ amount: z.nullable(z.number().int()),
121
+ currency: z.nullable(z.string()),
122
+ recurringInterval: SubscriptionRecurringInterval$outboundSchema,
105
123
  status: SubscriptionStatus$outboundSchema,
106
124
  currentPeriodStart: z.date().transform(v => v.toISOString()),
107
125
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
@@ -115,6 +133,7 @@ export const UserOrderSubscription$outboundSchema: z.ZodType<
115
133
  return remap$(v, {
116
134
  createdAt: "created_at",
117
135
  modifiedAt: "modified_at",
136
+ recurringInterval: "recurring_interval",
118
137
  currentPeriodStart: "current_period_start",
119
138
  currentPeriodEnd: "current_period_end",
120
139
  cancelAtPeriodEnd: "cancel_at_period_end",
@@ -10,6 +10,11 @@ import {
10
10
  ProductPriceOutput$Outbound,
11
11
  ProductPriceOutput$outboundSchema,
12
12
  } from "./productpriceoutput.js";
13
+ import {
14
+ SubscriptionRecurringInterval,
15
+ SubscriptionRecurringInterval$inboundSchema,
16
+ SubscriptionRecurringInterval$outboundSchema,
17
+ } from "./subscriptionrecurringinterval.js";
13
18
  import {
14
19
  SubscriptionStatus,
15
20
  SubscriptionStatus$inboundSchema,
@@ -31,7 +36,13 @@ export type UserSubscription = {
31
36
  * Last modification timestamp of the object.
32
37
  */
33
38
  modifiedAt: Date | null;
39
+ /**
40
+ * The ID of the object.
41
+ */
34
42
  id: string;
43
+ amount: number | null;
44
+ currency: string | null;
45
+ recurringInterval: SubscriptionRecurringInterval;
35
46
  status: SubscriptionStatus;
36
47
  currentPeriodStart: Date;
37
48
  currentPeriodEnd: Date | null;
@@ -56,6 +67,9 @@ export const UserSubscription$inboundSchema: z.ZodType<
56
67
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
57
68
  ),
58
69
  id: z.string(),
70
+ amount: z.nullable(z.number().int()),
71
+ currency: z.nullable(z.string()),
72
+ recurring_interval: SubscriptionRecurringInterval$inboundSchema,
59
73
  status: SubscriptionStatus$inboundSchema,
60
74
  current_period_start: z.string().datetime({ offset: true }).transform(v =>
61
75
  new Date(v)
@@ -79,6 +93,7 @@ export const UserSubscription$inboundSchema: z.ZodType<
79
93
  return remap$(v, {
80
94
  "created_at": "createdAt",
81
95
  "modified_at": "modifiedAt",
96
+ "recurring_interval": "recurringInterval",
82
97
  "current_period_start": "currentPeriodStart",
83
98
  "current_period_end": "currentPeriodEnd",
84
99
  "cancel_at_period_end": "cancelAtPeriodEnd",
@@ -95,6 +110,9 @@ export type UserSubscription$Outbound = {
95
110
  created_at: string;
96
111
  modified_at: string | null;
97
112
  id: string;
113
+ amount: number | null;
114
+ currency: string | null;
115
+ recurring_interval: string;
98
116
  status: string;
99
117
  current_period_start: string;
100
118
  current_period_end: string | null;
@@ -117,6 +135,9 @@ export const UserSubscription$outboundSchema: z.ZodType<
117
135
  createdAt: z.date().transform(v => v.toISOString()),
118
136
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
119
137
  id: z.string(),
138
+ amount: z.nullable(z.number().int()),
139
+ currency: z.nullable(z.string()),
140
+ recurringInterval: SubscriptionRecurringInterval$outboundSchema,
120
141
  status: SubscriptionStatus$outboundSchema,
121
142
  currentPeriodStart: z.date().transform(v => v.toISOString()),
122
143
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
@@ -132,6 +153,7 @@ export const UserSubscription$outboundSchema: z.ZodType<
132
153
  return remap$(v, {
133
154
  createdAt: "created_at",
134
155
  modifiedAt: "modified_at",
156
+ recurringInterval: "recurring_interval",
135
157
  currentPeriodStart: "current_period_start",
136
158
  currentPeriodEnd: "current_period_end",
137
159
  cancelAtPeriodEnd: "cancel_at_period_end",
@@ -8,8 +8,8 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  export const UserSubscriptionSortProperty = {
9
9
  StartedAt: "started_at",
10
10
  MinusStartedAt: "-started_at",
11
- PriceAmount: "price_amount",
12
- MinusPriceAmount: "-price_amount",
11
+ Amount: "amount",
12
+ MinusAmount: "-amount",
13
13
  Status: "status",
14
14
  MinusStatus: "-status",
15
15
  Organization: "organization",
@@ -1,61 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- export declare const ProductPriceOneTimeCreateType: {
4
- readonly OneTime: "one_time";
5
- };
6
- export type ProductPriceOneTimeCreateType = ClosedEnum<typeof ProductPriceOneTimeCreateType>;
7
- /**
8
- * Schema to create a one-time product price.
9
- */
10
- export type ProductPriceOneTimeCreate = {
11
- type?: "one_time" | undefined;
12
- /**
13
- * The price in cents.
14
- */
15
- priceAmount: number;
16
- /**
17
- * The currency. Currently, only `usd` is supported.
18
- */
19
- priceCurrency?: string | undefined;
20
- };
21
- /** @internal */
22
- export declare const ProductPriceOneTimeCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCreateType>;
23
- /** @internal */
24
- export declare const ProductPriceOneTimeCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCreateType>;
25
- /**
26
- * @internal
27
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
- */
29
- export declare namespace ProductPriceOneTimeCreateType$ {
30
- /** @deprecated use `ProductPriceOneTimeCreateType$inboundSchema` instead. */
31
- const inboundSchema: z.ZodNativeEnum<{
32
- readonly OneTime: "one_time";
33
- }>;
34
- /** @deprecated use `ProductPriceOneTimeCreateType$outboundSchema` instead. */
35
- const outboundSchema: z.ZodNativeEnum<{
36
- readonly OneTime: "one_time";
37
- }>;
38
- }
39
- /** @internal */
40
- export declare const ProductPriceOneTimeCreate$inboundSchema: z.ZodType<ProductPriceOneTimeCreate, z.ZodTypeDef, unknown>;
41
- /** @internal */
42
- export type ProductPriceOneTimeCreate$Outbound = {
43
- type: "one_time";
44
- price_amount: number;
45
- price_currency: string;
46
- };
47
- /** @internal */
48
- export declare const ProductPriceOneTimeCreate$outboundSchema: z.ZodType<ProductPriceOneTimeCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCreate>;
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export declare namespace ProductPriceOneTimeCreate$ {
54
- /** @deprecated use `ProductPriceOneTimeCreate$inboundSchema` instead. */
55
- const inboundSchema: z.ZodType<ProductPriceOneTimeCreate, z.ZodTypeDef, unknown>;
56
- /** @deprecated use `ProductPriceOneTimeCreate$outboundSchema` instead. */
57
- const outboundSchema: z.ZodType<ProductPriceOneTimeCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCreate>;
58
- /** @deprecated use `ProductPriceOneTimeCreate$Outbound` instead. */
59
- type Outbound = ProductPriceOneTimeCreate$Outbound;
60
- }
61
- //# sourceMappingURL=productpriceonetimecreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productpriceonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,6BAA6B;;CAEhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,aAAa,CACvE,OAAO,6BAA6B,CACS,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,6BAA6B,CACS,CAAC;AAEhD;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa;;MAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc;;MAA+C,CAAC;CAC5E;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAUzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"productpriceonetimecreate.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,6BAA6B,GAAG;IAC3C,OAAO,EAAE,UAAU;CACX,CAAC;AAoBX,gBAAgB;AACH,Q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C,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
@@ -1,96 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { ProductPriceRecurringInterval } from "./productpricerecurringinterval.js";
4
- /**
5
- * The type of the price.
6
- */
7
- export declare const ProductPriceRecurringType: {
8
- readonly Recurring: "recurring";
9
- };
10
- /**
11
- * The type of the price.
12
- */
13
- export type ProductPriceRecurringType = ClosedEnum<typeof ProductPriceRecurringType>;
14
- /**
15
- * A recurring price for a product, i.e. a subscription.
16
- */
17
- export type ProductPriceRecurring = {
18
- /**
19
- * Creation timestamp of the object.
20
- */
21
- createdAt: Date;
22
- /**
23
- * Last modification timestamp of the object.
24
- */
25
- modifiedAt: Date | null;
26
- /**
27
- * The ID of the price.
28
- */
29
- id: string;
30
- /**
31
- * The price in cents.
32
- */
33
- priceAmount: number;
34
- /**
35
- * The currency.
36
- */
37
- priceCurrency: string;
38
- /**
39
- * Whether the price is archived and no longer available.
40
- */
41
- isArchived: boolean;
42
- /**
43
- * The type of the price.
44
- */
45
- type?: "recurring" | undefined;
46
- /**
47
- * The recurring interval of the price, if type is `recurring`.
48
- */
49
- recurringInterval: ProductPriceRecurringInterval | null;
50
- };
51
- /** @internal */
52
- export declare const ProductPriceRecurringType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringType>;
53
- /** @internal */
54
- export declare const ProductPriceRecurringType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringType>;
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export declare namespace ProductPriceRecurringType$ {
60
- /** @deprecated use `ProductPriceRecurringType$inboundSchema` instead. */
61
- const inboundSchema: z.ZodNativeEnum<{
62
- readonly Recurring: "recurring";
63
- }>;
64
- /** @deprecated use `ProductPriceRecurringType$outboundSchema` instead. */
65
- const outboundSchema: z.ZodNativeEnum<{
66
- readonly Recurring: "recurring";
67
- }>;
68
- }
69
- /** @internal */
70
- export declare const ProductPriceRecurring$inboundSchema: z.ZodType<ProductPriceRecurring, z.ZodTypeDef, unknown>;
71
- /** @internal */
72
- export type ProductPriceRecurring$Outbound = {
73
- created_at: string;
74
- modified_at: string | null;
75
- id: string;
76
- price_amount: number;
77
- price_currency: string;
78
- is_archived: boolean;
79
- type: "recurring";
80
- recurring_interval: string | null;
81
- };
82
- /** @internal */
83
- export declare const ProductPriceRecurring$outboundSchema: z.ZodType<ProductPriceRecurring$Outbound, z.ZodTypeDef, ProductPriceRecurring>;
84
- /**
85
- * @internal
86
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
- */
88
- export declare namespace ProductPriceRecurring$ {
89
- /** @deprecated use `ProductPriceRecurring$inboundSchema` instead. */
90
- const inboundSchema: z.ZodType<ProductPriceRecurring, z.ZodTypeDef, unknown>;
91
- /** @deprecated use `ProductPriceRecurring$outboundSchema` instead. */
92
- const outboundSchema: z.ZodType<ProductPriceRecurring$Outbound, z.ZodTypeDef, ProductPriceRecurring>;
93
- /** @deprecated use `ProductPriceRecurring$Outbound` instead. */
94
- type Outbound = ProductPriceRecurring$Outbound;
95
- }
96
- //# sourceMappingURL=productpricerecurring.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productpricerecurring.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurring.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH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