@schematichq/schematic-typescript-node 1.2.4 → 1.2.6

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 (159) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Client.d.ts +11 -57
  3. package/dist/api/resources/companies/client/Client.d.ts +41 -2
  4. package/dist/api/resources/companies/client/requests/DeleteCompanyRequest.d.ts +14 -0
  5. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +28 -0
  6. package/dist/api/resources/companies/client/requests/index.d.ts +2 -0
  7. package/dist/api/resources/companies/types/DeleteCompanyParams.d.ts +10 -0
  8. package/dist/api/resources/companies/types/DeleteCompanyResponse.d.ts +1 -1
  9. package/dist/api/resources/{features/types/CountAudienceCompaniesResponse.d.ts → companies/types/GetPlanChangeResponse.d.ts} +2 -2
  10. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +17 -0
  11. package/dist/api/resources/{plans/types/DeleteAudienceResponse.d.ts → companies/types/ListPlanChangesResponse.d.ts} +3 -3
  12. package/dist/api/resources/companies/types/index.d.ts +4 -0
  13. package/dist/api/resources/credits/client/Client.d.ts +46 -24
  14. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  15. package/dist/api/resources/credits/client/requests/DeleteBillingPlanCreditGrantRequest.d.ts +12 -0
  16. package/dist/api/resources/credits/client/requests/UpdateBillingPlanCreditGrantRequestBody.d.ts +21 -0
  17. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  18. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.d.ts +11 -0
  19. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.d.ts +8 -0
  20. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantParams.d.ts +9 -0
  21. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +1 -1
  22. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +11 -0
  23. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +8 -0
  24. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  25. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
  26. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetType.d.ts +8 -0
  27. package/dist/api/resources/{features/types/CountAudienceUsersResponse.d.ts → credits/types/UpdateBillingPlanCreditGrantResponse.d.ts} +2 -2
  28. package/dist/api/resources/credits/types/index.d.ts +9 -0
  29. package/dist/api/resources/features/client/Client.d.ts +0 -112
  30. package/dist/api/resources/features/types/index.d.ts +0 -4
  31. package/dist/api/resources/index.d.ts +3 -3
  32. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  33. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  34. package/dist/api/resources/plans/client/Client.d.ts +0 -58
  35. package/dist/api/resources/plans/client/requests/index.d.ts +0 -1
  36. package/dist/api/resources/plans/types/index.d.ts +0 -3
  37. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  38. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  39. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  40. package/dist/api/types/Condition.d.ts +4 -4
  41. package/dist/api/types/ConditionConditionType.d.ts +15 -0
  42. package/dist/api/types/ConditionMetricPeriod.d.ts +10 -0
  43. package/dist/api/types/ConditionMetricPeriodMonthReset.d.ts +8 -0
  44. package/dist/api/types/ConditionOperator.d.ts +14 -0
  45. package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  46. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -2
  47. package/dist/api/types/CreditGrantExpiryRequestBody.d.ts +12 -0
  48. package/dist/api/types/CreditGrantExpiryRequestBodyExpiryType.d.ts +11 -0
  49. package/dist/api/types/CreditGrantExpiryRequestBodyExpiryUnit.d.ts +8 -0
  50. package/dist/api/types/CreditGrantExpiryRequestBodyResetCadence.d.ts +10 -0
  51. package/dist/api/types/CreditGrantExpiryRequestBodyResetStart.d.ts +8 -0
  52. package/dist/api/types/CreditGrantExpiryRequestBodyResetType.d.ts +8 -0
  53. package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +1 -0
  54. package/dist/api/types/PlanChangeResponseData.d.ts +29 -0
  55. package/dist/api/types/PlanChangeResponseDataAction.d.ts +15 -0
  56. package/dist/api/types/PlanChangeResponseDataActorType.d.ts +10 -0
  57. package/dist/api/types/PlanChangeResponseDataBasePlanAction.d.ts +13 -0
  58. package/dist/api/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +15 -0
  59. package/dist/api/types/PlanCreditGrantView.d.ts +7 -0
  60. package/dist/api/types/PlanSnapshotView.d.ts +10 -0
  61. package/dist/api/types/Rule.d.ts +1 -1
  62. package/dist/api/types/RuleConditionDetailResponseData.d.ts +0 -1
  63. package/dist/api/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  64. package/dist/api/types/RuleConditionGroupResponseData.d.ts +0 -1
  65. package/dist/api/types/RuleConditionResponseData.d.ts +0 -1
  66. package/dist/api/types/RuleDetailResponseData.d.ts +0 -1
  67. package/dist/api/types/RuleResponseData.d.ts +0 -1
  68. package/dist/api/types/RuleRuleType.d.ts +13 -0
  69. package/dist/api/types/SubscriptionTraitUpdate.d.ts +12 -0
  70. package/dist/api/types/TraitDefinition.d.ts +3 -2
  71. package/dist/api/types/TraitDefinitionComparableType.d.ts +10 -0
  72. package/dist/api/types/TraitDefinitionEntityType.d.ts +8 -0
  73. package/dist/api/types/index.d.ts +20 -4
  74. package/dist/index.js +3 -3
  75. package/dist/serialization/resources/companies/types/DeleteCompanyParams.d.ts +13 -0
  76. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.d.ts +2 -1
  77. package/dist/serialization/resources/companies/types/GetPlanChangeResponse.d.ts +14 -0
  78. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +18 -0
  79. package/dist/serialization/resources/companies/types/ListPlanChangesResponse.d.ts +15 -0
  80. package/dist/serialization/resources/companies/types/index.d.ts +4 -0
  81. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +10 -0
  82. package/dist/serialization/resources/credits/client/requests/UpdateBillingPlanCreditGrantRequestBody.d.ts +24 -0
  83. package/dist/serialization/resources/credits/client/requests/index.d.ts +1 -0
  84. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.d.ts +10 -0
  85. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.d.ts +10 -0
  86. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantParams.d.ts +12 -0
  87. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +2 -1
  88. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +10 -0
  89. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +10 -0
  90. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  91. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
  92. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetType.d.ts +10 -0
  93. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantResponse.d.ts +14 -0
  94. package/dist/serialization/resources/credits/types/index.d.ts +9 -0
  95. package/dist/serialization/resources/features/types/index.d.ts +0 -4
  96. package/dist/serialization/resources/index.d.ts +3 -3
  97. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  98. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  99. package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -1
  100. package/dist/serialization/resources/plans/types/index.d.ts +0 -3
  101. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  102. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  103. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  104. package/dist/serialization/types/Condition.d.ts +8 -4
  105. package/dist/serialization/types/ConditionConditionType.d.ts +10 -0
  106. package/dist/serialization/types/ConditionMetricPeriod.d.ts +10 -0
  107. package/dist/serialization/types/ConditionMetricPeriodMonthReset.d.ts +10 -0
  108. package/dist/serialization/types/ConditionOperator.d.ts +10 -0
  109. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  110. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  111. package/dist/serialization/types/CreditGrantExpiryRequestBody.d.ts +22 -0
  112. package/dist/serialization/types/CreditGrantExpiryRequestBodyExpiryType.d.ts +10 -0
  113. package/dist/serialization/types/CreditGrantExpiryRequestBodyExpiryUnit.d.ts +10 -0
  114. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetCadence.d.ts +10 -0
  115. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetStart.d.ts +10 -0
  116. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetType.d.ts +10 -0
  117. package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +1 -0
  118. package/dist/serialization/types/PlanChangeResponseData.d.ts +40 -0
  119. package/dist/serialization/types/PlanChangeResponseDataAction.d.ts +10 -0
  120. package/dist/serialization/types/PlanChangeResponseDataActorType.d.ts +10 -0
  121. package/dist/serialization/types/PlanChangeResponseDataBasePlanAction.d.ts +10 -0
  122. package/dist/serialization/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +10 -0
  123. package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -0
  124. package/dist/serialization/types/PlanSnapshotView.d.ts +16 -0
  125. package/dist/serialization/types/Rule.d.ts +2 -1
  126. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +0 -1
  127. package/dist/serialization/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  128. package/dist/serialization/types/RuleConditionGroupResponseData.d.ts +0 -1
  129. package/dist/serialization/types/RuleConditionResponseData.d.ts +0 -1
  130. package/dist/serialization/types/RuleDetailResponseData.d.ts +0 -1
  131. package/dist/serialization/types/RuleResponseData.d.ts +0 -1
  132. package/dist/serialization/types/RuleRuleType.d.ts +10 -0
  133. package/dist/serialization/types/SubscriptionTraitUpdate.d.ts +18 -0
  134. package/dist/serialization/types/TraitDefinition.d.ts +4 -2
  135. package/dist/serialization/types/TraitDefinitionComparableType.d.ts +10 -0
  136. package/dist/serialization/types/TraitDefinitionEntityType.d.ts +10 -0
  137. package/dist/serialization/types/index.d.ts +20 -4
  138. package/package.json +2 -1
  139. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -9
  140. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -9
  141. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -25
  142. package/dist/api/resources/plans/types/GetAudienceResponse.d.ts +0 -9
  143. package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +0 -9
  144. package/dist/api/types/AudienceRequestBody.d.ts +0 -13
  145. package/dist/api/types/PaginationFilter.d.ts +0 -9
  146. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -18
  147. package/dist/api/types/PlanAudienceResponseData.d.ts +0 -15
  148. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -14
  149. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +0 -14
  150. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -14
  151. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +0 -14
  152. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -15
  153. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.d.ts +0 -14
  154. package/dist/serialization/resources/plans/types/GetAudienceResponse.d.ts +0 -14
  155. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +0 -14
  156. package/dist/serialization/types/AudienceRequestBody.d.ts +0 -18
  157. package/dist/serialization/types/PaginationFilter.d.ts +0 -13
  158. package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +0 -25
  159. package/dist/serialization/types/PlanAudienceResponseData.d.ts +0 -21
@@ -0,0 +1,40 @@
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
+ import { PlanChangeResponseDataAction } from "./PlanChangeResponseDataAction";
8
+ import { PlanChangeResponseDataActorType } from "./PlanChangeResponseDataActorType";
9
+ import { PlanSnapshotView } from "./PlanSnapshotView";
10
+ import { ApiKeyResponseData } from "./ApiKeyResponseData";
11
+ import { ApiKeyRequestListResponseData } from "./ApiKeyRequestListResponseData";
12
+ import { PlanChangeResponseDataBasePlanAction } from "./PlanChangeResponseDataBasePlanAction";
13
+ import { CompanyResponseData } from "./CompanyResponseData";
14
+ import { PlanChangeResponseDataSubscriptionChangeAction } from "./PlanChangeResponseDataSubscriptionChangeAction";
15
+ import { SubscriptionTraitUpdate } from "./SubscriptionTraitUpdate";
16
+ export declare const PlanChangeResponseData: core.serialization.ObjectSchema<serializers.PlanChangeResponseData.Raw, Schematic.PlanChangeResponseData>;
17
+ export declare namespace PlanChangeResponseData {
18
+ interface Raw {
19
+ action: PlanChangeResponseDataAction.Raw;
20
+ actor_type: PlanChangeResponseDataActorType.Raw;
21
+ add_ons_added: PlanSnapshotView.Raw[];
22
+ add_ons_removed: PlanSnapshotView.Raw[];
23
+ api_key?: ApiKeyResponseData.Raw | null;
24
+ api_key_request?: ApiKeyRequestListResponseData.Raw | null;
25
+ base_plan?: PlanSnapshotView.Raw | null;
26
+ base_plan_action?: PlanChangeResponseDataBasePlanAction.Raw | null;
27
+ company?: CompanyResponseData.Raw | null;
28
+ company_id: string;
29
+ created_at: string;
30
+ environment_id: string;
31
+ id: string;
32
+ previous_base_plan?: PlanSnapshotView.Raw | null;
33
+ request_id?: string | null;
34
+ subscription_change_action?: PlanChangeResponseDataSubscriptionChangeAction.Raw | null;
35
+ traits_updated: SubscriptionTraitUpdate.Raw[];
36
+ updated_at: string;
37
+ user_id?: string | null;
38
+ user_name?: string | null;
39
+ }
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 PlanChangeResponseDataAction: core.serialization.Schema<serializers.PlanChangeResponseDataAction.Raw, Schematic.PlanChangeResponseDataAction>;
8
+ export declare namespace PlanChangeResponseDataAction {
9
+ type Raw = "checkout" | "company_upsert" | "fallback_plan" | "manage_plan" | "migration" | "plan_billing_product_changed" | "plan_deleted" | "quickstart" | "subscription_change";
10
+ }
@@ -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 PlanChangeResponseDataActorType: core.serialization.Schema<serializers.PlanChangeResponseDataActorType.Raw, Schematic.PlanChangeResponseDataActorType>;
8
+ export declare namespace PlanChangeResponseDataActorType {
9
+ type Raw = "app_user" | "api_key" | "system" | "temporary_access_token";
10
+ }
@@ -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 PlanChangeResponseDataBasePlanAction: core.serialization.Schema<serializers.PlanChangeResponseDataBasePlanAction.Raw, Schematic.PlanChangeResponseDataBasePlanAction>;
8
+ export declare namespace PlanChangeResponseDataBasePlanAction {
9
+ type Raw = "fallback" | "initial" | "trait" | "trial_expiry";
10
+ }
@@ -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 PlanChangeResponseDataSubscriptionChangeAction: core.serialization.Schema<serializers.PlanChangeResponseDataSubscriptionChangeAction.Raw, Schematic.PlanChangeResponseDataSubscriptionChangeAction>;
8
+ export declare namespace PlanChangeResponseDataSubscriptionChangeAction {
9
+ type Raw = "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
10
+ }
@@ -7,6 +7,13 @@ import * as core from "../../core";
7
7
  export declare const PlanCreditGrantView: core.serialization.ObjectSchema<serializers.PlanCreditGrantView.Raw, Schematic.PlanCreditGrantView>;
8
8
  export declare namespace PlanCreditGrantView {
9
9
  interface Raw {
10
+ billing_credit_auto_topup_amount?: number | null;
11
+ billing_credit_auto_topup_amount_type?: string | null;
12
+ billing_credit_auto_topup_enabled: boolean;
13
+ billing_credit_auto_topup_expiry_type?: string | null;
14
+ billing_credit_auto_topup_expiry_unit?: string | null;
15
+ billing_credit_auto_topup_expiry_unit_count?: number | null;
16
+ billing_credit_auto_topup_threshold_percent?: number | null;
10
17
  created_at: string;
11
18
  credit_amount: number;
12
19
  credit_description: string;
@@ -0,0 +1,16 @@
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 PlanSnapshotView: core.serialization.ObjectSchema<serializers.PlanSnapshotView.Raw, Schematic.PlanSnapshotView>;
8
+ export declare namespace PlanSnapshotView {
9
+ interface Raw {
10
+ deleted: boolean;
11
+ description: string;
12
+ icon: string;
13
+ id: string;
14
+ name: string;
15
+ }
16
+ }
@@ -6,6 +6,7 @@ import * as Schematic from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ConditionGroup } from "./ConditionGroup";
8
8
  import { Condition } from "./Condition";
9
+ import { RuleRuleType } from "./RuleRuleType";
9
10
  export declare const Rule: core.serialization.ObjectSchema<serializers.Rule.Raw, Schematic.Rule>;
10
11
  export declare namespace Rule {
11
12
  interface Raw {
@@ -17,7 +18,7 @@ export declare namespace Rule {
17
18
  id: string;
18
19
  name: string;
19
20
  priority: number;
20
- rule_type: string;
21
+ rule_type: RuleRuleType.Raw;
21
22
  value: boolean;
22
23
  }
23
24
  }
@@ -22,7 +22,6 @@ export declare namespace RuleConditionDetailResponseData {
22
22
  metric_period_month_reset?: string | null;
23
23
  metric_value?: number | null;
24
24
  operator: string;
25
- plan_id?: string | null;
26
25
  resource_ids: string[];
27
26
  resources: PreviewObjectResponseData.Raw[];
28
27
  rule_id: string;
@@ -13,7 +13,6 @@ export declare namespace RuleConditionGroupDetailResponseData {
13
13
  environment_id: string;
14
14
  flag_id?: string | null;
15
15
  id: string;
16
- plan_id?: string | null;
17
16
  rule_id: string;
18
17
  updated_at: string;
19
18
  }
@@ -11,7 +11,6 @@ export declare namespace RuleConditionGroupResponseData {
11
11
  environment_id: string;
12
12
  flag_id?: string | null;
13
13
  id: string;
14
- plan_id?: string | null;
15
14
  rule_id: string;
16
15
  updated_at: string;
17
16
  }
@@ -19,7 +19,6 @@ export declare namespace RuleConditionResponseData {
19
19
  metric_period_month_reset?: string | null;
20
20
  metric_value?: number | null;
21
21
  operator: string;
22
- plan_id?: string | null;
23
22
  resource_ids: string[];
24
23
  rule_id: string;
25
24
  trait_entity_type?: string | null;
@@ -16,7 +16,6 @@ export declare namespace RuleDetailResponseData {
16
16
  flag_id?: string | null;
17
17
  id: string;
18
18
  name: string;
19
- plan_id?: string | null;
20
19
  priority: number;
21
20
  rule_type: string;
22
21
  updated_at: string;
@@ -12,7 +12,6 @@ export declare namespace RuleResponseData {
12
12
  flag_id?: string | null;
13
13
  id: string;
14
14
  name: string;
15
- plan_id?: string | null;
16
15
  priority: number;
17
16
  rule_type: string;
18
17
  updated_at: string;
@@ -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 RuleRuleType: core.serialization.Schema<serializers.RuleRuleType.Raw, Schematic.RuleRuleType>;
8
+ export declare namespace RuleRuleType {
9
+ type Raw = "default" | "global_override" | "company_override" | "company_override_usage_exceeded" | "plan_entitlement" | "plan_entitlement_usage_exceeded" | "standard";
10
+ }
@@ -0,0 +1,18 @@
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 SubscriptionTraitUpdate: core.serialization.ObjectSchema<serializers.SubscriptionTraitUpdate.Raw, Schematic.SubscriptionTraitUpdate>;
8
+ export declare namespace SubscriptionTraitUpdate {
9
+ interface Raw {
10
+ feature_id: string;
11
+ hierarchy: string[];
12
+ reason: string;
13
+ trait_id: string;
14
+ trait_name: string;
15
+ trait_type: string;
16
+ value: string;
17
+ }
18
+ }
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Schematic from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { TraitDefinitionComparableType } from "./TraitDefinitionComparableType";
8
+ import { TraitDefinitionEntityType } from "./TraitDefinitionEntityType";
7
9
  export declare const TraitDefinition: core.serialization.ObjectSchema<serializers.TraitDefinition.Raw, Schematic.TraitDefinition>;
8
10
  export declare namespace TraitDefinition {
9
11
  interface Raw {
10
- comparable_type: string;
11
- entity_type: string;
12
+ comparable_type: TraitDefinitionComparableType.Raw;
13
+ entity_type: TraitDefinitionEntityType.Raw;
12
14
  id: string;
13
15
  }
14
16
  }
@@ -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 TraitDefinitionComparableType: core.serialization.Schema<serializers.TraitDefinitionComparableType.Raw, Schematic.TraitDefinitionComparableType>;
8
+ export declare namespace TraitDefinitionComparableType {
9
+ type Raw = "bool" | "date" | "int" | "string";
10
+ }
@@ -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 TraitDefinitionEntityType: core.serialization.Schema<serializers.TraitDefinitionEntityType.Raw, Schematic.TraitDefinitionEntityType>;
8
+ export declare namespace TraitDefinitionEntityType {
9
+ type Raw = "user" | "company";
10
+ }
@@ -3,7 +3,6 @@ export * from "./ApiKeyCreateResponseData";
3
3
  export * from "./ApiKeyRequestListResponseData";
4
4
  export * from "./ApiKeyRequestResponseData";
5
5
  export * from "./ApiKeyResponseData";
6
- export * from "./AudienceRequestBody";
7
6
  export * from "./BillingCouponResponseData";
8
7
  export * from "./BillingCreditBundleResponseData";
9
8
  export * from "./BillingCreditBundleView";
@@ -57,6 +56,10 @@ export * from "./ComponentCheckoutSettings";
57
56
  export * from "./ComponentHydrateResponseData";
58
57
  export * from "./ComponentPreviewResponseData";
59
58
  export * from "./ComponentResponseData";
59
+ export * from "./ConditionConditionType";
60
+ export * from "./ConditionMetricPeriod";
61
+ export * from "./ConditionMetricPeriodMonthReset";
62
+ export * from "./ConditionOperator";
60
63
  export * from "./Condition";
61
64
  export * from "./ConditionGroup";
62
65
  export * from "./CountResponse";
@@ -88,6 +91,12 @@ export * from "./CreditBundlePurchaseResponseData";
88
91
  export * from "./CreditCompanyGrantView";
89
92
  export * from "./CreditGrantDetailGrantReason";
90
93
  export * from "./CreditGrantDetail";
94
+ export * from "./CreditGrantExpiryRequestBodyExpiryType";
95
+ export * from "./CreditGrantExpiryRequestBodyExpiryUnit";
96
+ export * from "./CreditGrantExpiryRequestBodyResetCadence";
97
+ export * from "./CreditGrantExpiryRequestBodyResetStart";
98
+ export * from "./CreditGrantExpiryRequestBodyResetType";
99
+ export * from "./CreditGrantExpiryRequestBody";
91
100
  export * from "./CreditLedgerEnrichedEntryResponseData";
92
101
  export * from "./CreditTriggerConfig";
93
102
  export * from "./CreditUsage";
@@ -140,11 +149,13 @@ export * from "./ManagePlanRequest";
140
149
  export * from "./ManagePlanResponseResponseData";
141
150
  export * from "./MeterRequestBody";
142
151
  export * from "./OrderedPlansInGroup";
143
- export * from "./PaginationFilter";
144
152
  export * from "./PaymentMethodRequestBody";
145
153
  export * from "./PaymentMethodResponseData";
146
- export * from "./PlanAudienceDetailResponseData";
147
- export * from "./PlanAudienceResponseData";
154
+ export * from "./PlanChangeResponseDataAction";
155
+ export * from "./PlanChangeResponseDataActorType";
156
+ export * from "./PlanChangeResponseDataBasePlanAction";
157
+ export * from "./PlanChangeResponseDataSubscriptionChangeAction";
158
+ export * from "./PlanChangeResponseData";
148
159
  export * from "./PlanCreditGrantView";
149
160
  export * from "./PlanDetailResponseData";
150
161
  export * from "./PlanEntitlementResponseData";
@@ -157,6 +168,7 @@ export * from "./PlanGroupResponseData";
157
168
  export * from "./PlanIssueResponseData";
158
169
  export * from "./PlanResponseData";
159
170
  export * from "./PlanSelection";
171
+ export * from "./PlanSnapshotView";
160
172
  export * from "./PlanTraitResponseData";
161
173
  export * from "./PreviewObject";
162
174
  export * from "./PreviewObjectResponseData";
@@ -166,6 +178,7 @@ export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
166
178
  export * from "./QuickstartResp";
167
179
  export * from "./RawEventBatchResponseData";
168
180
  export * from "./RawEventResponseData";
181
+ export * from "./RuleRuleType";
169
182
  export * from "./Rule";
170
183
  export * from "./RuleConditionDetailResponseData";
171
184
  export * from "./RuleConditionGroupDetailResponseData";
@@ -176,7 +189,10 @@ export * from "./RuleResponseData";
176
189
  export * from "./RulesDetailResponseData";
177
190
  export * from "./SegmentStatusResp";
178
191
  export * from "./StripeEmbedInfo";
192
+ export * from "./SubscriptionTraitUpdate";
179
193
  export * from "./TemporaryAccessTokenResponseData";
194
+ export * from "./TraitDefinitionComparableType";
195
+ export * from "./TraitDefinitionEntityType";
180
196
  export * from "./TraitDefinition";
181
197
  export * from "./UpdateAddOnRequestBody";
182
198
  export * from "./UpdateCreditBundleRequestBody";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "private": false,
5
5
  "repository": "https://github.com/schematichq/schematic-node",
6
6
  "main": "./dist/index.js",
@@ -44,6 +44,7 @@
44
44
  "timers": false
45
45
  },
46
46
  "packageManager": "yarn@1.22.22",
47
+ "license": "MIT",
47
48
  "files": [
48
49
  "dist/**/*.js",
49
50
  "dist/**/*.d.ts",
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface ListAudienceCompaniesResponse {
6
- data: Schematic.CompanyDetailResponseData[];
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface ListAudienceUsersResponse {
6
- data: Schematic.UserDetailResponseData[];
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * conditionGroups: [{
9
- * conditions: [{
10
- * conditionType: "company",
11
- * operator: "eq",
12
- * resourceIds: ["resource_ids"]
13
- * }]
14
- * }],
15
- * conditions: [{
16
- * conditionType: "company",
17
- * operator: "eq",
18
- * resourceIds: ["resource_ids"]
19
- * }]
20
- * }
21
- */
22
- export interface UpdateAudienceRequestBody {
23
- conditionGroups: Schematic.CreateOrUpdateConditionGroupRequestBody[];
24
- conditions: Schematic.CreateOrUpdateConditionRequestBody[];
25
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface GetAudienceResponse {
6
- data: Schematic.PlanAudienceDetailResponseData;
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../../../index";
5
- export interface UpdateAudienceResponse {
6
- data: Schematic.PlanAudienceDetailResponseData;
7
- /** Input parameters */
8
- params: Record<string, unknown>;
9
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../index";
5
- export interface AudienceRequestBody {
6
- conditionGroups: Schematic.CreateOrUpdateConditionGroupRequestBody[];
7
- conditions: Schematic.CreateOrUpdateConditionRequestBody[];
8
- /** Page limit (default 100) */
9
- limit?: number;
10
- /** Page offset (default 0) */
11
- offset?: number;
12
- q?: string;
13
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface PaginationFilter {
5
- /** Page limit (default 100) */
6
- limit?: number;
7
- /** Page offset (default 0) */
8
- offset?: number;
9
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Schematic from "../index";
5
- export interface PlanAudienceDetailResponseData {
6
- conditionGroups: Schematic.RuleConditionGroupDetailResponseData[];
7
- conditions: Schematic.RuleConditionDetailResponseData[];
8
- createdAt: Date;
9
- environmentId: string;
10
- flagId?: string;
11
- id: string;
12
- name: string;
13
- planId?: string;
14
- priority: number;
15
- ruleType: string;
16
- updatedAt: Date;
17
- value: boolean;
18
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface PlanAudienceResponseData {
5
- createdAt: Date;
6
- environmentId: string;
7
- flagId?: string;
8
- id: string;
9
- name: string;
10
- planId?: string;
11
- priority: number;
12
- ruleType: string;
13
- updatedAt: Date;
14
- value: boolean;
15
- }
@@ -1,14 +0,0 @@
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
- import { CountResponse } from "../../../types/CountResponse";
8
- export declare const CountAudienceCompaniesResponse: core.serialization.ObjectSchema<serializers.CountAudienceCompaniesResponse.Raw, Schematic.CountAudienceCompaniesResponse>;
9
- export declare namespace CountAudienceCompaniesResponse {
10
- interface Raw {
11
- data: CountResponse.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
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
- import { CountResponse } from "../../../types/CountResponse";
8
- export declare const CountAudienceUsersResponse: core.serialization.ObjectSchema<serializers.CountAudienceUsersResponse.Raw, Schematic.CountAudienceUsersResponse>;
9
- export declare namespace CountAudienceUsersResponse {
10
- interface Raw {
11
- data: CountResponse.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
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
- import { CompanyDetailResponseData } from "../../../types/CompanyDetailResponseData";
8
- export declare const ListAudienceCompaniesResponse: core.serialization.ObjectSchema<serializers.ListAudienceCompaniesResponse.Raw, Schematic.ListAudienceCompaniesResponse>;
9
- export declare namespace ListAudienceCompaniesResponse {
10
- interface Raw {
11
- data: CompanyDetailResponseData.Raw[];
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
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
- import { UserDetailResponseData } from "../../../types/UserDetailResponseData";
8
- export declare const ListAudienceUsersResponse: core.serialization.ObjectSchema<serializers.ListAudienceUsersResponse.Raw, Schematic.ListAudienceUsersResponse>;
9
- export declare namespace ListAudienceUsersResponse {
10
- interface Raw {
11
- data: UserDetailResponseData.Raw[];
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,15 +0,0 @@
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
- import { CreateOrUpdateConditionGroupRequestBody } from "../../../../types/CreateOrUpdateConditionGroupRequestBody";
8
- import { CreateOrUpdateConditionRequestBody } from "../../../../types/CreateOrUpdateConditionRequestBody";
9
- export declare const UpdateAudienceRequestBody: core.serialization.Schema<serializers.UpdateAudienceRequestBody.Raw, Schematic.UpdateAudienceRequestBody>;
10
- export declare namespace UpdateAudienceRequestBody {
11
- interface Raw {
12
- condition_groups: CreateOrUpdateConditionGroupRequestBody.Raw[];
13
- conditions: CreateOrUpdateConditionRequestBody.Raw[];
14
- }
15
- }
@@ -1,14 +0,0 @@
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
- import { DeleteResponse } from "../../../types/DeleteResponse";
8
- export declare const DeleteAudienceResponse: core.serialization.ObjectSchema<serializers.DeleteAudienceResponse.Raw, Schematic.DeleteAudienceResponse>;
9
- export declare namespace DeleteAudienceResponse {
10
- interface Raw {
11
- data: DeleteResponse.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
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
- import { PlanAudienceDetailResponseData } from "../../../types/PlanAudienceDetailResponseData";
8
- export declare const GetAudienceResponse: core.serialization.ObjectSchema<serializers.GetAudienceResponse.Raw, Schematic.GetAudienceResponse>;
9
- export declare namespace GetAudienceResponse {
10
- interface Raw {
11
- data: PlanAudienceDetailResponseData.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,14 +0,0 @@
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
- import { PlanAudienceDetailResponseData } from "../../../types/PlanAudienceDetailResponseData";
8
- export declare const UpdateAudienceResponse: core.serialization.ObjectSchema<serializers.UpdateAudienceResponse.Raw, Schematic.UpdateAudienceResponse>;
9
- export declare namespace UpdateAudienceResponse {
10
- interface Raw {
11
- data: PlanAudienceDetailResponseData.Raw;
12
- params: Record<string, unknown>;
13
- }
14
- }
@@ -1,18 +0,0 @@
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
- import { CreateOrUpdateConditionGroupRequestBody } from "./CreateOrUpdateConditionGroupRequestBody";
8
- import { CreateOrUpdateConditionRequestBody } from "./CreateOrUpdateConditionRequestBody";
9
- export declare const AudienceRequestBody: core.serialization.ObjectSchema<serializers.AudienceRequestBody.Raw, Schematic.AudienceRequestBody>;
10
- export declare namespace AudienceRequestBody {
11
- interface Raw {
12
- condition_groups: CreateOrUpdateConditionGroupRequestBody.Raw[];
13
- conditions: CreateOrUpdateConditionRequestBody.Raw[];
14
- limit?: number | null;
15
- offset?: number | null;
16
- q?: string | null;
17
- }
18
- }