@robosystems/client 0.3.18 → 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
@@ -2548,10 +2548,18 @@ export type DeleteFileResponse = {
2548
2548
  *
2549
2549
  * Body for the delete-graph operation.
2550
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.
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.
2555
2563
  */
2556
2564
  export type DeleteGraphOp = {
2557
2565
  /**
@@ -2560,6 +2568,12 @@ export type DeleteGraphOp = {
2560
2568
  * Must equal the graph_id in the URL — confirms the caller intends to destroy this specific graph.
2561
2569
  */
2562
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;
2563
2577
  };
2564
2578
 
2565
2579
  /**
@@ -12311,6 +12325,62 @@ export type CreateRepositorySubscriptionResponses = {
12311
12325
 
12312
12326
  export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
12313
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
+
12314
12384
  export type ListTablesData = {
12315
12385
  body?: never;
12316
12386
  path: {