@salable/sdk 1.0.4 → 1.0.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 (35) hide show
  1. package/dist/index.es.js +71 -0
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +71 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/api/ai/conversations/index.d.ts +3 -0
  6. package/dist/sdk/api/ai/messages/index.d.ts +3 -0
  7. package/dist/sdk/api/apiKeys/index.d.ts +3 -0
  8. package/dist/sdk/api/carts/index.d.ts +6 -0
  9. package/dist/sdk/api/currencyOptions/index.d.ts +3 -0
  10. package/dist/sdk/api/destinations/index.d.ts +3 -0
  11. package/dist/sdk/api/entitlements/index.d.ts +3 -0
  12. package/dist/sdk/api/eventAttempts/index.d.ts +3 -0
  13. package/dist/sdk/api/events/index.d.ts +3 -0
  14. package/dist/sdk/api/grantees/index.d.ts +3 -0
  15. package/dist/sdk/api/groups/index.d.ts +3 -0
  16. package/dist/sdk/api/lineItems/index.d.ts +3 -0
  17. package/dist/sdk/api/meters/index.d.ts +3 -0
  18. package/dist/sdk/api/owners/index.d.ts +3 -0
  19. package/dist/sdk/api/paymentIntegrations/index.d.ts +3 -0
  20. package/dist/sdk/api/plans/index.d.ts +3 -0
  21. package/dist/sdk/api/prices/index.d.ts +3 -0
  22. package/dist/sdk/api/products/copyToLiveMode/index.d.ts +35 -0
  23. package/dist/sdk/api/products/exportEscaped/item/index.d.ts +2 -2
  24. package/dist/sdk/api/products/importEscaped/index.d.ts +2 -2
  25. package/dist/sdk/api/products/index.d.ts +28 -5
  26. package/dist/sdk/api/products/item/archive/index.d.ts +2 -2
  27. package/dist/sdk/api/products/item/index.d.ts +10 -7
  28. package/dist/sdk/api/receipts/index.d.ts +3 -0
  29. package/dist/sdk/api/subscriptionPlans/index.d.ts +3 -0
  30. package/dist/sdk/api/subscriptions/index.d.ts +3 -0
  31. package/dist/sdk/api/tierTags/index.d.ts +3 -0
  32. package/dist/sdk/api/tiers/index.d.ts +3 -0
  33. package/dist/sdk/api/usageRecords/index.d.ts +3 -0
  34. package/dist/sdk/models/index.d.ts +106 -12
  35. package/package.json +1 -1
@@ -150,6 +150,18 @@ export interface CheckEntitlementsSchema_data_entitlements extends AdditionalDat
150
150
  value?: string | null;
151
151
  }
152
152
  export type CheckEntitlementsSchema_data_entitlements_type = string;
153
+ export interface CopyProductToLiveModeRequestSchema extends Parsable {
154
+ /**
155
+ * The ID of the test mode product to copy to live mode.
156
+ */
157
+ id?: string | null;
158
+ }
159
+ export interface CopyToLiveModeSchema extends Parsable {
160
+ /**
161
+ * The id property
162
+ */
163
+ id?: string | null;
164
+ }
153
165
  export interface CreateAccountSessionResponseSchema extends Parsable {
154
166
  /**
155
167
  * The data property
@@ -386,6 +398,18 @@ export declare function createCheckEntitlementsSchema_dataFromDiscriminatorValue
386
398
  * @returns {CheckEntitlementsSchema}
387
399
  */
388
400
  export declare function createCheckEntitlementsSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
401
+ /**
402
+ * Creates a new instance of the appropriate class based on discriminator value
403
+ * @param parseNode The parse node to use to read the discriminator value and create the object
404
+ * @returns {CopyProductToLiveModeRequestSchema}
405
+ */
406
+ export declare function createCopyProductToLiveModeRequestSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
407
+ /**
408
+ * Creates a new instance of the appropriate class based on discriminator value
409
+ * @param parseNode The parse node to use to read the discriminator value and create the object
410
+ * @returns {CopyToLiveModeSchema}
411
+ */
412
+ export declare function createCopyToLiveModeSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
389
413
  /**
390
414
  * Creates a new instance of the appropriate class based on discriminator value
391
415
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -768,6 +792,12 @@ export declare function createGetAIConversationDetailSchema_data_messages_data_d
768
792
  * @returns {GetAIConversationDetailSchema_data_messages_data_data}
769
793
  */
770
794
  export declare function createGetAIConversationDetailSchema_data_messages_data_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
795
+ /**
796
+ * Creates a new instance of the appropriate class based on discriminator value
797
+ * @param parseNode The parse node to use to read the discriminator value and create the object
798
+ * @returns {string}
799
+ */
800
+ export declare function createGetAIConversationDetailSchema_data_messages_data_statusFromDiscriminatorValue(parseNode: ParseNode | undefined): string | undefined;
771
801
  /**
772
802
  * Creates a new instance of the appropriate class based on discriminator value
773
803
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -882,6 +912,12 @@ export declare function createGetAiMessageListSchema_data_data_payloadFromDiscri
882
912
  * @returns {GetAiMessageListSchema_data_data}
883
913
  */
884
914
  export declare function createGetAiMessageListSchema_data_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
915
+ /**
916
+ * Creates a new instance of the appropriate class based on discriminator value
917
+ * @param parseNode The parse node to use to read the discriminator value and create the object
918
+ * @returns {string}
919
+ */
920
+ export declare function createGetAiMessageListSchema_data_statusFromDiscriminatorValue(parseNode: ParseNode | undefined): string | undefined;
885
921
  /**
886
922
  * Creates a new instance of the appropriate class based on discriminator value
887
923
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2747,7 +2783,7 @@ export interface CreateProductRequestSchema extends Parsable {
2747
2783
  */
2748
2784
  isActive?: boolean | null;
2749
2785
  /**
2750
- * The name property
2786
+ * The name of the product.
2751
2787
  */
2752
2788
  name?: string | null;
2753
2789
  }
@@ -3200,6 +3236,18 @@ export declare function deserializeIntoCheckEntitlementsSchema_data(checkEntitle
3200
3236
  * @returns {Record<string, (node: ParseNode) => void>}
3201
3237
  */
3202
3238
  export declare function deserializeIntoCheckEntitlementsSchema_data_entitlements(checkEntitlementsSchema_data_entitlements?: Partial<CheckEntitlementsSchema_data_entitlements> | undefined): Record<string, (node: ParseNode) => void>;
3239
+ /**
3240
+ * The deserialization information for the current model
3241
+ * @param CopyProductToLiveModeRequestSchema The instance to deserialize into.
3242
+ * @returns {Record<string, (node: ParseNode) => void>}
3243
+ */
3244
+ export declare function deserializeIntoCopyProductToLiveModeRequestSchema(copyProductToLiveModeRequestSchema?: Partial<CopyProductToLiveModeRequestSchema> | undefined): Record<string, (node: ParseNode) => void>;
3245
+ /**
3246
+ * The deserialization information for the current model
3247
+ * @param CopyToLiveModeSchema The instance to deserialize into.
3248
+ * @returns {Record<string, (node: ParseNode) => void>}
3249
+ */
3250
+ export declare function deserializeIntoCopyToLiveModeSchema(copyToLiveModeSchema?: Partial<CopyToLiveModeSchema> | undefined): Record<string, (node: ParseNode) => void>;
3203
3251
  /**
3204
3252
  * The deserialization information for the current model
3205
3253
  * @param CreateAccountSessionResponseSchema The instance to deserialize into.
@@ -5660,6 +5708,10 @@ export interface GetAIConversationDetailSchema_data_messages_data extends Parsab
5660
5708
  * The role property
5661
5709
  */
5662
5710
  role?: string | null;
5711
+ /**
5712
+ * The status property
5713
+ */
5714
+ status?: string | null;
5663
5715
  }
5664
5716
  export interface GetAIConversationDetailSchema_data_messages_data_data extends AdditionalDataHolder, Parsable {
5665
5717
  /**
@@ -5923,6 +5975,7 @@ export interface GetAIConversationDetailSchema_data_messages_data_data_payload_p
5923
5975
  export type GetAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDays = number | GetAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDaysMember1;
5924
5976
  export interface GetAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDaysMember1 extends AdditionalDataHolder, Parsable {
5925
5977
  }
5978
+ export type GetAIConversationDetailSchema_data_messages_data_status = string;
5926
5979
  export interface GetAiConversationListSchema extends Parsable {
5927
5980
  /**
5928
5981
  * The data property
@@ -6018,6 +6071,10 @@ export interface GetAiMessageListSchema_data extends Parsable {
6018
6071
  * The role property
6019
6072
  */
6020
6073
  role?: string | null;
6074
+ /**
6075
+ * The status property
6076
+ */
6077
+ status?: string | null;
6021
6078
  }
6022
6079
  export interface GetAiMessageListSchema_data_data extends AdditionalDataHolder, Parsable {
6023
6080
  /**
@@ -6281,6 +6338,7 @@ export interface GetAiMessageListSchema_data_data_payload_plans_tierTagMember1 e
6281
6338
  export type GetAiMessageListSchema_data_data_payload_plans_trialPeriodDays = number | GetAiMessageListSchema_data_data_payload_plans_trialPeriodDaysMember1;
6282
6339
  export interface GetAiMessageListSchema_data_data_payload_plans_trialPeriodDaysMember1 extends AdditionalDataHolder, Parsable {
6283
6340
  }
6341
+ export type GetAiMessageListSchema_data_status = string;
6284
6342
  export interface GetApiKeyDetailSchema extends Parsable {
6285
6343
  /**
6286
6344
  * The data property
@@ -14172,6 +14230,20 @@ export declare function serializeCheckEntitlementsSchema_data_entitlements(write
14172
14230
  * @param writer Serialization writer to use to serialize this model
14173
14231
  */
14174
14232
  export declare function serializeCheckEntitlementsSchema_data_entitlements_type(writer: SerializationWriter, key: string, checkEntitlementsSchema_data_entitlements_type: Parsable | CheckEntitlementsSchema_data_entitlements_type | undefined, isSerializingDerivedType?: boolean): void;
14233
+ /**
14234
+ * Serializes information the current object
14235
+ * @param CopyProductToLiveModeRequestSchema The instance to serialize from.
14236
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14237
+ * @param writer Serialization writer to use to serialize this model
14238
+ */
14239
+ export declare function serializeCopyProductToLiveModeRequestSchema(writer: SerializationWriter, copyProductToLiveModeRequestSchema?: Partial<CopyProductToLiveModeRequestSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
14240
+ /**
14241
+ * Serializes information the current object
14242
+ * @param CopyToLiveModeSchema The instance to serialize from.
14243
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14244
+ * @param writer Serialization writer to use to serialize this model
14245
+ */
14246
+ export declare function serializeCopyToLiveModeSchema(writer: SerializationWriter, copyToLiveModeSchema?: Partial<CopyToLiveModeSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
14175
14247
  /**
14176
14248
  * Serializes information the current object
14177
14249
  * @param CreateAccountSessionResponseSchema The instance to serialize from.
@@ -14599,6 +14671,14 @@ export declare function serializeGetAIConversationDetailSchema_data_messages_dat
14599
14671
  * @param writer Serialization writer to use to serialize this model
14600
14672
  */
14601
14673
  export declare function serializeGetAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDaysMember1(writer: SerializationWriter, getAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDaysMember1?: Partial<GetAIConversationDetailSchema_data_messages_data_data_payload_plans_trialPeriodDaysMember1> | undefined | null, isSerializingDerivedType?: boolean): void;
14674
+ /**
14675
+ * Serializes information the current object
14676
+ * @param GetAIConversationDetailSchema_data_messages_data_status The instance to serialize from.
14677
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14678
+ * @param key The name of the property to write in the serialization.
14679
+ * @param writer Serialization writer to use to serialize this model
14680
+ */
14681
+ export declare function serializeGetAIConversationDetailSchema_data_messages_data_status(writer: SerializationWriter, key: string, getAIConversationDetailSchema_data_messages_data_status: Parsable | GetAIConversationDetailSchema_data_messages_data_status | undefined, isSerializingDerivedType?: boolean): void;
14602
14682
  /**
14603
14683
  * Serializes information the current object
14604
14684
  * @param GetAiConversationListSchema The instance to serialize from.
@@ -14718,6 +14798,14 @@ export declare function serializeGetAiMessageListSchema_data_data_payload_plans_
14718
14798
  * @param writer Serialization writer to use to serialize this model
14719
14799
  */
14720
14800
  export declare function serializeGetAiMessageListSchema_data_data_payload_plans_trialPeriodDaysMember1(writer: SerializationWriter, getAiMessageListSchema_data_data_payload_plans_trialPeriodDaysMember1?: Partial<GetAiMessageListSchema_data_data_payload_plans_trialPeriodDaysMember1> | undefined | null, isSerializingDerivedType?: boolean): void;
14801
+ /**
14802
+ * Serializes information the current object
14803
+ * @param GetAiMessageListSchema_data_status The instance to serialize from.
14804
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14805
+ * @param key The name of the property to write in the serialization.
14806
+ * @param writer Serialization writer to use to serialize this model
14807
+ */
14808
+ export declare function serializeGetAiMessageListSchema_data_status(writer: SerializationWriter, key: string, getAiMessageListSchema_data_status: Parsable | GetAiMessageListSchema_data_status | undefined, isSerializingDerivedType?: boolean): void;
14721
14809
  /**
14722
14810
  * Serializes information the current object
14723
14811
  * @param GetApiKeyDetailSchema The instance to serialize from.
@@ -17292,49 +17380,52 @@ export interface UpdatePlanResponseSchema_data extends Parsable {
17292
17380
  }
17293
17381
  export interface UpdateProductRequestSchema extends Parsable {
17294
17382
  /**
17295
- * The isActive property
17383
+ * Whether the product is active. When `false`, the product and its plans will not be available for new subscriptions.
17296
17384
  */
17297
17385
  isActive?: boolean | null;
17298
17386
  /**
17299
- * The name property
17387
+ * The name of the product.
17300
17388
  */
17301
17389
  name?: string | null;
17302
17390
  /**
17303
- * The settings property
17391
+ * Product settings to update.
17304
17392
  */
17305
17393
  settings?: UpdateProductRequestSchema_settings | null;
17306
17394
  }
17395
+ /**
17396
+ * Product settings to update.
17397
+ */
17307
17398
  export interface UpdateProductRequestSchema_settings extends Parsable {
17308
17399
  /**
17309
- * The allowPromoCodes property
17400
+ * Whether to allow customers to enter promotional codes during checkout.
17310
17401
  */
17311
17402
  allowPromoCodes?: boolean | null;
17312
17403
  /**
17313
- * The automaticTax property
17404
+ * Whether to enable automatic tax calculation based on customer location.
17314
17405
  */
17315
17406
  automaticTax?: boolean | null;
17316
17407
  /**
17317
- * The cancelUrl property
17408
+ * URL to redirect customers to if they abandon checkout.
17318
17409
  */
17319
17410
  cancelUrl?: string | null;
17320
17411
  /**
17321
- * The cardPrefillPreference property
17412
+ * Controls whether to prefill the customer's saved card details at checkout. One of `none`, `always`, `choice`.
17322
17413
  */
17323
17414
  cardPrefillPreference?: UpdateProductRequestSchema_settings_cardPrefillPreference | null;
17324
17415
  /**
17325
- * The collectBillingAddress property
17416
+ * Whether to collect the customer's billing address during checkout.
17326
17417
  */
17327
17418
  collectBillingAddress?: boolean | null;
17328
17419
  /**
17329
- * The collectShippingAddress property
17420
+ * Whether to collect the customer's shipping address during checkout.
17330
17421
  */
17331
17422
  collectShippingAddress?: boolean | null;
17332
17423
  /**
17333
- * The pastDueEntitlements property
17424
+ * Whether customers with past due subscriptions retain their entitlements.
17334
17425
  */
17335
17426
  pastDueEntitlements?: boolean | null;
17336
17427
  /**
17337
- * The successUrl property
17428
+ * URL to redirect customers to after a successful checkout.
17338
17429
  */
17339
17430
  successUrl?: string | null;
17340
17431
  }
@@ -18135,6 +18226,9 @@ export declare const UpdateLineItemRequestSchemaMember3_tiersModeObject: {
18135
18226
  readonly Graduated: "graduated";
18136
18227
  readonly Volume: "volume";
18137
18228
  };
18229
+ /**
18230
+ * Controls whether to prefill the customer's saved card details at checkout. One of `none`, `always`, `choice`.
18231
+ */
18138
18232
  export declare const UpdateProductRequestSchema_settings_cardPrefillPreferenceObject: {
18139
18233
  readonly None: "none";
18140
18234
  readonly Always: "always";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",