@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.ts CHANGED
@@ -732,6 +732,43 @@ export type BatchAgentResponse = {
732
732
  parallel_processed: boolean;
733
733
  };
734
734
 
735
+ /**
736
+ * BillingCustomer
737
+ * Billing customer information.
738
+ */
739
+ export type BillingCustomer = {
740
+ /**
741
+ * User Id
742
+ * User ID
743
+ */
744
+ user_id: string;
745
+ /**
746
+ * Has Payment Method
747
+ * Whether customer has a payment method on file
748
+ */
749
+ has_payment_method: boolean;
750
+ /**
751
+ * Invoice Billing Enabled
752
+ * Whether invoice billing is enabled (enterprise customers)
753
+ */
754
+ invoice_billing_enabled: boolean;
755
+ /**
756
+ * Payment Methods
757
+ * List of payment methods on file
758
+ */
759
+ payment_methods: Array<PaymentMethod>;
760
+ /**
761
+ * Stripe Customer Id
762
+ * Stripe customer ID if applicable
763
+ */
764
+ stripe_customer_id?: string | null;
765
+ /**
766
+ * Created At
767
+ * Customer creation timestamp (ISO format)
768
+ */
769
+ created_at: string;
770
+ };
771
+
735
772
  /**
736
773
  * BulkIngestRequest
737
774
  */
@@ -821,6 +858,65 @@ export type CancellationResponse = {
821
858
  cancelled_at: string;
822
859
  };
823
860
 
861
+ /**
862
+ * CheckoutResponse
863
+ * Response from checkout session creation.
864
+ */
865
+ export type CheckoutResponse = {
866
+ /**
867
+ * Checkout Url
868
+ * URL to redirect user to for payment
869
+ */
870
+ checkout_url: string;
871
+ /**
872
+ * Session Id
873
+ * Checkout session ID for status polling
874
+ */
875
+ session_id: string;
876
+ /**
877
+ * Subscription Id
878
+ * Internal subscription ID
879
+ */
880
+ subscription_id: string;
881
+ /**
882
+ * Requires Checkout
883
+ * Whether checkout is required
884
+ */
885
+ requires_checkout?: boolean;
886
+ };
887
+
888
+ /**
889
+ * CheckoutStatusResponse
890
+ * Status of a checkout session.
891
+ */
892
+ export type CheckoutStatusResponse = {
893
+ /**
894
+ * Status
895
+ * Checkout status: 'pending_payment', 'provisioning', 'completed', 'failed'
896
+ */
897
+ status: string;
898
+ /**
899
+ * Subscription Id
900
+ * Internal subscription ID
901
+ */
902
+ subscription_id: string;
903
+ /**
904
+ * Resource Id
905
+ * Resource ID (graph_id or repository name) once provisioned
906
+ */
907
+ resource_id?: string | null;
908
+ /**
909
+ * Operation Id
910
+ * SSE operation ID for monitoring provisioning progress
911
+ */
912
+ operation_id?: string | null;
913
+ /**
914
+ * Error
915
+ * Error message if checkout failed
916
+ */
917
+ error?: string | null;
918
+ };
919
+
824
920
  /**
825
921
  * ConnectionOptionsResponse
826
922
  * Response with all available connection options.
@@ -1029,6 +1125,30 @@ export type CreateApiKeyResponse = {
1029
1125
  key: string;
1030
1126
  };
1031
1127
 
1128
+ /**
1129
+ * CreateCheckoutRequest
1130
+ * Request to create a checkout session for payment collection.
1131
+ */
1132
+ export type CreateCheckoutRequest = {
1133
+ /**
1134
+ * Plan Name
1135
+ * Billing plan name (e.g., 'kuzu-standard')
1136
+ */
1137
+ plan_name: string;
1138
+ /**
1139
+ * Resource Type
1140
+ * Resource type ('graph' or 'repository')
1141
+ */
1142
+ resource_type: string;
1143
+ /**
1144
+ * Resource Config
1145
+ * Configuration for the resource to be provisioned
1146
+ */
1147
+ resource_config: {
1148
+ [key: string]: unknown;
1149
+ };
1150
+ };
1151
+
1032
1152
  /**
1033
1153
  * CreateConnectionRequest
1034
1154
  * Request to create a new connection.
@@ -2556,6 +2676,132 @@ export type InitialEntityData = {
2556
2676
  ein?: string | null;
2557
2677
  };
2558
2678
 
2679
+ /**
2680
+ * Invoice
2681
+ * Invoice information.
2682
+ */
2683
+ export type Invoice = {
2684
+ /**
2685
+ * Id
2686
+ * Invoice ID
2687
+ */
2688
+ id: string;
2689
+ /**
2690
+ * Number
2691
+ * Invoice number
2692
+ */
2693
+ number?: string | null;
2694
+ /**
2695
+ * Status
2696
+ * Invoice status (paid, open, void, uncollectible)
2697
+ */
2698
+ status: string;
2699
+ /**
2700
+ * Amount Due
2701
+ * Amount due in cents
2702
+ */
2703
+ amount_due: number;
2704
+ /**
2705
+ * Amount Paid
2706
+ * Amount paid in cents
2707
+ */
2708
+ amount_paid: number;
2709
+ /**
2710
+ * Currency
2711
+ * Currency code (usd)
2712
+ */
2713
+ currency: string;
2714
+ /**
2715
+ * Created
2716
+ * Invoice creation date (ISO format)
2717
+ */
2718
+ created: string;
2719
+ /**
2720
+ * Due Date
2721
+ * Invoice due date (ISO format)
2722
+ */
2723
+ due_date?: string | null;
2724
+ /**
2725
+ * Paid At
2726
+ * Payment date (ISO format)
2727
+ */
2728
+ paid_at?: string | null;
2729
+ /**
2730
+ * Invoice Pdf
2731
+ * PDF download URL
2732
+ */
2733
+ invoice_pdf?: string | null;
2734
+ /**
2735
+ * Hosted Invoice Url
2736
+ * Hosted invoice URL
2737
+ */
2738
+ hosted_invoice_url?: string | null;
2739
+ /**
2740
+ * Line Items
2741
+ * Invoice line items
2742
+ */
2743
+ line_items: Array<InvoiceLineItem>;
2744
+ /**
2745
+ * Subscription Id
2746
+ * Associated subscription ID
2747
+ */
2748
+ subscription_id?: string | null;
2749
+ };
2750
+
2751
+ /**
2752
+ * InvoiceLineItem
2753
+ * Invoice line item.
2754
+ */
2755
+ export type InvoiceLineItem = {
2756
+ /**
2757
+ * Description
2758
+ * Line item description
2759
+ */
2760
+ description: string;
2761
+ /**
2762
+ * Amount
2763
+ * Amount in cents
2764
+ */
2765
+ amount: number;
2766
+ /**
2767
+ * Quantity
2768
+ * Quantity
2769
+ */
2770
+ quantity: number;
2771
+ /**
2772
+ * Period Start
2773
+ * Billing period start
2774
+ */
2775
+ period_start?: string | null;
2776
+ /**
2777
+ * Period End
2778
+ * Billing period end
2779
+ */
2780
+ period_end?: string | null;
2781
+ };
2782
+
2783
+ /**
2784
+ * InvoicesResponse
2785
+ * Response for invoice list.
2786
+ */
2787
+ export type InvoicesResponse = {
2788
+ /**
2789
+ * Invoices
2790
+ * List of invoices
2791
+ */
2792
+ invoices: Array<Invoice>;
2793
+ /**
2794
+ * Total Count
2795
+ * Total number of invoices
2796
+ */
2797
+ total_count: number;
2798
+ /**
2799
+ * Has More
2800
+ * Whether more invoices are available
2801
+ */
2802
+ has_more: boolean;
2803
+ };
2804
+
2559
2805
  /**
2560
2806
  * LinkTokenRequest
2561
2807
  * Request to create a link token for embedded authentication.
@@ -2941,6 +3187,48 @@ export type PasswordPolicyResponse = {
2941
3187
  };
2942
3188
  };
2943
3189
 
3190
+ /**
3191
+ * PaymentMethod
3192
+ * Payment method information.
3193
+ */
3194
+ export type PaymentMethod = {
3195
+ /**
3196
+ * Id
3197
+ * Payment method ID
3198
+ */
3199
+ id: string;
3200
+ /**
3201
+ * Type
3202
+ * Payment method type (card, bank_account, etc.)
3203
+ */
3204
+ type: string;
3205
+ /**
3206
+ * Brand
3207
+ * Card brand (visa, mastercard, etc.)
3208
+ */
3209
+ brand?: string | null;
3210
+ /**
3211
+ * Last4
3212
+ * Last 4 digits
3213
+ */
3214
+ last4?: string | null;
3215
+ /**
3216
+ * Exp Month
3217
+ * Expiration month
3218
+ */
3219
+ exp_month?: number | null;
3220
+ /**
3221
+ * Exp Year
3222
+ * Expiration year
3223
+ */
3224
+ exp_year?: number | null;
3225
+ /**
3226
+ * Is Default
3227
+ * Whether this is the default payment method
3228
+ */
3229
+ is_default: boolean;
3230
+ };
3231
+
2944
3232
  /**
2945
3233
  * PerformanceInsights
2946
3234
  * Performance analytics.
@@ -4015,6 +4303,43 @@ export type TransactionSummaryResponse = {
4015
4303
  last_transaction?: string | null;
4016
4304
  };
4017
4305
 
4306
+ /**
4307
+ * UpcomingInvoice
4308
+ * Upcoming invoice preview.
4309
+ */
4310
+ export type UpcomingInvoice = {
4311
+ /**
4312
+ * Amount Due
4313
+ * Estimated amount due in cents
4314
+ */
4315
+ amount_due: number;
4316
+ /**
4317
+ * Currency
4318
+ * Currency code
4319
+ */
4320
+ currency: string;
4321
+ /**
4322
+ * Period Start
4323
+ * Billing period start
4324
+ */
4325
+ period_start: string;
4326
+ /**
4327
+ * Period End
4328
+ * Billing period end
4329
+ */
4330
+ period_end: string;
4331
+ /**
4332
+ * Line Items
4333
+ * Estimated line items
4334
+ */
4335
+ line_items: Array<InvoiceLineItem>;
4336
+ /**
4337
+ * Subscription Id
4338
+ * Associated subscription ID
4339
+ */
4340
+ subscription_id?: string | null;
4341
+ };
4342
+
4018
4343
  /**
4019
4344
  * UpdateAPIKeyRequest
4020
4345
  * Request model for updating an API key.
@@ -4054,6 +4379,34 @@ export type UpdatePasswordRequest = {
4054
4379
  confirm_password: string;
4055
4380
  };
4056
4381
 
4382
+ /**
4383
+ * UpdatePaymentMethodRequest
4384
+ * Request to update default payment method.
4385
+ */
4386
+ export type UpdatePaymentMethodRequest = {
4387
+ /**
4388
+ * Payment Method Id
4389
+ * Payment method ID to set as default
4390
+ */
4391
+ payment_method_id: string;
4392
+ };
4393
+
4394
+ /**
4395
+ * UpdatePaymentMethodResponse
4396
+ * Response for payment method update.
4397
+ */
4398
+ export type UpdatePaymentMethodResponse = {
4399
+ /**
4400
+ * Message
4401
+ * Success message
4402
+ */
4403
+ message: string;
4404
+ /**
4405
+ * Updated payment method
4406
+ */
4407
+ payment_method: PaymentMethod;
4408
+ };
4409
+
4057
4410
  /**
4058
4411
  * UpdateUserRequest
4059
4412
  * Request model for updating user profile.
@@ -7728,6 +8081,227 @@ export type CancelOperationResponses = {
7728
8081
 
7729
8082
  export type CancelOperationResponse = CancelOperationResponses[keyof CancelOperationResponses];
7730
8083
 
8084
+ export type CreateCheckoutSessionData = {
8085
+ body: CreateCheckoutRequest;
8086
+ path?: never;
8087
+ query?: never;
8088
+ url: '/v1/billing/checkout';
8089
+ };
8090
+
8091
+ export type CreateCheckoutSessionErrors = {
8092
+ /**
8093
+ * Validation Error
8094
+ */
8095
+ 422: HttpValidationError;
8096
+ };
8097
+
8098
+ export type CreateCheckoutSessionError = CreateCheckoutSessionErrors[keyof CreateCheckoutSessionErrors];
8099
+
8100
+ export type CreateCheckoutSessionResponses = {
8101
+ /**
8102
+ * Successful Response
8103
+ */
8104
+ 201: CheckoutResponse;
8105
+ };
8106
+
8107
+ export type CreateCheckoutSessionResponse = CreateCheckoutSessionResponses[keyof CreateCheckoutSessionResponses];
8108
+
8109
+ export type GetCheckoutStatusData = {
8110
+ body?: never;
8111
+ path: {
8112
+ /**
8113
+ * Session Id
8114
+ */
8115
+ session_id: string;
8116
+ };
8117
+ query?: never;
8118
+ url: '/v1/billing/checkout/{session_id}/status';
8119
+ };
8120
+
8121
+ export type GetCheckoutStatusErrors = {
8122
+ /**
8123
+ * Validation Error
8124
+ */
8125
+ 422: HttpValidationError;
8126
+ };
8127
+
8128
+ export type GetCheckoutStatusError = GetCheckoutStatusErrors[keyof GetCheckoutStatusErrors];
8129
+
8130
+ export type GetCheckoutStatusResponses = {
8131
+ /**
8132
+ * Successful Response
8133
+ */
8134
+ 200: CheckoutStatusResponse;
8135
+ };
8136
+
8137
+ export type GetCheckoutStatusResponse = GetCheckoutStatusResponses[keyof GetCheckoutStatusResponses];
8138
+
8139
+ export type GetBillingCustomerData = {
8140
+ body?: never;
8141
+ path?: never;
8142
+ query?: never;
8143
+ url: '/v1/billing/customer';
8144
+ };
8145
+
8146
+ export type GetBillingCustomerResponses = {
8147
+ /**
8148
+ * Successful Response
8149
+ */
8150
+ 200: BillingCustomer;
8151
+ };
8152
+
8153
+ export type GetBillingCustomerResponse = GetBillingCustomerResponses[keyof GetBillingCustomerResponses];
8154
+
8155
+ export type UpdatePaymentMethodData = {
8156
+ body: UpdatePaymentMethodRequest;
8157
+ path?: never;
8158
+ query?: never;
8159
+ url: '/v1/billing/customer/payment-method';
8160
+ };
8161
+
8162
+ export type UpdatePaymentMethodErrors = {
8163
+ /**
8164
+ * Validation Error
8165
+ */
8166
+ 422: HttpValidationError;
8167
+ };
8168
+
8169
+ export type UpdatePaymentMethodError = UpdatePaymentMethodErrors[keyof UpdatePaymentMethodErrors];
8170
+
8171
+ export type UpdatePaymentMethodResponses = {
8172
+ /**
8173
+ * Successful Response
8174
+ */
8175
+ 200: UpdatePaymentMethodResponse;
8176
+ };
8177
+
8178
+ export type UpdatePaymentMethodResponse2 = UpdatePaymentMethodResponses[keyof UpdatePaymentMethodResponses];
8179
+
8180
+ export type ListInvoicesData = {
8181
+ body?: never;
8182
+ path?: never;
8183
+ query?: {
8184
+ /**
8185
+ * Limit
8186
+ * Number of invoices to return
8187
+ */
8188
+ limit?: number;
8189
+ };
8190
+ url: '/v1/billing/invoices';
8191
+ };
8192
+
8193
+ export type ListInvoicesErrors = {
8194
+ /**
8195
+ * Validation Error
8196
+ */
8197
+ 422: HttpValidationError;
8198
+ };
8199
+
8200
+ export type ListInvoicesError = ListInvoicesErrors[keyof ListInvoicesErrors];
8201
+
8202
+ export type ListInvoicesResponses = {
8203
+ /**
8204
+ * Successful Response
8205
+ */
8206
+ 200: InvoicesResponse;
8207
+ };
8208
+
8209
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
8210
+
8211
+ export type GetUpcomingInvoiceData = {
8212
+ body?: never;
8213
+ path?: never;
8214
+ query?: never;
8215
+ url: '/v1/billing/invoices/upcoming';
8216
+ };
8217
+
8218
+ export type GetUpcomingInvoiceResponses = {
8219
+ /**
8220
+ * Response Getupcominginvoice
8221
+ * Successful Response
8222
+ */
8223
+ 200: UpcomingInvoice | null;
8224
+ };
8225
+
8226
+ export type GetUpcomingInvoiceResponse = GetUpcomingInvoiceResponses[keyof GetUpcomingInvoiceResponses];
8227
+
8228
+ export type ListSubscriptionsData = {
8229
+ body?: never;
8230
+ path?: never;
8231
+ query?: never;
8232
+ url: '/v1/billing/subscriptions';
8233
+ };
8234
+
8235
+ export type ListSubscriptionsResponses = {
8236
+ /**
8237
+ * Response Listsubscriptions
8238
+ * Successful Response
8239
+ */
8240
+ 200: Array<GraphSubscriptionResponse>;
8241
+ };
8242
+
8243
+ export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
8244
+
8245
+ export type GetSubscriptionData = {
8246
+ body?: never;
8247
+ path: {
8248
+ /**
8249
+ * Subscription Id
8250
+ */
8251
+ subscription_id: string;
8252
+ };
8253
+ query?: never;
8254
+ url: '/v1/billing/subscriptions/{subscription_id}';
8255
+ };
8256
+
8257
+ export type GetSubscriptionErrors = {
8258
+ /**
8259
+ * Validation Error
8260
+ */
8261
+ 422: HttpValidationError;
8262
+ };
8263
+
8264
+ export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
8265
+
8266
+ export type GetSubscriptionResponses = {
8267
+ /**
8268
+ * Successful Response
8269
+ */
8270
+ 200: GraphSubscriptionResponse;
8271
+ };
8272
+
8273
+ export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
8274
+
8275
+ export type CancelSubscription2Data = {
8276
+ body?: never;
8277
+ path: {
8278
+ /**
8279
+ * Subscription Id
8280
+ */
8281
+ subscription_id: string;
8282
+ };
8283
+ query?: never;
8284
+ url: '/v1/billing/subscriptions/{subscription_id}/cancel';
8285
+ };
8286
+
8287
+ export type CancelSubscription2Errors = {
8288
+ /**
8289
+ * Validation Error
8290
+ */
8291
+ 422: HttpValidationError;
8292
+ };
8293
+
8294
+ export type CancelSubscription2Error = CancelSubscription2Errors[keyof CancelSubscription2Errors];
8295
+
8296
+ export type CancelSubscription2Responses = {
8297
+ /**
8298
+ * Successful Response
8299
+ */
8300
+ 200: GraphSubscriptionResponse;
8301
+ };
8302
+
8303
+ export type CancelSubscription2Response = CancelSubscription2Responses[keyof CancelSubscription2Responses];
8304
+
7731
8305
  export type ClientOptions = {
7732
8306
  baseUrl: 'http://localhost:8000';
7733
8307
  };