@robosystems/client 0.3.17 → 0.3.19

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
@@ -907,6 +907,31 @@ export type BillingCustomer = {
907
907
  created_at: string;
908
908
  };
909
909
 
910
+ /**
911
+ * CancelSubscriptionRequest
912
+ *
913
+ * Request to cancel a subscription.
914
+ *
915
+ * Default behavior cancels at period end (soft cancel). Pass `immediate=True`
916
+ * to terminate the subscription right away — this requires `confirm` to equal
917
+ * the subscription's `resource_id` (e.g. the graph_id) as a guard against
918
+ * accidental destructive calls.
919
+ */
920
+ export type CancelSubscriptionRequest = {
921
+ /**
922
+ * Immediate
923
+ *
924
+ * If true, cancel immediately and trigger fast-path deprovisioning of the underlying resource (within ~10 minutes). If false (default), cancel at the end of the current billing period.
925
+ */
926
+ immediate?: boolean;
927
+ /**
928
+ * Confirm
929
+ *
930
+ * Required when immediate=True. Must equal the subscription's resource_id (e.g. graph_id) to confirm intent.
931
+ */
932
+ confirm?: string | null;
933
+ };
934
+
910
935
  /**
911
936
  * ChangeTierOp
912
937
  *
@@ -2518,6 +2543,39 @@ export type DeleteFileResponse = {
2518
2543
  graph_marked_stale?: boolean;
2519
2544
  };
2520
2545
 
2546
+ /**
2547
+ * DeleteGraphOp
2548
+ *
2549
+ * Body for the delete-graph operation.
2550
+ *
2551
+ * Permanently destroys the graph and cancels its subscription. Two modes:
2552
+ *
2553
+ * - **Immediate** (default): subscription canceled now (`ends_at = now`) and
2554
+ * fast-path deprovisioning fires within ~10 minutes. Use when you want
2555
+ * the data gone and the slot freed right away.
2556
+ * - **At period end** (`at_period_end=true`): subscription canceled but
2557
+ * `ends_at = current_period_end` so the graph stays usable through the
2558
+ * paid period. The existing suspend → deprovision sensor pipeline tears
2559
+ * it down after the retention window once the period closes.
2560
+ *
2561
+ * Requires `confirm` to equal the URL `graph_id` as a guard against
2562
+ * accidental destructive calls.
2563
+ */
2564
+ export type DeleteGraphOp = {
2565
+ /**
2566
+ * Confirm
2567
+ *
2568
+ * Must equal the graph_id in the URL — confirms the caller intends to destroy this specific graph.
2569
+ */
2570
+ confirm: string;
2571
+ /**
2572
+ * At Period End
2573
+ *
2574
+ * If true, defer cancellation and teardown to the end of the current billing period (graph stays usable until then). If false (default), cancel and tear down immediately.
2575
+ */
2576
+ at_period_end?: boolean;
2577
+ };
2578
+
2521
2579
  /**
2522
2580
  * DeleteInformationBlockRequest
2523
2581
  *
@@ -12267,6 +12325,62 @@ export type CreateRepositorySubscriptionResponses = {
12267
12325
 
12268
12326
  export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
12269
12327
 
12328
+ export type CancelRepositorySubscriptionData = {
12329
+ body: CancelSubscriptionRequest;
12330
+ path: {
12331
+ /**
12332
+ * Graph Id
12333
+ *
12334
+ * Repository name (e.g., 'sec', 'industry')
12335
+ */
12336
+ graph_id: string;
12337
+ };
12338
+ query?: never;
12339
+ url: '/v1/graphs/{graph_id}/subscriptions/cancel';
12340
+ };
12341
+
12342
+ export type CancelRepositorySubscriptionErrors = {
12343
+ /**
12344
+ * Invalid request
12345
+ */
12346
+ 400: ErrorResponse;
12347
+ /**
12348
+ * Authentication required
12349
+ */
12350
+ 401: ErrorResponse;
12351
+ /**
12352
+ * Access denied
12353
+ */
12354
+ 403: ErrorResponse;
12355
+ /**
12356
+ * Resource not found
12357
+ */
12358
+ 404: ErrorResponse;
12359
+ /**
12360
+ * Validation Error
12361
+ */
12362
+ 422: HttpValidationError;
12363
+ /**
12364
+ * Rate limit exceeded
12365
+ */
12366
+ 429: ErrorResponse;
12367
+ /**
12368
+ * Internal server error
12369
+ */
12370
+ 500: ErrorResponse;
12371
+ };
12372
+
12373
+ export type CancelRepositorySubscriptionError = CancelRepositorySubscriptionErrors[keyof CancelRepositorySubscriptionErrors];
12374
+
12375
+ export type CancelRepositorySubscriptionResponses = {
12376
+ /**
12377
+ * Successful Response
12378
+ */
12379
+ 200: GraphSubscriptionResponse;
12380
+ };
12381
+
12382
+ export type CancelRepositorySubscriptionResponse = CancelRepositorySubscriptionResponses[keyof CancelRepositorySubscriptionResponses];
12383
+
12270
12384
  export type ListTablesData = {
12271
12385
  body?: never;
12272
12386
  path: {
@@ -12917,6 +13031,70 @@ export type OpDeleteSubgraphResponses = {
12917
13031
 
12918
13032
  export type OpDeleteSubgraphResponse = OpDeleteSubgraphResponses[keyof OpDeleteSubgraphResponses];
12919
13033
 
13034
+ export type OpDeleteGraphData = {
13035
+ body: DeleteGraphOp;
13036
+ headers?: {
13037
+ /**
13038
+ * Idempotency-Key
13039
+ */
13040
+ 'Idempotency-Key'?: string | null;
13041
+ };
13042
+ path: {
13043
+ /**
13044
+ * Graph Id
13045
+ */
13046
+ graph_id: string;
13047
+ };
13048
+ query?: never;
13049
+ url: '/v1/graphs/{graph_id}/operations/delete-graph';
13050
+ };
13051
+
13052
+ export type OpDeleteGraphErrors = {
13053
+ /**
13054
+ * Invalid request
13055
+ */
13056
+ 400: ErrorResponse;
13057
+ /**
13058
+ * Authentication required
13059
+ */
13060
+ 401: ErrorResponse;
13061
+ /**
13062
+ * Access denied
13063
+ */
13064
+ 403: ErrorResponse;
13065
+ /**
13066
+ * Resource not found
13067
+ */
13068
+ 404: ErrorResponse;
13069
+ /**
13070
+ * Idempotency-Key conflict — key reused with different body
13071
+ */
13072
+ 409: ErrorResponse;
13073
+ /**
13074
+ * Validation Error
13075
+ */
13076
+ 422: HttpValidationError;
13077
+ /**
13078
+ * Rate limit exceeded
13079
+ */
13080
+ 429: ErrorResponse;
13081
+ /**
13082
+ * Internal server error
13083
+ */
13084
+ 500: ErrorResponse;
13085
+ };
13086
+
13087
+ export type OpDeleteGraphError = OpDeleteGraphErrors[keyof OpDeleteGraphErrors];
13088
+
13089
+ export type OpDeleteGraphResponses = {
13090
+ /**
13091
+ * Successful Response
13092
+ */
13093
+ 202: OperationEnvelope;
13094
+ };
13095
+
13096
+ export type OpDeleteGraphResponse = OpDeleteGraphResponses[keyof OpDeleteGraphResponses];
13097
+
12920
13098
  export type OpCreateBackupData = {
12921
13099
  body: BackupCreateRequest;
12922
13100
  headers?: {
@@ -14234,7 +14412,7 @@ export type GetOrgSubscriptionResponses = {
14234
14412
  export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
14235
14413
 
14236
14414
  export type CancelOrgSubscriptionData = {
14237
- body?: never;
14415
+ body?: CancelSubscriptionRequest;
14238
14416
  path: {
14239
14417
  /**
14240
14418
  * Org Id