@schematichq/schematic-typescript-node 1.1.6 → 1.1.7

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 (152) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/accesstokens/client/Client.js +1 -1
  3. package/api/resources/accounts/client/Client.js +14 -14
  4. package/api/resources/billing/client/Client.js +21 -18
  5. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
  6. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  7. package/api/resources/companies/client/Client.d.ts +2 -2
  8. package/api/resources/companies/client/Client.js +33 -33
  9. package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  10. package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  11. package/api/resources/components/client/Client.js +7 -7
  12. package/api/resources/crm/client/Client.js +5 -5
  13. package/api/resources/entitlements/client/Client.d.ts +1 -1
  14. package/api/resources/entitlements/client/Client.js +20 -20
  15. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
  16. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
  17. package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  18. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
  19. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
  20. package/api/resources/events/client/Client.js +7 -7
  21. package/api/resources/features/client/Client.js +19 -19
  22. package/api/resources/plangroups/client/Client.js +3 -3
  23. package/api/resources/plans/client/Client.js +10 -10
  24. package/api/resources/webhooks/client/Client.js +9 -9
  25. package/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  26. package/api/types/CheckFlagResponseData.d.ts +1 -0
  27. package/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  28. package/api/types/ComponentHydrateResponseData.d.ts +1 -0
  29. package/api/types/ComponentPreviewResponseData.d.ts +1 -0
  30. package/api/types/CreateEntitlementReqCommon.d.ts +2 -1
  31. package/api/types/FeatureCompanyResponseData.d.ts +2 -0
  32. package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  33. package/api/types/FeatureUsageResponseData.d.ts +2 -0
  34. package/api/types/PlanEntitlementResponseData.d.ts +2 -1
  35. package/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
  36. package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  37. package/api/types/UsageBasedEntitlementResponseData.js +5 -0
  38. package/api/types/index.d.ts +1 -0
  39. package/api/types/index.js +1 -0
  40. package/dist/Client.js +1 -1
  41. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  42. package/dist/api/resources/accounts/client/Client.js +14 -14
  43. package/dist/api/resources/billing/client/Client.js +21 -18
  44. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
  45. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  46. package/dist/api/resources/companies/client/Client.d.ts +2 -2
  47. package/dist/api/resources/companies/client/Client.js +33 -33
  48. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
  49. package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
  50. package/dist/api/resources/components/client/Client.js +7 -7
  51. package/dist/api/resources/crm/client/Client.js +5 -5
  52. package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
  53. package/dist/api/resources/entitlements/client/Client.js +20 -20
  54. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
  55. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
  56. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
  57. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
  58. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
  59. package/dist/api/resources/events/client/Client.js +7 -7
  60. package/dist/api/resources/features/client/Client.js +19 -19
  61. package/dist/api/resources/plangroups/client/Client.js +3 -3
  62. package/dist/api/resources/plans/client/Client.js +10 -10
  63. package/dist/api/resources/webhooks/client/Client.js +9 -9
  64. package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  65. package/dist/api/types/CheckFlagResponseData.d.ts +1 -0
  66. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  67. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  68. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  69. package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -1
  70. package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
  71. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
  72. package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
  73. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -1
  74. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -1
  75. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
  76. package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
  77. package/dist/api/types/index.d.ts +1 -0
  78. package/dist/api/types/index.js +1 -0
  79. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  80. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
  81. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
  82. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
  83. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
  84. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
  85. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
  86. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
  87. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
  88. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
  89. package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  90. package/dist/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
  91. package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
  92. package/dist/serialization/types/CheckFlagResponseData.js +1 -0
  93. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
  94. package/dist/serialization/types/CompanyPlanDetailResponseData.js +1 -0
  95. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  96. package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
  97. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  98. package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
  99. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
  100. package/dist/serialization/types/CreateEntitlementReqCommon.js +2 -1
  101. package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  102. package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
  103. package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  104. package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  105. package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  106. package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
  107. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
  108. package/dist/serialization/types/PlanEntitlementResponseData.js +2 -1
  109. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
  110. package/dist/serialization/types/UpdateEntitlementReqCommon.js +2 -1
  111. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  112. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
  113. package/dist/serialization/types/index.d.ts +1 -0
  114. package/dist/serialization/types/index.js +1 -0
  115. package/package.json +1 -1
  116. package/reference.md +3 -3
  117. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  118. package/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
  119. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -1
  120. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +2 -1
  121. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -2
  122. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +4 -2
  123. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -1
  124. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +2 -1
  125. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -1
  126. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +2 -1
  127. package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +1 -0
  128. package/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
  129. package/serialization/types/CheckFlagResponseData.d.ts +1 -0
  130. package/serialization/types/CheckFlagResponseData.js +1 -0
  131. package/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
  132. package/serialization/types/CompanyPlanDetailResponseData.js +1 -0
  133. package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  134. package/serialization/types/ComponentHydrateResponseData.js +2 -0
  135. package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  136. package/serialization/types/ComponentPreviewResponseData.js +2 -0
  137. package/serialization/types/CreateEntitlementReqCommon.d.ts +2 -1
  138. package/serialization/types/CreateEntitlementReqCommon.js +2 -1
  139. package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
  140. package/serialization/types/FeatureCompanyResponseData.js +1 -0
  141. package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
  142. package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
  143. package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
  144. package/serialization/types/FeatureUsageResponseData.js +1 -0
  145. package/serialization/types/PlanEntitlementResponseData.d.ts +2 -1
  146. package/serialization/types/PlanEntitlementResponseData.js +2 -1
  147. package/serialization/types/UpdateEntitlementReqCommon.d.ts +2 -1
  148. package/serialization/types/UpdateEntitlementReqCommon.js +2 -1
  149. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
  150. package/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
  151. package/serialization/types/index.d.ts +1 -0
  152. package/serialization/types/index.js +1 -0
package/Client.js CHANGED
@@ -71,7 +71,7 @@ class SchematicClient {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-plans"),
73
73
  method: "GET",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "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.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "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,
@@ -75,7 +75,7 @@ class Billing {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customer/upsert"),
77
77
  method: "POST",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.CreateBillingCustomerRequestBody.jsonOrThrow(request, {
@@ -185,7 +185,7 @@ class Billing {
185
185
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
186
186
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers"),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
189
  contentType: "application/json",
190
190
  queryParameters: _queryParams,
191
191
  requestType: "json",
@@ -293,7 +293,7 @@ class Billing {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers/count"),
295
295
  method: "GET",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "application/json",
298
298
  queryParameters: _queryParams,
299
299
  requestType: "json",
@@ -401,7 +401,7 @@ class Billing {
401
401
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
402
402
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
403
403
  method: "GET",
404
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
405
  contentType: "application/json",
406
406
  queryParameters: _queryParams,
407
407
  requestType: "json",
@@ -500,7 +500,7 @@ class Billing {
500
500
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
501
501
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
502
502
  method: "POST",
503
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
503
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
504
504
  contentType: "application/json",
505
505
  requestType: "json",
506
506
  body: serializers.CreateInvoiceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -602,7 +602,7 @@ class Billing {
602
602
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
603
603
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter"),
604
604
  method: "GET",
605
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
605
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
606
606
  contentType: "application/json",
607
607
  queryParameters: _queryParams,
608
608
  requestType: "json",
@@ -698,7 +698,7 @@ class Billing {
698
698
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
699
699
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter/upsert"),
700
700
  method: "POST",
701
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
701
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
702
702
  contentType: "application/json",
703
703
  requestType: "json",
704
704
  body: serializers.CreateMeterRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -806,7 +806,7 @@ class Billing {
806
806
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
807
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
808
808
  method: "GET",
809
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
809
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
810
810
  contentType: "application/json",
811
811
  queryParameters: _queryParams,
812
812
  requestType: "json",
@@ -901,7 +901,7 @@ class Billing {
901
901
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
902
902
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
903
903
  method: "POST",
904
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
904
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
905
905
  contentType: "application/json",
906
906
  requestType: "json",
907
907
  body: serializers.CreatePaymentMethodRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -989,7 +989,7 @@ class Billing {
989
989
  searchBillingPrices(request = {}, requestOptions) {
990
990
  var _a, _b;
991
991
  return __awaiter(this, void 0, void 0, function* () {
992
- const { ids, usageType, price, limit, offset } = request;
992
+ const { ids, interval, usageType, price, limit, offset } = request;
993
993
  const _queryParams = {};
994
994
  if (ids != null) {
995
995
  if (Array.isArray(ids)) {
@@ -999,6 +999,9 @@ class Billing {
999
999
  _queryParams["ids"] = ids;
1000
1000
  }
1001
1001
  }
1002
+ if (interval != null) {
1003
+ _queryParams["interval"] = interval;
1004
+ }
1002
1005
  if (usageType != null) {
1003
1006
  _queryParams["usage_type"] = usageType;
1004
1007
  }
@@ -1014,7 +1017,7 @@ class Billing {
1014
1017
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1015
1018
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price"),
1016
1019
  method: "GET",
1017
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1020
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1018
1021
  contentType: "application/json",
1019
1022
  queryParameters: _queryParams,
1020
1023
  requestType: "json",
@@ -1112,7 +1115,7 @@ class Billing {
1112
1115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1113
1116
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price/upsert"),
1114
1117
  method: "POST",
1115
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1118
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1116
1119
  contentType: "application/json",
1117
1120
  requestType: "json",
1118
1121
  body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1237,7 +1240,7 @@ class Billing {
1237
1240
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1238
1241
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/prices"),
1239
1242
  method: "GET",
1240
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1243
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1241
1244
  contentType: "application/json",
1242
1245
  queryParameters: _queryParams,
1243
1246
  requestType: "json",
@@ -1328,7 +1331,7 @@ class Billing {
1328
1331
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1329
1332
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `billing/product/prices/${encodeURIComponent(billingId)}`),
1330
1333
  method: "DELETE",
1331
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1334
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1332
1335
  contentType: "application/json",
1333
1336
  requestType: "json",
1334
1337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1424,7 +1427,7 @@ class Billing {
1424
1427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1425
1428
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/upsert"),
1426
1429
  method: "POST",
1427
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1430
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1428
1431
  contentType: "application/json",
1429
1432
  requestType: "json",
1430
1433
  body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1549,7 +1552,7 @@ class Billing {
1549
1552
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1550
1553
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products"),
1551
1554
  method: "GET",
1552
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1555
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1553
1556
  contentType: "application/json",
1554
1557
  queryParameters: _queryParams,
1555
1558
  requestType: "json",
@@ -1674,7 +1677,7 @@ class Billing {
1674
1677
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1675
1678
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products/count"),
1676
1679
  method: "GET",
1677
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1680
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1678
1681
  contentType: "application/json",
1679
1682
  queryParameters: _queryParams,
1680
1683
  requestType: "json",
@@ -1780,7 +1783,7 @@ class Billing {
1780
1783
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1781
1784
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/subscription/upsert"),
1782
1785
  method: "POST",
1783
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1786
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1784
1787
  contentType: "application/json",
1785
1788
  requestType: "json",
1786
1789
  body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {
@@ -7,6 +7,7 @@
7
7
  */
8
8
  export interface SearchBillingPricesRequest {
9
9
  ids?: string | string[];
10
+ interval?: string;
10
11
  usageType?: string;
11
12
  price?: number;
12
13
  /**
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export interface SearchBillingPricesParams {
8
8
  ids?: string[];
9
+ interval?: string;
9
10
  /** Page limit (default 100) */
10
11
  limit?: number;
11
12
  /** Page offset (default 0) */
@@ -137,7 +137,7 @@ export declare class Companies {
137
137
  * @example
138
138
  * await client.companies.lookupCompany({
139
139
  * keys: {
140
- * "string": {
140
+ * "keys": {
141
141
  * "key": "value"
142
142
  * }
143
143
  * }
@@ -486,7 +486,7 @@ export declare class Companies {
486
486
  * @example
487
487
  * await client.companies.lookupUser({
488
488
  * keys: {
489
- * "string": {
489
+ * "keys": {
490
490
  * "key": "value"
491
491
  * }
492
492
  * }