@robosystems/client 0.3.17 → 0.3.18

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
@@ -877,6 +877,30 @@ export type BillingCustomer = {
877
877
  */
878
878
  created_at: string;
879
879
  };
880
+ /**
881
+ * CancelSubscriptionRequest
882
+ *
883
+ * Request to cancel a subscription.
884
+ *
885
+ * Default behavior cancels at period end (soft cancel). Pass `immediate=True`
886
+ * to terminate the subscription right away — this requires `confirm` to equal
887
+ * the subscription's `resource_id` (e.g. the graph_id) as a guard against
888
+ * accidental destructive calls.
889
+ */
890
+ export type CancelSubscriptionRequest = {
891
+ /**
892
+ * Immediate
893
+ *
894
+ * 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.
895
+ */
896
+ immediate?: boolean;
897
+ /**
898
+ * Confirm
899
+ *
900
+ * Required when immediate=True. Must equal the subscription's resource_id (e.g. graph_id) to confirm intent.
901
+ */
902
+ confirm?: string | null;
903
+ };
880
904
  /**
881
905
  * ChangeTierOp
882
906
  *
@@ -2452,6 +2476,24 @@ export type DeleteFileResponse = {
2452
2476
  */
2453
2477
  graph_marked_stale?: boolean;
2454
2478
  };
2479
+ /**
2480
+ * DeleteGraphOp
2481
+ *
2482
+ * Body for the delete-graph operation.
2483
+ *
2484
+ * Permanently destroys the graph: cancels its subscription immediately, then
2485
+ * triggers fast-path deprovisioning (LadybugDB database removed, DynamoDB slot
2486
+ * freed, PG records cleaned). Requires `confirm` to equal the URL `graph_id`
2487
+ * as a guard against accidental destructive calls.
2488
+ */
2489
+ export type DeleteGraphOp = {
2490
+ /**
2491
+ * Confirm
2492
+ *
2493
+ * Must equal the graph_id in the URL — confirms the caller intends to destroy this specific graph.
2494
+ */
2495
+ confirm: string;
2496
+ };
2455
2497
  /**
2456
2498
  * DeleteInformationBlockRequest
2457
2499
  *
@@ -12280,6 +12322,65 @@ export type OpDeleteSubgraphResponses = {
12280
12322
  200: OperationEnvelope;
12281
12323
  };
12282
12324
  export type OpDeleteSubgraphResponse = OpDeleteSubgraphResponses[keyof OpDeleteSubgraphResponses];
12325
+ export type OpDeleteGraphData = {
12326
+ body: DeleteGraphOp;
12327
+ headers?: {
12328
+ /**
12329
+ * Idempotency-Key
12330
+ */
12331
+ 'Idempotency-Key'?: string | null;
12332
+ };
12333
+ path: {
12334
+ /**
12335
+ * Graph Id
12336
+ */
12337
+ graph_id: string;
12338
+ };
12339
+ query?: never;
12340
+ url: '/v1/graphs/{graph_id}/operations/delete-graph';
12341
+ };
12342
+ export type OpDeleteGraphErrors = {
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
+ * Idempotency-Key conflict — key reused with different body
12361
+ */
12362
+ 409: ErrorResponse;
12363
+ /**
12364
+ * Validation Error
12365
+ */
12366
+ 422: HttpValidationError;
12367
+ /**
12368
+ * Rate limit exceeded
12369
+ */
12370
+ 429: ErrorResponse;
12371
+ /**
12372
+ * Internal server error
12373
+ */
12374
+ 500: ErrorResponse;
12375
+ };
12376
+ export type OpDeleteGraphError = OpDeleteGraphErrors[keyof OpDeleteGraphErrors];
12377
+ export type OpDeleteGraphResponses = {
12378
+ /**
12379
+ * Successful Response
12380
+ */
12381
+ 202: OperationEnvelope;
12382
+ };
12383
+ export type OpDeleteGraphResponse = OpDeleteGraphResponses[keyof OpDeleteGraphResponses];
12283
12384
  export type OpCreateBackupData = {
12284
12385
  body: BackupCreateRequest;
12285
12386
  headers?: {
@@ -13483,7 +13584,7 @@ export type GetOrgSubscriptionResponses = {
13483
13584
  };
13484
13585
  export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
13485
13586
  export type CancelOrgSubscriptionData = {
13486
- body?: never;
13587
+ body?: CancelSubscriptionRequest;
13487
13588
  path: {
13488
13589
  /**
13489
13590
  * Org Id
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,25 @@ 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: cancels its subscription immediately, then
2552
+ * triggers fast-path deprovisioning (LadybugDB database removed, DynamoDB slot
2553
+ * freed, PG records cleaned). Requires `confirm` to equal the URL `graph_id`
2554
+ * as a guard against accidental destructive calls.
2555
+ */
2556
+ export type DeleteGraphOp = {
2557
+ /**
2558
+ * Confirm
2559
+ *
2560
+ * Must equal the graph_id in the URL — confirms the caller intends to destroy this specific graph.
2561
+ */
2562
+ confirm: string;
2563
+ };
2564
+
2521
2565
  /**
2522
2566
  * DeleteInformationBlockRequest
2523
2567
  *
@@ -12917,6 +12961,70 @@ export type OpDeleteSubgraphResponses = {
12917
12961
 
12918
12962
  export type OpDeleteSubgraphResponse = OpDeleteSubgraphResponses[keyof OpDeleteSubgraphResponses];
12919
12963
 
12964
+ export type OpDeleteGraphData = {
12965
+ body: DeleteGraphOp;
12966
+ headers?: {
12967
+ /**
12968
+ * Idempotency-Key
12969
+ */
12970
+ 'Idempotency-Key'?: string | null;
12971
+ };
12972
+ path: {
12973
+ /**
12974
+ * Graph Id
12975
+ */
12976
+ graph_id: string;
12977
+ };
12978
+ query?: never;
12979
+ url: '/v1/graphs/{graph_id}/operations/delete-graph';
12980
+ };
12981
+
12982
+ export type OpDeleteGraphErrors = {
12983
+ /**
12984
+ * Invalid request
12985
+ */
12986
+ 400: ErrorResponse;
12987
+ /**
12988
+ * Authentication required
12989
+ */
12990
+ 401: ErrorResponse;
12991
+ /**
12992
+ * Access denied
12993
+ */
12994
+ 403: ErrorResponse;
12995
+ /**
12996
+ * Resource not found
12997
+ */
12998
+ 404: ErrorResponse;
12999
+ /**
13000
+ * Idempotency-Key conflict — key reused with different body
13001
+ */
13002
+ 409: ErrorResponse;
13003
+ /**
13004
+ * Validation Error
13005
+ */
13006
+ 422: HttpValidationError;
13007
+ /**
13008
+ * Rate limit exceeded
13009
+ */
13010
+ 429: ErrorResponse;
13011
+ /**
13012
+ * Internal server error
13013
+ */
13014
+ 500: ErrorResponse;
13015
+ };
13016
+
13017
+ export type OpDeleteGraphError = OpDeleteGraphErrors[keyof OpDeleteGraphErrors];
13018
+
13019
+ export type OpDeleteGraphResponses = {
13020
+ /**
13021
+ * Successful Response
13022
+ */
13023
+ 202: OperationEnvelope;
13024
+ };
13025
+
13026
+ export type OpDeleteGraphResponse = OpDeleteGraphResponses[keyof OpDeleteGraphResponses];
13027
+
12920
13028
  export type OpCreateBackupData = {
12921
13029
  body: BackupCreateRequest;
12922
13030
  headers?: {
@@ -14234,7 +14342,7 @@ export type GetOrgSubscriptionResponses = {
14234
14342
  export type GetOrgSubscriptionResponse = GetOrgSubscriptionResponses[keyof GetOrgSubscriptionResponses];
14235
14343
 
14236
14344
  export type CancelOrgSubscriptionData = {
14237
- body?: never;
14345
+ body?: CancelSubscriptionRequest;
14238
14346
  path: {
14239
14347
  /**
14240
14348
  * Org Id