@robosystems/client 0.2.9 → 0.2.10

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/types.gen.d.ts CHANGED
@@ -705,6 +705,42 @@ export type BatchAgentResponse = {
705
705
  */
706
706
  parallel_processed: boolean;
707
707
  };
708
+ /**
709
+ * BillingCustomer
710
+ * Billing customer information.
711
+ */
712
+ export type BillingCustomer = {
713
+ /**
714
+ * User Id
715
+ * User ID
716
+ */
717
+ user_id: string;
718
+ /**
719
+ * Has Payment Method
720
+ * Whether customer has a payment method on file
721
+ */
722
+ has_payment_method: boolean;
723
+ /**
724
+ * Invoice Billing Enabled
725
+ * Whether invoice billing is enabled (enterprise customers)
726
+ */
727
+ invoice_billing_enabled: boolean;
728
+ /**
729
+ * Payment Methods
730
+ * List of payment methods on file
731
+ */
732
+ payment_methods: Array<PaymentMethod>;
733
+ /**
734
+ * Stripe Customer Id
735
+ * Stripe customer ID if applicable
736
+ */
737
+ stripe_customer_id?: string | null;
738
+ /**
739
+ * Created At
740
+ * Customer creation timestamp (ISO format)
741
+ */
742
+ created_at: string;
743
+ };
708
744
  /**
709
745
  * BulkIngestRequest
710
746
  */
@@ -791,6 +827,63 @@ export type CancellationResponse = {
791
827
  */
792
828
  cancelled_at: string;
793
829
  };
830
+ /**
831
+ * CheckoutResponse
832
+ * Response from checkout session creation.
833
+ */
834
+ export type CheckoutResponse = {
835
+ /**
836
+ * Checkout Url
837
+ * URL to redirect user to for payment
838
+ */
839
+ checkout_url: string;
840
+ /**
841
+ * Session Id
842
+ * Checkout session ID for status polling
843
+ */
844
+ session_id: string;
845
+ /**
846
+ * Subscription Id
847
+ * Internal subscription ID
848
+ */
849
+ subscription_id: string;
850
+ /**
851
+ * Requires Checkout
852
+ * Whether checkout is required
853
+ */
854
+ requires_checkout?: boolean;
855
+ };
856
+ /**
857
+ * CheckoutStatusResponse
858
+ * Status of a checkout session.
859
+ */
860
+ export type CheckoutStatusResponse = {
861
+ /**
862
+ * Status
863
+ * Checkout status: 'pending_payment', 'provisioning', 'completed', 'failed'
864
+ */
865
+ status: string;
866
+ /**
867
+ * Subscription Id
868
+ * Internal subscription ID
869
+ */
870
+ subscription_id: string;
871
+ /**
872
+ * Resource Id
873
+ * Resource ID (graph_id or repository name) once provisioned
874
+ */
875
+ resource_id?: string | null;
876
+ /**
877
+ * Operation Id
878
+ * SSE operation ID for monitoring provisioning progress
879
+ */
880
+ operation_id?: string | null;
881
+ /**
882
+ * Error
883
+ * Error message if checkout failed
884
+ */
885
+ error?: string | null;
886
+ };
794
887
  /**
795
888
  * ConnectionOptionsResponse
796
889
  * Response with all available connection options.
@@ -993,6 +1086,29 @@ export type CreateApiKeyResponse = {
993
1086
  */
994
1087
  key: string;
995
1088
  };
1089
+ /**
1090
+ * CreateCheckoutRequest
1091
+ * Request to create a checkout session for payment collection.
1092
+ */
1093
+ export type CreateCheckoutRequest = {
1094
+ /**
1095
+ * Plan Name
1096
+ * Billing plan name (e.g., 'kuzu-standard')
1097
+ */
1098
+ plan_name: string;
1099
+ /**
1100
+ * Resource Type
1101
+ * Resource type ('graph' or 'repository')
1102
+ */
1103
+ resource_type: string;
1104
+ /**
1105
+ * Resource Config
1106
+ * Configuration for the resource to be provisioned
1107
+ */
1108
+ resource_config: {
1109
+ [key: string]: unknown;
1110
+ };
1111
+ };
996
1112
  /**
997
1113
  * CreateConnectionRequest
998
1114
  * Request to create a new connection.
@@ -2479,6 +2595,129 @@ export type InitialEntityData = {
2479
2595
  */
2480
2596
  ein?: string | null;
2481
2597
  };
2598
+ /**
2599
+ * Invoice
2600
+ * Invoice information.
2601
+ */
2602
+ export type Invoice = {
2603
+ /**
2604
+ * Id
2605
+ * Invoice ID
2606
+ */
2607
+ id: string;
2608
+ /**
2609
+ * Number
2610
+ * Invoice number
2611
+ */
2612
+ number?: string | null;
2613
+ /**
2614
+ * Status
2615
+ * Invoice status (paid, open, void, uncollectible)
2616
+ */
2617
+ status: string;
2618
+ /**
2619
+ * Amount Due
2620
+ * Amount due in cents
2621
+ */
2622
+ amount_due: number;
2623
+ /**
2624
+ * Amount Paid
2625
+ * Amount paid in cents
2626
+ */
2627
+ amount_paid: number;
2628
+ /**
2629
+ * Currency
2630
+ * Currency code (usd)
2631
+ */
2632
+ currency: string;
2633
+ /**
2634
+ * Created
2635
+ * Invoice creation date (ISO format)
2636
+ */
2637
+ created: string;
2638
+ /**
2639
+ * Due Date
2640
+ * Invoice due date (ISO format)
2641
+ */
2642
+ due_date?: string | null;
2643
+ /**
2644
+ * Paid At
2645
+ * Payment date (ISO format)
2646
+ */
2647
+ paid_at?: string | null;
2648
+ /**
2649
+ * Invoice Pdf
2650
+ * PDF download URL
2651
+ */
2652
+ invoice_pdf?: string | null;
2653
+ /**
2654
+ * Hosted Invoice Url
2655
+ * Hosted invoice URL
2656
+ */
2657
+ hosted_invoice_url?: string | null;
2658
+ /**
2659
+ * Line Items
2660
+ * Invoice line items
2661
+ */
2662
+ line_items: Array<InvoiceLineItem>;
2663
+ /**
2664
+ * Subscription Id
2665
+ * Associated subscription ID
2666
+ */
2667
+ subscription_id?: string | null;
2668
+ };
2669
+ /**
2670
+ * InvoiceLineItem
2671
+ * Invoice line item.
2672
+ */
2673
+ export type InvoiceLineItem = {
2674
+ /**
2675
+ * Description
2676
+ * Line item description
2677
+ */
2678
+ description: string;
2679
+ /**
2680
+ * Amount
2681
+ * Amount in cents
2682
+ */
2683
+ amount: number;
2684
+ /**
2685
+ * Quantity
2686
+ * Quantity
2687
+ */
2688
+ quantity: number;
2689
+ /**
2690
+ * Period Start
2691
+ * Billing period start
2692
+ */
2693
+ period_start?: string | null;
2694
+ /**
2695
+ * Period End
2696
+ * Billing period end
2697
+ */
2698
+ period_end?: string | null;
2699
+ };
2700
+ /**
2701
+ * InvoicesResponse
2702
+ * Response for invoice list.
2703
+ */
2704
+ export type InvoicesResponse = {
2705
+ /**
2706
+ * Invoices
2707
+ * List of invoices
2708
+ */
2709
+ invoices: Array<Invoice>;
2710
+ /**
2711
+ * Total Count
2712
+ * Total number of invoices
2713
+ */
2714
+ total_count: number;
2715
+ /**
2716
+ * Has More
2717
+ * Whether more invoices are available
2718
+ */
2719
+ has_more: boolean;
2720
+ };
2482
2721
  /**
2483
2722
  * LinkTokenRequest
2484
2723
  * Request to create a link token for embedded authentication.
@@ -2850,6 +3089,47 @@ export type PasswordPolicyResponse = {
2850
3089
  [key: string]: unknown;
2851
3090
  };
2852
3091
  };
3092
+ /**
3093
+ * PaymentMethod
3094
+ * Payment method information.
3095
+ */
3096
+ export type PaymentMethod = {
3097
+ /**
3098
+ * Id
3099
+ * Payment method ID
3100
+ */
3101
+ id: string;
3102
+ /**
3103
+ * Type
3104
+ * Payment method type (card, bank_account, etc.)
3105
+ */
3106
+ type: string;
3107
+ /**
3108
+ * Brand
3109
+ * Card brand (visa, mastercard, etc.)
3110
+ */
3111
+ brand?: string | null;
3112
+ /**
3113
+ * Last4
3114
+ * Last 4 digits
3115
+ */
3116
+ last4?: string | null;
3117
+ /**
3118
+ * Exp Month
3119
+ * Expiration month
3120
+ */
3121
+ exp_month?: number | null;
3122
+ /**
3123
+ * Exp Year
3124
+ * Expiration year
3125
+ */
3126
+ exp_year?: number | null;
3127
+ /**
3128
+ * Is Default
3129
+ * Whether this is the default payment method
3130
+ */
3131
+ is_default: boolean;
3132
+ };
2853
3133
  /**
2854
3134
  * PerformanceInsights
2855
3135
  * Performance analytics.
@@ -3884,6 +4164,42 @@ export type TransactionSummaryResponse = {
3884
4164
  */
3885
4165
  last_transaction?: string | null;
3886
4166
  };
4167
+ /**
4168
+ * UpcomingInvoice
4169
+ * Upcoming invoice preview.
4170
+ */
4171
+ export type UpcomingInvoice = {
4172
+ /**
4173
+ * Amount Due
4174
+ * Estimated amount due in cents
4175
+ */
4176
+ amount_due: number;
4177
+ /**
4178
+ * Currency
4179
+ * Currency code
4180
+ */
4181
+ currency: string;
4182
+ /**
4183
+ * Period Start
4184
+ * Billing period start
4185
+ */
4186
+ period_start: string;
4187
+ /**
4188
+ * Period End
4189
+ * Billing period end
4190
+ */
4191
+ period_end: string;
4192
+ /**
4193
+ * Line Items
4194
+ * Estimated line items
4195
+ */
4196
+ line_items: Array<InvoiceLineItem>;
4197
+ /**
4198
+ * Subscription Id
4199
+ * Associated subscription ID
4200
+ */
4201
+ subscription_id?: string | null;
4202
+ };
3887
4203
  /**
3888
4204
  * UpdateAPIKeyRequest
3889
4205
  * Request model for updating an API key.
@@ -3921,6 +4237,32 @@ export type UpdatePasswordRequest = {
3921
4237
  */
3922
4238
  confirm_password: string;
3923
4239
  };
4240
+ /**
4241
+ * UpdatePaymentMethodRequest
4242
+ * Request to update default payment method.
4243
+ */
4244
+ export type UpdatePaymentMethodRequest = {
4245
+ /**
4246
+ * Payment Method Id
4247
+ * Payment method ID to set as default
4248
+ */
4249
+ payment_method_id: string;
4250
+ };
4251
+ /**
4252
+ * UpdatePaymentMethodResponse
4253
+ * Response for payment method update.
4254
+ */
4255
+ export type UpdatePaymentMethodResponse = {
4256
+ /**
4257
+ * Message
4258
+ * Success message
4259
+ */
4260
+ message: string;
4261
+ /**
4262
+ * Updated payment method
4263
+ */
4264
+ payment_method: PaymentMethod;
4265
+ };
3924
4266
  /**
3925
4267
  * UpdateUserRequest
3926
4268
  * Request model for updating user profile.
@@ -7173,6 +7515,188 @@ export type CancelOperationResponses = {
7173
7515
  };
7174
7516
  };
7175
7517
  export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
7518
+ export type CreateCheckoutSessionData = {
7519
+ body: CreateCheckoutRequest;
7520
+ path?: never;
7521
+ query?: never;
7522
+ url: '/v1/billing/checkout';
7523
+ };
7524
+ export type CreateCheckoutSessionErrors = {
7525
+ /**
7526
+ * Validation Error
7527
+ */
7528
+ 422: HttpValidationError;
7529
+ };
7530
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
7531
+ export type CreateCheckoutSessionResponses = {
7532
+ /**
7533
+ * Successful Response
7534
+ */
7535
+ 201: CheckoutResponse;
7536
+ };
7537
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
7538
+ export type GetCheckoutStatusData = {
7539
+ body?: never;
7540
+ path: {
7541
+ /**
7542
+ * Session Id
7543
+ */
7544
+ session_id: string;
7545
+ };
7546
+ query?: never;
7547
+ url: '/v1/billing/checkout/{session_id}/status';
7548
+ };
7549
+ export type GetCheckoutStatusErrors = {
7550
+ /**
7551
+ * Validation Error
7552
+ */
7553
+ 422: HttpValidationError;
7554
+ };
7555
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
7556
+ export type GetCheckoutStatusResponses = {
7557
+ /**
7558
+ * Successful Response
7559
+ */
7560
+ 200: CheckoutStatusResponse;
7561
+ };
7562
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
7563
+ export type GetBillingCustomerData = {
7564
+ body?: never;
7565
+ path?: never;
7566
+ query?: never;
7567
+ url: '/v1/billing/customer';
7568
+ };
7569
+ export type GetBillingCustomerResponses = {
7570
+ /**
7571
+ * Successful Response
7572
+ */
7573
+ 200: BillingCustomer;
7574
+ };
7575
+ export type GetBillingCustomerResponse = GetBillingCustomerResponses[keyof GetBillingCustomerResponses];
7576
+ export type UpdatePaymentMethodData = {
7577
+ body: UpdatePaymentMethodRequest;
7578
+ path?: never;
7579
+ query?: never;
7580
+ url: '/v1/billing/customer/payment-method';
7581
+ };
7582
+ export type UpdatePaymentMethodErrors = {
7583
+ /**
7584
+ * Validation Error
7585
+ */
7586
+ 422: HttpValidationError;
7587
+ };
7588
+ export type UpdatePaymentMethodError = UpdatePaymentMethodErrors[keyof UpdatePaymentMethodErrors];
7589
+ export type UpdatePaymentMethodResponses = {
7590
+ /**
7591
+ * Successful Response
7592
+ */
7593
+ 200: UpdatePaymentMethodResponse;
7594
+ };
7595
+ export type UpdatePaymentMethodResponse2 = UpdatePaymentMethodResponses[keyof UpdatePaymentMethodResponses];
7596
+ export type ListInvoicesData = {
7597
+ body?: never;
7598
+ path?: never;
7599
+ query?: {
7600
+ /**
7601
+ * Limit
7602
+ * Number of invoices to return
7603
+ */
7604
+ limit?: number;
7605
+ };
7606
+ url: '/v1/billing/invoices';
7607
+ };
7608
+ export type ListInvoicesErrors = {
7609
+ /**
7610
+ * Validation Error
7611
+ */
7612
+ 422: HttpValidationError;
7613
+ };
7614
+ export type ListInvoicesError = ListInvoicesErrors[keyof ListInvoicesErrors];
7615
+ export type ListInvoicesResponses = {
7616
+ /**
7617
+ * Successful Response
7618
+ */
7619
+ 200: InvoicesResponse;
7620
+ };
7621
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
7622
+ export type GetUpcomingInvoiceData = {
7623
+ body?: never;
7624
+ path?: never;
7625
+ query?: never;
7626
+ url: '/v1/billing/invoices/upcoming';
7627
+ };
7628
+ export type GetUpcomingInvoiceResponses = {
7629
+ /**
7630
+ * Response Getupcominginvoice
7631
+ * Successful Response
7632
+ */
7633
+ 200: UpcomingInvoice | null;
7634
+ };
7635
+ export type GetUpcomingInvoiceResponse = GetUpcomingInvoiceResponses[keyof GetUpcomingInvoiceResponses];
7636
+ export type ListSubscriptionsData = {
7637
+ body?: never;
7638
+ path?: never;
7639
+ query?: never;
7640
+ url: '/v1/billing/subscriptions';
7641
+ };
7642
+ export type ListSubscriptionsResponses = {
7643
+ /**
7644
+ * Response Listsubscriptions
7645
+ * Successful Response
7646
+ */
7647
+ 200: Array<GraphSubscriptionResponse>;
7648
+ };
7649
+ export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
7650
+ export type GetSubscriptionData = {
7651
+ body?: never;
7652
+ path: {
7653
+ /**
7654
+ * Subscription Id
7655
+ */
7656
+ subscription_id: string;
7657
+ };
7658
+ query?: never;
7659
+ url: '/v1/billing/subscriptions/{subscription_id}';
7660
+ };
7661
+ export type GetSubscriptionErrors = {
7662
+ /**
7663
+ * Validation Error
7664
+ */
7665
+ 422: HttpValidationError;
7666
+ };
7667
+ export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
7668
+ export type GetSubscriptionResponses = {
7669
+ /**
7670
+ * Successful Response
7671
+ */
7672
+ 200: GraphSubscriptionResponse;
7673
+ };
7674
+ export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
7675
+ export type CancelSubscription2Data = {
7676
+ body?: never;
7677
+ path: {
7678
+ /**
7679
+ * Subscription Id
7680
+ */
7681
+ subscription_id: string;
7682
+ };
7683
+ query?: never;
7684
+ url: '/v1/billing/subscriptions/{subscription_id}/cancel';
7685
+ };
7686
+ export type CancelSubscription2Errors = {
7687
+ /**
7688
+ * Validation Error
7689
+ */
7690
+ 422: HttpValidationError;
7691
+ };
7692
+ export type CancelSubscription2Error = CancelSubscription2Errors[keyof CancelSubscription2Errors];
7693
+ export type CancelSubscription2Responses = {
7694
+ /**
7695
+ * Successful Response
7696
+ */
7697
+ 200: GraphSubscriptionResponse;
7698
+ };
7699
+ export type CancelSubscription2Response = CancelSubscription2Responses[keyof CancelSubscription2Responses];
7176
7700
  export type ClientOptions = {
7177
7701
  baseUrl: 'http://localhost:8000';
7178
7702
  };