@outseta/api-client 0.3.53 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.js +667 -1
  2. package/package.json +1 -1
  3. package/src/generated/{billing/billing.ts → billing-v2/billing-v2.ts} +80 -8
  4. package/src/generated/billing-v3/billing-v3.ts +2541 -0
  5. package/src/generated/crm/crm.ts +148 -0
  6. package/src/generated/models/accountExpireCurrentSubscriptionBody.ts +7 -0
  7. package/src/generated/models/accountExtendRenewalBody.ts +7 -0
  8. package/src/generated/models/accountWebhookEntityCurrentStripeProductInstancesItem.ts +0 -11
  9. package/src/generated/models/extendRenewalParams.ts +10 -2
  10. package/src/generated/models/importResult.ts +9 -0
  11. package/src/generated/models/index.ts +39 -0
  12. package/src/generated/models/stripeCouponsCreateBody.ts +7 -0
  13. package/src/generated/models/stripeCouponsGetAll200.ts +8 -0
  14. package/src/generated/models/stripeCouponsGetAllParams.ts +14 -0
  15. package/src/generated/models/stripeCouponsGetRedemptions200.ts +8 -0
  16. package/src/generated/models/stripeCouponsGetRedemptionsParams.ts +14 -0
  17. package/src/generated/models/stripeInvoiceLineItemsGetAll200.ts +8 -0
  18. package/src/generated/models/stripeInvoiceLineItemsGetAllParams.ts +14 -0
  19. package/src/generated/models/stripeInvoicesChangeInvoiceStatusBody.ts +7 -0
  20. package/src/generated/models/stripeInvoicesGetAll200.ts +8 -0
  21. package/src/generated/models/stripeInvoicesGetAllParams.ts +14 -0
  22. package/src/generated/models/stripeInvoicesIssueInvoiceCreditBody.ts +7 -0
  23. package/src/generated/models/stripeInvoicesPostBody.ts +7 -0
  24. package/src/generated/models/stripePaymentMethodsGetAll200.ts +8 -0
  25. package/src/generated/models/stripePaymentMethodsGetAllParams.ts +14 -0
  26. package/src/generated/models/stripePricesGetAll200.ts +8 -0
  27. package/src/generated/models/stripePricesGetAllParams.ts +14 -0
  28. package/src/generated/models/stripeProductAllOf.ts +0 -11
  29. package/src/generated/models/stripeProductFamiliesGetAll200.ts +8 -0
  30. package/src/generated/models/stripeProductFamiliesGetAllParams.ts +14 -0
  31. package/src/generated/models/stripeProductFamiliesPostBody.ts +7 -0
  32. package/src/generated/models/stripeProductFamiliesPutBody.ts +7 -0
  33. package/src/generated/models/stripeProductsGetAll200.ts +8 -0
  34. package/src/generated/models/stripeProductsGetAllParams.ts +14 -0
  35. package/src/generated/models/stripeProductsPostBody.ts +7 -0
  36. package/src/generated/models/stripeProductsPutBody.ts +7 -0
  37. package/src/generated/models/stripePromotionCodesCreateBody.ts +7 -0
  38. package/src/generated/models/stripePromotionCodesGetAll200.ts +8 -0
  39. package/src/generated/models/stripePromotionCodesGetAllParams.ts +14 -0
  40. package/src/generated/models/stripePromotionCodesUpdateBody.ts +7 -0
  41. package/src/generated/models/stripeSubscriptionsChangeBody.ts +7 -0
  42. package/src/generated/models/stripeSubscriptionsCreateBody.ts +7 -0
  43. package/src/generated/models/stripeSubscriptionsExtendTrialBody.ts +7 -0
  44. package/src/generated/models/stripeSubscriptionsGetAll200.ts +8 -0
  45. package/src/generated/models/stripeSubscriptionsGetAllParams.ts +14 -0
  46. package/src/generated/models/stripeSubscriptionsPauseCollectionBody.ts +7 -0
  47. package/src/generated/models/stripeSubscriptionsPreviewChangeBody.ts +7 -0
  48. package/src/generated/models/teamTwoFactorSettings.ts +6 -0
  49. package/src/generated/public/public.ts +26 -0
  50. package/src/index.ts +4 -1
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripePromotionCode } from './stripePromotionCode';
4
+
5
+ export type StripePromotionCodesGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripePromotionCode[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripePromotionCodesGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripePromotionCode } from './stripePromotionCode';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripePromotionCodesUpdateBody = StripePromotionCode | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeSubscription } from './stripeSubscription';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeSubscriptionsChangeBody = StripeSubscription | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeSubscription } from './stripeSubscription';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeSubscriptionsCreateBody = StripeSubscription | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { ExtendSubscriptionOptions } from './extendSubscriptionOptions';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeSubscriptionsExtendTrialBody = ExtendSubscriptionOptions | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeSubscription } from './stripeSubscription';
4
+
5
+ export type StripeSubscriptionsGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeSubscription[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeSubscriptionsGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { PauseCollectionOptions } from './pauseCollectionOptions';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeSubscriptionsPauseCollectionBody = PauseCollectionOptions | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeSubscription } from './stripeSubscription';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeSubscriptionsPreviewChangeBody = StripeSubscription | null;
@@ -0,0 +1,6 @@
1
+ // @ts-nocheck
2
+
3
+ export interface TeamTwoFactorSettings {
4
+ Enabled?: boolean;
5
+ Required?: boolean;
6
+ }
@@ -591,6 +591,32 @@ export const tokenTwoFactorEnrollmentBeginEmail = async (params: TokenTwoFactorE
591
591
  );}
592
592
 
593
593
 
594
+ /**
595
+ * Call this when `POST /api/v1/tokens` returned
596
+ `two_factor_enrollment_required` and the user chooses an authenticator
597
+ app. Post the enrollment token from that response:
598
+
599
+ { "enrollment_token": "eyJ..." }
600
+
601
+ A fresh shared secret is generated and returned in three forms so you
602
+ can present it however suits your client:
603
+
604
+ {
605
+ "challenge_token": "eyJ...",
606
+ "secret": "JBSWY3DPEHPK3PXP",
607
+ "otpauth_uri": "otpauth://totp/Acme:user@example.com?secret=...&issuer=Acme&...",
608
+ "qr_code_png_base64": "iVBORw0KGgo...",
609
+ "expires_in": 600
610
+ }
611
+
612
+ Have the user add the secret to their authenticator app (by scanning
613
+ `qr_code_png_base64`, opening `otpauth_uri`, or typing `secret`), then
614
+ confirm a code via `POST /api/v1/tokens/two-factor/enroll/totp/confirm`.
615
+ Returns `401` if the enrollment token is invalid/expired and `403` if
616
+ forced enrollment does not apply to this user. Rate limited to 5
617
+ requests per minute (`429`).
618
+ * @summary Begin authenticator-app (TOTP) enrollment during a forced-2FA login.
619
+ */
594
620
  export type tokenTwoFactorEnrollmentBeginTotpResponse200 = {
595
621
  data: TwoFactorTotpEnrollmentPayload
596
622
  status: 200
package/src/index.ts CHANGED
@@ -8,9 +8,12 @@ export type {
8
8
  } from "./client.js";
9
9
 
10
10
  // Generated API functions and model types
11
+ // BEGIN generated tag exports (scripts/post-generate.mjs)
11
12
  export * from "./generated/activity/activity.js";
12
- export * from "./generated/billing/billing.js";
13
+ export * from "./generated/billing-v2/billing-v2.js";
14
+ export * from "./generated/billing-v3/billing-v3.js";
13
15
  export * from "./generated/crm/crm.js";
14
16
  export * from "./generated/email/email.js";
15
17
  export * from "./generated/support/support.js";
18
+ // END generated tag exports
16
19
  export * from "./generated/models/index.js";