@schematichq/schematic-typescript-node 1.1.2 → 1.1.4

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 (222) hide show
  1. package/Client.d.ts +10 -0
  2. package/Client.js +88 -0
  3. package/api/resources/accesstokens/client/Client.js +1 -1
  4. package/api/resources/accounts/client/Client.js +14 -14
  5. package/api/resources/billing/client/Client.d.ts +61 -0
  6. package/api/resources/billing/client/Client.js +392 -8
  7. package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +16 -0
  8. package/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
  9. package/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
  10. package/api/resources/billing/client/requests/index.d.ts +3 -0
  11. package/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +9 -0
  12. package/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +9 -0
  13. package/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +9 -0
  14. package/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +9 -0
  15. package/api/resources/billing/types/index.d.ts +4 -0
  16. package/api/resources/billing/types/index.js +4 -0
  17. package/api/resources/companies/client/Client.d.ts +0 -13
  18. package/api/resources/companies/client/Client.js +31 -136
  19. package/api/resources/companies/client/requests/index.d.ts +0 -1
  20. package/api/resources/companies/types/index.d.ts +0 -2
  21. package/api/resources/companies/types/index.js +0 -2
  22. package/api/resources/components/client/Client.js +7 -7
  23. package/api/resources/crm/client/Client.js +5 -5
  24. package/api/resources/entitlements/client/Client.js +19 -19
  25. package/api/resources/events/client/Client.js +8 -8
  26. package/api/resources/features/client/Client.js +19 -19
  27. package/api/resources/plans/client/Client.d.ts +12 -1
  28. package/api/resources/plans/client/Client.js +99 -11
  29. package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  30. package/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
  31. package/{dist/api/resources/companies/types/ListCompanyPlansResponse.d.ts → api/resources/plans/types/ListActivePlansResponse.d.ts} +3 -3
  32. package/api/resources/plans/types/index.d.ts +1 -0
  33. package/api/resources/plans/types/index.js +1 -0
  34. package/api/resources/webhooks/client/Client.js +9 -9
  35. package/api/types/BillingPlan.d.ts +11 -0
  36. package/api/types/BillingPlan.js +5 -0
  37. package/api/types/BillingPlanGroupResponseData.d.ts +11 -0
  38. package/api/types/BillingPlanGroupResponseData.js +5 -0
  39. package/api/types/BillingProductForSubscriptionResponseData.d.ts +16 -0
  40. package/api/types/BillingProductForSubscriptionResponseData.js +5 -0
  41. package/api/types/BillingProductPricing.d.ts +2 -0
  42. package/api/types/CompanyDetailResponseData.d.ts +1 -1
  43. package/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  44. package/api/types/PlanDetailResponseData.d.ts +0 -1
  45. package/api/types/PlanResponseData.d.ts +0 -1
  46. package/api/types/index.d.ts +3 -1
  47. package/api/types/index.js +3 -1
  48. package/dist/Client.d.ts +10 -0
  49. package/dist/Client.js +88 -0
  50. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  51. package/dist/api/resources/accounts/client/Client.js +14 -14
  52. package/dist/api/resources/billing/client/Client.d.ts +61 -0
  53. package/dist/api/resources/billing/client/Client.js +392 -8
  54. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +16 -0
  55. package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +5 -0
  56. package/dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
  57. package/dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +5 -0
  58. package/dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
  59. package/dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +5 -0
  60. package/dist/api/resources/billing/client/requests/index.d.ts +3 -0
  61. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +9 -0
  62. package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js +5 -0
  63. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +9 -0
  64. package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js +5 -0
  65. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +9 -0
  66. package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +5 -0
  67. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +9 -0
  68. package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js +5 -0
  69. package/dist/api/resources/billing/types/index.d.ts +4 -0
  70. package/dist/api/resources/billing/types/index.js +4 -0
  71. package/dist/api/resources/companies/client/Client.d.ts +0 -13
  72. package/dist/api/resources/companies/client/Client.js +31 -136
  73. package/dist/api/resources/companies/client/requests/index.d.ts +0 -1
  74. package/dist/api/resources/companies/types/index.d.ts +0 -2
  75. package/dist/api/resources/companies/types/index.js +0 -2
  76. package/dist/api/resources/components/client/Client.js +7 -7
  77. package/dist/api/resources/crm/client/Client.js +5 -5
  78. package/dist/api/resources/entitlements/client/Client.js +19 -19
  79. package/dist/api/resources/events/client/Client.js +8 -8
  80. package/dist/api/resources/features/client/Client.js +19 -19
  81. package/dist/api/resources/plans/client/Client.d.ts +12 -1
  82. package/dist/api/resources/plans/client/Client.js +99 -11
  83. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  84. package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
  85. package/{api/resources/companies/types/ListCompanyPlansResponse.d.ts → dist/api/resources/plans/types/ListActivePlansResponse.d.ts} +3 -3
  86. package/dist/api/resources/plans/types/ListActivePlansResponse.js +5 -0
  87. package/dist/api/resources/plans/types/index.d.ts +1 -0
  88. package/dist/api/resources/plans/types/index.js +1 -0
  89. package/dist/api/resources/webhooks/client/Client.js +9 -9
  90. package/dist/api/types/BillingPlan.d.ts +11 -0
  91. package/dist/api/types/BillingPlan.js +5 -0
  92. package/dist/api/types/BillingPlanGroupResponseData.d.ts +11 -0
  93. package/dist/api/types/BillingPlanGroupResponseData.js +5 -0
  94. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +16 -0
  95. package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
  96. package/dist/api/types/BillingProductPricing.d.ts +2 -0
  97. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -1
  98. package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
  99. package/dist/api/types/PlanDetailResponseData.d.ts +0 -1
  100. package/dist/api/types/PlanResponseData.d.ts +0 -1
  101. package/dist/api/types/index.d.ts +3 -1
  102. package/dist/api/types/index.js +3 -1
  103. package/dist/events.d.ts +3 -0
  104. package/dist/events.js +17 -5
  105. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +14 -0
  106. package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +35 -0
  107. package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
  108. package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +34 -0
  109. package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
  110. package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +34 -0
  111. package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -0
  112. package/dist/serialization/resources/billing/client/requests/index.js +7 -1
  113. package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +14 -0
  114. package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ChangeSubscriptionWebResponse.js} +5 -6
  115. package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +14 -0
  116. package/{serialization/resources/companies/types/ListCompanyPlansParams.js → dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js} +5 -6
  117. package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +14 -0
  118. package/dist/serialization/resources/{companies/types/ListCompanyPlansResponse.js → billing/types/GetBillingPlanGroupByAccountIdResponse.js} +5 -6
  119. package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +14 -0
  120. package/{serialization/resources/companies/types/ListCompanyPlansResponse.js → dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js} +5 -6
  121. package/dist/serialization/resources/billing/types/index.d.ts +4 -0
  122. package/dist/serialization/resources/billing/types/index.js +4 -0
  123. package/dist/serialization/resources/companies/types/index.d.ts +0 -2
  124. package/dist/serialization/resources/companies/types/index.js +0 -2
  125. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  126. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
  127. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
  128. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
  129. package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +14 -0
  130. package/dist/serialization/resources/plans/types/ListActivePlansResponse.js +35 -0
  131. package/dist/serialization/resources/plans/types/index.d.ts +1 -0
  132. package/dist/serialization/resources/plans/types/index.js +1 -0
  133. package/dist/serialization/types/BillingPlan.d.ts +17 -0
  134. package/dist/serialization/types/BillingPlan.js +38 -0
  135. package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +14 -0
  136. package/dist/serialization/types/BillingPlanGroupResponseData.js +35 -0
  137. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +22 -0
  138. package/{serialization/types/CompanyPlanResponseData.js → dist/serialization/types/BillingProductForSubscriptionResponseData.js} +9 -4
  139. package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
  140. package/dist/serialization/types/BillingProductPricing.js +2 -0
  141. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  142. package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
  143. package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -2
  144. package/dist/serialization/types/CompanySubscriptionResponseData.js +2 -2
  145. package/dist/serialization/types/PlanDetailResponseData.d.ts +0 -1
  146. package/dist/serialization/types/PlanDetailResponseData.js +0 -1
  147. package/dist/serialization/types/PlanResponseData.d.ts +0 -1
  148. package/dist/serialization/types/PlanResponseData.js +0 -1
  149. package/dist/serialization/types/index.d.ts +3 -1
  150. package/dist/serialization/types/index.js +3 -1
  151. package/dist/wrapper.js +20 -15
  152. package/events.d.ts +3 -0
  153. package/events.js +17 -5
  154. package/package.json +1 -1
  155. package/reference.md +282 -49
  156. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +14 -0
  157. package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.js +35 -0
  158. package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +13 -0
  159. package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js +34 -0
  160. package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +13 -0
  161. package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js +34 -0
  162. package/serialization/resources/billing/client/requests/index.d.ts +3 -0
  163. package/serialization/resources/billing/client/requests/index.js +7 -1
  164. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +14 -0
  165. package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +35 -0
  166. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +14 -0
  167. package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +35 -0
  168. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +14 -0
  169. package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +35 -0
  170. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +14 -0
  171. package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +35 -0
  172. package/serialization/resources/billing/types/index.d.ts +4 -0
  173. package/serialization/resources/billing/types/index.js +4 -0
  174. package/serialization/resources/companies/types/index.d.ts +0 -2
  175. package/serialization/resources/companies/types/index.js +0 -2
  176. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
  177. package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
  178. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
  179. package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
  180. package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +14 -0
  181. package/serialization/resources/plans/types/ListActivePlansResponse.js +35 -0
  182. package/serialization/resources/plans/types/index.d.ts +1 -0
  183. package/serialization/resources/plans/types/index.js +1 -0
  184. package/serialization/types/BillingPlan.d.ts +17 -0
  185. package/serialization/types/BillingPlan.js +38 -0
  186. package/serialization/types/BillingPlanGroupResponseData.d.ts +14 -0
  187. package/serialization/types/BillingPlanGroupResponseData.js +35 -0
  188. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +22 -0
  189. package/{dist/serialization/types/CompanyPlanResponseData.js → serialization/types/BillingProductForSubscriptionResponseData.js} +9 -4
  190. package/serialization/types/BillingProductPricing.d.ts +2 -0
  191. package/serialization/types/BillingProductPricing.js +2 -0
  192. package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  193. package/serialization/types/CompanyDetailResponseData.js +2 -1
  194. package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -2
  195. package/serialization/types/CompanySubscriptionResponseData.js +2 -2
  196. package/serialization/types/PlanDetailResponseData.d.ts +0 -1
  197. package/serialization/types/PlanDetailResponseData.js +0 -1
  198. package/serialization/types/PlanResponseData.d.ts +0 -1
  199. package/serialization/types/PlanResponseData.js +0 -1
  200. package/serialization/types/index.d.ts +3 -1
  201. package/serialization/types/index.js +3 -1
  202. package/wrapper.js +20 -15
  203. package/api/resources/companies/client/requests/ListCompanyPlansRequest.d.ts +0 -19
  204. package/api/resources/companies/types/ListCompanyPlansParams.d.ts +0 -14
  205. package/api/types/CompanyPlanResponseData.d.ts +0 -11
  206. package/dist/api/resources/companies/client/requests/ListCompanyPlansRequest.d.ts +0 -19
  207. package/dist/api/resources/companies/types/ListCompanyPlansParams.d.ts +0 -14
  208. package/dist/api/types/CompanyPlanResponseData.d.ts +0 -11
  209. package/dist/serialization/resources/companies/types/ListCompanyPlansParams.d.ts +0 -15
  210. package/dist/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
  211. package/dist/serialization/types/CompanyPlanResponseData.d.ts +0 -17
  212. package/serialization/resources/companies/types/ListCompanyPlansParams.d.ts +0 -15
  213. package/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
  214. package/serialization/types/CompanyPlanResponseData.d.ts +0 -17
  215. /package/api/resources/{companies/client/requests/ListCompanyPlansRequest.js → billing/client/requests/ChangeSubscriptionRequestBody.js} +0 -0
  216. /package/api/resources/{companies/types/ListCompanyPlansParams.js → billing/client/requests/CreateBillingPlanGroupRequestBody.js} +0 -0
  217. /package/api/resources/{companies/types/ListCompanyPlansResponse.js → billing/client/requests/UpdateBillingPlanGroupRequestBody.js} +0 -0
  218. /package/api/{types/CompanyPlanResponseData.js → resources/billing/types/ChangeSubscriptionWebResponse.js} +0 -0
  219. /package/{dist/api/resources/companies/client/requests/ListCompanyPlansRequest.js → api/resources/billing/types/CreateBillingPlanGroupResponse.js} +0 -0
  220. /package/{dist/api/resources/companies/types/ListCompanyPlansParams.js → api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js} +0 -0
  221. /package/{dist/api/resources/companies/types/ListCompanyPlansResponse.js → api/resources/billing/types/UpdateBillingPlanGroupResponse.js} +0 -0
  222. /package/{dist/api/types/CompanyPlanResponseData.js → api/resources/plans/types/ListActivePlansResponse.js} +0 -0
@@ -72,7 +72,7 @@ class Accesstokens {
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
73
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "temporary-access-tokens"),
74
74
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  body: serializers.IssueTemporaryAccessTokenRequestBody.jsonOrThrow(request, {
@@ -81,7 +81,7 @@ class Accounts {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -174,7 +174,7 @@ class Accounts {
174
174
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
175
175
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys"),
176
176
  method: "POST",
177
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
177
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  body: serializers.CreateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -265,7 +265,7 @@ class Accounts {
265
265
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
266
266
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
267
267
  method: "GET",
268
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -357,7 +357,7 @@ class Accounts {
357
357
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
358
358
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
359
359
  method: "PUT",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  body: serializers.UpdateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -456,7 +456,7 @@ class Accounts {
456
456
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
457
457
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-keys/${encodeURIComponent(apiKeyId)}`),
458
458
  method: "DELETE",
459
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
459
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
460
460
  contentType: "application/json",
461
461
  requestType: "json",
462
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -560,7 +560,7 @@ class Accounts {
560
560
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
561
561
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-keys/count"),
562
562
  method: "GET",
563
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
563
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
564
564
  contentType: "application/json",
565
565
  queryParameters: _queryParams,
566
566
  requestType: "json",
@@ -668,7 +668,7 @@ class Accounts {
668
668
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
669
669
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-requests"),
670
670
  method: "GET",
671
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
671
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
672
672
  contentType: "application/json",
673
673
  queryParameters: _queryParams,
674
674
  requestType: "json",
@@ -759,7 +759,7 @@ class Accounts {
759
759
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
760
760
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `api-requests/${encodeURIComponent(apiRequestId)}`),
761
761
  method: "GET",
762
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
762
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
763
763
  contentType: "application/json",
764
764
  requestType: "json",
765
765
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -866,7 +866,7 @@ class Accounts {
866
866
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
867
867
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "api-requests/count"),
868
868
  method: "GET",
869
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
869
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
870
870
  contentType: "application/json",
871
871
  queryParameters: _queryParams,
872
872
  requestType: "json",
@@ -973,7 +973,7 @@ class Accounts {
973
973
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
974
974
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "environments"),
975
975
  method: "GET",
976
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
976
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
977
977
  contentType: "application/json",
978
978
  queryParameters: _queryParams,
979
979
  requestType: "json",
@@ -1067,7 +1067,7 @@ class Accounts {
1067
1067
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1068
1068
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "environments"),
1069
1069
  method: "POST",
1070
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1070
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1071
1071
  contentType: "application/json",
1072
1072
  requestType: "json",
1073
1073
  body: serializers.CreateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1158,7 +1158,7 @@ class Accounts {
1158
1158
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1159
1159
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1160
1160
  method: "GET",
1161
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1161
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1162
1162
  contentType: "application/json",
1163
1163
  requestType: "json",
1164
1164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1250,7 +1250,7 @@ class Accounts {
1250
1250
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1251
1251
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1252
1252
  method: "PUT",
1253
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1253
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1254
1254
  contentType: "application/json",
1255
1255
  requestType: "json",
1256
1256
  body: serializers.UpdateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1349,7 +1349,7 @@ class Accounts {
1349
1349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1350
1350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `environments/${encodeURIComponent(environmentId)}`),
1351
1351
  method: "DELETE",
1352
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1352
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1353
1353
  contentType: "application/json",
1354
1354
  requestType: "json",
1355
1355
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -69,6 +69,50 @@ export declare class Billing {
69
69
  * await client.billing.countCustomers()
70
70
  */
71
71
  countCustomers(request?: Schematic.CountCustomersRequest, requestOptions?: Billing.RequestOptions): Promise<Schematic.CountCustomersResponse>;
72
+ /**
73
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Schematic.UnauthorizedError}
76
+ * @throws {@link Schematic.ForbiddenError}
77
+ * @throws {@link Schematic.NotFoundError}
78
+ * @throws {@link Schematic.InternalServerError}
79
+ *
80
+ * @example
81
+ * await client.billing.getBillingPlanGroupByAccountId()
82
+ */
83
+ getBillingPlanGroupByAccountId(requestOptions?: Billing.RequestOptions): Promise<Schematic.GetBillingPlanGroupByAccountIdResponse>;
84
+ /**
85
+ * @param {Schematic.CreateBillingPlanGroupRequestBody} request
86
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Schematic.BadRequestError}
89
+ * @throws {@link Schematic.UnauthorizedError}
90
+ * @throws {@link Schematic.ForbiddenError}
91
+ * @throws {@link Schematic.InternalServerError}
92
+ *
93
+ * @example
94
+ * await client.billing.createBillingPlanGroup({
95
+ * planIds: ["plan_ids"]
96
+ * })
97
+ */
98
+ createBillingPlanGroup(request: Schematic.CreateBillingPlanGroupRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.CreateBillingPlanGroupResponse>;
99
+ /**
100
+ * @param {string} billingId - billing_id
101
+ * @param {Schematic.UpdateBillingPlanGroupRequestBody} request
102
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Schematic.BadRequestError}
105
+ * @throws {@link Schematic.UnauthorizedError}
106
+ * @throws {@link Schematic.ForbiddenError}
107
+ * @throws {@link Schematic.NotFoundError}
108
+ * @throws {@link Schematic.InternalServerError}
109
+ *
110
+ * @example
111
+ * await client.billing.updateBillingPlanGroup("billing_id", {
112
+ * planIds: ["plan_ids"]
113
+ * })
114
+ */
115
+ updateBillingPlanGroup(billingId: string, request: Schematic.UpdateBillingPlanGroupRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.UpdateBillingPlanGroupResponse>;
72
116
  /**
73
117
  * @param {Schematic.CreateBillingPriceRequestBody} request
74
118
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
@@ -154,6 +198,23 @@ export declare class Billing {
154
198
  * })
155
199
  */
156
200
  upsertBillingSubscription(request: Schematic.CreateBillingSubscriptionsRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.UpsertBillingSubscriptionResponse>;
201
+ /**
202
+ * @param {Schematic.ChangeSubscriptionRequestBody} request
203
+ * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
204
+ *
205
+ * @throws {@link Schematic.BadRequestError}
206
+ * @throws {@link Schematic.UnauthorizedError}
207
+ * @throws {@link Schematic.ForbiddenError}
208
+ * @throws {@link Schematic.InternalServerError}
209
+ *
210
+ * @example
211
+ * await client.billing.changeSubscriptionWeb({
212
+ * action: "action",
213
+ * newPlanId: "new_plan_id",
214
+ * newPriceId: "new_price_id"
215
+ * })
216
+ */
217
+ changeSubscriptionWeb(request: Schematic.ChangeSubscriptionRequestBody, requestOptions?: Billing.RequestOptions): Promise<Schematic.ChangeSubscriptionWebResponse>;
157
218
  protected _getCustomAuthorizationHeaders(): Promise<{
158
219
  "X-Schematic-Api-Key": string;
159
220
  }>;