@flexprice/sdk 2.1.46 → 2.1.47-dev.18

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 (46) hide show
  1. package/docs/sdk/models/get-price-history-request.md +17 -0
  2. package/docs/sdk/models/get-subscription-line-item-history-request.md +17 -0
  3. package/docs/sdks/prices/README.md +72 -0
  4. package/docs/sdks/subscriptions/README.md +72 -0
  5. package/esm/funcs/prices-get-price-history.d.ts +17 -0
  6. package/esm/funcs/prices-get-price-history.d.ts.map +1 -0
  7. package/esm/funcs/prices-get-price-history.js +91 -0
  8. package/esm/funcs/prices-get-price-history.js.map +1 -0
  9. package/esm/funcs/subscriptions-get-subscription-line-item-history.d.ts +17 -0
  10. package/esm/funcs/subscriptions-get-subscription-line-item-history.d.ts.map +1 -0
  11. package/esm/funcs/subscriptions-get-subscription-line-item-history.js +91 -0
  12. package/esm/funcs/subscriptions-get-subscription-line-item-history.js.map +1 -0
  13. package/esm/lib/config.d.ts +3 -3
  14. package/esm/lib/config.d.ts.map +1 -1
  15. package/esm/lib/config.js +3 -3
  16. package/esm/lib/config.js.map +1 -1
  17. package/esm/sdk/models/get-price-history-op.d.ts +15 -0
  18. package/esm/sdk/models/get-price-history-op.d.ts.map +1 -0
  19. package/esm/sdk/models/get-price-history-op.js +12 -0
  20. package/esm/sdk/models/get-price-history-op.js.map +1 -0
  21. package/esm/sdk/models/get-subscription-line-item-history-op.d.ts +15 -0
  22. package/esm/sdk/models/get-subscription-line-item-history-op.d.ts.map +1 -0
  23. package/esm/sdk/models/get-subscription-line-item-history-op.js +12 -0
  24. package/esm/sdk/models/get-subscription-line-item-history-op.js.map +1 -0
  25. package/esm/sdk/models/index.d.ts +2 -0
  26. package/esm/sdk/models/index.d.ts.map +1 -1
  27. package/esm/sdk/models/index.js +2 -0
  28. package/esm/sdk/models/index.js.map +1 -1
  29. package/esm/sdk/prices.d.ts +7 -0
  30. package/esm/sdk/prices.d.ts.map +1 -1
  31. package/esm/sdk/prices.js +10 -0
  32. package/esm/sdk/prices.js.map +1 -1
  33. package/esm/sdk/subscriptions.d.ts +7 -0
  34. package/esm/sdk/subscriptions.d.ts.map +1 -1
  35. package/esm/sdk/subscriptions.js +10 -0
  36. package/esm/sdk/subscriptions.js.map +1 -1
  37. package/jsr.json +1 -1
  38. package/package.json +1 -1
  39. package/src/funcs/prices-get-price-history.ts +181 -0
  40. package/src/funcs/subscriptions-get-subscription-line-item-history.ts +185 -0
  41. package/src/lib/config.ts +4 -3
  42. package/src/sdk/models/get-price-history-op.ts +33 -0
  43. package/src/sdk/models/get-subscription-line-item-history-op.ts +36 -0
  44. package/src/sdk/models/index.ts +2 -0
  45. package/src/sdk/prices.ts +18 -0
  46. package/src/sdk/subscriptions.ts +18 -0
@@ -0,0 +1,17 @@
1
+ # GetPriceHistoryRequest
2
+
3
+ ## Example Usage
4
+
5
+ ```typescript
6
+ import { GetPriceHistoryRequest } from "@flexprice/sdk/sdk/models";
7
+
8
+ let value: GetPriceHistoryRequest = {
9
+ id: "<id>",
10
+ };
11
+ ```
12
+
13
+ ## Fields
14
+
15
+ | Field | Type | Required | Description |
16
+ | ------------------ | ------------------ | ------------------ | ------------------ |
17
+ | `id` | *string* | :heavy_check_mark: | Price ID |
@@ -0,0 +1,17 @@
1
+ # GetSubscriptionLineItemHistoryRequest
2
+
3
+ ## Example Usage
4
+
5
+ ```typescript
6
+ import { GetSubscriptionLineItemHistoryRequest } from "@flexprice/sdk/sdk/models";
7
+
8
+ let value: GetSubscriptionLineItemHistoryRequest = {
9
+ id: "<id>",
10
+ };
11
+ ```
12
+
13
+ ## Fields
14
+
15
+ | Field | Type | Required | Description |
16
+ | ------------------ | ------------------ | ------------------ | ------------------ |
17
+ | `id` | *string* | :heavy_check_mark: | Line item ID |
@@ -11,6 +11,7 @@
11
11
  * [getPrice](#getprice) - Get price
12
12
  * [updatePrice](#updateprice) - Update price
13
13
  * [deletePrice](#deleteprice) - Delete price
14
+ * [getPriceHistory](#getpricehistory) - Get price history
14
15
 
15
16
  ## createPrice
16
17
 
@@ -531,4 +532,75 @@ run();
531
532
  | -------------------------- | -------------------------- | -------------------------- |
532
533
  | models.ErrorsErrorResponse | 400 | application/json |
533
534
  | models.ErrorsErrorResponse | 500 | application/json |
535
+ | models.SDKError | 4XX, 5XX | \*/\* |
536
+
537
+ ## getPriceHistory
538
+
539
+ Use when you need every version of a plan price, oldest first. Pass the ID of any version; the same timeline is returned.
540
+
541
+ ### Example Usage
542
+
543
+ <!-- UsageSnippet language="typescript" operationID="getPriceHistory" method="get" path="/prices/{id}/history" -->
544
+ ```typescript
545
+ import { Flexprice } from "@flexprice/sdk";
546
+
547
+ const flexprice = new Flexprice({
548
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
549
+ });
550
+
551
+ async function run() {
552
+ const result = await flexprice.prices.getPriceHistory("<id>");
553
+
554
+ console.log(result);
555
+ }
556
+
557
+ run();
558
+ ```
559
+
560
+ ### Standalone function
561
+
562
+ The standalone function version of this method:
563
+
564
+ ```typescript
565
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
566
+ import { pricesGetPriceHistory } from "@flexprice/sdk/funcs/prices-get-price-history.js";
567
+
568
+ // Use `FlexpriceCore` for best tree-shaking performance.
569
+ // You can create one instance of it to use across an application.
570
+ const flexprice = new FlexpriceCore({
571
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
572
+ });
573
+
574
+ async function run() {
575
+ const res = await pricesGetPriceHistory(flexprice, "<id>");
576
+ if (res.ok) {
577
+ const { value: result } = res;
578
+ console.log(result);
579
+ } else {
580
+ console.log("pricesGetPriceHistory failed:", res.error);
581
+ }
582
+ }
583
+
584
+ run();
585
+ ```
586
+
587
+ ### Parameters
588
+
589
+ | Parameter | Type | Required | Description |
590
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
591
+ | `id` | *string* | :heavy_check_mark: | Price ID |
592
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
593
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
594
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
595
+
596
+ ### Response
597
+
598
+ **Promise\<[models.ListPricesResponse](../../sdk/models/list-prices-response.md)\>**
599
+
600
+ ### Errors
601
+
602
+ | Error Type | Status Code | Content Type |
603
+ | -------------------------- | -------------------------- | -------------------------- |
604
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
605
+ | models.ErrorsErrorResponse | 500 | application/json |
534
606
  | models.SDKError | 4XX, 5XX | \*/\* |
@@ -10,6 +10,7 @@
10
10
  * [querySubscriptionLineItems](#querysubscriptionlineitems) - Search subscription line items
11
11
  * [updateSubscriptionLineItem](#updatesubscriptionlineitem) - Update subscription line item
12
12
  * [deleteSubscriptionLineItem](#deletesubscriptionlineitem) - Delete subscription line item
13
+ * [getSubscriptionLineItemHistory](#getsubscriptionlineitemhistory) - Get subscription line item history
13
14
  * [listAllSubscriptionSchedules](#listallsubscriptionschedules) - List all subscription schedules
14
15
  * [getSubscriptionSchedule](#getsubscriptionschedule) - Get subscription schedule
15
16
  * [cancelSubscriptionSchedule](#cancelsubscriptionschedule) - Cancel subscription schedule
@@ -486,6 +487,77 @@ run();
486
487
  | models.ErrorsErrorResponse | 500 | application/json |
487
488
  | models.SDKError | 4XX, 5XX | \*/\* |
488
489
 
490
+ ## getSubscriptionLineItemHistory
491
+
492
+ Use when you need every version of a subscription line item, oldest first. Pass the ID of any version; the same timeline is returned. Versions cancelled before they started are left out unless requested directly.
493
+
494
+ ### Example Usage
495
+
496
+ <!-- UsageSnippet language="typescript" operationID="getSubscriptionLineItemHistory" method="get" path="/subscriptions/lineitems/{id}/history" -->
497
+ ```typescript
498
+ import { Flexprice } from "@flexprice/sdk";
499
+
500
+ const flexprice = new Flexprice({
501
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
502
+ });
503
+
504
+ async function run() {
505
+ const result = await flexprice.subscriptions.getSubscriptionLineItemHistory("<id>");
506
+
507
+ console.log(result);
508
+ }
509
+
510
+ run();
511
+ ```
512
+
513
+ ### Standalone function
514
+
515
+ The standalone function version of this method:
516
+
517
+ ```typescript
518
+ import { FlexpriceCore } from "@flexprice/sdk/core.js";
519
+ import { subscriptionsGetSubscriptionLineItemHistory } from "@flexprice/sdk/funcs/subscriptions-get-subscription-line-item-history.js";
520
+
521
+ // Use `FlexpriceCore` for best tree-shaking performance.
522
+ // You can create one instance of it to use across an application.
523
+ const flexprice = new FlexpriceCore({
524
+ apiKeyAuth: "<YOUR_API_KEY_HERE>",
525
+ });
526
+
527
+ async function run() {
528
+ const res = await subscriptionsGetSubscriptionLineItemHistory(flexprice, "<id>");
529
+ if (res.ok) {
530
+ const { value: result } = res;
531
+ console.log(result);
532
+ } else {
533
+ console.log("subscriptionsGetSubscriptionLineItemHistory failed:", res.error);
534
+ }
535
+ }
536
+
537
+ run();
538
+ ```
539
+
540
+ ### Parameters
541
+
542
+ | Parameter | Type | Required | Description |
543
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
544
+ | `id` | *string* | :heavy_check_mark: | Line item ID |
545
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
546
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
547
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
548
+
549
+ ### Response
550
+
551
+ **Promise\<[models.ListSubscriptionLineItemsResponse](../../sdk/models/list-subscription-line-items-response.md)\>**
552
+
553
+ ### Errors
554
+
555
+ | Error Type | Status Code | Content Type |
556
+ | -------------------------- | -------------------------- | -------------------------- |
557
+ | models.ErrorsErrorResponse | 400, 404 | application/json |
558
+ | models.ErrorsErrorResponse | 500 | application/json |
559
+ | models.SDKError | 4XX, 5XX | \*/\* |
560
+
489
561
  ## listAllSubscriptionSchedules
490
562
 
491
563
  Use when listing or searching scheduled changes across subscriptions (e.g. admin view). Returns schedules with optional filtering.
@@ -0,0 +1,17 @@
1
+ import { FlexpriceCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FlexPriceError } from "../sdk/models/flex-price-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
5
+ import * as models from "../sdk/models/index.js";
6
+ import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
7
+ import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Get price history
12
+ *
13
+ * @remarks
14
+ * Use when you need every version of a plan price, oldest first. Pass the ID of any version; the same timeline is returned.
15
+ */
16
+ export declare function pricesGetPriceHistory(client: FlexpriceCore, id: string, options?: RequestOptions): APIPromise<Result<models.ListPricesResponse, models.ErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ //# sourceMappingURL=prices-get-price-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prices-get-price-history.d.ts","sourceRoot":"","sources":["../../src/funcs/prices-get-price-history.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,kBAAkB,EACvB,MAAM,CAAC,mBAAmB,GAC1B,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as models from "../sdk/models/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ /**
15
+ * Get price history
16
+ *
17
+ * @remarks
18
+ * Use when you need every version of a plan price, oldest first. Pass the ID of any version; the same timeline is returned.
19
+ */
20
+ export function pricesGetPriceHistory(client, id, options) {
21
+ return new APIPromise($do(client, id, options));
22
+ }
23
+ async function $do(client, id, options) {
24
+ const input = {
25
+ id: id,
26
+ };
27
+ const parsed = safeParse(input, (value) => z.parse(models.GetPriceHistoryRequest$outboundSchema, value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ id: encodeSimple("id", payload.id, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ };
39
+ const path = pathToFunc("/prices/{id}/history")(pathParams);
40
+ const headers = new Headers(compactMap({
41
+ Accept: "application/json",
42
+ }));
43
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
44
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46
+ const context = {
47
+ options: client._options,
48
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
49
+ operationID: "getPriceHistory",
50
+ oAuth2Scopes: null,
51
+ resolvedSecurity: requestSecurity,
52
+ securitySource: client._options.apiKeyAuth,
53
+ retryConfig: options?.retries
54
+ || client._options.retryConfig
55
+ || { strategy: "none" },
56
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
57
+ };
58
+ const requestRes = client._createRequest(context, {
59
+ security: requestSecurity,
60
+ method: "GET",
61
+ baseURL: options?.serverURL,
62
+ path: path,
63
+ headers: headers,
64
+ body: body,
65
+ userAgent: client._options.userAgent,
66
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
67
+ }, options);
68
+ if (!requestRes.ok) {
69
+ return [requestRes, { status: "invalid" }];
70
+ }
71
+ const req = requestRes.value;
72
+ const doResult = await client._do(req, {
73
+ context,
74
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
75
+ retryConfig: context.retryConfig,
76
+ retryCodes: context.retryCodes,
77
+ });
78
+ if (!doResult.ok) {
79
+ return [doResult, { status: "request-error", request: req }];
80
+ }
81
+ const response = doResult.value;
82
+ const responseFields = {
83
+ HttpMeta: { Response: response, Request: req },
84
+ };
85
+ const [result] = await M.match(M.json(200, models.ListPricesResponse$inboundSchema), M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema), M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
86
+ if (!result.ok) {
87
+ return [result, { status: "complete", request: req, response }];
88
+ }
89
+ return [result, { status: "complete", request: req, response }];
90
+ }
91
+ //# sourceMappingURL=prices-get-price-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prices-get-price-history.js","sourceRoot":"","sources":["../../src/funcs/prices-get-price-history.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAAqB,EACrB,EAAU,EACV,OAAwB,EAcxB;IACA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 import { RequestOptions } from "../lib/sdks.js";
3
+ import { FlexPriceError } from "../sdk/models/flex-price-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
5
+ import * as models from "../sdk/models/index.js";
6
+ import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
7
+ import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Get subscription line item history
12
+ *
13
+ * @remarks
14
+ * Use when you need every version of a subscription line item, oldest first. Pass the ID of any version; the same timeline is returned. Versions cancelled before they started are left out unless requested directly.
15
+ */
16
+ export declare function subscriptionsGetSubscriptionLineItemHistory(client: FlexpriceCore, id: string, options?: RequestOptions): APIPromise<Result<models.ListSubscriptionLineItemsResponse, models.ErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ //# sourceMappingURL=subscriptions-get-subscription-line-item-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions-get-subscription-line-item-history.d.ts","sourceRoot":"","sources":["../../src/funcs/subscriptions-get-subscription-line-item-history.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,2CAA2C,CACzD,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,iCAAiC,EACtC,MAAM,CAAC,mBAAmB,GAC1B,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as models from "../sdk/models/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ /**
15
+ * Get subscription line item history
16
+ *
17
+ * @remarks
18
+ * Use when you need every version of a subscription line item, oldest first. Pass the ID of any version; the same timeline is returned. Versions cancelled before they started are left out unless requested directly.
19
+ */
20
+ export function subscriptionsGetSubscriptionLineItemHistory(client, id, options) {
21
+ return new APIPromise($do(client, id, options));
22
+ }
23
+ async function $do(client, id, options) {
24
+ const input = {
25
+ id: id,
26
+ };
27
+ const parsed = safeParse(input, (value) => z.parse(models.GetSubscriptionLineItemHistoryRequest$outboundSchema, value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ id: encodeSimple("id", payload.id, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ };
39
+ const path = pathToFunc("/subscriptions/lineitems/{id}/history")(pathParams);
40
+ const headers = new Headers(compactMap({
41
+ Accept: "application/json",
42
+ }));
43
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
44
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
45
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46
+ const context = {
47
+ options: client._options,
48
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
49
+ operationID: "getSubscriptionLineItemHistory",
50
+ oAuth2Scopes: null,
51
+ resolvedSecurity: requestSecurity,
52
+ securitySource: client._options.apiKeyAuth,
53
+ retryConfig: options?.retries
54
+ || client._options.retryConfig
55
+ || { strategy: "none" },
56
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
57
+ };
58
+ const requestRes = client._createRequest(context, {
59
+ security: requestSecurity,
60
+ method: "GET",
61
+ baseURL: options?.serverURL,
62
+ path: path,
63
+ headers: headers,
64
+ body: body,
65
+ userAgent: client._options.userAgent,
66
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
67
+ }, options);
68
+ if (!requestRes.ok) {
69
+ return [requestRes, { status: "invalid" }];
70
+ }
71
+ const req = requestRes.value;
72
+ const doResult = await client._do(req, {
73
+ context,
74
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
75
+ retryConfig: context.retryConfig,
76
+ retryCodes: context.retryCodes,
77
+ });
78
+ if (!doResult.ok) {
79
+ return [doResult, { status: "request-error", request: req }];
80
+ }
81
+ const response = doResult.value;
82
+ const responseFields = {
83
+ HttpMeta: { Response: response, Request: req },
84
+ };
85
+ const [result] = await M.match(M.json(200, models.ListSubscriptionLineItemsResponse$inboundSchema), M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema), M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
86
+ if (!result.ok) {
87
+ return [result, { status: "complete", request: req, response }];
88
+ }
89
+ return [result, { status: "complete", request: req, response }];
90
+ }
91
+ //# sourceMappingURL=subscriptions-get-subscription-line-item-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions-get-subscription-line-item-history.js","sourceRoot":"","sources":["../../src/funcs/subscriptions-get-subscription-line-item-history.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,2CAA2C,CACzD,MAAqB,EACrB,EAAU,EACV,OAAwB,EAcxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,EAAE,EACF,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,EAAU,EACV,OAAwB,EAiBxB;IACA,MAAM,KAAK,GAAiD;QAC1D,EAAE,EAAE,EAAE;KACP,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,MAAM,CAAC,oDAAoD,EAC3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rB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,+CAA+C,CAAC,EACnE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,CAAC,EAC/D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "1.0";
38
- readonly sdkVersion: "2.1.46";
39
- readonly genVersion: "2.948.4";
40
- readonly userAgent: "speakeasy-sdk/typescript 2.1.46 2.948.4 1.0 @flexprice/sdk";
38
+ readonly sdkVersion: "2.1.47-dev.18";
39
+ readonly genVersion: "2.954.8";
40
+ readonly userAgent: "speakeasy-sdk/typescript 2.1.47-dev.18 2.954.8 1.0 @flexprice/sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,kFASb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAC3F,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAE9F,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,kFASb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAC3F,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAE9F,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAOf,CAAC"}
package/esm/lib/config.js CHANGED
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "1.0",
34
- sdkVersion: "2.1.46",
35
- genVersion: "2.948.4",
36
- userAgent: "speakeasy-sdk/typescript 2.1.46 2.948.4 1.0 @flexprice/sdk",
34
+ sdkVersion: "2.1.47-dev.18",
35
+ genVersion: "2.954.8",
36
+ userAgent: "speakeasy-sdk/typescript 2.1.47-dev.18 2.954.8 1.0 @flexprice/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,gCAAgC;IAChC;;OAEG;IACH,mCAAmC;CAC3B,CAAC;AA8BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB,EAAc;IACpE,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,gCAAgC;IAChC;;OAEG;IACH,mCAAmC;CAC3B,CAAC;AA8BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB,EAAc;IACpE,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,mEAAmE;CAC7D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4-mini";
2
+ export type GetPriceHistoryRequest = {
3
+ /**
4
+ * Price ID
5
+ */
6
+ id: string;
7
+ };
8
+ /** @internal */
9
+ export type GetPriceHistoryRequest$Outbound = {
10
+ id: string;
11
+ };
12
+ /** @internal */
13
+ export declare const GetPriceHistoryRequest$outboundSchema: z.ZodMiniType<GetPriceHistoryRequest$Outbound, GetPriceHistoryRequest>;
14
+ export declare function getPriceHistoryRequestToJSON(getPriceHistoryRequest: GetPriceHistoryRequest): string;
15
+ //# sourceMappingURL=get-price-history-op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-price-history-op.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/get-price-history-op.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,+BAA+B,EAC/B,sBAAsB,CAGtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ /** @internal */
6
+ export const GetPriceHistoryRequest$outboundSchema = z.object({
7
+ id: z.string(),
8
+ });
9
+ export function getPriceHistoryRequestToJSON(getPriceHistoryRequest) {
10
+ return JSON.stringify(GetPriceHistoryRequest$outboundSchema.parse(getPriceHistoryRequest));
11
+ }
12
+ //# sourceMappingURL=get-price-history-op.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-price-history-op.js","sourceRoot":"","sources":["../../../src/sdk/models/get-price-history-op.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAcjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C,EACtC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AAAA,CACH"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4-mini";
2
+ export type GetSubscriptionLineItemHistoryRequest = {
3
+ /**
4
+ * Line item ID
5
+ */
6
+ id: string;
7
+ };
8
+ /** @internal */
9
+ export type GetSubscriptionLineItemHistoryRequest$Outbound = {
10
+ id: string;
11
+ };
12
+ /** @internal */
13
+ export declare const GetSubscriptionLineItemHistoryRequest$outboundSchema: z.ZodMiniType<GetSubscriptionLineItemHistoryRequest$Outbound, GetSubscriptionLineItemHistoryRequest>;
14
+ export declare function getSubscriptionLineItemHistoryRequestToJSON(getSubscriptionLineItemHistoryRequest: GetSubscriptionLineItemHistoryRequest): string;
15
+ //# sourceMappingURL=get-subscription-line-item-history-op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-subscription-line-item-history-op.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/get-subscription-line-item-history-op.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,qCAAqC,GAAG;IAClD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GAAG;IAC3D,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAC/D,CAAC,CAAC,WAAW,CACX,8CAA8C,EAC9C,qCAAqC,CAGrC,CAAC;AAEL,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR"}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ /** @internal */
6
+ export const GetSubscriptionLineItemHistoryRequest$outboundSchema = z.object({
7
+ id: z.string(),
8
+ });
9
+ export function getSubscriptionLineItemHistoryRequestToJSON(getSubscriptionLineItemHistoryRequest) {
10
+ return JSON.stringify(GetSubscriptionLineItemHistoryRequest$outboundSchema.parse(getSubscriptionLineItemHistoryRequest));
11
+ }
12
+ //# sourceMappingURL=get-subscription-line-item-history-op.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-subscription-line-item-history-op.js","sourceRoot":"","sources":["../../../src/sdk/models/get-subscription-line-item-history-op.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAcjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEL,MAAM,UAAU,2CAA2C,CACzD,qCAA4E,EACpE;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oDAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AAAA,CACH"}
@@ -352,6 +352,7 @@ export * from "./get-plan-entitlements-op.js";
352
352
  export * from "./get-plan-op.js";
353
353
  export * from "./get-preview-invoice-request.js";
354
354
  export * from "./get-price-by-lookup-key-op.js";
355
+ export * from "./get-price-history-op.js";
355
356
  export * from "./get-price-op.js";
356
357
  export * from "./get-price-unit-by-code-op.js";
357
358
  export * from "./get-price-unit-op.js";
@@ -361,6 +362,7 @@ export * from "./get-refund-op.js";
361
362
  export * from "./get-scheduled-task-op.js";
362
363
  export * from "./get-subscription-addon-associations-op.js";
363
364
  export * from "./get-subscription-entitlements-op.js";
365
+ export * from "./get-subscription-line-item-history-op.js";
364
366
  export * from "./get-subscription-op.js";
365
367
  export * from "./get-subscription-schedule-op.js";
366
368
  export * from "./get-subscription-upcoming-grants-op.js";