@robosystems/client 1.4.2 → 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/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
  /**
@@ -5235,7 +5227,7 @@ export type FactSetLite = {
5235
5227
  /**
5236
5228
  * Provenance
5237
5229
  *
5238
- * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5230
+ * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5239
5231
  */
5240
5232
  provenance?: {
5241
5233
  [key: string]: unknown;
@@ -5857,6 +5849,18 @@ export type GraphInfo = {
5857
5849
  * Display name for the graph
5858
5850
  */
5859
5851
  graphName: string;
5852
+ /**
5853
+ * Description
5854
+ *
5855
+ * Free-form description ('' when unset)
5856
+ */
5857
+ description?: string;
5858
+ /**
5859
+ * Tags
5860
+ *
5861
+ * Organizational tags for the graph
5862
+ */
5863
+ tags?: Array<string>;
5860
5864
  /**
5861
5865
  * Role
5862
5866
  *
@@ -6071,6 +6075,43 @@ export type GraphMetadata = {
6071
6075
  */
6072
6076
  tags?: Array<string>;
6073
6077
  };
6078
+ /**
6079
+ * GraphMetadataResult
6080
+ *
6081
+ * Result payload for the update-graph-metadata operation.
6082
+ */
6083
+ export type GraphMetadataResult = {
6084
+ /**
6085
+ * Graph Id
6086
+ *
6087
+ * Graph the metadata belongs to
6088
+ */
6089
+ graph_id: string;
6090
+ /**
6091
+ * Graph Name
6092
+ *
6093
+ * Display name after the update
6094
+ */
6095
+ graph_name: string;
6096
+ /**
6097
+ * Description
6098
+ *
6099
+ * Description after the update ('' when unset)
6100
+ */
6101
+ description?: string;
6102
+ /**
6103
+ * Tags
6104
+ *
6105
+ * Tags after the update (empty when unset)
6106
+ */
6107
+ tags?: Array<string>;
6108
+ /**
6109
+ * Updated Fields
6110
+ *
6111
+ * Fields this call actually changed. Empty when the submitted values already matched what was stored.
6112
+ */
6113
+ updated_fields?: Array<string>;
6114
+ };
6074
6115
  /**
6075
6116
  * GraphMetricsResponse
6076
6117
  *
@@ -9567,6 +9608,51 @@ export type OperationEnvelopeFiscalCalendarResponse = {
9567
9608
  */
9568
9609
  idempotentReplay?: boolean;
9569
9610
  };
9611
+ /**
9612
+ * OperationEnvelope[GraphMetadataResult]
9613
+ */
9614
+ export type OperationEnvelopeGraphMetadataResult = {
9615
+ /**
9616
+ * Operation
9617
+ *
9618
+ * Kebab-case operation name
9619
+ */
9620
+ operation: string;
9621
+ /**
9622
+ * Operationid
9623
+ *
9624
+ * op_-prefixed ULID for audit and SSE correlation
9625
+ */
9626
+ operationId: string;
9627
+ /**
9628
+ * Status
9629
+ *
9630
+ * Operation lifecycle state
9631
+ */
9632
+ status: 'completed' | 'pending' | 'failed';
9633
+ /**
9634
+ * Command-specific result payload
9635
+ */
9636
+ result?: GraphMetadataResult | null;
9637
+ /**
9638
+ * At
9639
+ *
9640
+ * ISO-8601 UTC timestamp
9641
+ */
9642
+ at: string;
9643
+ /**
9644
+ * Createdby
9645
+ *
9646
+ * User ID that initiated the operation (null for legacy callers)
9647
+ */
9648
+ createdBy?: string | null;
9649
+ /**
9650
+ * Idempotentreplay
9651
+ *
9652
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
9653
+ */
9654
+ idempotentReplay?: boolean;
9655
+ };
9570
9656
  /**
9571
9657
  * OperationEnvelope[InformationBlockEnvelope]
9572
9658
  */
@@ -15291,6 +15377,42 @@ export type UpdateForecastRequest = {
15291
15377
  export type UpdateGraphMemberRoleRequest = {
15292
15378
  role: GraphRole;
15293
15379
  };
15380
+ /**
15381
+ * UpdateGraphMetadataOp
15382
+ *
15383
+ * Body for the update-graph-metadata operation.
15384
+ *
15385
+ * Partial update — only supplied (non-null) fields change, so a caller
15386
+ * editing just the display name need not resend the description and tags.
15387
+ * Because ``None`` means "leave alone", clearing a field uses its empty
15388
+ * value instead: pass ``""`` to clear the description and ``[]`` to clear
15389
+ * the tags. ``graph_name`` cannot be cleared; it is the graph's label
15390
+ * everywhere it is listed.
15391
+ *
15392
+ * This is the platform-level label for the graph, independent of the
15393
+ * entity name shown on financial statements — change that through
15394
+ * ``POST /extensions/roboledger/{graph_id}/operations/update-entity``.
15395
+ */
15396
+ export type UpdateGraphMetadataOp = {
15397
+ /**
15398
+ * Graph Name
15399
+ *
15400
+ * New display name. Omit to leave unchanged; cannot be cleared.
15401
+ */
15402
+ graph_name?: string | null;
15403
+ /**
15404
+ * Description
15405
+ *
15406
+ * New description. Omit to leave unchanged; pass '' to clear.
15407
+ */
15408
+ description?: string | null;
15409
+ /**
15410
+ * Tags
15411
+ *
15412
+ * Replaces the full tag list (not a merge). Omit to leave unchanged; pass [] to clear. Tags are trimmed, de-duplicated, and capped at 50 characters each.
15413
+ */
15414
+ tags?: Array<string> | null;
15415
+ };
15294
15416
  /**
15295
15417
  * UpdateInformationBlockRequest
15296
15418
  *
@@ -18905,7 +19027,7 @@ export type GetBackupDownloadUrlData = {
18905
19027
  };
18906
19028
  export type GetBackupDownloadUrlErrors = {
18907
19029
  /**
18908
- * Access denied or backup is encrypted
19030
+ * Access denied
18909
19031
  */
18910
19032
  403: unknown;
18911
19033
  /**
@@ -20967,6 +21089,65 @@ export type ChangeTierResponses = {
20967
21089
  202: OperationEnvelope;
20968
21090
  };
20969
21091
  export type ChangeTierResponse = ChangeTierResponses[keyof ChangeTierResponses];
21092
+ export type UpdateGraphMetadataData = {
21093
+ body: UpdateGraphMetadataOp;
21094
+ headers?: {
21095
+ /**
21096
+ * Idempotency-Key
21097
+ */
21098
+ 'Idempotency-Key'?: string | null;
21099
+ };
21100
+ path: {
21101
+ /**
21102
+ * Graph Id
21103
+ */
21104
+ graph_id: string;
21105
+ };
21106
+ query?: never;
21107
+ url: '/v1/graphs/{graph_id}/operations/update-graph-metadata';
21108
+ };
21109
+ export type UpdateGraphMetadataErrors = {
21110
+ /**
21111
+ * Invalid request
21112
+ */
21113
+ 400: ErrorResponse;
21114
+ /**
21115
+ * Authentication required
21116
+ */
21117
+ 401: ErrorResponse;
21118
+ /**
21119
+ * Access denied
21120
+ */
21121
+ 403: ErrorResponse;
21122
+ /**
21123
+ * Resource not found
21124
+ */
21125
+ 404: ErrorResponse;
21126
+ /**
21127
+ * Idempotency-Key conflict — key reused with different body
21128
+ */
21129
+ 409: ErrorResponse;
21130
+ /**
21131
+ * Validation error
21132
+ */
21133
+ 422: ErrorResponse;
21134
+ /**
21135
+ * Rate limit exceeded
21136
+ */
21137
+ 429: ErrorResponse;
21138
+ /**
21139
+ * Internal server error
21140
+ */
21141
+ 500: ErrorResponse;
21142
+ };
21143
+ export type UpdateGraphMetadataError = UpdateGraphMetadataErrors[keyof UpdateGraphMetadataErrors];
21144
+ export type UpdateGraphMetadataResponses = {
21145
+ /**
21146
+ * Successful Response
21147
+ */
21148
+ 200: OperationEnvelopeGraphMetadataResult;
21149
+ };
21150
+ export type UpdateGraphMetadataResponse = UpdateGraphMetadataResponses[keyof UpdateGraphMetadataResponses];
20970
21151
  export type MaterializeData = {
20971
21152
  body: MaterializeOp;
20972
21153
  headers?: {
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
  /**
@@ -5367,7 +5359,7 @@ export type FactSetLite = {
5367
5359
  /**
5368
5360
  * Provenance
5369
5361
  *
5370
- * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5362
+ * Typed ``FactProvenance`` descriptor (discriminated on ``origin``: pivot | schedule | derived | asserted | document | forecast | filed) recording how this FactSet's facts were constructed. Surfaced as JSON, mirroring how mechanics is exposed. Null when the FactSet carries no descriptor.
5371
5363
  */
5372
5364
  provenance?: {
5373
5365
  [key: string]: unknown;
@@ -6004,6 +5996,18 @@ export type GraphInfo = {
6004
5996
  * Display name for the graph
6005
5997
  */
6006
5998
  graphName: string;
5999
+ /**
6000
+ * Description
6001
+ *
6002
+ * Free-form description ('' when unset)
6003
+ */
6004
+ description?: string;
6005
+ /**
6006
+ * Tags
6007
+ *
6008
+ * Organizational tags for the graph
6009
+ */
6010
+ tags?: Array<string>;
6007
6011
  /**
6008
6012
  * Role
6009
6013
  *
@@ -6223,6 +6227,44 @@ export type GraphMetadata = {
6223
6227
  tags?: Array<string>;
6224
6228
  };
6225
6229
 
6230
+ /**
6231
+ * GraphMetadataResult
6232
+ *
6233
+ * Result payload for the update-graph-metadata operation.
6234
+ */
6235
+ export type GraphMetadataResult = {
6236
+ /**
6237
+ * Graph Id
6238
+ *
6239
+ * Graph the metadata belongs to
6240
+ */
6241
+ graph_id: string;
6242
+ /**
6243
+ * Graph Name
6244
+ *
6245
+ * Display name after the update
6246
+ */
6247
+ graph_name: string;
6248
+ /**
6249
+ * Description
6250
+ *
6251
+ * Description after the update ('' when unset)
6252
+ */
6253
+ description?: string;
6254
+ /**
6255
+ * Tags
6256
+ *
6257
+ * Tags after the update (empty when unset)
6258
+ */
6259
+ tags?: Array<string>;
6260
+ /**
6261
+ * Updated Fields
6262
+ *
6263
+ * Fields this call actually changed. Empty when the submitted values already matched what was stored.
6264
+ */
6265
+ updated_fields?: Array<string>;
6266
+ };
6267
+
6226
6268
  /**
6227
6269
  * GraphMetricsResponse
6228
6270
  *
@@ -9797,6 +9839,52 @@ export type OperationEnvelopeFiscalCalendarResponse = {
9797
9839
  idempotentReplay?: boolean;
9798
9840
  };
9799
9841
 
9842
+ /**
9843
+ * OperationEnvelope[GraphMetadataResult]
9844
+ */
9845
+ export type OperationEnvelopeGraphMetadataResult = {
9846
+ /**
9847
+ * Operation
9848
+ *
9849
+ * Kebab-case operation name
9850
+ */
9851
+ operation: string;
9852
+ /**
9853
+ * Operationid
9854
+ *
9855
+ * op_-prefixed ULID for audit and SSE correlation
9856
+ */
9857
+ operationId: string;
9858
+ /**
9859
+ * Status
9860
+ *
9861
+ * Operation lifecycle state
9862
+ */
9863
+ status: 'completed' | 'pending' | 'failed';
9864
+ /**
9865
+ * Command-specific result payload
9866
+ */
9867
+ result?: GraphMetadataResult | null;
9868
+ /**
9869
+ * At
9870
+ *
9871
+ * ISO-8601 UTC timestamp
9872
+ */
9873
+ at: string;
9874
+ /**
9875
+ * Createdby
9876
+ *
9877
+ * User ID that initiated the operation (null for legacy callers)
9878
+ */
9879
+ createdBy?: string | null;
9880
+ /**
9881
+ * Idempotentreplay
9882
+ *
9883
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
9884
+ */
9885
+ idempotentReplay?: boolean;
9886
+ };
9887
+
9800
9888
  /**
9801
9889
  * OperationEnvelope[InformationBlockEnvelope]
9802
9890
  */
@@ -15670,6 +15758,43 @@ export type UpdateGraphMemberRoleRequest = {
15670
15758
  role: GraphRole;
15671
15759
  };
15672
15760
 
15761
+ /**
15762
+ * UpdateGraphMetadataOp
15763
+ *
15764
+ * Body for the update-graph-metadata operation.
15765
+ *
15766
+ * Partial update — only supplied (non-null) fields change, so a caller
15767
+ * editing just the display name need not resend the description and tags.
15768
+ * Because ``None`` means "leave alone", clearing a field uses its empty
15769
+ * value instead: pass ``""`` to clear the description and ``[]`` to clear
15770
+ * the tags. ``graph_name`` cannot be cleared; it is the graph's label
15771
+ * everywhere it is listed.
15772
+ *
15773
+ * This is the platform-level label for the graph, independent of the
15774
+ * entity name shown on financial statements — change that through
15775
+ * ``POST /extensions/roboledger/{graph_id}/operations/update-entity``.
15776
+ */
15777
+ export type UpdateGraphMetadataOp = {
15778
+ /**
15779
+ * Graph Name
15780
+ *
15781
+ * New display name. Omit to leave unchanged; cannot be cleared.
15782
+ */
15783
+ graph_name?: string | null;
15784
+ /**
15785
+ * Description
15786
+ *
15787
+ * New description. Omit to leave unchanged; pass '' to clear.
15788
+ */
15789
+ description?: string | null;
15790
+ /**
15791
+ * Tags
15792
+ *
15793
+ * Replaces the full tag list (not a merge). Omit to leave unchanged; pass [] to clear. Tags are trimmed, de-duplicated, and capped at 50 characters each.
15794
+ */
15795
+ tags?: Array<string> | null;
15796
+ };
15797
+
15673
15798
  /**
15674
15799
  * UpdateInformationBlockRequest
15675
15800
  *
@@ -19590,7 +19715,7 @@ export type GetBackupDownloadUrlData = {
19590
19715
 
19591
19716
  export type GetBackupDownloadUrlErrors = {
19592
19717
  /**
19593
- * Access denied or backup is encrypted
19718
+ * Access denied
19594
19719
  */
19595
19720
  403: unknown;
19596
19721
  /**
@@ -21835,6 +21960,70 @@ export type ChangeTierResponses = {
21835
21960
 
21836
21961
  export type ChangeTierResponse = ChangeTierResponses[keyof ChangeTierResponses];
21837
21962
 
21963
+ export type UpdateGraphMetadataData = {
21964
+ body: UpdateGraphMetadataOp;
21965
+ headers?: {
21966
+ /**
21967
+ * Idempotency-Key
21968
+ */
21969
+ 'Idempotency-Key'?: string | null;
21970
+ };
21971
+ path: {
21972
+ /**
21973
+ * Graph Id
21974
+ */
21975
+ graph_id: string;
21976
+ };
21977
+ query?: never;
21978
+ url: '/v1/graphs/{graph_id}/operations/update-graph-metadata';
21979
+ };
21980
+
21981
+ export type UpdateGraphMetadataErrors = {
21982
+ /**
21983
+ * Invalid request
21984
+ */
21985
+ 400: ErrorResponse;
21986
+ /**
21987
+ * Authentication required
21988
+ */
21989
+ 401: ErrorResponse;
21990
+ /**
21991
+ * Access denied
21992
+ */
21993
+ 403: ErrorResponse;
21994
+ /**
21995
+ * Resource not found
21996
+ */
21997
+ 404: ErrorResponse;
21998
+ /**
21999
+ * Idempotency-Key conflict — key reused with different body
22000
+ */
22001
+ 409: ErrorResponse;
22002
+ /**
22003
+ * Validation error
22004
+ */
22005
+ 422: ErrorResponse;
22006
+ /**
22007
+ * Rate limit exceeded
22008
+ */
22009
+ 429: ErrorResponse;
22010
+ /**
22011
+ * Internal server error
22012
+ */
22013
+ 500: ErrorResponse;
22014
+ };
22015
+
22016
+ export type UpdateGraphMetadataError = UpdateGraphMetadataErrors[keyof UpdateGraphMetadataErrors];
22017
+
22018
+ export type UpdateGraphMetadataResponses = {
22019
+ /**
22020
+ * Successful Response
22021
+ */
22022
+ 200: OperationEnvelopeGraphMetadataResult;
22023
+ };
22024
+
22025
+ export type UpdateGraphMetadataResponse = UpdateGraphMetadataResponses[keyof UpdateGraphMetadataResponses];
22026
+
21838
22027
  export type MaterializeData = {
21839
22028
  body: MaterializeOp;
21840
22029
  headers?: {