@schematichq/schematic-typescript-node 1.2.4 → 1.2.5

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 (87) hide show
  1. package/dist/Client.d.ts +11 -57
  2. package/dist/api/resources/companies/client/Client.d.ts +35 -0
  3. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +28 -0
  4. package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
  5. package/dist/api/resources/{features/types/CountAudienceCompaniesResponse.d.ts → companies/types/GetPlanChangeResponse.d.ts} +2 -2
  6. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +17 -0
  7. package/dist/api/resources/{features/types/CountAudienceUsersResponse.d.ts → companies/types/ListPlanChangesResponse.d.ts} +3 -3
  8. package/dist/api/resources/companies/types/index.d.ts +3 -0
  9. package/dist/api/resources/credits/client/Client.d.ts +24 -24
  10. package/dist/api/resources/features/client/Client.d.ts +0 -112
  11. package/dist/api/resources/features/types/index.d.ts +0 -4
  12. package/dist/api/resources/index.d.ts +3 -3
  13. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  14. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  15. package/dist/api/resources/plans/client/Client.d.ts +0 -58
  16. package/dist/api/resources/plans/client/requests/index.d.ts +0 -1
  17. package/dist/api/resources/plans/types/index.d.ts +0 -3
  18. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  19. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  20. package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  21. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -2
  22. package/dist/api/types/PlanChangeResponseData.d.ts +29 -0
  23. package/dist/api/types/PlanChangeResponseDataAction.d.ts +14 -0
  24. package/dist/api/types/PlanChangeResponseDataActorType.d.ts +10 -0
  25. package/dist/api/types/PlanChangeResponseDataBasePlanAction.d.ts +13 -0
  26. package/dist/api/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +15 -0
  27. package/dist/api/types/PlanSnapshotView.d.ts +10 -0
  28. package/dist/api/types/RuleConditionDetailResponseData.d.ts +0 -1
  29. package/dist/api/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  30. package/dist/api/types/RuleConditionGroupResponseData.d.ts +0 -1
  31. package/dist/api/types/RuleConditionResponseData.d.ts +0 -1
  32. package/dist/api/types/RuleDetailResponseData.d.ts +0 -1
  33. package/dist/api/types/RuleResponseData.d.ts +0 -1
  34. package/dist/api/types/SubscriptionTraitUpdate.d.ts +12 -0
  35. package/dist/api/types/index.d.ts +7 -4
  36. package/dist/index.js +3 -3
  37. package/dist/serialization/resources/companies/types/GetPlanChangeResponse.d.ts +14 -0
  38. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +18 -0
  39. package/dist/serialization/resources/companies/types/ListPlanChangesResponse.d.ts +15 -0
  40. package/dist/serialization/resources/companies/types/index.d.ts +3 -0
  41. package/dist/serialization/resources/features/types/index.d.ts +0 -4
  42. package/dist/serialization/resources/index.d.ts +3 -3
  43. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  44. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  45. package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -1
  46. package/dist/serialization/resources/plans/types/index.d.ts +0 -3
  47. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  48. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  49. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  50. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  51. package/dist/serialization/types/PlanChangeResponseData.d.ts +40 -0
  52. package/dist/serialization/types/PlanChangeResponseDataAction.d.ts +10 -0
  53. package/dist/serialization/types/PlanChangeResponseDataActorType.d.ts +10 -0
  54. package/dist/serialization/types/PlanChangeResponseDataBasePlanAction.d.ts +10 -0
  55. package/dist/serialization/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +10 -0
  56. package/dist/serialization/types/PlanSnapshotView.d.ts +16 -0
  57. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +0 -1
  58. package/dist/serialization/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  59. package/dist/serialization/types/RuleConditionGroupResponseData.d.ts +0 -1
  60. package/dist/serialization/types/RuleConditionResponseData.d.ts +0 -1
  61. package/dist/serialization/types/RuleDetailResponseData.d.ts +0 -1
  62. package/dist/serialization/types/RuleResponseData.d.ts +0 -1
  63. package/dist/serialization/types/SubscriptionTraitUpdate.d.ts +18 -0
  64. package/dist/serialization/types/index.d.ts +7 -4
  65. package/package.json +1 -1
  66. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -9
  67. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -9
  68. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -25
  69. package/dist/api/resources/plans/types/DeleteAudienceResponse.d.ts +0 -9
  70. package/dist/api/resources/plans/types/GetAudienceResponse.d.ts +0 -9
  71. package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +0 -9
  72. package/dist/api/types/AudienceRequestBody.d.ts +0 -13
  73. package/dist/api/types/PaginationFilter.d.ts +0 -9
  74. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -18
  75. package/dist/api/types/PlanAudienceResponseData.d.ts +0 -15
  76. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -14
  77. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +0 -14
  78. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -14
  79. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +0 -14
  80. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -15
  81. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.d.ts +0 -14
  82. package/dist/serialization/resources/plans/types/GetAudienceResponse.d.ts +0 -14
  83. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +0 -14
  84. package/dist/serialization/types/AudienceRequestBody.d.ts +0 -18
  85. package/dist/serialization/types/PaginationFilter.d.ts +0 -13
  86. package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +0 -25
  87. package/dist/serialization/types/PlanAudienceResponseData.d.ts +0 -21
package/dist/Client.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Accounts } from "./api/resources/accounts/client/Client";
7
- import { Features } from "./api/resources/features/client/Client";
8
7
  import { Billing } from "./api/resources/billing/client/Client";
9
8
  import { Credits } from "./api/resources/credits/client/Client";
10
9
  import { Checkout } from "./api/resources/checkout/client/Client";
@@ -15,6 +14,7 @@ import { Components } from "./api/resources/components/client/Client";
15
14
  import { Crm } from "./api/resources/crm/client/Client";
16
15
  import { Dataexports } from "./api/resources/dataexports/client/Client";
17
16
  import { Events } from "./api/resources/events/client/Client";
17
+ import { Features } from "./api/resources/features/client/Client";
18
18
  import { Plangroups } from "./api/resources/plangroups/client/Client";
19
19
  import { Accesstokens } from "./api/resources/accesstokens/client/Client";
20
20
  import { Webhooks } from "./api/resources/webhooks/client/Client";
@@ -40,7 +40,6 @@ export declare namespace SchematicClient {
40
40
  export declare class SchematicClient {
41
41
  protected readonly _options: SchematicClient.Options;
42
42
  protected _accounts: Accounts | undefined;
43
- protected _features: Features | undefined;
44
43
  protected _billing: Billing | undefined;
45
44
  protected _credits: Credits | undefined;
46
45
  protected _checkout: Checkout | undefined;
@@ -51,12 +50,12 @@ export declare class SchematicClient {
51
50
  protected _crm: Crm | undefined;
52
51
  protected _dataexports: Dataexports | undefined;
53
52
  protected _events: Events | undefined;
53
+ protected _features: Features | undefined;
54
54
  protected _plangroups: Plangroups | undefined;
55
55
  protected _accesstokens: Accesstokens | undefined;
56
56
  protected _webhooks: Webhooks | undefined;
57
57
  constructor(_options?: SchematicClient.Options);
58
58
  get accounts(): Accounts;
59
- get features(): Features;
60
59
  get billing(): Billing;
61
60
  get credits(): Credits;
62
61
  get checkout(): Checkout;
@@ -67,73 +66,28 @@ export declare class SchematicClient {
67
66
  get crm(): Crm;
68
67
  get dataexports(): Dataexports;
69
68
  get events(): Events;
69
+ get features(): Features;
70
70
  get plangroups(): Plangroups;
71
71
  get accesstokens(): Accesstokens;
72
72
  get webhooks(): Webhooks;
73
73
  /**
74
+ * @param {string} planAudienceId
74
75
  * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
75
76
  *
76
77
  * @example
77
- * await client.getCredit()
78
- */
79
- getCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
80
- private __getCredit;
81
- /**
82
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
83
- *
84
- * @example
85
- * await client.updateCredit()
86
- */
87
- updateCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
88
- private __updateCredit;
89
- /**
90
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
91
- *
92
- * @example
93
- * await client.deleteCredit()
94
- */
95
- deleteCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
96
- private __deleteCredit;
97
- /**
98
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
99
- *
100
- * @example
101
- * await client.getCreditBundle()
102
- */
103
- getCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
104
- private __getCreditBundle;
105
- /**
106
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
107
- *
108
- * @example
109
- * await client.purchaseCreditBundle()
110
- */
111
- purchaseCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
112
- private __purchaseCreditBundle;
113
- /**
114
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
115
- *
116
- * @example
117
- * await client.updateCreditBundle()
118
- */
119
- updateCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
120
- private __updateCreditBundle;
121
- /**
122
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
123
- *
124
- * @example
125
- * await client.zeroOutCreditGrant()
78
+ * await client.putPlanAudiencesPlanAudienceId("plan_audience_id")
126
79
  */
127
- zeroOutCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
128
- private __zeroOutCreditGrant;
80
+ putPlanAudiencesPlanAudienceId(planAudienceId: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
81
+ private __putPlanAudiencesPlanAudienceId;
129
82
  /**
83
+ * @param {string} planAudienceId
130
84
  * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
131
85
  *
132
86
  * @example
133
- * await client.deletePlanCreditGrant()
87
+ * await client.deletePlanAudiencesPlanAudienceId("plan_audience_id")
134
88
  */
135
- deletePlanCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
136
- private __deletePlanCreditGrant;
89
+ deletePlanAudiencesPlanAudienceId(planAudienceId: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
90
+ private __deletePlanAudiencesPlanAudienceId;
137
91
  protected _getCustomAuthorizationHeaders(): Promise<{
138
92
  "X-Schematic-Api-Key": string | undefined;
139
93
  }>;
@@ -489,6 +489,41 @@ export declare class Companies {
489
489
  */
490
490
  getEntityTraitValues(request: Schematic.GetEntityTraitValuesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitValuesResponse>;
491
491
  private __getEntityTraitValues;
492
+ /**
493
+ * @param {Schematic.ListPlanChangesRequest} request
494
+ * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
495
+ *
496
+ * @throws {@link Schematic.BadRequestError}
497
+ * @throws {@link Schematic.UnauthorizedError}
498
+ * @throws {@link Schematic.ForbiddenError}
499
+ * @throws {@link Schematic.NotFoundError}
500
+ * @throws {@link Schematic.InternalServerError}
501
+ *
502
+ * @example
503
+ * await client.companies.listPlanChanges({
504
+ * action: "action",
505
+ * basePlanAction: "base_plan_action",
506
+ * companyId: "company_id",
507
+ * limit: 1,
508
+ * offset: 1
509
+ * })
510
+ */
511
+ listPlanChanges(request?: Schematic.ListPlanChangesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListPlanChangesResponse>;
512
+ private __listPlanChanges;
513
+ /**
514
+ * @param {string} planChangeId - plan_change_id
515
+ * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
516
+ *
517
+ * @throws {@link Schematic.UnauthorizedError}
518
+ * @throws {@link Schematic.ForbiddenError}
519
+ * @throws {@link Schematic.NotFoundError}
520
+ * @throws {@link Schematic.InternalServerError}
521
+ *
522
+ * @example
523
+ * await client.companies.getPlanChange("plan_change_id")
524
+ */
525
+ getPlanChange(planChangeId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanChangeResponse>;
526
+ private __getPlanChange;
492
527
  /**
493
528
  * @param {Schematic.ListPlanTraitsRequest} request
494
529
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * action: "action",
8
+ * basePlanAction: "base_plan_action",
9
+ * companyId: "company_id",
10
+ * limit: 1,
11
+ * offset: 1
12
+ * }
13
+ */
14
+ export interface ListPlanChangesRequest {
15
+ action?: string;
16
+ basePlanAction?: string;
17
+ companyId?: string;
18
+ companyIds?: string | string[];
19
+ planIds?: string | string[];
20
+ /**
21
+ * Page limit (default 100)
22
+ */
23
+ limit?: number;
24
+ /**
25
+ * Page offset (default 0)
26
+ */
27
+ offset?: number;
28
+ }
@@ -14,6 +14,7 @@ export { type CreateEntityTraitDefinitionRequestBody } from "./CreateEntityTrait
14
14
  export { type UpdateEntityTraitDefinitionRequestBody } from "./UpdateEntityTraitDefinitionRequestBody";
15
15
  export { type CountEntityTraitDefinitionsRequest } from "./CountEntityTraitDefinitionsRequest";
16
16
  export { type GetEntityTraitValuesRequest } from "./GetEntityTraitValuesRequest";
17
+ export { type ListPlanChangesRequest } from "./ListPlanChangesRequest";
17
18
  export { type ListPlanTraitsRequest } from "./ListPlanTraitsRequest";
18
19
  export { type CreatePlanTraitRequestBody } from "./CreatePlanTraitRequestBody";
19
20
  export { type UpdatePlanTraitRequestBody } from "./UpdatePlanTraitRequestBody";
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface CountAudienceCompaniesResponse {
6
- data: Schematic.CountResponse;
5
+ export interface GetPlanChangeResponse {
6
+ data: Schematic.PlanChangeResponseData;
7
7
  /** Input parameters */
8
8
  params: Record<string, unknown>;
9
9
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface ListPlanChangesParams {
8
+ action?: string;
9
+ basePlanAction?: string;
10
+ companyId?: string;
11
+ companyIds?: string[];
12
+ /** Page limit (default 100) */
13
+ limit?: number;
14
+ /** Page offset (default 0) */
15
+ offset?: number;
16
+ planIds?: string[];
17
+ }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface CountAudienceUsersResponse {
6
- data: Schematic.CountResponse;
5
+ export interface ListPlanChangesResponse {
6
+ data: Schematic.PlanChangeResponseData[];
7
7
  /** Input parameters */
8
- params: Record<string, unknown>;
8
+ params: Schematic.ListPlanChangesParams;
9
9
  }
@@ -54,6 +54,9 @@ export * from "./CountEntityTraitDefinitionsParams";
54
54
  export * from "./CountEntityTraitDefinitionsResponse";
55
55
  export * from "./GetEntityTraitValuesParams";
56
56
  export * from "./GetEntityTraitValuesResponse";
57
+ export * from "./ListPlanChangesParams";
58
+ export * from "./ListPlanChangesResponse";
59
+ export * from "./GetPlanChangeResponse";
57
60
  export * from "./ListPlanTraitsParams";
58
61
  export * from "./ListPlanTraitsResponse";
59
62
  export * from "./CreatePlanTraitResponse";
@@ -65,7 +65,7 @@ export declare class Credits {
65
65
  createBillingCredit(request: Schematic.CreateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateBillingCreditResponse>;
66
66
  private __createBillingCredit;
67
67
  /**
68
- * @param {string} billingId - billing_id
68
+ * @param {string} creditId - credit_id
69
69
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
70
70
  *
71
71
  * @throws {@link Schematic.UnauthorizedError}
@@ -74,12 +74,12 @@ export declare class Credits {
74
74
  * @throws {@link Schematic.InternalServerError}
75
75
  *
76
76
  * @example
77
- * await client.credits.getSingleBillingCredit("billing_id")
77
+ * await client.credits.getSingleBillingCredit("credit_id")
78
78
  */
79
- getSingleBillingCredit(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetSingleBillingCreditResponse>;
79
+ getSingleBillingCredit(creditId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetSingleBillingCreditResponse>;
80
80
  private __getSingleBillingCredit;
81
81
  /**
82
- * @param {string} billingId - billing_id
82
+ * @param {string} creditId - credit_id
83
83
  * @param {Schematic.UpdateBillingCreditRequestBody} request
84
84
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
85
85
  *
@@ -90,15 +90,15 @@ export declare class Credits {
90
90
  * @throws {@link Schematic.InternalServerError}
91
91
  *
92
92
  * @example
93
- * await client.credits.updateBillingCredit("billing_id", {
93
+ * await client.credits.updateBillingCredit("credit_id", {
94
94
  * description: "description",
95
95
  * name: "name"
96
96
  * })
97
97
  */
98
- updateBillingCredit(billingId: string, request: Schematic.UpdateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingCreditResponse>;
98
+ updateBillingCredit(creditId: string, request: Schematic.UpdateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingCreditResponse>;
99
99
  private __updateBillingCredit;
100
100
  /**
101
- * @param {string} billingId - billing_id
101
+ * @param {string} creditId - credit_id
102
102
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
103
103
  *
104
104
  * @throws {@link Schematic.BadRequestError}
@@ -108,9 +108,9 @@ export declare class Credits {
108
108
  * @throws {@link Schematic.InternalServerError}
109
109
  *
110
110
  * @example
111
- * await client.credits.softDeleteBillingCredit("billing_id")
111
+ * await client.credits.softDeleteBillingCredit("credit_id")
112
112
  */
113
- softDeleteBillingCredit(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.SoftDeleteBillingCreditResponse>;
113
+ softDeleteBillingCredit(creditId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.SoftDeleteBillingCreditResponse>;
114
114
  private __softDeleteBillingCredit;
115
115
  /**
116
116
  * @param {Schematic.ListCreditBundlesRequest} request
@@ -154,7 +154,7 @@ export declare class Credits {
154
154
  createCreditBundle(request: Schematic.CreateCreditBundleRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateCreditBundleResponse>;
155
155
  private __createCreditBundle;
156
156
  /**
157
- * @param {string} billingId - billing_id
157
+ * @param {string} bundleId - bundle_id
158
158
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
159
159
  *
160
160
  * @throws {@link Schematic.UnauthorizedError}
@@ -163,12 +163,12 @@ export declare class Credits {
163
163
  * @throws {@link Schematic.InternalServerError}
164
164
  *
165
165
  * @example
166
- * await client.credits.getCreditBundle("billing_id")
166
+ * await client.credits.getCreditBundle("bundle_id")
167
167
  */
168
- getCreditBundle(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditBundleResponse>;
168
+ getCreditBundle(bundleId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditBundleResponse>;
169
169
  private __getCreditBundle;
170
170
  /**
171
- * @param {string} billingId - billing_id
171
+ * @param {string} bundleId - bundle_id
172
172
  * @param {Schematic.UpdateCreditBundleDetailsRequestBody} request
173
173
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
174
174
  *
@@ -179,15 +179,15 @@ export declare class Credits {
179
179
  * @throws {@link Schematic.InternalServerError}
180
180
  *
181
181
  * @example
182
- * await client.credits.updateCreditBundleDetails("billing_id", {
182
+ * await client.credits.updateCreditBundleDetails("bundle_id", {
183
183
  * bundleName: "bundle_name",
184
184
  * pricePerUnit: 1
185
185
  * })
186
186
  */
187
- updateCreditBundleDetails(billingId: string, request: Schematic.UpdateCreditBundleDetailsRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditBundleDetailsResponse>;
187
+ updateCreditBundleDetails(bundleId: string, request: Schematic.UpdateCreditBundleDetailsRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditBundleDetailsResponse>;
188
188
  private __updateCreditBundleDetails;
189
189
  /**
190
- * @param {string} billingId - billing_id
190
+ * @param {string} bundleId - bundle_id
191
191
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
192
192
  *
193
193
  * @throws {@link Schematic.BadRequestError}
@@ -197,9 +197,9 @@ export declare class Credits {
197
197
  * @throws {@link Schematic.InternalServerError}
198
198
  *
199
199
  * @example
200
- * await client.credits.deleteCreditBundle("billing_id")
200
+ * await client.credits.deleteCreditBundle("bundle_id")
201
201
  */
202
- deleteCreditBundle(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditBundleResponse>;
202
+ deleteCreditBundle(bundleId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditBundleResponse>;
203
203
  private __deleteCreditBundle;
204
204
  /**
205
205
  * @param {Schematic.CountCreditBundlesRequest} request
@@ -242,7 +242,7 @@ export declare class Credits {
242
242
  countBillingCredits(request?: Schematic.CountBillingCreditsRequest, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingCreditsResponse>;
243
243
  private __countBillingCredits;
244
244
  /**
245
- * @param {string} billingId - billing_id
245
+ * @param {string} grantId - grant_id
246
246
  * @param {Schematic.ZeroOutGrantRequestBody} request
247
247
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
248
248
  *
@@ -253,9 +253,9 @@ export declare class Credits {
253
253
  * @throws {@link Schematic.InternalServerError}
254
254
  *
255
255
  * @example
256
- * await client.credits.zeroOutGrant("billing_id")
256
+ * await client.credits.zeroOutGrant("grant_id")
257
257
  */
258
- zeroOutGrant(billingId: string, request?: Schematic.ZeroOutGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.ZeroOutGrantResponse>;
258
+ zeroOutGrant(grantId: string, request?: Schematic.ZeroOutGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.ZeroOutGrantResponse>;
259
259
  private __zeroOutGrant;
260
260
  /**
261
261
  * @param {Schematic.CreateCompanyCreditGrant} request
@@ -426,7 +426,7 @@ export declare class Credits {
426
426
  createBillingPlanCreditGrant(request: Schematic.CreateBillingPlanCreditGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateBillingPlanCreditGrantResponse>;
427
427
  private __createBillingPlanCreditGrant;
428
428
  /**
429
- * @param {string} billingId - billing_id
429
+ * @param {string} planGrantId - plan_grant_id
430
430
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
431
431
  *
432
432
  * @throws {@link Schematic.BadRequestError}
@@ -436,9 +436,9 @@ export declare class Credits {
436
436
  * @throws {@link Schematic.InternalServerError}
437
437
  *
438
438
  * @example
439
- * await client.credits.deleteBillingPlanCreditGrant("billing_id")
439
+ * await client.credits.deleteBillingPlanCreditGrant("plan_grant_id")
440
440
  */
441
- deleteBillingPlanCreditGrant(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteBillingPlanCreditGrantResponse>;
441
+ deleteBillingPlanCreditGrant(planGrantId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteBillingPlanCreditGrantResponse>;
442
442
  private __deleteBillingPlanCreditGrant;
443
443
  /**
444
444
  * @param {Schematic.CountBillingPlanCreditGrantsRequest} request
@@ -26,118 +26,6 @@ export declare namespace Features {
26
26
  export declare class Features {
27
27
  protected readonly _options: Features.Options;
28
28
  constructor(_options?: Features.Options);
29
- /**
30
- * @param {Schematic.AudienceRequestBody} request
31
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
32
- *
33
- * @throws {@link Schematic.BadRequestError}
34
- * @throws {@link Schematic.UnauthorizedError}
35
- * @throws {@link Schematic.ForbiddenError}
36
- * @throws {@link Schematic.NotFoundError}
37
- * @throws {@link Schematic.InternalServerError}
38
- *
39
- * @example
40
- * await client.features.countAudienceCompanies({
41
- * conditionGroups: [{
42
- * conditions: [{
43
- * conditionType: "company",
44
- * operator: "eq",
45
- * resourceIds: ["resource_ids"]
46
- * }]
47
- * }],
48
- * conditions: [{
49
- * conditionType: "company",
50
- * operator: "eq",
51
- * resourceIds: ["resource_ids"]
52
- * }]
53
- * })
54
- */
55
- countAudienceCompanies(request: Schematic.AudienceRequestBody, requestOptions?: Features.RequestOptions): core.HttpResponsePromise<Schematic.CountAudienceCompaniesResponse>;
56
- private __countAudienceCompanies;
57
- /**
58
- * @param {Schematic.AudienceRequestBody} request
59
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
60
- *
61
- * @throws {@link Schematic.BadRequestError}
62
- * @throws {@link Schematic.UnauthorizedError}
63
- * @throws {@link Schematic.ForbiddenError}
64
- * @throws {@link Schematic.NotFoundError}
65
- * @throws {@link Schematic.InternalServerError}
66
- *
67
- * @example
68
- * await client.features.countAudienceUsers({
69
- * conditionGroups: [{
70
- * conditions: [{
71
- * conditionType: "company",
72
- * operator: "eq",
73
- * resourceIds: ["resource_ids"]
74
- * }]
75
- * }],
76
- * conditions: [{
77
- * conditionType: "company",
78
- * operator: "eq",
79
- * resourceIds: ["resource_ids"]
80
- * }]
81
- * })
82
- */
83
- countAudienceUsers(request: Schematic.AudienceRequestBody, requestOptions?: Features.RequestOptions): core.HttpResponsePromise<Schematic.CountAudienceUsersResponse>;
84
- private __countAudienceUsers;
85
- /**
86
- * @param {Schematic.AudienceRequestBody} request
87
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
88
- *
89
- * @throws {@link Schematic.BadRequestError}
90
- * @throws {@link Schematic.UnauthorizedError}
91
- * @throws {@link Schematic.ForbiddenError}
92
- * @throws {@link Schematic.NotFoundError}
93
- * @throws {@link Schematic.InternalServerError}
94
- *
95
- * @example
96
- * await client.features.listAudienceCompanies({
97
- * conditionGroups: [{
98
- * conditions: [{
99
- * conditionType: "company",
100
- * operator: "eq",
101
- * resourceIds: ["resource_ids"]
102
- * }]
103
- * }],
104
- * conditions: [{
105
- * conditionType: "company",
106
- * operator: "eq",
107
- * resourceIds: ["resource_ids"]
108
- * }]
109
- * })
110
- */
111
- listAudienceCompanies(request: Schematic.AudienceRequestBody, requestOptions?: Features.RequestOptions): core.HttpResponsePromise<Schematic.ListAudienceCompaniesResponse>;
112
- private __listAudienceCompanies;
113
- /**
114
- * @param {Schematic.AudienceRequestBody} request
115
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
116
- *
117
- * @throws {@link Schematic.BadRequestError}
118
- * @throws {@link Schematic.UnauthorizedError}
119
- * @throws {@link Schematic.ForbiddenError}
120
- * @throws {@link Schematic.NotFoundError}
121
- * @throws {@link Schematic.InternalServerError}
122
- *
123
- * @example
124
- * await client.features.listAudienceUsers({
125
- * conditionGroups: [{
126
- * conditions: [{
127
- * conditionType: "company",
128
- * operator: "eq",
129
- * resourceIds: ["resource_ids"]
130
- * }]
131
- * }],
132
- * conditions: [{
133
- * conditionType: "company",
134
- * operator: "eq",
135
- * resourceIds: ["resource_ids"]
136
- * }]
137
- * })
138
- */
139
- listAudienceUsers(request: Schematic.AudienceRequestBody, requestOptions?: Features.RequestOptions): core.HttpResponsePromise<Schematic.ListAudienceUsersResponse>;
140
- private __listAudienceUsers;
141
29
  /**
142
30
  * @param {Schematic.ListFeaturesRequest} request
143
31
  * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,7 +1,3 @@
1
- export * from "./CountAudienceCompaniesResponse";
2
- export * from "./CountAudienceUsersResponse";
3
- export * from "./ListAudienceCompaniesResponse";
4
- export * from "./ListAudienceUsersResponse";
5
1
  export * from "./ListFeaturesParams";
6
2
  export * from "./ListFeaturesResponse";
7
3
  export * from "./CreateFeatureRequestBodyFeatureType";
@@ -1,7 +1,5 @@
1
1
  export * as accounts from "./accounts";
2
2
  export * from "./accounts/types";
3
- export * as features from "./features";
4
- export * from "./features/types";
5
3
  export * as billing from "./billing";
6
4
  export * from "./billing/types";
7
5
  export * as credits from "./credits";
@@ -22,6 +20,8 @@ export * as dataexports from "./dataexports";
22
20
  export * from "./dataexports/types";
23
21
  export * as events from "./events";
24
22
  export * from "./events/types";
23
+ export * as features from "./features";
24
+ export * from "./features/types";
25
25
  export * as plangroups from "./plangroups";
26
26
  export * from "./plangroups/types";
27
27
  export * as accesstokens from "./accesstokens";
@@ -29,7 +29,6 @@ export * from "./accesstokens/types";
29
29
  export * as webhooks from "./webhooks";
30
30
  export * from "./webhooks/types";
31
31
  export * from "./accounts/client/requests";
32
- export * from "./features/client/requests";
33
32
  export * from "./billing/client/requests";
34
33
  export * from "./credits/client/requests";
35
34
  export * from "./checkout/client/requests";
@@ -40,6 +39,7 @@ export * from "./components/client/requests";
40
39
  export * from "./crm/client/requests";
41
40
  export * from "./dataexports/client/requests";
42
41
  export * from "./events/client/requests";
42
+ export * from "./features/client/requests";
43
43
  export * from "./plangroups/client/requests";
44
44
  export * from "./accesstokens/client/requests";
45
45
  export * from "./webhooks/client/requests";
@@ -35,7 +35,6 @@ export interface CreatePlanGroupRequestBody {
35
35
  checkoutCollectPhone: boolean;
36
36
  customPlanConfig?: Schematic.CustomPlanConfig;
37
37
  customPlanId?: string;
38
- defaultPlanId?: string;
39
38
  enableTaxCollection: boolean;
40
39
  fallbackPlanId?: string;
41
40
  initialPlanId?: string;
@@ -35,7 +35,6 @@ export interface UpdatePlanGroupRequestBody {
35
35
  checkoutCollectPhone: boolean;
36
36
  customPlanConfig?: Schematic.CustomPlanConfig;
37
37
  customPlanId?: string;
38
- defaultPlanId?: string;
39
38
  enableTaxCollection: boolean;
40
39
  fallbackPlanId?: string;
41
40
  initialPlanId?: string;
@@ -44,64 +44,6 @@ export declare class Plans {
44
44
  */
45
45
  updateCompanyPlans(companyPlanId: string, request: Schematic.UpdateCompanyPlansRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCompanyPlansResponse>;
46
46
  private __updateCompanyPlans;
47
- /**
48
- * @param {string} planAudienceId - plan_audience_id
49
- * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
50
- *
51
- * @throws {@link Schematic.UnauthorizedError}
52
- * @throws {@link Schematic.ForbiddenError}
53
- * @throws {@link Schematic.NotFoundError}
54
- * @throws {@link Schematic.InternalServerError}
55
- *
56
- * @example
57
- * await client.plans.getAudience("plan_audience_id")
58
- */
59
- getAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.GetAudienceResponse>;
60
- private __getAudience;
61
- /**
62
- * @param {string} planAudienceId - plan_audience_id
63
- * @param {Schematic.UpdateAudienceRequestBody} request
64
- * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
- * @throws {@link Schematic.BadRequestError}
67
- * @throws {@link Schematic.UnauthorizedError}
68
- * @throws {@link Schematic.ForbiddenError}
69
- * @throws {@link Schematic.NotFoundError}
70
- * @throws {@link Schematic.InternalServerError}
71
- *
72
- * @example
73
- * await client.plans.updateAudience("plan_audience_id", {
74
- * conditionGroups: [{
75
- * conditions: [{
76
- * conditionType: "company",
77
- * operator: "eq",
78
- * resourceIds: ["resource_ids"]
79
- * }]
80
- * }],
81
- * conditions: [{
82
- * conditionType: "company",
83
- * operator: "eq",
84
- * resourceIds: ["resource_ids"]
85
- * }]
86
- * })
87
- */
88
- updateAudience(planAudienceId: string, request: Schematic.UpdateAudienceRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdateAudienceResponse>;
89
- private __updateAudience;
90
- /**
91
- * @param {string} planAudienceId - plan_audience_id
92
- * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
93
- *
94
- * @throws {@link Schematic.BadRequestError}
95
- * @throws {@link Schematic.UnauthorizedError}
96
- * @throws {@link Schematic.ForbiddenError}
97
- * @throws {@link Schematic.NotFoundError}
98
- * @throws {@link Schematic.InternalServerError}
99
- *
100
- * @example
101
- * await client.plans.deleteAudience("plan_audience_id")
102
- */
103
- deleteAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.DeleteAudienceResponse>;
104
- private __deleteAudience;
105
47
  /**
106
48
  * @param {Schematic.ListPlansRequest} request
107
49
  * @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,5 +1,4 @@
1
1
  export { type UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
2
- export { type UpdateAudienceRequestBody } from "./UpdateAudienceRequestBody";
3
2
  export { type ListPlansRequest } from "./ListPlansRequest";
4
3
  export { type CreatePlanRequestBody } from "./CreatePlanRequestBody";
5
4
  export { type UpdatePlanRequestBody } from "./UpdatePlanRequestBody";