@memnexus-ai/typescript-sdk 1.17.1 → 1.20.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.
package/dist/index.d.ts CHANGED
@@ -3135,6 +3135,490 @@ declare const userUsage: z.ZodObject<{
3135
3135
  periodStart: string;
3136
3136
  periodEnd: string;
3137
3137
  }>;
3138
+ declare const subscription: z.ZodObject<{
3139
+ /** Stripe subscription ID */
3140
+ id: z.ZodString;
3141
+ /** Current subscription status */
3142
+ status: z.ZodEnum<["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"]>;
3143
+ /** Plan type */
3144
+ plan: z.ZodEnum<["free", "pro", "enterprise"]>;
3145
+ /** Current period start date */
3146
+ currentPeriodStart: z.ZodString;
3147
+ /** Current period end date */
3148
+ currentPeriodEnd: z.ZodString;
3149
+ /** Whether subscription cancels at period end */
3150
+ cancelAtPeriodEnd: z.ZodBoolean;
3151
+ /** When subscription was canceled */
3152
+ canceledAt: z.ZodNullable<z.ZodString>;
3153
+ }, "strip", z.ZodTypeAny, {
3154
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3155
+ id: string;
3156
+ plan: "free" | "pro" | "enterprise";
3157
+ currentPeriodStart: string;
3158
+ currentPeriodEnd: string;
3159
+ cancelAtPeriodEnd: boolean;
3160
+ canceledAt: string | null;
3161
+ }, {
3162
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3163
+ id: string;
3164
+ plan: "free" | "pro" | "enterprise";
3165
+ currentPeriodStart: string;
3166
+ currentPeriodEnd: string;
3167
+ cancelAtPeriodEnd: boolean;
3168
+ canceledAt: string | null;
3169
+ }>;
3170
+ declare const invoice: z.ZodObject<{
3171
+ /** Stripe invoice ID */
3172
+ id: z.ZodString;
3173
+ /** Invoice number */
3174
+ number: z.ZodNullable<z.ZodString>;
3175
+ /** Invoice status */
3176
+ status: z.ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>;
3177
+ /** Amount due in cents */
3178
+ amountDue: z.ZodNumber;
3179
+ /** Amount paid in cents */
3180
+ amountPaid: z.ZodNumber;
3181
+ /** Three-letter ISO currency code */
3182
+ currency: z.ZodString;
3183
+ /** Start of billing period */
3184
+ periodStart: z.ZodString;
3185
+ /** End of billing period */
3186
+ periodEnd: z.ZodString;
3187
+ /** When invoice was created */
3188
+ created: z.ZodString;
3189
+ /** URL to view invoice */
3190
+ hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
3191
+ /** URL to download invoice PDF */
3192
+ invoicePdf: z.ZodNullable<z.ZodString>;
3193
+ }, "strip", z.ZodTypeAny, {
3194
+ number: string | null;
3195
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3196
+ id: string;
3197
+ periodStart: string;
3198
+ periodEnd: string;
3199
+ amountDue: number;
3200
+ amountPaid: number;
3201
+ currency: string;
3202
+ created: string;
3203
+ hostedInvoiceUrl: string | null;
3204
+ invoicePdf: string | null;
3205
+ }, {
3206
+ number: string | null;
3207
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3208
+ id: string;
3209
+ periodStart: string;
3210
+ periodEnd: string;
3211
+ amountDue: number;
3212
+ amountPaid: number;
3213
+ currency: string;
3214
+ created: string;
3215
+ hostedInvoiceUrl: string | null;
3216
+ invoicePdf: string | null;
3217
+ }>;
3218
+ declare const paymentMethod: z.ZodObject<{
3219
+ /** Stripe payment method ID */
3220
+ id: z.ZodString;
3221
+ /** Payment method type (card, etc.) */
3222
+ type: z.ZodString;
3223
+ /** Card details if type is card */
3224
+ card: z.ZodNullable<z.ZodObject<{
3225
+ /** Card brand (visa, mastercard, etc.) */
3226
+ brand: z.ZodString;
3227
+ /** Last 4 digits of card */
3228
+ last4: z.ZodString;
3229
+ /** Expiration month */
3230
+ expMonth: z.ZodNumber;
3231
+ /** Expiration year */
3232
+ expYear: z.ZodNumber;
3233
+ }, "strip", z.ZodTypeAny, {
3234
+ brand: string;
3235
+ last4: string;
3236
+ expMonth: number;
3237
+ expYear: number;
3238
+ }, {
3239
+ brand: string;
3240
+ last4: string;
3241
+ expMonth: number;
3242
+ expYear: number;
3243
+ }>>;
3244
+ /** Whether this is the default payment method */
3245
+ isDefault: z.ZodBoolean;
3246
+ }, "strip", z.ZodTypeAny, {
3247
+ type: string;
3248
+ id: string;
3249
+ card: {
3250
+ brand: string;
3251
+ last4: string;
3252
+ expMonth: number;
3253
+ expYear: number;
3254
+ } | null;
3255
+ isDefault: boolean;
3256
+ }, {
3257
+ type: string;
3258
+ id: string;
3259
+ card: {
3260
+ brand: string;
3261
+ last4: string;
3262
+ expMonth: number;
3263
+ expYear: number;
3264
+ } | null;
3265
+ isDefault: boolean;
3266
+ }>;
3267
+ declare const billingOverview: z.ZodObject<{
3268
+ subscription: z.ZodObject<{
3269
+ /** Stripe subscription ID */
3270
+ id: z.ZodString;
3271
+ /** Current subscription status */
3272
+ status: z.ZodEnum<["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"]>;
3273
+ /** Plan type */
3274
+ plan: z.ZodEnum<["free", "pro", "enterprise"]>;
3275
+ /** Current period start date */
3276
+ currentPeriodStart: z.ZodString;
3277
+ /** Current period end date */
3278
+ currentPeriodEnd: z.ZodString;
3279
+ /** Whether subscription cancels at period end */
3280
+ cancelAtPeriodEnd: z.ZodBoolean;
3281
+ /** When subscription was canceled */
3282
+ canceledAt: z.ZodNullable<z.ZodString>;
3283
+ }, "strip", z.ZodTypeAny, {
3284
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3285
+ id: string;
3286
+ plan: "free" | "pro" | "enterprise";
3287
+ currentPeriodStart: string;
3288
+ currentPeriodEnd: string;
3289
+ cancelAtPeriodEnd: boolean;
3290
+ canceledAt: string | null;
3291
+ }, {
3292
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3293
+ id: string;
3294
+ plan: "free" | "pro" | "enterprise";
3295
+ currentPeriodStart: string;
3296
+ currentPeriodEnd: string;
3297
+ cancelAtPeriodEnd: boolean;
3298
+ canceledAt: string | null;
3299
+ }>;
3300
+ defaultPaymentMethod: z.ZodObject<{
3301
+ /** Stripe payment method ID */
3302
+ id: z.ZodString;
3303
+ /** Payment method type (card, etc.) */
3304
+ type: z.ZodString;
3305
+ /** Card details if type is card */
3306
+ card: z.ZodNullable<z.ZodObject<{
3307
+ /** Card brand (visa, mastercard, etc.) */
3308
+ brand: z.ZodString;
3309
+ /** Last 4 digits of card */
3310
+ last4: z.ZodString;
3311
+ /** Expiration month */
3312
+ expMonth: z.ZodNumber;
3313
+ /** Expiration year */
3314
+ expYear: z.ZodNumber;
3315
+ }, "strip", z.ZodTypeAny, {
3316
+ brand: string;
3317
+ last4: string;
3318
+ expMonth: number;
3319
+ expYear: number;
3320
+ }, {
3321
+ brand: string;
3322
+ last4: string;
3323
+ expMonth: number;
3324
+ expYear: number;
3325
+ }>>;
3326
+ /** Whether this is the default payment method */
3327
+ isDefault: z.ZodBoolean;
3328
+ }, "strip", z.ZodTypeAny, {
3329
+ type: string;
3330
+ id: string;
3331
+ card: {
3332
+ brand: string;
3333
+ last4: string;
3334
+ expMonth: number;
3335
+ expYear: number;
3336
+ } | null;
3337
+ isDefault: boolean;
3338
+ }, {
3339
+ type: string;
3340
+ id: string;
3341
+ card: {
3342
+ brand: string;
3343
+ last4: string;
3344
+ expMonth: number;
3345
+ expYear: number;
3346
+ } | null;
3347
+ isDefault: boolean;
3348
+ }>;
3349
+ /** Upcoming invoice preview */
3350
+ upcomingInvoice: z.ZodNullable<z.ZodObject<{
3351
+ /** Amount due in cents */
3352
+ amountDue: z.ZodNumber;
3353
+ /** Currency code */
3354
+ currency: z.ZodString;
3355
+ /** Next billing date */
3356
+ periodEnd: z.ZodString;
3357
+ }, "strip", z.ZodTypeAny, {
3358
+ periodEnd: string;
3359
+ amountDue: number;
3360
+ currency: string;
3361
+ }, {
3362
+ periodEnd: string;
3363
+ amountDue: number;
3364
+ currency: string;
3365
+ }>>;
3366
+ }, "strip", z.ZodTypeAny, {
3367
+ subscription: {
3368
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3369
+ id: string;
3370
+ plan: "free" | "pro" | "enterprise";
3371
+ currentPeriodStart: string;
3372
+ currentPeriodEnd: string;
3373
+ cancelAtPeriodEnd: boolean;
3374
+ canceledAt: string | null;
3375
+ };
3376
+ defaultPaymentMethod: {
3377
+ type: string;
3378
+ id: string;
3379
+ card: {
3380
+ brand: string;
3381
+ last4: string;
3382
+ expMonth: number;
3383
+ expYear: number;
3384
+ } | null;
3385
+ isDefault: boolean;
3386
+ };
3387
+ upcomingInvoice: {
3388
+ periodEnd: string;
3389
+ amountDue: number;
3390
+ currency: string;
3391
+ } | null;
3392
+ }, {
3393
+ subscription: {
3394
+ status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
3395
+ id: string;
3396
+ plan: "free" | "pro" | "enterprise";
3397
+ currentPeriodStart: string;
3398
+ currentPeriodEnd: string;
3399
+ cancelAtPeriodEnd: boolean;
3400
+ canceledAt: string | null;
3401
+ };
3402
+ defaultPaymentMethod: {
3403
+ type: string;
3404
+ id: string;
3405
+ card: {
3406
+ brand: string;
3407
+ last4: string;
3408
+ expMonth: number;
3409
+ expYear: number;
3410
+ } | null;
3411
+ isDefault: boolean;
3412
+ };
3413
+ upcomingInvoice: {
3414
+ periodEnd: string;
3415
+ amountDue: number;
3416
+ currency: string;
3417
+ } | null;
3418
+ }>;
3419
+ declare const createCheckoutSessionRequest: z.ZodObject<{
3420
+ /** Stripe price ID (defaults to Pro price) */
3421
+ priceId: z.ZodOptional<z.ZodString>;
3422
+ /** URL to redirect after successful checkout */
3423
+ successUrl: z.ZodString;
3424
+ /** URL to redirect if checkout is canceled */
3425
+ cancelUrl: z.ZodString;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ successUrl: string;
3428
+ cancelUrl: string;
3429
+ priceId?: string | undefined;
3430
+ }, {
3431
+ successUrl: string;
3432
+ cancelUrl: string;
3433
+ priceId?: string | undefined;
3434
+ }>;
3435
+ declare const checkoutSessionResponse: z.ZodObject<{
3436
+ /** Stripe checkout session ID */
3437
+ sessionId: z.ZodString;
3438
+ /** URL to redirect user to Stripe checkout */
3439
+ url: z.ZodString;
3440
+ }, "strip", z.ZodTypeAny, {
3441
+ sessionId: string;
3442
+ url: string;
3443
+ }, {
3444
+ sessionId: string;
3445
+ url: string;
3446
+ }>;
3447
+ declare const createPortalSessionRequest: z.ZodObject<{
3448
+ /** URL to redirect after leaving the portal */
3449
+ returnUrl: z.ZodString;
3450
+ }, "strip", z.ZodTypeAny, {
3451
+ returnUrl: string;
3452
+ }, {
3453
+ returnUrl: string;
3454
+ }>;
3455
+ declare const portalSessionResponse: z.ZodObject<{
3456
+ /** URL to redirect user to Stripe billing portal */
3457
+ url: z.ZodString;
3458
+ }, "strip", z.ZodTypeAny, {
3459
+ url: string;
3460
+ }, {
3461
+ url: string;
3462
+ }>;
3463
+ declare const listInvoicesResponse: z.ZodLazy<z.ZodObject<{
3464
+ /** List of invoices */
3465
+ data: z.ZodArray<z.ZodObject<{
3466
+ /** Stripe invoice ID */
3467
+ id: z.ZodString;
3468
+ /** Invoice number */
3469
+ number: z.ZodNullable<z.ZodString>;
3470
+ /** Invoice status */
3471
+ status: z.ZodEnum<["draft", "open", "paid", "uncollectible", "void"]>;
3472
+ /** Amount due in cents */
3473
+ amountDue: z.ZodNumber;
3474
+ /** Amount paid in cents */
3475
+ amountPaid: z.ZodNumber;
3476
+ /** Three-letter ISO currency code */
3477
+ currency: z.ZodString;
3478
+ /** Start of billing period */
3479
+ periodStart: z.ZodString;
3480
+ /** End of billing period */
3481
+ periodEnd: z.ZodString;
3482
+ /** When invoice was created */
3483
+ created: z.ZodString;
3484
+ /** URL to view invoice */
3485
+ hostedInvoiceUrl: z.ZodNullable<z.ZodString>;
3486
+ /** URL to download invoice PDF */
3487
+ invoicePdf: z.ZodNullable<z.ZodString>;
3488
+ }, "strip", z.ZodTypeAny, {
3489
+ number: string | null;
3490
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3491
+ id: string;
3492
+ periodStart: string;
3493
+ periodEnd: string;
3494
+ amountDue: number;
3495
+ amountPaid: number;
3496
+ currency: string;
3497
+ created: string;
3498
+ hostedInvoiceUrl: string | null;
3499
+ invoicePdf: string | null;
3500
+ }, {
3501
+ number: string | null;
3502
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3503
+ id: string;
3504
+ periodStart: string;
3505
+ periodEnd: string;
3506
+ amountDue: number;
3507
+ amountPaid: number;
3508
+ currency: string;
3509
+ created: string;
3510
+ hostedInvoiceUrl: string | null;
3511
+ invoicePdf: string | null;
3512
+ }>, "many">;
3513
+ /** Whether there are more invoices */
3514
+ hasMore: z.ZodBoolean;
3515
+ }, "strip", z.ZodTypeAny, {
3516
+ data: {
3517
+ number: string | null;
3518
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3519
+ id: string;
3520
+ periodStart: string;
3521
+ periodEnd: string;
3522
+ amountDue: number;
3523
+ amountPaid: number;
3524
+ currency: string;
3525
+ created: string;
3526
+ hostedInvoiceUrl: string | null;
3527
+ invoicePdf: string | null;
3528
+ }[];
3529
+ hasMore: boolean;
3530
+ }, {
3531
+ data: {
3532
+ number: string | null;
3533
+ status: "void" | "open" | "draft" | "paid" | "uncollectible";
3534
+ id: string;
3535
+ periodStart: string;
3536
+ periodEnd: string;
3537
+ amountDue: number;
3538
+ amountPaid: number;
3539
+ currency: string;
3540
+ created: string;
3541
+ hostedInvoiceUrl: string | null;
3542
+ invoicePdf: string | null;
3543
+ }[];
3544
+ hasMore: boolean;
3545
+ }>>;
3546
+ declare const listPaymentMethodsResponse: z.ZodLazy<z.ZodObject<{
3547
+ /** List of payment methods */
3548
+ data: z.ZodArray<z.ZodObject<{
3549
+ /** Stripe payment method ID */
3550
+ id: z.ZodString;
3551
+ /** Payment method type (card, etc.) */
3552
+ type: z.ZodString;
3553
+ /** Card details if type is card */
3554
+ card: z.ZodNullable<z.ZodObject<{
3555
+ /** Card brand (visa, mastercard, etc.) */
3556
+ brand: z.ZodString;
3557
+ /** Last 4 digits of card */
3558
+ last4: z.ZodString;
3559
+ /** Expiration month */
3560
+ expMonth: z.ZodNumber;
3561
+ /** Expiration year */
3562
+ expYear: z.ZodNumber;
3563
+ }, "strip", z.ZodTypeAny, {
3564
+ brand: string;
3565
+ last4: string;
3566
+ expMonth: number;
3567
+ expYear: number;
3568
+ }, {
3569
+ brand: string;
3570
+ last4: string;
3571
+ expMonth: number;
3572
+ expYear: number;
3573
+ }>>;
3574
+ /** Whether this is the default payment method */
3575
+ isDefault: z.ZodBoolean;
3576
+ }, "strip", z.ZodTypeAny, {
3577
+ type: string;
3578
+ id: string;
3579
+ card: {
3580
+ brand: string;
3581
+ last4: string;
3582
+ expMonth: number;
3583
+ expYear: number;
3584
+ } | null;
3585
+ isDefault: boolean;
3586
+ }, {
3587
+ type: string;
3588
+ id: string;
3589
+ card: {
3590
+ brand: string;
3591
+ last4: string;
3592
+ expMonth: number;
3593
+ expYear: number;
3594
+ } | null;
3595
+ isDefault: boolean;
3596
+ }>, "many">;
3597
+ }, "strip", z.ZodTypeAny, {
3598
+ data: {
3599
+ type: string;
3600
+ id: string;
3601
+ card: {
3602
+ brand: string;
3603
+ last4: string;
3604
+ expMonth: number;
3605
+ expYear: number;
3606
+ } | null;
3607
+ isDefault: boolean;
3608
+ }[];
3609
+ }, {
3610
+ data: {
3611
+ type: string;
3612
+ id: string;
3613
+ card: {
3614
+ brand: string;
3615
+ last4: string;
3616
+ expMonth: number;
3617
+ expYear: number;
3618
+ } | null;
3619
+ isDefault: boolean;
3620
+ }[];
3621
+ }>>;
3138
3622
 
3139
3623
  /**
3140
3624
  * TypeScript types for API models.
@@ -3202,6 +3686,16 @@ type GetNarrativeResponse = z.infer<typeof getNarrativeResponse>;
3202
3686
  type ListNarrativesResponse = z.infer<typeof listNarrativesResponse>;
3203
3687
  type User = z.infer<typeof user>;
3204
3688
  type UserUsage = z.infer<typeof userUsage>;
3689
+ type Subscription = z.infer<typeof subscription>;
3690
+ type Invoice = z.infer<typeof invoice>;
3691
+ type PaymentMethod = z.infer<typeof paymentMethod>;
3692
+ type BillingOverview = z.infer<typeof billingOverview>;
3693
+ type CreateCheckoutSessionRequest = z.infer<typeof createCheckoutSessionRequest>;
3694
+ type CheckoutSessionResponse = z.infer<typeof checkoutSessionResponse>;
3695
+ type CreatePortalSessionRequest = z.infer<typeof createPortalSessionRequest>;
3696
+ type PortalSessionResponse = z.infer<typeof portalSessionResponse>;
3697
+ type ListInvoicesResponse = z.infer<typeof listInvoicesResponse>;
3698
+ type ListPaymentMethodsResponse = z.infer<typeof listPaymentMethodsResponse>;
3205
3699
 
3206
3700
  /**
3207
3701
  * ApiKeysService - API key management endpoints API operations.
@@ -3328,6 +3822,115 @@ declare class ArtifactsService extends BaseService {
3328
3822
  }>>;
3329
3823
  }
3330
3824
 
3825
+ /**
3826
+ * BillingService - Subscription billing and payment management endpoints API operations.
3827
+ * Auto-generated by sdk-generator - do not edit manually.
3828
+ */
3829
+
3830
+ /**
3831
+ * Subscription billing and payment management endpoints
3832
+ */
3833
+ declare class BillingService extends BaseService {
3834
+ /**
3835
+ * Get billing overview
3836
+ * Get subscription, payment method, and upcoming invoice information
3837
+ */
3838
+ getBillingOverview(): Promise<HttpResponse<{
3839
+ data?: BillingOverview;
3840
+ }>>;
3841
+ /**
3842
+ * Create checkout session
3843
+ * Create a Stripe checkout session for subscription upgrade
3844
+ * @param body - Request body
3845
+ */
3846
+ createCheckoutSession(body: {
3847
+ priceId?: string;
3848
+ successUrl: string;
3849
+ cancelUrl: string;
3850
+ }): Promise<HttpResponse<{
3851
+ data?: CheckoutSessionResponse;
3852
+ }>>;
3853
+ /**
3854
+ * Create billing portal session
3855
+ * Create a Stripe billing portal session for managing subscription
3856
+ * @param body - Request body
3857
+ */
3858
+ createPortalSession(body: {
3859
+ returnUrl: string;
3860
+ }): Promise<HttpResponse<{
3861
+ data?: PortalSessionResponse;
3862
+ }>>;
3863
+ /**
3864
+ * Get current subscription
3865
+ * Get the current subscription details for the authenticated user
3866
+ */
3867
+ getSubscription(): Promise<HttpResponse<{
3868
+ data?: Subscription;
3869
+ }>>;
3870
+ /**
3871
+ * Cancel subscription
3872
+ * Cancel the current subscription at the end of the billing period
3873
+ * @param body - Request body
3874
+ */
3875
+ cancelSubscription(options?: {
3876
+ body?: Record<string, unknown>;
3877
+ }): Promise<HttpResponse<{
3878
+ data?: Subscription;
3879
+ }>>;
3880
+ /**
3881
+ * Reactivate subscription
3882
+ * Reactivate a subscription that was scheduled for cancellation
3883
+ * @param body - Request body
3884
+ */
3885
+ reactivateSubscription(options?: {
3886
+ body?: Record<string, unknown>;
3887
+ }): Promise<HttpResponse<{
3888
+ data?: Subscription;
3889
+ }>>;
3890
+ /**
3891
+ * List invoices
3892
+ * Get a list of invoices for the authenticated user
3893
+ * @param limit - Maximum number of invoices to return
3894
+ */
3895
+ listInvoices(options?: {
3896
+ limit?: number;
3897
+ }): Promise<HttpResponse<{
3898
+ data?: ListInvoicesResponse;
3899
+ }>>;
3900
+ /**
3901
+ * List payment methods
3902
+ * Get a list of payment methods for the authenticated user
3903
+ */
3904
+ listPaymentMethods(): Promise<HttpResponse<{
3905
+ data?: ListPaymentMethodsResponse;
3906
+ }>>;
3907
+ /**
3908
+ * Set default payment method
3909
+ * Set a payment method as the default for future payments
3910
+ * @param id - The payment method ID
3911
+ * @param body - Request body
3912
+ */
3913
+ setDefaultPaymentMethod(id: string, options?: {
3914
+ body?: Record<string, unknown>;
3915
+ }): Promise<HttpResponse<{
3916
+ message?: string;
3917
+ }>>;
3918
+ /**
3919
+ * Delete payment method
3920
+ * Remove a payment method from the account
3921
+ * @param id - The payment method ID
3922
+ */
3923
+ deletePaymentMethod(id: string): Promise<HttpResponse<void>>;
3924
+ /**
3925
+ * Stripe webhook endpoint
3926
+ * Receive and process Stripe webhook events
3927
+ * @param body - Request body
3928
+ */
3929
+ stripeWebhook(body: Record<string, unknown>): Promise<HttpResponse<{
3930
+ received?: boolean;
3931
+ }>>;
3932
+ }
3933
+
3331
3934
  /**
3332
3935
  * ConversationsService - Conversation tracking and analysis endpoints API operations.
3333
3936
  * Auto-generated by sdk-generator - do not edit manually.
@@ -4602,6 +5205,8 @@ declare class Memnexus {
4602
5205
  readonly apiKeys: ApiKeysService;
4603
5206
  /** Artifact storage and retrieval endpoints operations */
4604
5207
  readonly artifacts: ArtifactsService;
5208
+ /** Subscription billing and payment management endpoints operations */
5209
+ readonly billing: BillingService;
4605
5210
  /** Conversation tracking and analysis endpoints operations */
4606
5211
  readonly conversations: ConversationsService;
4607
5212
  /** Fact extraction and management endpoints operations */
@@ -4648,4 +5253,4 @@ declare class Memnexus {
4648
5253
  setEnvironment(environment: Environment): void;
4649
5254
  }
4650
5255
 
4651
- export { type AddMemoryToNarrativeRequest, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, CommunitiesService, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type Entity, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, type ListNarrativesResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type MergeCommunitiesRequest, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, community, conversation, createArtifactRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, Memnexus as default, entity, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, listNarrativesResponse, memory, memoryRelationship, memoryRelationshipsResponse, mergeCommunitiesRequest, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNarrativeRequest, user, userUsage };
5256
+ export { type AddMemoryToNarrativeRequest, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type CheckoutSessionResponse, CommunitiesService, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type Entity, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type MergeCommunitiesRequest, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, entity, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, mergeCommunitiesRequest, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNarrativeRequest, user, userUsage };