@schematichq/schematic-typescript-node 1.1.0 → 1.1.2

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 (111) hide show
  1. package/README.md +19 -11
  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 +8 -8
  5. package/api/resources/companies/client/Client.js +32 -32
  6. package/api/resources/components/client/Client.d.ts +0 -1
  7. package/api/resources/components/client/Client.js +7 -8
  8. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -2
  9. package/api/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  10. package/api/resources/crm/client/Client.js +5 -5
  11. package/api/resources/entitlements/client/Client.js +19 -19
  12. package/api/resources/events/client/Client.js +8 -8
  13. package/api/resources/features/client/Client.js +19 -19
  14. package/api/resources/plans/client/Client.js +18 -12
  15. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  16. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  17. package/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  18. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  19. package/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  20. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  21. package/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  22. package/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  23. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  24. package/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  25. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  26. package/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  27. package/api/resources/plans/types/index.d.ts +4 -0
  28. package/api/resources/plans/types/index.js +4 -0
  29. package/api/resources/webhooks/client/Client.js +9 -9
  30. package/api/types/ComponentResponseData.d.ts +1 -1
  31. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  32. package/dist/api/resources/accounts/client/Client.js +14 -14
  33. package/dist/api/resources/billing/client/Client.js +8 -8
  34. package/dist/api/resources/companies/client/Client.js +32 -32
  35. package/dist/api/resources/components/client/Client.d.ts +0 -1
  36. package/dist/api/resources/components/client/Client.js +7 -8
  37. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -2
  38. package/dist/api/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  39. package/dist/api/resources/crm/client/Client.js +5 -5
  40. package/dist/api/resources/entitlements/client/Client.js +19 -19
  41. package/dist/api/resources/events/client/Client.js +8 -8
  42. package/dist/api/resources/features/client/Client.js +19 -19
  43. package/dist/api/resources/plans/client/Client.js +18 -12
  44. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  45. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  46. package/dist/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  47. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  48. package/dist/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  49. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  50. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  51. package/dist/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  52. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  53. package/dist/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  54. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  55. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  56. package/dist/api/resources/plans/types/index.d.ts +4 -0
  57. package/dist/api/resources/plans/types/index.js +4 -0
  58. package/dist/api/resources/webhooks/client/Client.js +9 -9
  59. package/dist/api/types/ComponentResponseData.d.ts +1 -1
  60. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  61. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +1 -1
  62. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  63. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +1 -1
  64. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  65. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  66. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  67. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  68. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  69. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  70. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  71. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  72. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  73. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  74. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  75. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  76. package/dist/serialization/resources/plans/types/index.d.ts +4 -0
  77. package/dist/serialization/resources/plans/types/index.js +4 -0
  78. package/dist/serialization/types/ComponentResponseData.d.ts +1 -1
  79. package/dist/serialization/types/ComponentResponseData.js +1 -1
  80. package/dist/wrapper.d.ts +2 -1
  81. package/dist/wrapper.js +3 -6
  82. package/package.json +10 -13
  83. package/reference.md +0 -1
  84. package/serialization/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  85. package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +1 -1
  86. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  87. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +1 -1
  88. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  89. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  90. package/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  91. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  92. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  93. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  94. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  95. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  96. package/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  97. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  98. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  99. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  100. package/serialization/resources/plans/types/index.d.ts +4 -0
  101. package/serialization/resources/plans/types/index.js +4 -0
  102. package/serialization/types/ComponentResponseData.d.ts +1 -1
  103. package/serialization/types/ComponentResponseData.js +1 -1
  104. package/wrapper.d.ts +2 -1
  105. package/wrapper.js +3 -6
  106. package/.husky/pre-commit +0 -1
  107. package/dist/version.d.ts +0 -1
  108. package/dist/version.js +0 -4
  109. package/generate-version.js +0 -6
  110. package/version.d.ts +0 -1
  111. package/version.js +0 -4
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -9,6 +10,10 @@ export interface CountPlansRequest {
9
10
  companyId?: string;
10
11
  ids?: string | string[];
11
12
  q?: string;
13
+ /**
14
+ * Filter by plan type
15
+ */
16
+ planType?: Schematic.CountPlansRequestPlanType;
12
17
  /**
13
18
  * Filter out plans that already have a plan entitlement for the specified feature ID
14
19
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -9,6 +10,10 @@ export interface ListPlansRequest {
9
10
  companyId?: string;
10
11
  ids?: string | string[];
11
12
  q?: string;
13
+ /**
14
+ * Filter by plan type
15
+ */
16
+ planType?: Schematic.ListPlansRequestPlanType;
12
17
  /**
13
18
  * Filter out plans that already have a plan entitlement for the specified feature ID
14
19
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../../../index";
4
5
  /**
5
6
  * Input parameters
6
7
  */
@@ -11,6 +12,8 @@ export interface CountPlansParams {
11
12
  limit?: number;
12
13
  /** Page offset (default 0) */
13
14
  offset?: number;
15
+ /** Filter by plan type */
16
+ planType?: Schematic.CountPlansResponseParamsPlanType;
14
17
  q?: string;
15
18
  /** Filter out plans that already have a plan entitlement for the specified feature ID */
16
19
  withoutEntitlementFor?: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filter by plan type
6
+ */
7
+ export declare type CountPlansRequestPlanType = "plan" | "add_on";
8
+ export declare const CountPlansRequestPlanType: {
9
+ readonly Plan: "plan";
10
+ readonly AddOn: "add_on";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CountPlansRequestPlanType = void 0;
7
+ exports.CountPlansRequestPlanType = {
8
+ Plan: "plan",
9
+ AddOn: "add_on",
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filter by plan type
6
+ */
7
+ export declare type CountPlansResponseParamsPlanType = "plan" | "add_on";
8
+ export declare const CountPlansResponseParamsPlanType: {
9
+ readonly Plan: "plan";
10
+ readonly AddOn: "add_on";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CountPlansResponseParamsPlanType = void 0;
7
+ exports.CountPlansResponseParamsPlanType = {
8
+ Plan: "plan",
9
+ AddOn: "add_on",
10
+ };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../../../index";
4
5
  /**
5
6
  * Input parameters
6
7
  */
@@ -11,6 +12,8 @@ export interface ListPlansParams {
11
12
  limit?: number;
12
13
  /** Page offset (default 0) */
13
14
  offset?: number;
15
+ /** Filter by plan type */
16
+ planType?: Schematic.ListPlansResponseParamsPlanType;
14
17
  q?: string;
15
18
  /** Filter out plans that already have a plan entitlement for the specified feature ID */
16
19
  withoutEntitlementFor?: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filter by plan type
6
+ */
7
+ export declare type ListPlansRequestPlanType = "plan" | "add_on";
8
+ export declare const ListPlansRequestPlanType: {
9
+ readonly Plan: "plan";
10
+ readonly AddOn: "add_on";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListPlansRequestPlanType = void 0;
7
+ exports.ListPlansRequestPlanType = {
8
+ Plan: "plan",
9
+ AddOn: "add_on",
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filter by plan type
6
+ */
7
+ export declare type ListPlansResponseParamsPlanType = "plan" | "add_on";
8
+ export declare const ListPlansResponseParamsPlanType: {
9
+ readonly Plan: "plan";
10
+ readonly AddOn: "add_on";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListPlansResponseParamsPlanType = void 0;
7
+ exports.ListPlansResponseParamsPlanType = {
8
+ Plan: "plan",
9
+ AddOn: "add_on",
10
+ };
@@ -1,6 +1,8 @@
1
1
  export * from "./GetAudienceResponse";
2
2
  export * from "./UpdateAudienceResponse";
3
3
  export * from "./DeleteAudienceResponse";
4
+ export * from "./ListPlansRequestPlanType";
5
+ export * from "./ListPlansResponseParamsPlanType";
4
6
  export * from "./ListPlansParams";
5
7
  export * from "./ListPlansResponse";
6
8
  export * from "./CreatePlanRequestBodyPlanType";
@@ -9,5 +11,7 @@ export * from "./GetPlanResponse";
9
11
  export * from "./UpdatePlanResponse";
10
12
  export * from "./DeletePlanResponse";
11
13
  export * from "./UpsertBillingProductPlanResponse";
14
+ export * from "./CountPlansRequestPlanType";
15
+ export * from "./CountPlansResponseParamsPlanType";
12
16
  export * from "./CountPlansParams";
13
17
  export * from "./CountPlansResponse";
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetAudienceResponse"), exports);
18
18
  __exportStar(require("./UpdateAudienceResponse"), exports);
19
19
  __exportStar(require("./DeleteAudienceResponse"), exports);
20
+ __exportStar(require("./ListPlansRequestPlanType"), exports);
21
+ __exportStar(require("./ListPlansResponseParamsPlanType"), exports);
20
22
  __exportStar(require("./ListPlansParams"), exports);
21
23
  __exportStar(require("./ListPlansResponse"), exports);
22
24
  __exportStar(require("./CreatePlanRequestBodyPlanType"), exports);
@@ -25,5 +27,7 @@ __exportStar(require("./GetPlanResponse"), exports);
25
27
  __exportStar(require("./UpdatePlanResponse"), exports);
26
28
  __exportStar(require("./DeletePlanResponse"), exports);
27
29
  __exportStar(require("./UpsertBillingProductPlanResponse"), exports);
30
+ __exportStar(require("./CountPlansRequestPlanType"), exports);
31
+ __exportStar(require("./CountPlansResponseParamsPlanType"), exports);
28
32
  __exportStar(require("./CountPlansParams"), exports);
29
33
  __exportStar(require("./CountPlansResponse"), exports);
@@ -89,7 +89,7 @@ class Webhooks {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events"),
91
91
  method: "GET",
92
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
+ 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())),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -180,7 +180,7 @@ class Webhooks {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
182
182
  method: "GET",
183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ 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())),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -292,7 +292,7 @@ class Webhooks {
292
292
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
293
293
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events/count"),
294
294
  method: "GET",
295
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
+ 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())),
296
296
  contentType: "application/json",
297
297
  queryParameters: _queryParams,
298
298
  requestType: "json",
@@ -394,7 +394,7 @@ class Webhooks {
394
394
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
395
395
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
396
396
  method: "GET",
397
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
+ 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())),
398
398
  contentType: "application/json",
399
399
  queryParameters: _queryParams,
400
400
  requestType: "json",
@@ -489,7 +489,7 @@ class Webhooks {
489
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
490
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
491
491
  method: "POST",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
492
+ 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())),
493
493
  contentType: "application/json",
494
494
  requestType: "json",
495
495
  body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -580,7 +580,7 @@ class Webhooks {
580
580
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
581
581
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
582
582
  method: "GET",
583
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
+ 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())),
584
584
  contentType: "application/json",
585
585
  requestType: "json",
586
586
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -672,7 +672,7 @@ class Webhooks {
672
672
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
673
673
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
674
674
  method: "PUT",
675
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
675
+ 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())),
676
676
  contentType: "application/json",
677
677
  requestType: "json",
678
678
  body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -771,7 +771,7 @@ class Webhooks {
771
771
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
772
772
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
773
773
  method: "DELETE",
774
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
774
+ 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())),
775
775
  contentType: "application/json",
776
776
  requestType: "json",
777
777
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -872,7 +872,7 @@ class Webhooks {
872
872
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
873
873
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks/count"),
874
874
  method: "GET",
875
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
875
+ 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())),
876
876
  contentType: "application/json",
877
877
  queryParameters: _queryParams,
878
878
  requestType: "json",
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ComponentResponseData {
5
- ast: number[];
5
+ ast?: Record<string, number>;
6
6
  createdAt: Date;
7
7
  id: string;
8
8
  name: string;
@@ -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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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.0", "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.2", "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",
@@ -389,7 +389,7 @@ class Billing {
389
389
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
390
390
  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"),
391
391
  method: "POST",
392
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
392
+ 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())),
393
393
  contentType: "application/json",
394
394
  requestType: "json",
395
395
  body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -502,7 +502,7 @@ class Billing {
502
502
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
503
503
  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"),
504
504
  method: "GET",
505
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
505
+ 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())),
506
506
  contentType: "application/json",
507
507
  queryParameters: _queryParams,
508
508
  requestType: "json",
@@ -599,7 +599,7 @@ class Billing {
599
599
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
600
600
  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"),
601
601
  method: "POST",
602
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
602
+ 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())),
603
603
  contentType: "application/json",
604
604
  requestType: "json",
605
605
  body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -712,7 +712,7 @@ class Billing {
712
712
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
713
713
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products"),
714
714
  method: "GET",
715
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
715
+ 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())),
716
716
  contentType: "application/json",
717
717
  queryParameters: _queryParams,
718
718
  requestType: "json",
@@ -812,7 +812,7 @@ class Billing {
812
812
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
813
813
  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"),
814
814
  method: "POST",
815
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
815
+ 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())),
816
816
  contentType: "application/json",
817
817
  requestType: "json",
818
818
  body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {