@schematichq/schematic-typescript-node 1.1.0 → 1.1.1

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 (94) 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.js +7 -7
  7. package/api/resources/crm/client/Client.js +5 -5
  8. package/api/resources/entitlements/client/Client.js +19 -19
  9. package/api/resources/events/client/Client.js +8 -8
  10. package/api/resources/features/client/Client.js +19 -19
  11. package/api/resources/plans/client/Client.js +18 -12
  12. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  13. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  14. package/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  15. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  16. package/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  17. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  18. package/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  19. package/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  20. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  21. package/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  22. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  23. package/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  24. package/api/resources/plans/types/index.d.ts +4 -0
  25. package/api/resources/plans/types/index.js +4 -0
  26. package/api/resources/webhooks/client/Client.js +9 -9
  27. package/api/types/ComponentResponseData.d.ts +1 -1
  28. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  29. package/dist/api/resources/accounts/client/Client.js +14 -14
  30. package/dist/api/resources/billing/client/Client.js +8 -8
  31. package/dist/api/resources/companies/client/Client.js +32 -32
  32. package/dist/api/resources/components/client/Client.js +7 -7
  33. package/dist/api/resources/crm/client/Client.js +5 -5
  34. package/dist/api/resources/entitlements/client/Client.js +19 -19
  35. package/dist/api/resources/events/client/Client.js +8 -8
  36. package/dist/api/resources/features/client/Client.js +19 -19
  37. package/dist/api/resources/plans/client/Client.js +18 -12
  38. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  39. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  40. package/dist/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  41. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  42. package/dist/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  43. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  44. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  45. package/dist/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  46. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  47. package/dist/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  48. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  49. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  50. package/dist/api/resources/plans/types/index.d.ts +4 -0
  51. package/dist/api/resources/plans/types/index.js +4 -0
  52. package/dist/api/resources/webhooks/client/Client.js +9 -9
  53. package/dist/api/types/ComponentResponseData.d.ts +1 -1
  54. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  55. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  56. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  57. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  58. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  59. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  60. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  61. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  62. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  63. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  64. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  65. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  66. package/dist/serialization/resources/plans/types/index.d.ts +4 -0
  67. package/dist/serialization/resources/plans/types/index.js +4 -0
  68. package/dist/serialization/types/ComponentResponseData.d.ts +1 -1
  69. package/dist/serialization/types/ComponentResponseData.js +1 -1
  70. package/dist/version.d.ts +1 -1
  71. package/dist/version.js +1 -1
  72. package/dist/wrapper.d.ts +2 -1
  73. package/dist/wrapper.js +2 -2
  74. package/package.json +1 -1
  75. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  76. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  77. package/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  78. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  79. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  80. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  81. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  82. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  83. package/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  84. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  85. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  86. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  87. package/serialization/resources/plans/types/index.d.ts +4 -0
  88. package/serialization/resources/plans/types/index.js +4 -0
  89. package/serialization/types/ComponentResponseData.d.ts +1 -1
  90. package/serialization/types/ComponentResponseData.js +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/wrapper.d.ts +2 -1
  94. package/wrapper.js +2 -2
@@ -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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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.1", "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;
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { CountPlansResponseParamsPlanType } from "./CountPlansResponseParamsPlanType";
7
8
  export declare const CountPlansParams: core.serialization.ObjectSchema<serializers.CountPlansParams.Raw, Schematic.CountPlansParams>;
8
9
  export declare namespace CountPlansParams {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace CountPlansParams {
11
12
  ids?: string[] | null;
12
13
  limit?: number | null;
13
14
  offset?: number | null;
15
+ plan_type?: CountPlansResponseParamsPlanType.Raw | null;
14
16
  q?: string | null;
15
17
  without_entitlement_for?: string | null;
16
18
  }
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CountPlansParams = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const CountPlansResponseParamsPlanType_1 = require("./CountPlansResponseParamsPlanType");
31
32
  exports.CountPlansParams = core.serialization.object({
32
33
  companyId: core.serialization.property("company_id", core.serialization.string().optional()),
33
34
  ids: core.serialization.list(core.serialization.string()).optional(),
34
35
  limit: core.serialization.number().optional(),
35
36
  offset: core.serialization.number().optional(),
37
+ planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
36
38
  q: core.serialization.string().optional(),
37
39
  withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
38
40
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CountPlansRequestPlanType: core.serialization.Schema<serializers.CountPlansRequestPlanType.Raw, Schematic.CountPlansRequestPlanType>;
8
+ export declare namespace CountPlansRequestPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CountPlansRequestPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CountPlansRequestPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CountPlansResponseParamsPlanType: core.serialization.Schema<serializers.CountPlansResponseParamsPlanType.Raw, Schematic.CountPlansResponseParamsPlanType>;
8
+ export declare namespace CountPlansResponseParamsPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CountPlansResponseParamsPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CountPlansResponseParamsPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ListPlansResponseParamsPlanType } from "./ListPlansResponseParamsPlanType";
7
8
  export declare const ListPlansParams: core.serialization.ObjectSchema<serializers.ListPlansParams.Raw, Schematic.ListPlansParams>;
8
9
  export declare namespace ListPlansParams {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace ListPlansParams {
11
12
  ids?: string[] | null;
12
13
  limit?: number | null;
13
14
  offset?: number | null;
15
+ plan_type?: ListPlansResponseParamsPlanType.Raw | null;
14
16
  q?: string | null;
15
17
  without_entitlement_for?: string | null;
16
18
  }
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ListPlansParams = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ListPlansResponseParamsPlanType_1 = require("./ListPlansResponseParamsPlanType");
31
32
  exports.ListPlansParams = core.serialization.object({
32
33
  companyId: core.serialization.property("company_id", core.serialization.string().optional()),
33
34
  ids: core.serialization.list(core.serialization.string()).optional(),
34
35
  limit: core.serialization.number().optional(),
35
36
  offset: core.serialization.number().optional(),
37
+ planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
36
38
  q: core.serialization.string().optional(),
37
39
  withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
38
40
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlansRequestPlanType: core.serialization.Schema<serializers.ListPlansRequestPlanType.Raw, Schematic.ListPlansRequestPlanType>;
8
+ export declare namespace ListPlansRequestPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ListPlansRequestPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ListPlansRequestPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlansResponseParamsPlanType: core.serialization.Schema<serializers.ListPlansResponseParamsPlanType.Raw, Schematic.ListPlansResponseParamsPlanType>;
8
+ export declare namespace ListPlansResponseParamsPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ListPlansResponseParamsPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ListPlansResponseParamsPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -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);
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const ComponentResponseData: core.serialization.ObjectSchema<serializers.ComponentResponseData.Raw, Schematic.ComponentResponseData>;
8
8
  export declare namespace ComponentResponseData {
9
9
  interface Raw {
10
- ast: number[];
10
+ ast?: Record<string, number> | null;
11
11
  created_at: string;
12
12
  id: string;
13
13
  name: string;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ComponentResponseData = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ComponentResponseData = core.serialization.object({
32
- ast: core.serialization.list(core.serialization.number()),
32
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
33
33
  createdAt: core.serialization.property("created_at", core.serialization.date()),
34
34
  id: core.serialization.string(),
35
35
  name: core.serialization.string(),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.1.0";
1
+ export declare const version = "1.1.1";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "1.1.0";
4
+ exports.version = "1.1.1";
package/dist/wrapper.d.ts CHANGED
@@ -3,6 +3,7 @@ import { SchematicClient as BaseClient } from "./Client";
3
3
  import { CacheProvider } from "./cache";
4
4
  import { Logger } from "./logger";
5
5
  export interface SchematicOptions {
6
+ apiKey?: string;
6
7
  basePath?: string;
7
8
  cacheProviders?: {
8
9
  flagChecks?: CacheProvider<boolean>[];
@@ -22,7 +23,7 @@ export declare class SchematicClient extends BaseClient {
22
23
  private flagDefaults;
23
24
  private logger;
24
25
  private offline;
25
- constructor(apiKey: string, opts?: SchematicOptions);
26
+ constructor(opts?: SchematicOptions);
26
27
  checkFlag(evalCtx: api.CheckFlagRequestBody, key: string): Promise<boolean>;
27
28
  close(): Promise<void>;
28
29
  identify(body: api.EventBodyIdentify): Promise<void>;