@manta-eu/client 0.9.0 → 0.11.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/dist/generated/graphql.d.ts +141 -51
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +54 -30
- package/dist/generated/graphql.js.map +1 -1
- package/dist/shared/constants.d.ts +0 -1
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +0 -2
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/datastore-path.d.ts +1 -0
- package/dist/shared/datastore-path.d.ts.map +1 -1
- package/dist/shared/datastore-path.js +1 -0
- package/dist/shared/datastore-path.js.map +1 -1
- package/dist/shared/image.d.ts +12 -0
- package/dist/shared/image.d.ts.map +1 -0
- package/dist/shared/image.js +33 -0
- package/dist/shared/image.js.map +1 -0
- package/package.json +5 -5
- package/src/generated/graphql.ts +241 -94
- package/src/shared/constants.ts +0 -3
- package/src/shared/datastore-path.ts +2 -0
- package/src/shared/image.ts +47 -0
package/src/generated/graphql.ts
CHANGED
|
@@ -506,6 +506,12 @@ export type GQLConsolidationCluster = {
|
|
|
506
506
|
suggestedLabel: Scalars["String"]["output"];
|
|
507
507
|
};
|
|
508
508
|
|
|
509
|
+
export type GQLContinueDatastoreDeletionResponse = {
|
|
510
|
+
__typename?: "ContinueDatastoreDeletionResponse";
|
|
511
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
512
|
+
success: Scalars["Boolean"]["output"];
|
|
513
|
+
};
|
|
514
|
+
|
|
509
515
|
export type GQLConversationStarter = {
|
|
510
516
|
__typename?: "ConversationStarter";
|
|
511
517
|
description?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -821,6 +827,17 @@ export type GQLDataConnectorType = {
|
|
|
821
827
|
fields: Array<GQLDataConnectorField>;
|
|
822
828
|
};
|
|
823
829
|
|
|
830
|
+
export type GQLDatastoreDeletion = {
|
|
831
|
+
__typename?: "DatastoreDeletion";
|
|
832
|
+
datastoreId: Scalars["String"]["output"];
|
|
833
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
834
|
+
failure?: Maybe<Scalars["String"]["output"]>;
|
|
835
|
+
retrying: Scalars["Boolean"]["output"];
|
|
836
|
+
step?: Maybe<Scalars["String"]["output"]>;
|
|
837
|
+
unreadable: Scalars["Boolean"]["output"];
|
|
838
|
+
unregistered?: Maybe<Scalars["Boolean"]["output"]>;
|
|
839
|
+
};
|
|
840
|
+
|
|
824
841
|
export type GQLDatastoreInvoice = {
|
|
825
842
|
__typename?: "DatastoreInvoice";
|
|
826
843
|
created: Scalars["Int"]["output"];
|
|
@@ -911,6 +928,13 @@ export type GQLDeleteMemoryResponse = {
|
|
|
911
928
|
success: Scalars["Boolean"]["output"];
|
|
912
929
|
};
|
|
913
930
|
|
|
931
|
+
export type GQLDeleteRulePrefixResponse = {
|
|
932
|
+
__typename?: "DeleteRulePrefixResponse";
|
|
933
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
934
|
+
name: Scalars["String"]["output"];
|
|
935
|
+
success: Scalars["Boolean"]["output"];
|
|
936
|
+
};
|
|
937
|
+
|
|
914
938
|
export type GQLDeleteUserAccountResponse = {
|
|
915
939
|
__typename?: "DeleteUserAccountResponse";
|
|
916
940
|
deleted: Scalars["Boolean"]["output"];
|
|
@@ -1497,8 +1521,10 @@ export type GQLManualActionChangeAssigneesPayload = {
|
|
|
1497
1521
|
|
|
1498
1522
|
export type GQLManualActionProgressResult = {
|
|
1499
1523
|
__typename?: "ManualActionProgressResult";
|
|
1524
|
+
ended: Scalars["Boolean"]["output"];
|
|
1500
1525
|
manualAction?: Maybe<GQLManualActionResult>;
|
|
1501
1526
|
state: Array<Scalars["String"]["output"]>;
|
|
1527
|
+
workflowStatus?: Maybe<Scalars["String"]["output"]>;
|
|
1502
1528
|
};
|
|
1503
1529
|
|
|
1504
1530
|
export type GQLManualActionResolvePayload = {
|
|
@@ -1741,10 +1767,12 @@ export type GQLMutation = {
|
|
|
1741
1767
|
completeUpload: GQLCompleteUploadResponse;
|
|
1742
1768
|
connectStripeAccount: GQLConnectStripeAccountResponse;
|
|
1743
1769
|
consolidateMemories: GQLCreateMemoryResponse;
|
|
1770
|
+
continueDatastoreDeletion: GQLContinueDatastoreDeletionResponse;
|
|
1744
1771
|
createCustomApp: GQLCustomAppCredentials;
|
|
1745
1772
|
createDataConnection: GQLDataConnectionTestState;
|
|
1746
1773
|
createInferalIntegration: GQLCreateInferalIntegrationResponse;
|
|
1747
1774
|
createMemory: GQLCreateMemoryResponse;
|
|
1775
|
+
createRulePrefix: GQLRulePrefixResponse;
|
|
1748
1776
|
createStripeBillingPortalSession: GQLCreateStripeBillingPortalSessionResponse;
|
|
1749
1777
|
createStripeCheckoutSession: GQLCreateStripeCheckoutSessionResponse;
|
|
1750
1778
|
dashSetupConnect: GQLDashSetupProgress;
|
|
@@ -1755,6 +1783,7 @@ export type GQLMutation = {
|
|
|
1755
1783
|
deleteDatastore: GQLDeleteDatastoreResponse;
|
|
1756
1784
|
deleteLDESStream: GQLLdesStreamDeleteResponse;
|
|
1757
1785
|
deleteMemory: GQLDeleteMemoryResponse;
|
|
1786
|
+
deleteRulePrefix: GQLDeleteRulePrefixResponse;
|
|
1758
1787
|
deleteUserAccount: GQLDeleteUserAccountResponse;
|
|
1759
1788
|
disconnectConnectedAccount: GQLDisconnectConnectedAccountResponse;
|
|
1760
1789
|
disconnectCustomApp: Scalars["Boolean"]["output"];
|
|
@@ -1797,17 +1826,16 @@ export type GQLMutation = {
|
|
|
1797
1826
|
removeCustomAppUser: GQLCustomAppUserRemoval;
|
|
1798
1827
|
removeCustomAppUsers: Array<GQLCustomAppUserBulkRemovalResult>;
|
|
1799
1828
|
removeCustomAppUsersCreatedBetween: GQLCustomAppUserBulkRemoval;
|
|
1800
|
-
removeDatastore: GQLRemoveDatastoreResponse;
|
|
1801
1829
|
removeTeamMember: GQLTeamMemberRemovedResponse;
|
|
1802
1830
|
renameDatastoreGroup: GQLRenameDatastoreGroupResponse;
|
|
1803
1831
|
renameUser: GQLRenameUserResponse;
|
|
1804
1832
|
resendTeamInvitation: GQLTeamInvitationResentResponse;
|
|
1805
|
-
restoreDatastore: GQLRestoreDatastoreResponse;
|
|
1806
1833
|
restoreMemory: GQLRestoreMemoryResponse;
|
|
1807
1834
|
resumeLDESStream: GQLLdesStreamResponse;
|
|
1808
1835
|
revokeOperatorRole: GQLRevokeOperatorRoleResponse;
|
|
1809
1836
|
revokePreviousCustomAppSecret: GQLCustomApp;
|
|
1810
1837
|
rotateCustomAppSecret: GQLCustomAppCredentials;
|
|
1838
|
+
runDatastoreDeletionStep: GQLRunDatastoreDeletionStepResult;
|
|
1811
1839
|
selfServeProvisionOrganization: GQLSelfServeProvisionOrganizationResponse;
|
|
1812
1840
|
setCustomAppChatAllowance: GQLCustomAppChatAllowance;
|
|
1813
1841
|
setCustomAppEnabled: GQLCustomApp;
|
|
@@ -1818,6 +1846,7 @@ export type GQLMutation = {
|
|
|
1818
1846
|
updateCustomApp: GQLCustomApp;
|
|
1819
1847
|
updateDataConnection: GQLDataConnectionTestState;
|
|
1820
1848
|
updateMemory: GQLUpdateMemoryResponse;
|
|
1849
|
+
updateRulePrefix: GQLRulePrefixResponse;
|
|
1821
1850
|
updateTeamMember: GQLTeamMemberUpdateResponse;
|
|
1822
1851
|
updateUserPreferences: GQLUpdateUserPreferencesResponse;
|
|
1823
1852
|
validateRule: GQLValidateRuleResponse;
|
|
@@ -1880,6 +1909,10 @@ export type GQLMutationConsolidateMemoriesArgs = {
|
|
|
1880
1909
|
input: GQLConsolidateMemoriesInput;
|
|
1881
1910
|
};
|
|
1882
1911
|
|
|
1912
|
+
export type GQLMutationContinueDatastoreDeletionArgs = {
|
|
1913
|
+
datastoreId: Scalars["String"]["input"];
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1883
1916
|
export type GQLMutationCreateCustomAppArgs = {
|
|
1884
1917
|
datastores?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
1885
1918
|
homeUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -1903,6 +1936,10 @@ export type GQLMutationCreateMemoryArgs = {
|
|
|
1903
1936
|
input: GQLCreateMemoryInput;
|
|
1904
1937
|
};
|
|
1905
1938
|
|
|
1939
|
+
export type GQLMutationCreateRulePrefixArgs = {
|
|
1940
|
+
input: GQLRulePrefixInput;
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1906
1943
|
export type GQLMutationCreateStripeBillingPortalSessionArgs = {
|
|
1907
1944
|
datastoreId: Scalars["String"]["input"];
|
|
1908
1945
|
returnUrl: Scalars["String"]["input"];
|
|
@@ -1950,6 +1987,10 @@ export type GQLMutationDeleteMemoryArgs = {
|
|
|
1950
1987
|
memoryIri: Scalars["IRI"]["input"];
|
|
1951
1988
|
};
|
|
1952
1989
|
|
|
1990
|
+
export type GQLMutationDeleteRulePrefixArgs = {
|
|
1991
|
+
name: Scalars["String"]["input"];
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1953
1994
|
export type GQLMutationDeleteUserAccountArgs = {
|
|
1954
1995
|
userId: Scalars["String"]["input"];
|
|
1955
1996
|
};
|
|
@@ -2140,10 +2181,6 @@ export type GQLMutationRemoveCustomAppUsersCreatedBetweenArgs = {
|
|
|
2140
2181
|
org?: InputMaybe<Scalars["String"]["input"]>;
|
|
2141
2182
|
};
|
|
2142
2183
|
|
|
2143
|
-
export type GQLMutationRemoveDatastoreArgs = {
|
|
2144
|
-
datastoreId: Scalars["String"]["input"];
|
|
2145
|
-
};
|
|
2146
|
-
|
|
2147
2184
|
export type GQLMutationRemoveTeamMemberArgs = {
|
|
2148
2185
|
org?: InputMaybe<Scalars["String"]["input"]>;
|
|
2149
2186
|
userId: Scalars["String"]["input"];
|
|
@@ -2164,10 +2201,6 @@ export type GQLMutationResendTeamInvitationArgs = {
|
|
|
2164
2201
|
userId: Scalars["String"]["input"];
|
|
2165
2202
|
};
|
|
2166
2203
|
|
|
2167
|
-
export type GQLMutationRestoreDatastoreArgs = {
|
|
2168
|
-
datastoreId: Scalars["String"]["input"];
|
|
2169
|
-
};
|
|
2170
|
-
|
|
2171
2204
|
export type GQLMutationRestoreMemoryArgs = {
|
|
2172
2205
|
memoryIri: Scalars["IRI"]["input"];
|
|
2173
2206
|
};
|
|
@@ -2191,6 +2224,10 @@ export type GQLMutationRotateCustomAppSecretArgs = {
|
|
|
2191
2224
|
org?: InputMaybe<Scalars["String"]["input"]>;
|
|
2192
2225
|
};
|
|
2193
2226
|
|
|
2227
|
+
export type GQLMutationRunDatastoreDeletionStepArgs = {
|
|
2228
|
+
input: GQLRunDatastoreDeletionStepInput;
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2194
2231
|
export type GQLMutationSelfServeProvisionOrganizationArgs = {
|
|
2195
2232
|
input: GQLSelfServeProvisionOrganizationInput;
|
|
2196
2233
|
};
|
|
@@ -2245,6 +2282,10 @@ export type GQLMutationUpdateMemoryArgs = {
|
|
|
2245
2282
|
input: GQLUpdateMemoryInput;
|
|
2246
2283
|
};
|
|
2247
2284
|
|
|
2285
|
+
export type GQLMutationUpdateRulePrefixArgs = {
|
|
2286
|
+
input: GQLRulePrefixInput;
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2248
2289
|
export type GQLMutationUpdateTeamMemberArgs = {
|
|
2249
2290
|
group?: InputMaybe<Scalars["String"]["input"]>;
|
|
2250
2291
|
org?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -2356,6 +2397,7 @@ export type GQLProvisionDatastoreInput = {
|
|
|
2356
2397
|
export type GQLProvisionDatastoreResponse = {
|
|
2357
2398
|
__typename?: "ProvisionDatastoreResponse";
|
|
2358
2399
|
datastoreId?: Maybe<Scalars["String"]["output"]>;
|
|
2400
|
+
deletionWarning?: Maybe<Scalars["String"]["output"]>;
|
|
2359
2401
|
error?: Maybe<Scalars["String"]["output"]>;
|
|
2360
2402
|
name?: Maybe<Scalars["String"]["output"]>;
|
|
2361
2403
|
path?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -2392,6 +2434,7 @@ export type GQLQuery = {
|
|
|
2392
2434
|
dashSetupProgress: GQLDashSetupProgress;
|
|
2393
2435
|
dataConnections: Array<GQLDataConnection>;
|
|
2394
2436
|
dataConnectorTypes: Array<GQLDataConnectorType>;
|
|
2437
|
+
datastoreDeletions: Array<GQLDatastoreDeletion>;
|
|
2395
2438
|
datastoreInvoices: GQLDatastoreInvoicePage;
|
|
2396
2439
|
datastoreProvisioningStatuses: Array<GQLDatastoreProvisioningStatus>;
|
|
2397
2440
|
datastoreSubscriptions: Array<GQLDatastoreSubscription>;
|
|
@@ -2423,6 +2466,7 @@ export type GQLQuery = {
|
|
|
2423
2466
|
pendingInvitations: Array<GQLPendingInvitation>;
|
|
2424
2467
|
refreshResourceCapabilities: GQLRefreshResourceCapabilitiesResponse;
|
|
2425
2468
|
refreshResourcesStatus: GQLRefreshResourcesStatusResponse;
|
|
2469
|
+
rulePrefixes: GQLRulePrefixesResponse;
|
|
2426
2470
|
rules: GQLRulesResponse;
|
|
2427
2471
|
sessionContext: GQLSessionContext;
|
|
2428
2472
|
shaclShapes: GQLShaclShapesResponse;
|
|
@@ -2521,6 +2565,10 @@ export type GQLQueryCustomAppsArgs = {
|
|
|
2521
2565
|
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
2522
2566
|
};
|
|
2523
2567
|
|
|
2568
|
+
export type GQLQueryDatastoreDeletionsArgs = {
|
|
2569
|
+
datastoreIds: Array<Scalars["String"]["input"]>;
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2524
2572
|
export type GQLQueryDatastoreInvoicesArgs = {
|
|
2525
2573
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
2526
2574
|
datastoreId?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -2759,12 +2807,6 @@ export type GQLReleaseRuleOwnershipResponse = {
|
|
|
2759
2807
|
success: Scalars["Boolean"]["output"];
|
|
2760
2808
|
};
|
|
2761
2809
|
|
|
2762
|
-
export type GQLRemoveDatastoreResponse = {
|
|
2763
|
-
__typename?: "RemoveDatastoreResponse";
|
|
2764
|
-
error?: Maybe<Scalars["String"]["output"]>;
|
|
2765
|
-
success: Scalars["Boolean"]["output"];
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
2810
|
export type GQLRenameDatastoreGroupInput = {
|
|
2769
2811
|
id: Scalars["String"]["input"];
|
|
2770
2812
|
isOrganization: Scalars["Boolean"]["input"];
|
|
@@ -2784,12 +2826,6 @@ export type GQLRenameUserResponse = {
|
|
|
2784
2826
|
name?: Maybe<Scalars["String"]["output"]>;
|
|
2785
2827
|
};
|
|
2786
2828
|
|
|
2787
|
-
export type GQLRestoreDatastoreResponse = {
|
|
2788
|
-
__typename?: "RestoreDatastoreResponse";
|
|
2789
|
-
error?: Maybe<Scalars["String"]["output"]>;
|
|
2790
|
-
success: Scalars["Boolean"]["output"];
|
|
2791
|
-
};
|
|
2792
|
-
|
|
2793
2829
|
export type GQLRestoreMemoryResponse = {
|
|
2794
2830
|
__typename?: "RestoreMemoryResponse";
|
|
2795
2831
|
blockedByIri?: Maybe<Scalars["IRI"]["output"]>;
|
|
@@ -2845,6 +2881,31 @@ export type GQLRuleOwnership = {
|
|
|
2845
2881
|
userId?: Maybe<Scalars["String"]["output"]>;
|
|
2846
2882
|
};
|
|
2847
2883
|
|
|
2884
|
+
export type GQLRulePrefix = {
|
|
2885
|
+
__typename?: "RulePrefix";
|
|
2886
|
+
iri: Scalars["IRI"]["output"];
|
|
2887
|
+
managedByManta: Scalars["Boolean"]["output"];
|
|
2888
|
+
name: Scalars["String"]["output"];
|
|
2889
|
+
};
|
|
2890
|
+
|
|
2891
|
+
export type GQLRulePrefixInput = {
|
|
2892
|
+
iri: Scalars["IRI"]["input"];
|
|
2893
|
+
name: Scalars["String"]["input"];
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
export type GQLRulePrefixResponse = {
|
|
2897
|
+
__typename?: "RulePrefixResponse";
|
|
2898
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
2899
|
+
prefix?: Maybe<GQLRulePrefix>;
|
|
2900
|
+
success: Scalars["Boolean"]["output"];
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
export type GQLRulePrefixesResponse = {
|
|
2904
|
+
__typename?: "RulePrefixesResponse";
|
|
2905
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
2906
|
+
prefixes: Array<GQLRulePrefix>;
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2848
2909
|
export type GQLRuleStructure = {
|
|
2849
2910
|
__typename?: "RuleStructure";
|
|
2850
2911
|
bodyFormulas: Scalars["Int"]["output"];
|
|
@@ -2873,6 +2934,24 @@ export type GQLRulesResponse = {
|
|
|
2873
2934
|
rules: Array<GQLRule>;
|
|
2874
2935
|
};
|
|
2875
2936
|
|
|
2937
|
+
export type GQLRunDatastoreDeletionStepInput = {
|
|
2938
|
+
datastoreId: Scalars["String"]["input"];
|
|
2939
|
+
linked: Scalars["Boolean"]["input"];
|
|
2940
|
+
orgId?: InputMaybe<Scalars["String"]["input"]>;
|
|
2941
|
+
ownerGroupId?: InputMaybe<Scalars["String"]["input"]>;
|
|
2942
|
+
ownerOrganizationId?: InputMaybe<Scalars["String"]["input"]>;
|
|
2943
|
+
purgedManagers?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
2944
|
+
step: Scalars["String"]["input"];
|
|
2945
|
+
};
|
|
2946
|
+
|
|
2947
|
+
export type GQLRunDatastoreDeletionStepResult = {
|
|
2948
|
+
__typename?: "RunDatastoreDeletionStepResult";
|
|
2949
|
+
operatorError?: Maybe<Scalars["String"]["output"]>;
|
|
2950
|
+
purgedManagers?: Maybe<Array<Scalars["String"]["output"]>>;
|
|
2951
|
+
sweepable?: Maybe<Scalars["Boolean"]["output"]>;
|
|
2952
|
+
takenBack?: Maybe<Scalars["Boolean"]["output"]>;
|
|
2953
|
+
};
|
|
2954
|
+
|
|
2876
2955
|
export type GQLSelfServeInvitationInput = {
|
|
2877
2956
|
email: Scalars["String"]["input"];
|
|
2878
2957
|
role: Scalars["String"]["input"];
|
|
@@ -3638,6 +3717,19 @@ export type GQLConsolidateMemoriesMutation = {
|
|
|
3638
3717
|
};
|
|
3639
3718
|
};
|
|
3640
3719
|
|
|
3720
|
+
export type GQLContinueDatastoreDeletionMutationVariables = Exact<{
|
|
3721
|
+
datastoreId: Scalars["String"]["input"];
|
|
3722
|
+
}>;
|
|
3723
|
+
|
|
3724
|
+
export type GQLContinueDatastoreDeletionMutation = {
|
|
3725
|
+
__typename?: "Mutation";
|
|
3726
|
+
continueDatastoreDeletion: {
|
|
3727
|
+
__typename?: "ContinueDatastoreDeletionResponse";
|
|
3728
|
+
success: boolean;
|
|
3729
|
+
error?: string | null;
|
|
3730
|
+
};
|
|
3731
|
+
};
|
|
3732
|
+
|
|
3641
3733
|
export type GQLCreateCustomAppMutationVariables = Exact<{
|
|
3642
3734
|
org?: InputMaybe<Scalars["String"]["input"]>;
|
|
3643
3735
|
name: Scalars["String"]["input"];
|
|
@@ -4188,6 +4280,7 @@ export type GQLLinkUnlinkedDatastoreMutation = {
|
|
|
4188
4280
|
path?: string | null;
|
|
4189
4281
|
pending: boolean;
|
|
4190
4282
|
providerWarning?: string | null;
|
|
4283
|
+
deletionWarning?: string | null;
|
|
4191
4284
|
};
|
|
4192
4285
|
};
|
|
4193
4286
|
|
|
@@ -4378,6 +4471,7 @@ export type GQLProvisionDatastoreMutation = {
|
|
|
4378
4471
|
pending: boolean;
|
|
4379
4472
|
runId?: string | null;
|
|
4380
4473
|
providerWarning?: string | null;
|
|
4474
|
+
deletionWarning?: string | null;
|
|
4381
4475
|
};
|
|
4382
4476
|
};
|
|
4383
4477
|
|
|
@@ -4495,15 +4589,6 @@ export type GQLRemoveCustomAppUsersMutation = {
|
|
|
4495
4589
|
}>;
|
|
4496
4590
|
};
|
|
4497
4591
|
|
|
4498
|
-
export type GQLRemoveDatastoreMutationVariables = Exact<{
|
|
4499
|
-
datastoreId: Scalars["String"]["input"];
|
|
4500
|
-
}>;
|
|
4501
|
-
|
|
4502
|
-
export type GQLRemoveDatastoreMutation = {
|
|
4503
|
-
__typename?: "Mutation";
|
|
4504
|
-
removeDatastore: { __typename?: "RemoveDatastoreResponse"; success: boolean; error?: string | null };
|
|
4505
|
-
};
|
|
4506
|
-
|
|
4507
4592
|
export type GQLRenameDatastoreGroupMutationVariables = Exact<{
|
|
4508
4593
|
input: GQLRenameDatastoreGroupInput;
|
|
4509
4594
|
}>;
|
|
@@ -4524,15 +4609,6 @@ export type GQLRenameUserMutation = {
|
|
|
4524
4609
|
renameUser: { __typename?: "RenameUserResponse"; id: string; name?: string | null };
|
|
4525
4610
|
};
|
|
4526
4611
|
|
|
4527
|
-
export type GQLRestoreDatastoreMutationVariables = Exact<{
|
|
4528
|
-
datastoreId: Scalars["String"]["input"];
|
|
4529
|
-
}>;
|
|
4530
|
-
|
|
4531
|
-
export type GQLRestoreDatastoreMutation = {
|
|
4532
|
-
__typename?: "Mutation";
|
|
4533
|
-
restoreDatastore: { __typename?: "RestoreDatastoreResponse"; success: boolean; error?: string | null };
|
|
4534
|
-
};
|
|
4535
|
-
|
|
4536
4612
|
export type GQLRestoreMemoryMutationVariables = Exact<{
|
|
4537
4613
|
memoryIri: Scalars["IRI"]["input"];
|
|
4538
4614
|
}>;
|
|
@@ -5479,6 +5555,24 @@ export type GQLDataConnectorTypesQuery = {
|
|
|
5479
5555
|
}>;
|
|
5480
5556
|
};
|
|
5481
5557
|
|
|
5558
|
+
export type GQLDatastoreDeletionsQueryVariables = Exact<{
|
|
5559
|
+
datastoreIds: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
|
|
5560
|
+
}>;
|
|
5561
|
+
|
|
5562
|
+
export type GQLDatastoreDeletionsQuery = {
|
|
5563
|
+
__typename?: "Query";
|
|
5564
|
+
datastoreDeletions: Array<{
|
|
5565
|
+
__typename?: "DatastoreDeletion";
|
|
5566
|
+
datastoreId: string;
|
|
5567
|
+
step?: string | null;
|
|
5568
|
+
retrying: boolean;
|
|
5569
|
+
failure?: string | null;
|
|
5570
|
+
error?: string | null;
|
|
5571
|
+
unregistered?: boolean | null;
|
|
5572
|
+
unreadable: boolean;
|
|
5573
|
+
}>;
|
|
5574
|
+
};
|
|
5575
|
+
|
|
5482
5576
|
export type GQLDatastoreInvoicesQueryVariables = Exact<{
|
|
5483
5577
|
datastoreId?: InputMaybe<Scalars["String"]["input"]>;
|
|
5484
5578
|
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
@@ -5803,6 +5897,8 @@ export type GQLManualActionProgressQuery = {
|
|
|
5803
5897
|
manualActionProgress?: {
|
|
5804
5898
|
__typename?: "ManualActionProgressResult";
|
|
5805
5899
|
state: Array<string>;
|
|
5900
|
+
ended: boolean;
|
|
5901
|
+
workflowStatus?: string | null;
|
|
5806
5902
|
manualAction?: {
|
|
5807
5903
|
__typename?: "ManualActionResult";
|
|
5808
5904
|
status?: string | null;
|
|
@@ -6984,6 +7080,43 @@ export const useConsolidateMemoriesMutation = <TError = unknown, TContext = unkn
|
|
|
6984
7080
|
});
|
|
6985
7081
|
};
|
|
6986
7082
|
|
|
7083
|
+
export const ContinueDatastoreDeletionDocument = `
|
|
7084
|
+
mutation ContinueDatastoreDeletion($datastoreId: String!) {
|
|
7085
|
+
continueDatastoreDeletion(datastoreId: $datastoreId) {
|
|
7086
|
+
success
|
|
7087
|
+
error
|
|
7088
|
+
}
|
|
7089
|
+
}
|
|
7090
|
+
`;
|
|
7091
|
+
|
|
7092
|
+
export const useContinueDatastoreDeletionMutation = <TError = unknown, TContext = unknown>(
|
|
7093
|
+
client: GraphQLClient,
|
|
7094
|
+
options?: UseMutationOptions<
|
|
7095
|
+
GQLContinueDatastoreDeletionMutation,
|
|
7096
|
+
TError,
|
|
7097
|
+
GQLContinueDatastoreDeletionMutationVariables,
|
|
7098
|
+
TContext
|
|
7099
|
+
>,
|
|
7100
|
+
headers?: RequestInit["headers"],
|
|
7101
|
+
) => {
|
|
7102
|
+
return useMutation<
|
|
7103
|
+
GQLContinueDatastoreDeletionMutation,
|
|
7104
|
+
TError,
|
|
7105
|
+
GQLContinueDatastoreDeletionMutationVariables,
|
|
7106
|
+
TContext
|
|
7107
|
+
>({
|
|
7108
|
+
mutationKey: ["ContinueDatastoreDeletion"],
|
|
7109
|
+
mutationFn: (variables?: GQLContinueDatastoreDeletionMutationVariables) =>
|
|
7110
|
+
fetcher<GQLContinueDatastoreDeletionMutation, GQLContinueDatastoreDeletionMutationVariables>(
|
|
7111
|
+
client,
|
|
7112
|
+
ContinueDatastoreDeletionDocument,
|
|
7113
|
+
variables,
|
|
7114
|
+
headers,
|
|
7115
|
+
)(),
|
|
7116
|
+
...options,
|
|
7117
|
+
});
|
|
7118
|
+
};
|
|
7119
|
+
|
|
6987
7120
|
export const CreateCustomAppDocument = `
|
|
6988
7121
|
mutation CreateCustomApp($org: String, $name: String!, $kind: CustomAppKind, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [CustomAppPermission!]) {
|
|
6989
7122
|
createCustomApp(
|
|
@@ -8190,6 +8323,7 @@ export const LinkUnlinkedDatastoreDocument = `
|
|
|
8190
8323
|
path
|
|
8191
8324
|
pending
|
|
8192
8325
|
providerWarning
|
|
8326
|
+
deletionWarning
|
|
8193
8327
|
}
|
|
8194
8328
|
}
|
|
8195
8329
|
`;
|
|
@@ -8569,6 +8703,7 @@ export const ProvisionDatastoreDocument = `
|
|
|
8569
8703
|
pending
|
|
8570
8704
|
runId
|
|
8571
8705
|
providerWarning
|
|
8706
|
+
deletionWarning
|
|
8572
8707
|
}
|
|
8573
8708
|
}
|
|
8574
8709
|
`;
|
|
@@ -8815,33 +8950,6 @@ export const useRemoveCustomAppUsersMutation = <TError = unknown, TContext = unk
|
|
|
8815
8950
|
});
|
|
8816
8951
|
};
|
|
8817
8952
|
|
|
8818
|
-
export const RemoveDatastoreDocument = `
|
|
8819
|
-
mutation RemoveDatastore($datastoreId: String!) {
|
|
8820
|
-
removeDatastore(datastoreId: $datastoreId) {
|
|
8821
|
-
success
|
|
8822
|
-
error
|
|
8823
|
-
}
|
|
8824
|
-
}
|
|
8825
|
-
`;
|
|
8826
|
-
|
|
8827
|
-
export const useRemoveDatastoreMutation = <TError = unknown, TContext = unknown>(
|
|
8828
|
-
client: GraphQLClient,
|
|
8829
|
-
options?: UseMutationOptions<GQLRemoveDatastoreMutation, TError, GQLRemoveDatastoreMutationVariables, TContext>,
|
|
8830
|
-
headers?: RequestInit["headers"],
|
|
8831
|
-
) => {
|
|
8832
|
-
return useMutation<GQLRemoveDatastoreMutation, TError, GQLRemoveDatastoreMutationVariables, TContext>({
|
|
8833
|
-
mutationKey: ["RemoveDatastore"],
|
|
8834
|
-
mutationFn: (variables?: GQLRemoveDatastoreMutationVariables) =>
|
|
8835
|
-
fetcher<GQLRemoveDatastoreMutation, GQLRemoveDatastoreMutationVariables>(
|
|
8836
|
-
client,
|
|
8837
|
-
RemoveDatastoreDocument,
|
|
8838
|
-
variables,
|
|
8839
|
-
headers,
|
|
8840
|
-
)(),
|
|
8841
|
-
...options,
|
|
8842
|
-
});
|
|
8843
|
-
};
|
|
8844
|
-
|
|
8845
8953
|
export const RenameDatastoreGroupDocument = `
|
|
8846
8954
|
mutation RenameDatastoreGroup($input: RenameDatastoreGroupInput!) {
|
|
8847
8955
|
renameDatastoreGroup(input: $input) {
|
|
@@ -8896,33 +9004,6 @@ export const useRenameUserMutation = <TError = unknown, TContext = unknown>(
|
|
|
8896
9004
|
});
|
|
8897
9005
|
};
|
|
8898
9006
|
|
|
8899
|
-
export const RestoreDatastoreDocument = `
|
|
8900
|
-
mutation RestoreDatastore($datastoreId: String!) {
|
|
8901
|
-
restoreDatastore(datastoreId: $datastoreId) {
|
|
8902
|
-
success
|
|
8903
|
-
error
|
|
8904
|
-
}
|
|
8905
|
-
}
|
|
8906
|
-
`;
|
|
8907
|
-
|
|
8908
|
-
export const useRestoreDatastoreMutation = <TError = unknown, TContext = unknown>(
|
|
8909
|
-
client: GraphQLClient,
|
|
8910
|
-
options?: UseMutationOptions<GQLRestoreDatastoreMutation, TError, GQLRestoreDatastoreMutationVariables, TContext>,
|
|
8911
|
-
headers?: RequestInit["headers"],
|
|
8912
|
-
) => {
|
|
8913
|
-
return useMutation<GQLRestoreDatastoreMutation, TError, GQLRestoreDatastoreMutationVariables, TContext>({
|
|
8914
|
-
mutationKey: ["RestoreDatastore"],
|
|
8915
|
-
mutationFn: (variables?: GQLRestoreDatastoreMutationVariables) =>
|
|
8916
|
-
fetcher<GQLRestoreDatastoreMutation, GQLRestoreDatastoreMutationVariables>(
|
|
8917
|
-
client,
|
|
8918
|
-
RestoreDatastoreDocument,
|
|
8919
|
-
variables,
|
|
8920
|
-
headers,
|
|
8921
|
-
)(),
|
|
8922
|
-
...options,
|
|
8923
|
-
});
|
|
8924
|
-
};
|
|
8925
|
-
|
|
8926
9007
|
export const RestoreMemoryDocument = `
|
|
8927
9008
|
mutation RestoreMemory($memoryIri: IRI!) {
|
|
8928
9009
|
restoreMemory(memoryIri: $memoryIri) {
|
|
@@ -10841,6 +10922,70 @@ export const useSuspenseDataConnectorTypesQuery = <TData = GQLDataConnectorTypes
|
|
|
10841
10922
|
useSuspenseDataConnectorTypesQuery.getKey = (variables?: GQLDataConnectorTypesQueryVariables) =>
|
|
10842
10923
|
variables === undefined ? ["DataConnectorTypesSuspense"] : ["DataConnectorTypesSuspense", variables];
|
|
10843
10924
|
|
|
10925
|
+
export const DatastoreDeletionsDocument = `
|
|
10926
|
+
query DatastoreDeletions($datastoreIds: [String!]!) {
|
|
10927
|
+
datastoreDeletions(datastoreIds: $datastoreIds) {
|
|
10928
|
+
datastoreId
|
|
10929
|
+
step
|
|
10930
|
+
retrying
|
|
10931
|
+
failure
|
|
10932
|
+
error
|
|
10933
|
+
unregistered
|
|
10934
|
+
unreadable
|
|
10935
|
+
}
|
|
10936
|
+
}
|
|
10937
|
+
`;
|
|
10938
|
+
|
|
10939
|
+
export const useDatastoreDeletionsQuery = <TData = GQLDatastoreDeletionsQuery, TError = unknown>(
|
|
10940
|
+
client: GraphQLClient,
|
|
10941
|
+
variables: GQLDatastoreDeletionsQueryVariables,
|
|
10942
|
+
options?: Omit<UseQueryOptions<GQLDatastoreDeletionsQuery, TError, TData>, "queryKey"> & {
|
|
10943
|
+
queryKey?: UseQueryOptions<GQLDatastoreDeletionsQuery, TError, TData>["queryKey"];
|
|
10944
|
+
},
|
|
10945
|
+
headers?: RequestInit["headers"],
|
|
10946
|
+
) => {
|
|
10947
|
+
return useQuery<GQLDatastoreDeletionsQuery, TError, TData>({
|
|
10948
|
+
queryKey: ["DatastoreDeletions", variables],
|
|
10949
|
+
queryFn: fetcher<GQLDatastoreDeletionsQuery, GQLDatastoreDeletionsQueryVariables>(
|
|
10950
|
+
client,
|
|
10951
|
+
DatastoreDeletionsDocument,
|
|
10952
|
+
variables,
|
|
10953
|
+
headers,
|
|
10954
|
+
),
|
|
10955
|
+
...options,
|
|
10956
|
+
});
|
|
10957
|
+
};
|
|
10958
|
+
|
|
10959
|
+
useDatastoreDeletionsQuery.getKey = (variables: GQLDatastoreDeletionsQueryVariables) => [
|
|
10960
|
+
"DatastoreDeletions",
|
|
10961
|
+
variables,
|
|
10962
|
+
];
|
|
10963
|
+
|
|
10964
|
+
export const useSuspenseDatastoreDeletionsQuery = <TData = GQLDatastoreDeletionsQuery, TError = unknown>(
|
|
10965
|
+
client: GraphQLClient,
|
|
10966
|
+
variables: GQLDatastoreDeletionsQueryVariables,
|
|
10967
|
+
options?: Omit<UseSuspenseQueryOptions<GQLDatastoreDeletionsQuery, TError, TData>, "queryKey"> & {
|
|
10968
|
+
queryKey?: UseSuspenseQueryOptions<GQLDatastoreDeletionsQuery, TError, TData>["queryKey"];
|
|
10969
|
+
},
|
|
10970
|
+
headers?: RequestInit["headers"],
|
|
10971
|
+
) => {
|
|
10972
|
+
return useSuspenseQuery<GQLDatastoreDeletionsQuery, TError, TData>({
|
|
10973
|
+
queryKey: ["DatastoreDeletionsSuspense", variables],
|
|
10974
|
+
queryFn: fetcher<GQLDatastoreDeletionsQuery, GQLDatastoreDeletionsQueryVariables>(
|
|
10975
|
+
client,
|
|
10976
|
+
DatastoreDeletionsDocument,
|
|
10977
|
+
variables,
|
|
10978
|
+
headers,
|
|
10979
|
+
),
|
|
10980
|
+
...options,
|
|
10981
|
+
});
|
|
10982
|
+
};
|
|
10983
|
+
|
|
10984
|
+
useSuspenseDatastoreDeletionsQuery.getKey = (variables: GQLDatastoreDeletionsQueryVariables) => [
|
|
10985
|
+
"DatastoreDeletionsSuspense",
|
|
10986
|
+
variables,
|
|
10987
|
+
];
|
|
10988
|
+
|
|
10844
10989
|
export const DatastoreInvoicesDocument = `
|
|
10845
10990
|
query DatastoreInvoices($datastoreId: String, $first: Int, $after: String) {
|
|
10846
10991
|
datastoreInvoices(datastoreId: $datastoreId, first: $first, after: $after) {
|
|
@@ -11852,6 +11997,8 @@ export const ManualActionProgressDocument = `
|
|
|
11852
11997
|
query ManualActionProgress($namedGraphIri: String!, $subjectIri: String!) {
|
|
11853
11998
|
manualActionProgress(namedGraphIri: $namedGraphIri, subjectIri: $subjectIri) {
|
|
11854
11999
|
state
|
|
12000
|
+
ended
|
|
12001
|
+
workflowStatus
|
|
11855
12002
|
manualAction {
|
|
11856
12003
|
status
|
|
11857
12004
|
assignees
|
package/src/shared/constants.ts
CHANGED
|
@@ -20,6 +20,3 @@ export const memoryExtractionFlagKey = "memory-extraction-enabled";
|
|
|
20
20
|
export const memoryAutoSupersedeFlagKey = "memory-auto-supersede-enabled";
|
|
21
21
|
export const memoryReplayFlagKey = "memory-replay-enabled";
|
|
22
22
|
export const memoryMaintenanceFlagKey = "memory-maintenance-enabled";
|
|
23
|
-
|
|
24
|
-
// Gates "Remove"/"Restore" and "Show archived". Off: see wiki/infisical-secrets.md § Removal gap.
|
|
25
|
-
export const enableDatastoreRemoval = false;
|
|
@@ -8,6 +8,8 @@ export const datastoreQueryParam = "datastore";
|
|
|
8
8
|
|
|
9
9
|
export const redirectRoutePath = "/redirect";
|
|
10
10
|
|
|
11
|
+
export const imageRoutePath = "/image";
|
|
12
|
+
|
|
11
13
|
export type DatastoreLocation = { datastoreId: string | undefined; path: string };
|
|
12
14
|
|
|
13
15
|
const datastorePathPattern = new RegExp(`^${datastoreRoutePrefix}/([^/]+)(/.*)?$`);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { datastoreRoutePrefix, imageRoutePath } from "./datastore-path";
|
|
2
|
+
|
|
3
|
+
export const imageWidths = [160, 320, 480, 640, 960, 1280, 1920] as const;
|
|
4
|
+
|
|
5
|
+
export type ImageWidth = (typeof imageWidths)[number];
|
|
6
|
+
|
|
7
|
+
const resizableImageTypes: ReadonlySet<string> = new Set([
|
|
8
|
+
"image/png",
|
|
9
|
+
"image/jpeg",
|
|
10
|
+
"image/pjpeg",
|
|
11
|
+
"image/gif",
|
|
12
|
+
"image/webp",
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
const smallestImageWidth: ImageWidth = 160;
|
|
16
|
+
const largestImageWidth: ImageWidth = 1920;
|
|
17
|
+
|
|
18
|
+
export function isImageWidth(value: unknown): value is ImageWidth {
|
|
19
|
+
return typeof value === "number" && (imageWidths as readonly number[]).includes(value);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function isResizableImageType(mediaType: string): boolean {
|
|
23
|
+
return resizableImageTypes.has(mediaType.split(";")[0]!.trim().toLowerCase());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function imageWidthFor(cssWidth: number, devicePixelRatio = 1): ImageWidth {
|
|
27
|
+
const needed = Math.ceil(cssWidth * Math.min(Math.max(devicePixelRatio, 1), 3));
|
|
28
|
+
if (!Number.isFinite(needed)) return smallestImageWidth;
|
|
29
|
+
|
|
30
|
+
return imageWidths.find((width) => width >= needed) ?? largestImageWidth;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Name the datastore when the file may sit outside the session's own, since an <img> sends no datastore header.
|
|
34
|
+
// `datastorePrefix` is where the app mounts datastore-scoped routes: "/d" on the platform's own origin.
|
|
35
|
+
export type ImageScope = { datastoreId?: string | null; datastorePrefix?: string };
|
|
36
|
+
|
|
37
|
+
export function imagePath(iri: string, width: ImageWidth, scope: ImageScope = {}): string {
|
|
38
|
+
const { datastoreId, datastorePrefix = datastoreRoutePrefix } = scope;
|
|
39
|
+
const route = datastoreId ? `${datastorePrefix}/${encodeURIComponent(datastoreId)}${imageRoutePath}` : imageRoutePath;
|
|
40
|
+
|
|
41
|
+
return `${route}?iri=${encodeURIComponent(iri)}&width=${width}`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Every ladder width as `srcset` candidates; pair it with `sizes` so the browser picks the width itself.
|
|
45
|
+
export function imageSrcSet(iri: string, scope: ImageScope = {}): string {
|
|
46
|
+
return imageWidths.map((width) => `${imagePath(iri, width, scope)} ${width}w`).join(", ");
|
|
47
|
+
}
|