@robosystems/client 1.5.0 → 1.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/sdk/sdk.gen.d.ts CHANGED
@@ -304,7 +304,7 @@ export declare const listBackups: <ThrowOnError extends boolean = false>(options
304
304
  /**
305
305
  * Get temporary download URL for backup
306
306
  *
307
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
307
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
308
308
  */
309
309
  export declare const getBackupDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>) => import("./client").RequestResult<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError, "fields">;
310
310
  /**
@@ -498,7 +498,7 @@ export declare const createBackup: <ThrowOnError extends boolean = false>(option
498
498
  /**
499
499
  * Restore Backup
500
500
  *
501
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
501
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
502
502
  *
503
503
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
504
504
  */
package/sdk/sdk.gen.js CHANGED
@@ -611,7 +611,7 @@ exports.listBackups = listBackups;
611
611
  /**
612
612
  * Get temporary download URL for backup
613
613
  *
614
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
614
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
615
615
  */
616
616
  const getBackupDownloadUrl = (options) => (options.client ?? client_gen_1.client).get({
617
617
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
@@ -1032,7 +1032,7 @@ exports.createBackup = createBackup;
1032
1032
  /**
1033
1033
  * Restore Backup
1034
1034
  *
1035
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
1035
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
1036
1036
  *
1037
1037
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1038
1038
  */
package/sdk/sdk.gen.ts CHANGED
@@ -623,7 +623,7 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
623
623
  /**
624
624
  * Get temporary download URL for backup
625
625
  *
626
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
626
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
627
627
  */
628
628
  export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>) => (options.client ?? client).get<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError>({
629
629
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
@@ -1044,7 +1044,7 @@ export const createBackup = <ThrowOnError extends boolean = false>(options: Opti
1044
1044
  /**
1045
1045
  * Restore Backup
1046
1046
  *
1047
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
1047
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
1048
1048
  *
1049
1049
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1050
1050
  */
@@ -729,12 +729,6 @@ export type BackupCreateRequest = {
729
729
  * Enable compression (always enabled for optimal storage)
730
730
  */
731
731
  compression?: boolean;
732
- /**
733
- * Encryption
734
- *
735
- * Enable encryption (encrypted backups cannot be downloaded)
736
- */
737
- encryption?: boolean;
738
732
  /**
739
733
  * Schedule
740
734
  *
@@ -828,6 +822,12 @@ export type BackupListResponse = {
828
822
  * Whether this is a shared repository (limits apply)
829
823
  */
830
824
  is_shared_repository?: boolean;
825
+ /**
826
+ * Restore Supported
827
+ *
828
+ * Whether backups on this graph can be restored. False for entity graphs, which are materialized from the extensions database (use the materialize operation instead), and for shared repositories, which are platform-managed and download-only.
829
+ */
830
+ restore_supported?: boolean;
831
831
  /**
832
832
  * Download quota for shared repositories
833
833
  */
@@ -883,22 +883,14 @@ export type BackupResponse = {
883
883
  * Backup Duration Seconds
884
884
  */
885
885
  backup_duration_seconds: number;
886
- /**
887
- * Encryption Enabled
888
- */
889
- encryption_enabled: boolean;
890
886
  /**
891
887
  * Compression Enabled
892
888
  */
893
889
  compression_enabled: boolean;
894
- /**
895
- * Allow Export
896
- */
897
- allow_export: boolean;
898
890
  /**
899
891
  * Download Extension
900
892
  *
901
- * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null when the backup is encrypted and so cannot be downloaded.
893
+ * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null only when the backup has no stored object yet.
902
894
  */
903
895
  download_extension?: string | null;
904
896
  /**
@@ -19035,7 +19027,7 @@ export type GetBackupDownloadUrlData = {
19035
19027
  };
19036
19028
  export type GetBackupDownloadUrlErrors = {
19037
19029
  /**
19038
- * Access denied or backup is encrypted
19030
+ * Access denied
19039
19031
  */
19040
19032
  403: unknown;
19041
19033
  /**
package/sdk/types.gen.ts CHANGED
@@ -752,12 +752,6 @@ export type BackupCreateRequest = {
752
752
  * Enable compression (always enabled for optimal storage)
753
753
  */
754
754
  compression?: boolean;
755
- /**
756
- * Encryption
757
- *
758
- * Enable encryption (encrypted backups cannot be downloaded)
759
- */
760
- encryption?: boolean;
761
755
  /**
762
756
  * Schedule
763
757
  *
@@ -854,6 +848,12 @@ export type BackupListResponse = {
854
848
  * Whether this is a shared repository (limits apply)
855
849
  */
856
850
  is_shared_repository?: boolean;
851
+ /**
852
+ * Restore Supported
853
+ *
854
+ * Whether backups on this graph can be restored. False for entity graphs, which are materialized from the extensions database (use the materialize operation instead), and for shared repositories, which are platform-managed and download-only.
855
+ */
856
+ restore_supported?: boolean;
857
857
  /**
858
858
  * Download quota for shared repositories
859
859
  */
@@ -910,22 +910,14 @@ export type BackupResponse = {
910
910
  * Backup Duration Seconds
911
911
  */
912
912
  backup_duration_seconds: number;
913
- /**
914
- * Encryption Enabled
915
- */
916
- encryption_enabled: boolean;
917
913
  /**
918
914
  * Compression Enabled
919
915
  */
920
916
  compression_enabled: boolean;
921
- /**
922
- * Allow Export
923
- */
924
- allow_export: boolean;
925
917
  /**
926
918
  * Download Extension
927
919
  *
928
- * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null when the backup is encrypted and so cannot be downloaded.
920
+ * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null only when the backup has no stored object yet.
929
921
  */
930
922
  download_extension?: string | null;
931
923
  /**
@@ -19723,7 +19715,7 @@ export type GetBackupDownloadUrlData = {
19723
19715
 
19724
19716
  export type GetBackupDownloadUrlErrors = {
19725
19717
  /**
19726
- * Access denied or backup is encrypted
19718
+ * Access denied
19727
19719
  */
19728
19720
  403: unknown;
19729
19721
  /**
package/sdk.gen.d.ts CHANGED
@@ -304,7 +304,7 @@ export declare const listBackups: <ThrowOnError extends boolean = false>(options
304
304
  /**
305
305
  * Get temporary download URL for backup
306
306
  *
307
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
307
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
308
308
  */
309
309
  export declare const getBackupDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>) => import("./client").RequestResult<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError, "fields">;
310
310
  /**
@@ -498,7 +498,7 @@ export declare const createBackup: <ThrowOnError extends boolean = false>(option
498
498
  /**
499
499
  * Restore Backup
500
500
  *
501
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
501
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
502
502
  *
503
503
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
504
504
  */
package/sdk.gen.js CHANGED
@@ -611,7 +611,7 @@ exports.listBackups = listBackups;
611
611
  /**
612
612
  * Get temporary download URL for backup
613
613
  *
614
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
614
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
615
615
  */
616
616
  const getBackupDownloadUrl = (options) => (options.client ?? client_gen_1.client).get({
617
617
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
@@ -1032,7 +1032,7 @@ exports.createBackup = createBackup;
1032
1032
  /**
1033
1033
  * Restore Backup
1034
1034
  *
1035
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
1035
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
1036
1036
  *
1037
1037
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1038
1038
  */
package/sdk.gen.ts CHANGED
@@ -623,7 +623,7 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
623
623
  /**
624
624
  * Get temporary download URL for backup
625
625
  *
626
- * Generate a temporary download URL for a backup (unencrypted backups only). The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
626
+ * Generate a temporary download URL for a backup. The filename carries the extension listed as `download_extension` on the backup: `.lbug.zip` is a ZIP holding the LadybugDB database file `{graph_id}.lbug`; `.lbug.zst` (shared repository snapshots) is a single zstd-compressed database file. Decompress the latter with `zstd -d <file>.lbug.zst` (install zstd first: `brew install zstd`, `apt-get install zstd`, or `dnf install zstd`) — no `--long` flag is needed.
627
627
  */
628
628
  export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(options: Options<GetBackupDownloadUrlData, ThrowOnError>) => (options.client ?? client).get<GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, ThrowOnError>({
629
629
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
@@ -1044,7 +1044,7 @@ export const createBackup = <ThrowOnError extends boolean = false>(options: Opti
1044
1044
  /**
1045
1045
  * Restore Backup
1046
1046
  *
1047
- * Only encrypted backups can be restored. Not allowed on entity graphs (use `materialize` instead) or shared repositories.
1047
+ * Not allowed on entity graphs (use `materialize` instead) or shared repositories. Destructive: the existing database is snapshotted, then overwritten. Monitor progress via SSE at `/v1/operations/{operation_id}/stream`.
1048
1048
  *
1049
1049
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1050
1050
  */
package/types.gen.d.ts CHANGED
@@ -729,12 +729,6 @@ export type BackupCreateRequest = {
729
729
  * Enable compression (always enabled for optimal storage)
730
730
  */
731
731
  compression?: boolean;
732
- /**
733
- * Encryption
734
- *
735
- * Enable encryption (encrypted backups cannot be downloaded)
736
- */
737
- encryption?: boolean;
738
732
  /**
739
733
  * Schedule
740
734
  *
@@ -828,6 +822,12 @@ export type BackupListResponse = {
828
822
  * Whether this is a shared repository (limits apply)
829
823
  */
830
824
  is_shared_repository?: boolean;
825
+ /**
826
+ * Restore Supported
827
+ *
828
+ * Whether backups on this graph can be restored. False for entity graphs, which are materialized from the extensions database (use the materialize operation instead), and for shared repositories, which are platform-managed and download-only.
829
+ */
830
+ restore_supported?: boolean;
831
831
  /**
832
832
  * Download quota for shared repositories
833
833
  */
@@ -883,22 +883,14 @@ export type BackupResponse = {
883
883
  * Backup Duration Seconds
884
884
  */
885
885
  backup_duration_seconds: number;
886
- /**
887
- * Encryption Enabled
888
- */
889
- encryption_enabled: boolean;
890
886
  /**
891
887
  * Compression Enabled
892
888
  */
893
889
  compression_enabled: boolean;
894
- /**
895
- * Allow Export
896
- */
897
- allow_export: boolean;
898
890
  /**
899
891
  * Download Extension
900
892
  *
901
- * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null when the backup is encrypted and so cannot be downloaded.
893
+ * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null only when the backup has no stored object yet.
902
894
  */
903
895
  download_extension?: string | null;
904
896
  /**
@@ -19035,7 +19027,7 @@ export type GetBackupDownloadUrlData = {
19035
19027
  };
19036
19028
  export type GetBackupDownloadUrlErrors = {
19037
19029
  /**
19038
- * Access denied or backup is encrypted
19030
+ * Access denied
19039
19031
  */
19040
19032
  403: unknown;
19041
19033
  /**
package/types.gen.ts CHANGED
@@ -752,12 +752,6 @@ export type BackupCreateRequest = {
752
752
  * Enable compression (always enabled for optimal storage)
753
753
  */
754
754
  compression?: boolean;
755
- /**
756
- * Encryption
757
- *
758
- * Enable encryption (encrypted backups cannot be downloaded)
759
- */
760
- encryption?: boolean;
761
755
  /**
762
756
  * Schedule
763
757
  *
@@ -854,6 +848,12 @@ export type BackupListResponse = {
854
848
  * Whether this is a shared repository (limits apply)
855
849
  */
856
850
  is_shared_repository?: boolean;
851
+ /**
852
+ * Restore Supported
853
+ *
854
+ * Whether backups on this graph can be restored. False for entity graphs, which are materialized from the extensions database (use the materialize operation instead), and for shared repositories, which are platform-managed and download-only.
855
+ */
856
+ restore_supported?: boolean;
857
857
  /**
858
858
  * Download quota for shared repositories
859
859
  */
@@ -910,22 +910,14 @@ export type BackupResponse = {
910
910
  * Backup Duration Seconds
911
911
  */
912
912
  backup_duration_seconds: number;
913
- /**
914
- * Encryption Enabled
915
- */
916
- encryption_enabled: boolean;
917
913
  /**
918
914
  * Compression Enabled
919
915
  */
920
916
  compression_enabled: boolean;
921
- /**
922
- * Allow Export
923
- */
924
- allow_export: boolean;
925
917
  /**
926
918
  * Download Extension
927
919
  *
928
- * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null when the backup is encrypted and so cannot be downloaded.
920
+ * Extension the download will carry, and therefore how to unpack it: '.lbug.zip' is a ZIP holding the LadybugDB database file, '.lbug.zst' is zstd-compressed (`zstd -d`). Null only when the backup has no stored object yet.
929
921
  */
930
922
  download_extension?: string | null;
931
923
  /**
@@ -19723,7 +19715,7 @@ export type GetBackupDownloadUrlData = {
19723
19715
 
19724
19716
  export type GetBackupDownloadUrlErrors = {
19725
19717
  /**
19726
- * Access denied or backup is encrypted
19718
+ * Access denied
19727
19719
  */
19728
19720
  403: unknown;
19729
19721
  /**