@sage-bionetworks/synapse-types 0.0.2 → 0.0.4
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/index.d.mts +3208 -0
- package/dist/index.d.ts +171 -58
- package/dist/index.js +20 -0
- package/dist/index.mjs +19 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -23,12 +23,12 @@ interface AccessApprovalSearchResult {
|
|
|
23
23
|
expiredOn: string;
|
|
24
24
|
}
|
|
25
25
|
interface AccessApproval {
|
|
26
|
-
id
|
|
27
|
-
etag
|
|
28
|
-
createdOn
|
|
29
|
-
modifiedOn
|
|
30
|
-
createdBy
|
|
31
|
-
modifiedBy
|
|
26
|
+
id: number;
|
|
27
|
+
etag: string;
|
|
28
|
+
createdOn: string;
|
|
29
|
+
modifiedOn: string;
|
|
30
|
+
createdBy: string;
|
|
31
|
+
modifiedBy: string;
|
|
32
32
|
requirementId: number;
|
|
33
33
|
requirementVersion?: number;
|
|
34
34
|
submitterId: string;
|
|
@@ -36,6 +36,7 @@ interface AccessApproval {
|
|
|
36
36
|
expiredOn?: string;
|
|
37
37
|
state: ApprovalState;
|
|
38
38
|
}
|
|
39
|
+
type CreateAccessApprovalRequest = Pick<AccessApproval, 'requirementId' | 'requirementVersion' | 'submitterId' | 'accessorId' | 'state'>;
|
|
39
40
|
interface AccessApprovalSearchRequest {
|
|
40
41
|
accessorId: string;
|
|
41
42
|
accessRequirementId?: string;
|
|
@@ -89,7 +90,9 @@ declare enum ACCESS_TYPE {
|
|
|
89
90
|
CHANGE_SETTINGS = "CHANGE_SETTINGS",
|
|
90
91
|
MODERATE = "MODERATE",
|
|
91
92
|
/** Allows to review a group of submissions (e.g. on ARs) for a given object */
|
|
92
|
-
REVIEW_SUBMISSIONS = "REVIEW_SUBMISSIONS"
|
|
93
|
+
REVIEW_SUBMISSIONS = "REVIEW_SUBMISSIONS",
|
|
94
|
+
/** Eligible for exemption when granted this permission on the ACl of the AR */
|
|
95
|
+
EXEMPTION_ELIGIBLE = "EXEMPTION_ELIGIBLE"
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
type RestrictableObjectDescriptor = {
|
|
@@ -103,7 +106,6 @@ type ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE = typeof ACT_ACCESS_REQUIREMENT_CONCRE
|
|
|
103
106
|
interface ACTAccessRequirement {
|
|
104
107
|
versionNumber: number;
|
|
105
108
|
id: number;
|
|
106
|
-
description: string;
|
|
107
109
|
name: string;
|
|
108
110
|
etag: string;
|
|
109
111
|
createdOn: string;
|
|
@@ -124,7 +126,6 @@ type MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE = typeof MANAGED_ACT_ACCESS_RE
|
|
|
124
126
|
type ManagedACTAccessRequirement = {
|
|
125
127
|
versionNumber: number;
|
|
126
128
|
id: number;
|
|
127
|
-
description: string;
|
|
128
129
|
name: string;
|
|
129
130
|
etag: string;
|
|
130
131
|
createdOn: string;
|
|
@@ -138,7 +139,7 @@ type ManagedACTAccessRequirement = {
|
|
|
138
139
|
isCertifiedUserRequired: boolean;
|
|
139
140
|
isValidatedProfileRequired: boolean;
|
|
140
141
|
isDUCRequired: boolean;
|
|
141
|
-
ducTemplateFileHandleId
|
|
142
|
+
ducTemplateFileHandleId?: string;
|
|
142
143
|
isIRBApprovalRequired: boolean;
|
|
143
144
|
areOtherAttachmentsRequired: boolean;
|
|
144
145
|
expirationPeriod: number;
|
|
@@ -160,7 +161,6 @@ type LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE = typeof LOCK_ACCESS_REQUIREMENT_CONC
|
|
|
160
161
|
type LockAccessRequirement = {
|
|
161
162
|
versionNumber: number;
|
|
162
163
|
id: number;
|
|
163
|
-
description: string;
|
|
164
164
|
name: string;
|
|
165
165
|
etag: string;
|
|
166
166
|
createdOn: string;
|
|
@@ -180,7 +180,6 @@ type SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE = typeof SELF_SIGN_ACCESS_REQUIR
|
|
|
180
180
|
interface SelfSignAccessRequirement {
|
|
181
181
|
versionNumber: number;
|
|
182
182
|
id: number;
|
|
183
|
-
description: string;
|
|
184
183
|
name: string;
|
|
185
184
|
etag: string;
|
|
186
185
|
createdOn: string;
|
|
@@ -201,7 +200,6 @@ type TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE = typeof TERMS_OF_USE_ACCESS_
|
|
|
201
200
|
interface TermsOfUseAccessRequirement {
|
|
202
201
|
versionNumber: number;
|
|
203
202
|
id: number;
|
|
204
|
-
description: string;
|
|
205
203
|
name: string;
|
|
206
204
|
etag: string;
|
|
207
205
|
createdOn: string;
|
|
@@ -239,6 +237,8 @@ interface AccessRequirementSearchRequest {
|
|
|
239
237
|
sort?: AccessRequirementSearchSort[];
|
|
240
238
|
/** A token used to get the next page of a particular search query. */
|
|
241
239
|
nextPageToken?: string;
|
|
240
|
+
/** Optional filter by the access requirement fully qualified concrete type (e.g. org.sagebionetworks.repo.model.ManagedACTAccessRequirement) */
|
|
241
|
+
type?: string;
|
|
242
242
|
}
|
|
243
243
|
type AccessRequirementSearchResult = {
|
|
244
244
|
/** The id of the AR */
|
|
@@ -306,6 +306,28 @@ type BasicAccessRequirementStatus = {
|
|
|
306
306
|
expiredOn?: string;
|
|
307
307
|
};
|
|
308
308
|
|
|
309
|
+
type UserEntityPermissions = {
|
|
310
|
+
canView: boolean;
|
|
311
|
+
canEdit: boolean;
|
|
312
|
+
canMove: boolean;
|
|
313
|
+
canAddChild: boolean;
|
|
314
|
+
canCertifiedUserEdit: boolean;
|
|
315
|
+
canCertifiedUserAddChild: boolean;
|
|
316
|
+
isCertifiedUser: boolean;
|
|
317
|
+
canChangePermissions: boolean;
|
|
318
|
+
canChangeSettings: boolean;
|
|
319
|
+
canDelete: boolean;
|
|
320
|
+
canDownload: boolean;
|
|
321
|
+
canUpload: boolean;
|
|
322
|
+
canEnableInheritance: boolean;
|
|
323
|
+
ownerPrincipalId: number;
|
|
324
|
+
canPublicRead: boolean;
|
|
325
|
+
canModerate: boolean;
|
|
326
|
+
isCertificationRequired: boolean;
|
|
327
|
+
isEntityOpenData: boolean;
|
|
328
|
+
isUserDataContributor: boolean;
|
|
329
|
+
};
|
|
330
|
+
|
|
309
331
|
declare enum RestrictableObjectType {
|
|
310
332
|
ENTITY = "ENTITY",
|
|
311
333
|
EVALUATION = "EVALUATION",
|
|
@@ -315,14 +337,30 @@ type RestrictionInformationRequest = {
|
|
|
315
337
|
restrictableObjectType: RestrictableObjectType;
|
|
316
338
|
objectId: string;
|
|
317
339
|
};
|
|
340
|
+
type RestrictionInformationBatchRequest = {
|
|
341
|
+
restrictableObjectType: RestrictableObjectType;
|
|
342
|
+
objectIds: string[];
|
|
343
|
+
};
|
|
318
344
|
declare enum RestrictionLevel {
|
|
319
345
|
OPEN = "OPEN",
|
|
320
346
|
RESTRICTED_BY_TERMS_OF_USE = "RESTRICTED_BY_TERMS_OF_USE",
|
|
321
347
|
CONTROLLED_BY_ACT = "CONTROLLED_BY_ACT"
|
|
322
348
|
}
|
|
349
|
+
type RestrictionFulfillment = {
|
|
350
|
+
accessRequirementId: number;
|
|
351
|
+
isApproved: boolean;
|
|
352
|
+
isMet: boolean;
|
|
353
|
+
isExempt: boolean;
|
|
354
|
+
};
|
|
323
355
|
type RestrictionInformationResponse = {
|
|
356
|
+
objectId: number;
|
|
324
357
|
restrictionLevel: RestrictionLevel;
|
|
325
358
|
hasUnmetAccessRequirement: boolean;
|
|
359
|
+
userEntityPermissions?: UserEntityPermissions;
|
|
360
|
+
restrictionDetails: RestrictionFulfillment[];
|
|
361
|
+
};
|
|
362
|
+
type RestrictionInformationBatchResponse = {
|
|
363
|
+
restrictionInformation: RestrictionInformationResponse[];
|
|
326
364
|
};
|
|
327
365
|
|
|
328
366
|
/**
|
|
@@ -549,6 +587,14 @@ declare const scopeDescriptions: {
|
|
|
549
587
|
displayName: string;
|
|
550
588
|
description: string;
|
|
551
589
|
};
|
|
590
|
+
email: {
|
|
591
|
+
displayName: string;
|
|
592
|
+
description: string;
|
|
593
|
+
};
|
|
594
|
+
profile: {
|
|
595
|
+
displayName: string;
|
|
596
|
+
description: string;
|
|
597
|
+
};
|
|
552
598
|
};
|
|
553
599
|
|
|
554
600
|
declare const FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.FacetColumnValuesRequest";
|
|
@@ -619,6 +665,7 @@ type Query = {
|
|
|
619
665
|
sort?: SortItem[];
|
|
620
666
|
additionalFilters?: QueryFilter[];
|
|
621
667
|
selectFileColumn?: number;
|
|
668
|
+
selectFileVersionColumn?: number;
|
|
622
669
|
};
|
|
623
670
|
|
|
624
671
|
type AddFilesToDownloadListRequest = {
|
|
@@ -772,7 +819,7 @@ interface FileHandle {
|
|
|
772
819
|
/** The short, user visible name for this file. */
|
|
773
820
|
fileName: string;
|
|
774
821
|
/** The optional storage location descriptor */
|
|
775
|
-
storageLocationId: number;
|
|
822
|
+
storageLocationId: number | null;
|
|
776
823
|
/** The size of the file in bytes. */
|
|
777
824
|
contentSize: number;
|
|
778
825
|
/** The status of the file handle as computed by the backend. This value cannot be changed, any file handle that is not AVAILABLE should not be used. */
|
|
@@ -930,7 +977,7 @@ type BatchPresignedUploadUrlResponse = {
|
|
|
930
977
|
};
|
|
931
978
|
|
|
932
979
|
declare enum ZipFileFormat {
|
|
933
|
-
CommandLineCache = "CommandLineCache"
|
|
980
|
+
CommandLineCache = "CommandLineCache",// This is the default format. Zip file format structure is: (%1000)//
|
|
934
981
|
Flat = "Flat"
|
|
935
982
|
}
|
|
936
983
|
type BulkFileDownloadRequest = {
|
|
@@ -1126,13 +1173,27 @@ type ChallengeTeam = {
|
|
|
1126
1173
|
etag: string;
|
|
1127
1174
|
challengeId: string;
|
|
1128
1175
|
teamId: string;
|
|
1129
|
-
message
|
|
1176
|
+
message?: string;
|
|
1130
1177
|
};
|
|
1178
|
+
type CreateChallengeTeamRequest = Pick<ChallengeTeam, 'teamId' | 'challengeId' | 'message'>;
|
|
1131
1179
|
type ChallengeTeamPagedResults = {
|
|
1132
1180
|
results: ChallengeTeam[];
|
|
1133
1181
|
totalNumberOfResults: number;
|
|
1134
1182
|
};
|
|
1135
1183
|
|
|
1184
|
+
/**
|
|
1185
|
+
* Used to log in when two-factor authentication is enabled.
|
|
1186
|
+
*
|
|
1187
|
+
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/TwoFactorAuthLoginRequest.html
|
|
1188
|
+
*/
|
|
1189
|
+
type TwoFactorAuthLoginRequest = {
|
|
1190
|
+
userId: number;
|
|
1191
|
+
twoFaToken: string;
|
|
1192
|
+
otpCode: string;
|
|
1193
|
+
otpType: TwoFactorAuthOtpType;
|
|
1194
|
+
};
|
|
1195
|
+
type TwoFactorAuthOtpType = 'TOTP' | 'RECOVERY_CODE';
|
|
1196
|
+
|
|
1136
1197
|
type ChangePasswordInterface = {
|
|
1137
1198
|
newPassword: string;
|
|
1138
1199
|
concreteType: string;
|
|
@@ -1158,6 +1219,18 @@ type PasswordResetSignedToken = {
|
|
|
1158
1219
|
userId: string;
|
|
1159
1220
|
validity: string;
|
|
1160
1221
|
};
|
|
1222
|
+
/**
|
|
1223
|
+
* Used to change the user password when two-factor authentication is enabled. The twoFaToken is generated by the server and included in the 401 response the user tries to update the password with either the old password or a token. Only TOTP and RECOVERY_CODE otp codes can be used for this operation.
|
|
1224
|
+
* http://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/ChangePasswordWithTwoFactorAuthToken.html
|
|
1225
|
+
*/
|
|
1226
|
+
type ChangePasswordWithTwoFactorAuthToken = {
|
|
1227
|
+
newPassword: string;
|
|
1228
|
+
concreteType: string;
|
|
1229
|
+
userId: number;
|
|
1230
|
+
twoFaToken: string;
|
|
1231
|
+
otpCode: string;
|
|
1232
|
+
otpType: TwoFactorAuthOtpType;
|
|
1233
|
+
};
|
|
1161
1234
|
|
|
1162
1235
|
declare enum ObjectType {
|
|
1163
1236
|
ENTITY = "ENTITY",
|
|
@@ -1213,7 +1286,7 @@ interface QuestionResponse {
|
|
|
1213
1286
|
concreteType: string;
|
|
1214
1287
|
}
|
|
1215
1288
|
interface MultichoiceResponse extends QuestionResponse {
|
|
1216
|
-
answerIndex:
|
|
1289
|
+
answerIndex: number[];
|
|
1217
1290
|
concreteType: MULTICHOICE_RESPONSE_CONCRETE_TYPE;
|
|
1218
1291
|
}
|
|
1219
1292
|
interface MultichoiceQuestion extends Question {
|
|
@@ -1251,6 +1324,7 @@ interface PassingRecord {
|
|
|
1251
1324
|
passed: boolean;
|
|
1252
1325
|
passedOn: string;
|
|
1253
1326
|
corrections?: ResponseCorrectness[];
|
|
1327
|
+
revokedOn?: string;
|
|
1254
1328
|
}
|
|
1255
1329
|
|
|
1256
1330
|
type DiscussionReplyBundle = {
|
|
@@ -1735,6 +1809,22 @@ type SnapshotRequest = {
|
|
|
1735
1809
|
snapshotLabel?: string;
|
|
1736
1810
|
snapshotActivityId?: string;
|
|
1737
1811
|
};
|
|
1812
|
+
/**
|
|
1813
|
+
* An AsynchronousResponseBody returned from a table update transaction.
|
|
1814
|
+
*/
|
|
1815
|
+
type TableUpdateTransactionResponse = {
|
|
1816
|
+
concreteType: 'org.sagebionetworks.repo.model.table.TableUpdateTransactionResponse';
|
|
1817
|
+
results: TableUpdateResponse[];
|
|
1818
|
+
snapshotVersionNumber?: number;
|
|
1819
|
+
};
|
|
1820
|
+
/**
|
|
1821
|
+
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/table/TableUpdateResponse.html
|
|
1822
|
+
*/
|
|
1823
|
+
type TableUpdateResponse = TableSchemaChangeResponse;
|
|
1824
|
+
type TableSchemaChangeResponse = {
|
|
1825
|
+
concreteType: 'org.sagebionetworks.repo.model.table.TableSchemaChangeResponse';
|
|
1826
|
+
schema: ColumnModel[];
|
|
1827
|
+
};
|
|
1738
1828
|
|
|
1739
1829
|
declare enum EntityType {
|
|
1740
1830
|
PROJECT = "project",
|
|
@@ -1800,6 +1890,15 @@ interface VirtualTable extends Table {
|
|
|
1800
1890
|
definingSQL: string;
|
|
1801
1891
|
}
|
|
1802
1892
|
|
|
1893
|
+
type ValidateDefiningSqlResponse = {
|
|
1894
|
+
isValid: boolean;
|
|
1895
|
+
invalidReason?: string;
|
|
1896
|
+
};
|
|
1897
|
+
type ValidateDefiningSqlRequest = {
|
|
1898
|
+
sql: string;
|
|
1899
|
+
entityType: EntityType;
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1803
1902
|
type AddToDownloadListRequest = {
|
|
1804
1903
|
concreteType: 'org.sagebionetworks.repo.model.download.AddToDownloadListRequest';
|
|
1805
1904
|
query?: Query;
|
|
@@ -1906,27 +2005,6 @@ type RemoveBatchOfFilesFromDownloadListResponse = {
|
|
|
1906
2005
|
numberOfFilesRemoved: number;
|
|
1907
2006
|
};
|
|
1908
2007
|
|
|
1909
|
-
type UserEntityPermissions = {
|
|
1910
|
-
canView: boolean;
|
|
1911
|
-
canEdit: boolean;
|
|
1912
|
-
canMove: boolean;
|
|
1913
|
-
canAddChild: boolean;
|
|
1914
|
-
canCertifiedUserEdit: boolean;
|
|
1915
|
-
canCertifiedUserAddChild: boolean;
|
|
1916
|
-
isCertifiedUser: boolean;
|
|
1917
|
-
canChangePermissions: boolean;
|
|
1918
|
-
canChangeSettings: boolean;
|
|
1919
|
-
canDelete: boolean;
|
|
1920
|
-
canDownload: boolean;
|
|
1921
|
-
canUpload: boolean;
|
|
1922
|
-
canEnableInheritance: boolean;
|
|
1923
|
-
ownerPrincipalId: number;
|
|
1924
|
-
canPublicRead: boolean;
|
|
1925
|
-
canModerate: boolean;
|
|
1926
|
-
isCertificationRequired: boolean;
|
|
1927
|
-
isEntityOpenData: boolean;
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
2008
|
/**
|
|
1931
2009
|
* The entity bundle type defined by Synapse. We are using Typescript to generate a more strongly-typed EntityBundle based on the passed EntityBundleRequest, which is exported below.
|
|
1932
2010
|
*
|
|
@@ -1939,11 +2017,11 @@ type _EntityBundle = {
|
|
|
1939
2017
|
permissions: UserEntityPermissions;
|
|
1940
2018
|
path: EntityPath;
|
|
1941
2019
|
hasChildren: boolean;
|
|
1942
|
-
accessControlList: AccessControlList;
|
|
1943
2020
|
fileHandles: FileHandle[];
|
|
1944
2021
|
benefactorAcl: AccessControlList;
|
|
1945
2022
|
threadCount: number;
|
|
1946
2023
|
restrictionInformation: RestrictionInformationResponse;
|
|
2024
|
+
accessControlList?: AccessControlList;
|
|
1947
2025
|
tableBundle?: TableBundle;
|
|
1948
2026
|
rootWikiId?: string;
|
|
1949
2027
|
doiAssociation?: DoiAssociation;
|
|
@@ -2045,7 +2123,7 @@ type EntityChildrenRequest = {
|
|
|
2045
2123
|
};
|
|
2046
2124
|
type EntityChildrenResponse = {
|
|
2047
2125
|
page: EntityHeader[];
|
|
2048
|
-
nextPageToken: string |
|
|
2126
|
+
nextPageToken: string | undefined;
|
|
2049
2127
|
totalChildCount?: number;
|
|
2050
2128
|
sumFileSizesBytes?: number;
|
|
2051
2129
|
};
|
|
@@ -2132,7 +2210,8 @@ type GetEvaluationParameters = {
|
|
|
2132
2210
|
accessType?: ACCESS_TYPE;
|
|
2133
2211
|
activeOnly?: boolean;
|
|
2134
2212
|
evaluationIds?: string[];
|
|
2135
|
-
|
|
2213
|
+
limit?: number;
|
|
2214
|
+
offset?: number;
|
|
2136
2215
|
};
|
|
2137
2216
|
|
|
2138
2217
|
type UserEvaluationPermissions = {
|
|
@@ -2161,6 +2240,14 @@ type QueryTableResults = {
|
|
|
2161
2240
|
type FavoriteSortBy = 'FAVORITED_ON' | 'NAME';
|
|
2162
2241
|
type FavoriteSortDirection = 'ASC' | 'DESC';
|
|
2163
2242
|
|
|
2243
|
+
type FeatureFlags = Record<FeatureFlagEnum, boolean>;
|
|
2244
|
+
declare enum FeatureFlagEnum {
|
|
2245
|
+
DESCRIPTION_FIELD = "DESCRIPTION_FIELD",
|
|
2246
|
+
VIRTUALTABLE_SUPPORT = "VIRTUALTABLE_SUPPORT",
|
|
2247
|
+
JSONSCHEMA_VALIDATION_STATUS = "JSONSCHEMA_VALIDATION_STATUS",
|
|
2248
|
+
REACT_ENTITY_ACL_EDITOR = "REACT_ENTITY_ACL_EDITOR"
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2164
2251
|
type FileHandleResults = {
|
|
2165
2252
|
list: FileHandle[];
|
|
2166
2253
|
};
|
|
@@ -2238,9 +2325,9 @@ type HasAccessResponse = {
|
|
|
2238
2325
|
type Team = {
|
|
2239
2326
|
id: string;
|
|
2240
2327
|
name: string;
|
|
2241
|
-
description
|
|
2242
|
-
icon
|
|
2243
|
-
canPublicJoin
|
|
2328
|
+
description?: string;
|
|
2329
|
+
icon?: string;
|
|
2330
|
+
canPublicJoin?: boolean;
|
|
2244
2331
|
canRequestMembership?: boolean;
|
|
2245
2332
|
etag: string;
|
|
2246
2333
|
createdOn: string;
|
|
@@ -2248,6 +2335,7 @@ type Team = {
|
|
|
2248
2335
|
createdBy: string;
|
|
2249
2336
|
modifiedBy: string;
|
|
2250
2337
|
};
|
|
2338
|
+
type CreateTeamRequest = Pick<Team, 'name' | 'description' | 'canPublicJoin' | 'canRequestMembership' | 'icon'>;
|
|
2251
2339
|
|
|
2252
2340
|
type ListWrapper<T = Team | Entity> = {
|
|
2253
2341
|
concreteType?: string;
|
|
@@ -2278,13 +2366,14 @@ declare const MARKDOWN_COMMANDS_DATA: MarkdownEditorCommands;
|
|
|
2278
2366
|
type MembershipInvitation = {
|
|
2279
2367
|
id: string;
|
|
2280
2368
|
teamId: string;
|
|
2281
|
-
inviteeId
|
|
2282
|
-
inviteeEmail
|
|
2283
|
-
message
|
|
2284
|
-
expiresOn
|
|
2369
|
+
inviteeId?: string;
|
|
2370
|
+
inviteeEmail?: string;
|
|
2371
|
+
message?: string;
|
|
2372
|
+
expiresOn?: string;
|
|
2285
2373
|
createdOn: string;
|
|
2286
2374
|
createdBy: string;
|
|
2287
2375
|
};
|
|
2376
|
+
type CreateMembershipInvitationRequest = Pick<MembershipInvitation, 'teamId' | 'inviteeId' | 'inviteeEmail' | 'expiresOn' | 'message'>;
|
|
2288
2377
|
|
|
2289
2378
|
type MessageToUser = {
|
|
2290
2379
|
id: string;
|
|
@@ -2338,7 +2427,6 @@ type MultipartUploadStatus = {
|
|
|
2338
2427
|
partsState: string;
|
|
2339
2428
|
state: 'UPLOADING' | 'COMPLETED';
|
|
2340
2429
|
resultFileHandleId: string;
|
|
2341
|
-
clientSidePartsState?: boolean[];
|
|
2342
2430
|
};
|
|
2343
2431
|
|
|
2344
2432
|
/**
|
|
@@ -2894,6 +2982,7 @@ type MembershipRequest = {
|
|
|
2894
2982
|
createdOn: string;
|
|
2895
2983
|
createdBy: string;
|
|
2896
2984
|
};
|
|
2985
|
+
type CreateMembershipRequestRequest = Pick<MembershipRequest, 'teamId' | 'userId' | 'message' | 'expiresOn'>;
|
|
2897
2986
|
type TeamMembershipStatus = {
|
|
2898
2987
|
teamId: string;
|
|
2899
2988
|
userId: string;
|
|
@@ -2948,17 +3037,28 @@ type TrashedEntity = {
|
|
|
2948
3037
|
};
|
|
2949
3038
|
|
|
2950
3039
|
/**
|
|
2951
|
-
*
|
|
3040
|
+
* Allows to disable two-factor authentication for the user account
|
|
2952
3041
|
*
|
|
2953
|
-
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/
|
|
3042
|
+
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/TwoFactorAuthDisableRequest.html
|
|
2954
3043
|
*/
|
|
2955
|
-
type
|
|
3044
|
+
type TwoFactorAuthDisableRequest = {
|
|
3045
|
+
twoFaResetToken: TwoFactorAuthResetToken;
|
|
3046
|
+
password?: string;
|
|
3047
|
+
twoFaToken?: string;
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* Signed token containing the information necessary to reset 2fa for a user.
|
|
3051
|
+
*
|
|
3052
|
+
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/TwoFactorAuthResetToken.html
|
|
3053
|
+
*/
|
|
3054
|
+
type TwoFactorAuthResetToken = {
|
|
3055
|
+
concreteType: 'org.sagebionetworks.repo.model.auth.TwoFactorAuthResetToken';
|
|
3056
|
+
hmac: string;
|
|
3057
|
+
version: number;
|
|
3058
|
+
expiresOn: string;
|
|
3059
|
+
createdOn: string;
|
|
2956
3060
|
userId: number;
|
|
2957
|
-
twoFaToken: string;
|
|
2958
|
-
otpCode: string;
|
|
2959
|
-
otpType: TwoFactorAuthOtpType;
|
|
2960
3061
|
};
|
|
2961
|
-
type TwoFactorAuthOtpType = 'TOTP' | 'RECOVERY_CODE';
|
|
2962
3062
|
|
|
2963
3063
|
/**
|
|
2964
3064
|
* A list of recovery codes that can be used as a backup in place of TOTPs when performing two factor authentication.
|
|
@@ -2969,6 +3069,18 @@ type TwoFactorAuthRecoveryCodes = {
|
|
|
2969
3069
|
codes: string[];
|
|
2970
3070
|
};
|
|
2971
3071
|
|
|
3072
|
+
/**
|
|
3073
|
+
* Used to request a two fa reset token to be sent by email, can be requested with a twoFaToken returned by an authentication attempt.
|
|
3074
|
+
*
|
|
3075
|
+
* https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/auth/TwoFactorAuthResetRequest.html
|
|
3076
|
+
*/
|
|
3077
|
+
type TwoFactorAuthResetRequest = {
|
|
3078
|
+
userId: number;
|
|
3079
|
+
password?: string;
|
|
3080
|
+
twoFaToken?: string;
|
|
3081
|
+
twoFaResetEndpoint: string;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
2972
3084
|
type VerificationSubmission = {
|
|
2973
3085
|
id?: string;
|
|
2974
3086
|
createdOn?: string;
|
|
@@ -3046,6 +3158,7 @@ type UserProfile = {
|
|
|
3046
3158
|
notificationSettings?: Settings;
|
|
3047
3159
|
preferences?: UserPreference[];
|
|
3048
3160
|
createdOn?: string;
|
|
3161
|
+
twoFactorAuthEnabled?: boolean;
|
|
3049
3162
|
clientPreSignedURL?: string;
|
|
3050
3163
|
};
|
|
3051
3164
|
|
|
@@ -3089,7 +3202,7 @@ type WikiPage = {
|
|
|
3089
3202
|
modifiedBy: string;
|
|
3090
3203
|
modifiedOn: string;
|
|
3091
3204
|
title: string;
|
|
3092
|
-
|
|
3205
|
+
parentWikiId?: string;
|
|
3093
3206
|
};
|
|
3094
3207
|
|
|
3095
|
-
export { ACCESS_REQUIREMENT_CONCRETE_TYPE, ACCESS_TYPE, ACTAccessRequirement, ACTAccessRequirementInterface, ACTSubmissionStatus, ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE, ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, ACT_ACCESS_REQUIREMENT_INTERFACE_CONCRETE_TYPE, ALL_ENTITY_BUNDLE_FIELDS, AccessApproval, AccessApprovalSearchRequest, AccessApprovalSearchResponse, AccessApprovalSearchResult, AccessApprovalSearchSort, AccessApprovalSortField, AccessCodeResponse, AccessControlList, AccessRequirement, AccessRequirementSearchRequest, AccessRequirementSearchResponse, AccessRequirementSearchResult, AccessRequirementSearchSort, AccessRequirementStatus, AccessTokenGenerationRequest, AccessTokenGenerationResponse, AccessTokenRecord, AccessTokenRecordList, AccessType, AccessorChange, AccountSetupInfo, Action, ActionRequiredCount, ActionRequiredList, ActionRequiredRequest, ActionRequiredResponse, Activity, AddBatchOfFilesToDownloadListRequest, AddBatchOfFilesToDownloadListResponse, AddFilesToDownloadListRequest, AddFilesToDownloadListResponse, AddPartResponse, AddToDownloadListRequest, AddToDownloadListResponse, AliasCheckRequest, AliasCheckResponse, AliasType, Annotations, AnnotationsValue, AnnotationsValueType, AppendableRowSetRequest, ApprovalState, AsyncJobId, AsynchJobState, AsynchronousJobStatus, AttachmentMetadata, AuthenticatedOn, AvailableFilesRequest, AvailableFilesResponse, AvailableFilter, BaseKeyUploadDestination, BasicAccessRequirementStatus, BatchFileRequest, BatchFileResult, BatchPresignedUploadUrlRequest, BatchPresignedUploadUrlResponse, BoundObjectType, BulkFileDownloadRequest, BulkFileDownloadResponse, CLOUD_PROVIDER_FILE_HANDLE_INTERFACE_CONCRETE_TYPE, COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE, COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE_VALUE, COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE, COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE_VALUE, Challenge, ChallengePagedResults, ChallengeTeam, ChallengeTeamPagedResults, ChallengeWithProjectHeader, ChallengeWithProjectHeaderPagedResults, ChangePasswordInterface, ChangePasswordWithCurrentPassword, ChangePasswordWithToken, CloudProviderFileHandleInterface, ColumnChange, ColumnModel, ColumnMultiValueFunction, ColumnMultiValueFunctionQueryFilter, ColumnSingleValueFilterOperator, ColumnSingleValueQueryFilter, ColumnType, ColumnTypeEnum, CommandListType, CreateDiscussionReply, CreateDiscussionThread, CreateSubmissionRequest, CsvTableDescriptor, DATASET_COLLECTION_CONCRETE_TYPE, DATASET_COLLECTION_CONCRETE_TYPE_VALUE, DATASET_CONCRETE_TYPE, DATASET_CONCRETE_TYPE_VALUE, DOCKER_REPOSITORY_CONCRETE_TYPE, DOCKER_REPOSITORY_CONCRETE_TYPE_VALUE, Dataset, DatasetCollection, Direction, DiscussionFilter, DiscussionReplyBundle, DiscussionReplyOrder, DiscussionSearchRequest, DiscussionSearchResponse, DiscussionThreadBundle, DiscussionThreadOrder, DockerCommit, DockerRepository, DoiAssociation, DownloadFromTableRequest, DownloadFromTableResult, DownloadList, DownloadListItem, DownloadListItemResult, DownloadListManifestRequest, DownloadListManifestResponse, DownloadListPackageRequest, DownloadListPackageResponse, DownloadListQueryRequest, DownloadListQueryResponse, DownloadListSortDirection, DownloadOrder, ENTITY_CONCRETE_TYPE, ENTITY_VIEW_CONCRETE_TYPE, ENTITY_VIEW_CONCRETE_TYPE_VALUE, ENTITY_VIEW_TYPE_MASK_DATASET, ENTITY_VIEW_TYPE_MASK_DOCKER, ENTITY_VIEW_TYPE_MASK_FILE, ENTITY_VIEW_TYPE_MASK_FOLDER, ENTITY_VIEW_TYPE_MASK_PROJECT, ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW, ENTITY_VIEW_TYPE_MASK_TABLE, ENTITY_VIEW_TYPE_MASK_VIEW, EXTERNAL_FILE_HANDLE_CONCRETE_TYPE, EXTERNAL_FILE_HANDLE_CONCRETE_TYPE_VALUE, EXTERNAL_FILE_HANDLE_INTERFACE_CONCRETE_TYPE, EXTERNAL_GOOGLE_CLOUD_UPLOAD_DESTINATION_CONCRETE_TYPE, EXTERNAL_OBJECT_STORE_FILE_HANDLE_CONCRETE_TYPE, EXTERNAL_OBJECT_STORE_FILE_HANDLE_CONCRETE_TYPE_VALUE, EXTERNAL_S3_UPLOAD_DESTINATION_CONCRETE_TYPE, EmailValidationSignedToken, EnableTwoFa, Entity, EntityBundle, EntityBundleRequest, EntityChildrenRequest, EntityChildrenResponse, EntityHeader, EntityId, EntityJson, EntityJsonValue, EntityLookupRequest, EntityPath, EntityRef, EntityRefCollectionView, EntityType, EntityView, ErrorResponse, ErrorResponseCode, Evaluation, EvaluationQueryRow, EvaluationRound, EvaluationRoundLimit, EvaluationRoundLimitType, EvaluationRoundListRequest, EvaluationRoundListResponse, EvaluationSubmission, ExternalFileHandle, ExternalFileHandleInterface, ExternalGoogleCloudUploadDestination, ExternalObjectStoreFileHandle, ExternalObjectStoreUploadDestination, ExternalS3UploadDestination, ExternalUploadDestination, FACET_COLUMN_RANGE_REQUEST_CONCRETE_TYPE, FACET_COLUMN_RANGE_REQUEST_CONCRETE_TYPE_VALUE, FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE, FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE_VALUE, FILE_ENTITY_CONCRETE_TYPE, FILE_ENTITY_CONCRETE_TYPE_VALUE, FOLDER_CONCRETE_TYPE, FOLDER_CONCRETE_TYPE_VALUE, Facet, FacetColumnRangeRequest, FacetColumnRequest, FacetColumnResult, FacetColumnResultRange, FacetColumnResultValueCount, FacetColumnResultValues, FacetColumnValuesRequest, FacetConstraint, FacetType, FacetTypeNames, FavoriteSortBy, FavoriteSortDirection, FileDownloadCode, FileDownloadStatus, FileDownloadSummary, FileEntity, FileHandle, FileHandleAssociateType, FileHandleAssociation, FileHandleResults, FileResult, FileUploadComplete, FilesCountStatistics, FilesStatisticsRequest, FilesStatisticsResponse, Folder, FormChangeRequest, FormData, FormGroup, FormRejection, Forum, GOOGLE_CLOUD_FILE_HANDLE_CONCRETE_TYPE, GOOGLE_CLOUD_FILE_HANDLE_CONCRETE_TYPE_VALUE, GetEvaluationParameters, GetProjectsParameters, GoogleCloudFileHandle, HasAccessResponse, Hit, INVITEE_VERIFICATION_CONCRETE_TYPE, INVITEE_VERIFICATION_CONCRETE_TYPE_VALUE, InviteeVerificationSignedToken, JOIN_TEAM_CONCRETE_TYPE, JOIN_TEAM_CONCRETE_TYPE_VALUE, JoinTeamSignedToken, JsonSchemaObjectBinding, JsonSchemaVersionInfo, JsonSubColumnModel, KeyRange, KeyValue, KeyValuePair, LINK_CONCRETE_TYPE, LINK_CONCRETE_TYPE_VALUE, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, Link, ListRequest, ListResponse, ListWrapper, LockAccessRequirement, LoginRequest, LoginResponse, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, MARKDOWN_COMMANDS_DATA, MATERIALIZED_VIEW_CONCRETE_TYPE, MATERIALIZED_VIEW_CONCRETE_TYPE_VALUE, MEMBERSHIP_INVITATION_CONCRETE_TYPE, MEMBERSHIP_INVITATION_CONCRETE_TYPE_VALUE, MULTICHOICE_RESPONSE_CONCRETE_TYPE, MULTICHOICE_RESPONSE_CONCRETE_TYPE_VALUE, ManagedACTAccessRequirement, ManagedACTAccessRequirementStatus, MarkdownEditorCommandData, MarkdownEditorCommands, Match, MaterializedView, MeetAccessRequirement, MemberSubmissionEligibility, MembershipInvitation, MembershipInvtnSignedToken, MembershipRequest, MessageBundle, MessageToUser, MessageURL, MonthlyFilesStatistics, MultichoiceAnswer, MultichoiceQuestion, MultichoiceResponse, MultipartUploadRequest, MultipartUploadStatus, NewUser, NotificationEmail, OAuthClient, OAuthClientIdAndSecret, OAuthClientList, OAuthClientPublic, OAuthClientVerificationPrecheckResult, OAuthConsentGrantedResponse, OIDCAuthorizationRequest, OIDCAuthorizationRequestDescription, OIDCSigningAlgorithm, ObjectType, PROJECT_CONCRETE_TYPE, PROJECT_CONCRETE_TYPE_VALUE, PROXY_FILE_HANDLE_CONCRETE_TYPE, PROXY_FILE_HANDLE_CONCRETE_TYPE_VALUE, PaginatedIds, PaginatedResults, PartPresignedUrl, PartialRow, PartialRowSet, PassingRecord, PasswordResetSignedToken, PrincipalAliasRequest, PrincipalAliasResponse, Project, ProjectFilesStatisticsRequest, ProjectFilesStatisticsResponse, ProjectHeader, ProjectHeaderList, ProxyFileHandle, Query, QueryBundleRequest, QueryFilter, QueryNextPageToken, QueryRequestDetails, QueryResponseDetails, QueryResult, QueryResultBundle, QueryTableResults, Question, QuestionResponse, Quiz, QuizResponse, Reference, ReferenceList, RemoveBatchOfFilesFromDownloadListRequest, RemoveBatchOfFilesFromDownloadListResponse, Renewal, Request, RequestDownload, RequestInterface, ResearchProject, ResourceAccess, ResponseCorrectness, ResponseMessage, RestrictableObjectDescriptor, RestrictableObjectType, RestrictionInformationRequest, RestrictionInformationResponse, RestrictionLevel, Row, RowSet, S3FileHandle, S3UploadDestination, S3_FILE_HANDLE_CONCRETE_TYPE, S3_FILE_HANDLE_CONCRETE_TYPE_VALUE, S3_UPLOAD_DESTINATION_CONCRETE_TYPE, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, SELF_SIGN_ACCESS_REQUIREMENT_INTERFACE_CONCRETE_TYPE, SIGNED_TOKEN_CONCRETE_TYPE, SUBMISSION_VIEW_CONCRETE_TYPE, SUBMISSION_VIEW_CONCRETE_TYPE_VALUE, SchemaObjectType, SearchFacetOption, SearchFacetSort, SearchFieldName, SearchQuery, SearchResults, SelectColumn, SelfSignAccessRequirement, SelfSignAccessRequirementInterface, Settings, SignedTokenInterface, SnapshotRequest, Sort, SortBy, SortByType, SortDirection, SortField, SortItem, StatusEnum, StsUploadDestination, Submission, SubmissionContributor, SubmissionEligibility, SubmissionInfo, SubmissionInfoPage, SubmissionInfoPageRequest, SubmissionPage, SubmissionQuota, SubmissionReviewerFilterType, SubmissionSearchRequest, SubmissionSearchResponse, SubmissionSearchResult, SubmissionSearchSort, SubmissionSortField, SubmissionState, SubmissionStateChangeRequest, SubmissionStatus, SubmissionView, SubscriberPagedResults, Subscription, SubscriptionObjectType, SubscriptionPagedResults, SubscriptionQuery, SubscriptionRequest, SumFileSizes, SynapseVersion, TABLE_CONCRETE_TYPE, TABLE_CONCRETE_TYPE_VALUES, TABLE_ENTITY_CONCRETE_TYPE, TABLE_ENTITY_CONCRETE_TYPE_VALUE, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE, TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE_VALUE, TYPE_FILTER, Table, TableBundle, TableEntity, TableSchemaChangeRequest, TableUpdateRequest, TableUpdateTransactionRequest, Team, TeamMember, TeamMembershipStatus, TeamSubmissionEligibility, TermsOfUseAccessRequirement, TextMatchesQueryFilter, Topic, TotpSecret, TotpSecretActivationRequest, TrashedEntity, TwoFactorAuthErrorResponse, TwoFactorAuthLoginRequest, TwoFactorAuthOtpType, TwoFactorAuthRecoveryCodes, TwoFactorAuthStatus, USED_ENTITY_CONCRETE_TYPE, USED_ENTITY_CONCRETE_TYPE_VALUE, USED_URL_CONCRETE_TYPE, USED_URL_CONCRETE_TYPE_VALUE, UpdateDiscussionReply, UpdateThreadMessageRequest, UpdateThreadTitleRequest, UploadCallbackResp, UploadDestination, UploadType, Used, UsedEntity, UsedURL, UserBundle, UserEntityPermissions, UserEvaluationPermissions, UserGroupHeader, UserGroupHeaderResponse, UserGroupHeaderResponsePage, UserPreference, UserPreferenceBoolean, UserPreferenceInterface, UserProfile, VERSIONABLE_ENTITY_CONCRETE_TYPE, VERSIONABLE_ENTITY_CONCRETE_TYPE_VALUES, VIEW_CONCRETE_TYPE, VIEW_CONCRETE_TYPE_VALUES, VIRTUAL_TABLE_CONCRETE_TYPE, VIRTUAL_TABLE_CONCRETE_TYPE_VALUE, ValidationException, ValidationResults, VerificationState, VerificationStateEnum, VerificationSubmission, VersionInfo, Versionable, VersionableEntity, View, ViewColumnModelRequest, ViewColumnModelResponse, ViewEntityType, ViewScope, VirtualTable, WikiPage, WikiPageKey, ZipFileFormat, commandList, isJoinTeamSignedToken, isMembershipInvtnSignedToken, scopeDescriptions };
|
|
3208
|
+
export { type ACCESS_REQUIREMENT_CONCRETE_TYPE, ACCESS_TYPE, type ACTAccessRequirement, type ACTAccessRequirementInterface, type ACTSubmissionStatus, type ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE, ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, type ACT_ACCESS_REQUIREMENT_INTERFACE_CONCRETE_TYPE, ALL_ENTITY_BUNDLE_FIELDS, type AccessApproval, type AccessApprovalSearchRequest, type AccessApprovalSearchResponse, type AccessApprovalSearchResult, type AccessApprovalSearchSort, AccessApprovalSortField, type AccessCodeResponse, type AccessControlList, type AccessRequirement, type AccessRequirementSearchRequest, type AccessRequirementSearchResponse, type AccessRequirementSearchResult, type AccessRequirementSearchSort, type AccessRequirementStatus, type AccessTokenGenerationRequest, type AccessTokenGenerationResponse, type AccessTokenRecord, type AccessTokenRecordList, AccessType, type AccessorChange, type AccountSetupInfo, type Action, type ActionRequiredCount, type ActionRequiredList, type ActionRequiredRequest, type ActionRequiredResponse, type Activity, type AddBatchOfFilesToDownloadListRequest, type AddBatchOfFilesToDownloadListResponse, type AddFilesToDownloadListRequest, type AddFilesToDownloadListResponse, type AddPartResponse, type AddToDownloadListRequest, type AddToDownloadListResponse, type AliasCheckRequest, type AliasCheckResponse, AliasType, type Annotations, type AnnotationsValue, AnnotationsValueType, type AppendableRowSetRequest, ApprovalState, type AsyncJobId, type AsynchJobState, type AsynchronousJobStatus, type AttachmentMetadata, type AuthenticatedOn, type AvailableFilesRequest, type AvailableFilesResponse, type AvailableFilter, type BaseKeyUploadDestination, type BasicAccessRequirementStatus, type BatchFileRequest, type BatchFileResult, type BatchPresignedUploadUrlRequest, type BatchPresignedUploadUrlResponse, BoundObjectType, type BulkFileDownloadRequest, type BulkFileDownloadResponse, type CLOUD_PROVIDER_FILE_HANDLE_INTERFACE_CONCRETE_TYPE, type COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE, COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE_VALUE, type COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE, COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE_VALUE, type Challenge, type ChallengePagedResults, type ChallengeTeam, type ChallengeTeamPagedResults, type ChallengeWithProjectHeader, type ChallengeWithProjectHeaderPagedResults, type ChangePasswordInterface, type ChangePasswordWithCurrentPassword, type ChangePasswordWithToken, type ChangePasswordWithTwoFactorAuthToken, type CloudProviderFileHandleInterface, type ColumnChange, type ColumnModel, ColumnMultiValueFunction, type ColumnMultiValueFunctionQueryFilter, ColumnSingleValueFilterOperator, type ColumnSingleValueQueryFilter, type ColumnType, ColumnTypeEnum, type CommandListType, type CreateAccessApprovalRequest, type CreateChallengeTeamRequest, type CreateDiscussionReply, type CreateDiscussionThread, type CreateMembershipInvitationRequest, type CreateMembershipRequestRequest, type CreateSubmissionRequest, type CreateTeamRequest, type CsvTableDescriptor, type DATASET_COLLECTION_CONCRETE_TYPE, DATASET_COLLECTION_CONCRETE_TYPE_VALUE, type DATASET_CONCRETE_TYPE, DATASET_CONCRETE_TYPE_VALUE, type DOCKER_REPOSITORY_CONCRETE_TYPE, DOCKER_REPOSITORY_CONCRETE_TYPE_VALUE, type Dataset, type DatasetCollection, Direction, DiscussionFilter, type DiscussionReplyBundle, DiscussionReplyOrder, type DiscussionSearchRequest, type DiscussionSearchResponse, type DiscussionThreadBundle, DiscussionThreadOrder, type DockerCommit, type DockerRepository, type DoiAssociation, type DownloadFromTableRequest, type DownloadFromTableResult, type DownloadList, type DownloadListItem, type DownloadListItemResult, type DownloadListManifestRequest, type DownloadListManifestResponse, type DownloadListPackageRequest, type DownloadListPackageResponse, type DownloadListQueryRequest, type DownloadListQueryResponse, type DownloadListSortDirection, type DownloadOrder, type ENTITY_CONCRETE_TYPE, type ENTITY_VIEW_CONCRETE_TYPE, ENTITY_VIEW_CONCRETE_TYPE_VALUE, ENTITY_VIEW_TYPE_MASK_DATASET, ENTITY_VIEW_TYPE_MASK_DOCKER, ENTITY_VIEW_TYPE_MASK_FILE, ENTITY_VIEW_TYPE_MASK_FOLDER, ENTITY_VIEW_TYPE_MASK_PROJECT, ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW, ENTITY_VIEW_TYPE_MASK_TABLE, ENTITY_VIEW_TYPE_MASK_VIEW, type EXTERNAL_FILE_HANDLE_CONCRETE_TYPE, EXTERNAL_FILE_HANDLE_CONCRETE_TYPE_VALUE, type EXTERNAL_FILE_HANDLE_INTERFACE_CONCRETE_TYPE, type EXTERNAL_GOOGLE_CLOUD_UPLOAD_DESTINATION_CONCRETE_TYPE, type EXTERNAL_OBJECT_STORE_FILE_HANDLE_CONCRETE_TYPE, EXTERNAL_OBJECT_STORE_FILE_HANDLE_CONCRETE_TYPE_VALUE, type EXTERNAL_S3_UPLOAD_DESTINATION_CONCRETE_TYPE, type EmailValidationSignedToken, type EnableTwoFa, type Entity, type EntityBundle, type EntityBundleRequest, type EntityChildrenRequest, type EntityChildrenResponse, type EntityHeader, type EntityId, type EntityJson, type EntityJsonValue, type EntityLookupRequest, type EntityPath, type EntityRef, type EntityRefCollectionView, EntityType, type EntityView, type ErrorResponse, ErrorResponseCode, type Evaluation, type EvaluationQueryRow, type EvaluationRound, type EvaluationRoundLimit, type EvaluationRoundLimitType, type EvaluationRoundListRequest, type EvaluationRoundListResponse, type EvaluationSubmission, type ExternalFileHandle, type ExternalFileHandleInterface, type ExternalGoogleCloudUploadDestination, type ExternalObjectStoreFileHandle, type ExternalObjectStoreUploadDestination, type ExternalS3UploadDestination, type ExternalUploadDestination, type FACET_COLUMN_RANGE_REQUEST_CONCRETE_TYPE, FACET_COLUMN_RANGE_REQUEST_CONCRETE_TYPE_VALUE, type FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE, FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE_VALUE, type FILE_ENTITY_CONCRETE_TYPE, FILE_ENTITY_CONCRETE_TYPE_VALUE, type FOLDER_CONCRETE_TYPE, FOLDER_CONCRETE_TYPE_VALUE, type Facet, type FacetColumnRangeRequest, type FacetColumnRequest, type FacetColumnResult, type FacetColumnResultRange, type FacetColumnResultValueCount, type FacetColumnResultValues, type FacetColumnValuesRequest, type FacetConstraint, type FacetType, FacetTypeNames, type FavoriteSortBy, type FavoriteSortDirection, FeatureFlagEnum, type FeatureFlags, FileDownloadCode, FileDownloadStatus, type FileDownloadSummary, type FileEntity, type FileHandle, FileHandleAssociateType, type FileHandleAssociation, type FileHandleResults, type FileResult, type FileUploadComplete, type FilesCountStatistics, type FilesStatisticsRequest, type FilesStatisticsResponse, type Folder, type FormChangeRequest, type FormData, type FormGroup, type FormRejection, type Forum, type GOOGLE_CLOUD_FILE_HANDLE_CONCRETE_TYPE, GOOGLE_CLOUD_FILE_HANDLE_CONCRETE_TYPE_VALUE, type GetEvaluationParameters, type GetProjectsParameters, type GoogleCloudFileHandle, type HasAccessResponse, type Hit, type INVITEE_VERIFICATION_CONCRETE_TYPE, INVITEE_VERIFICATION_CONCRETE_TYPE_VALUE, type InviteeVerificationSignedToken, type JOIN_TEAM_CONCRETE_TYPE, JOIN_TEAM_CONCRETE_TYPE_VALUE, type JoinTeamSignedToken, type JsonSchemaObjectBinding, type JsonSchemaVersionInfo, type JsonSubColumnModel, type KeyRange, type KeyValue, type KeyValuePair, type LINK_CONCRETE_TYPE, LINK_CONCRETE_TYPE_VALUE, type LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, LOCK_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, type Link, type ListRequest, type ListResponse, type ListWrapper, type LockAccessRequirement, type LoginRequest, type LoginResponse, type MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, MARKDOWN_COMMANDS_DATA, type MATERIALIZED_VIEW_CONCRETE_TYPE, MATERIALIZED_VIEW_CONCRETE_TYPE_VALUE, type MEMBERSHIP_INVITATION_CONCRETE_TYPE, MEMBERSHIP_INVITATION_CONCRETE_TYPE_VALUE, type MULTICHOICE_RESPONSE_CONCRETE_TYPE, MULTICHOICE_RESPONSE_CONCRETE_TYPE_VALUE, type ManagedACTAccessRequirement, type ManagedACTAccessRequirementStatus, type MarkdownEditorCommandData, type MarkdownEditorCommands, type Match, type MaterializedView, type MeetAccessRequirement, type MemberSubmissionEligibility, type MembershipInvitation, type MembershipInvtnSignedToken, type MembershipRequest, type MessageBundle, type MessageToUser, type MessageURL, type MonthlyFilesStatistics, type MultichoiceAnswer, type MultichoiceQuestion, type MultichoiceResponse, type MultipartUploadRequest, type MultipartUploadStatus, type NewUser, type NotificationEmail, type OAuthClient, type OAuthClientIdAndSecret, type OAuthClientList, type OAuthClientPublic, type OAuthClientVerificationPrecheckResult, type OAuthConsentGrantedResponse, type OIDCAuthorizationRequest, type OIDCAuthorizationRequestDescription, OIDCSigningAlgorithm, ObjectType, type PROJECT_CONCRETE_TYPE, PROJECT_CONCRETE_TYPE_VALUE, type PROXY_FILE_HANDLE_CONCRETE_TYPE, PROXY_FILE_HANDLE_CONCRETE_TYPE_VALUE, type PaginatedIds, type PaginatedResults, type PartPresignedUrl, type PartialRow, type PartialRowSet, type PassingRecord, type PasswordResetSignedToken, type PrincipalAliasRequest, type PrincipalAliasResponse, type Project, type ProjectFilesStatisticsRequest, type ProjectFilesStatisticsResponse, type ProjectHeader, type ProjectHeaderList, type ProxyFileHandle, type Query, type QueryBundleRequest, type QueryFilter, type QueryNextPageToken, type QueryRequestDetails, type QueryResponseDetails, type QueryResult, type QueryResultBundle, type QueryTableResults, type Question, type QuestionResponse, type Quiz, type QuizResponse, type Reference, type ReferenceList, type RemoveBatchOfFilesFromDownloadListRequest, type RemoveBatchOfFilesFromDownloadListResponse, type Renewal, type Request, type RequestDownload, type RequestInterface, type ResearchProject, type ResourceAccess, type ResponseCorrectness, type ResponseMessage, type RestrictableObjectDescriptor, RestrictableObjectType, type RestrictionFulfillment, type RestrictionInformationBatchRequest, type RestrictionInformationBatchResponse, type RestrictionInformationRequest, type RestrictionInformationResponse, RestrictionLevel, type Row, type RowSet, type S3FileHandle, type S3UploadDestination, type S3_FILE_HANDLE_CONCRETE_TYPE, S3_FILE_HANDLE_CONCRETE_TYPE_VALUE, type S3_UPLOAD_DESTINATION_CONCRETE_TYPE, type SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, SELF_SIGN_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, type SELF_SIGN_ACCESS_REQUIREMENT_INTERFACE_CONCRETE_TYPE, type SIGNED_TOKEN_CONCRETE_TYPE, type SUBMISSION_VIEW_CONCRETE_TYPE, SUBMISSION_VIEW_CONCRETE_TYPE_VALUE, SchemaObjectType, type SearchFacetOption, SearchFacetSort, SearchFieldName, type SearchQuery, type SearchResults, type SelectColumn, type SelfSignAccessRequirement, type SelfSignAccessRequirementInterface, type Settings, type SignedTokenInterface, type SnapshotRequest, type Sort, SortBy, SortByType, type SortDirection, type SortField, type SortItem, StatusEnum, type StsUploadDestination, type Submission, type SubmissionContributor, type SubmissionEligibility, type SubmissionInfo, type SubmissionInfoPage, type SubmissionInfoPageRequest, type SubmissionPage, type SubmissionQuota, SubmissionReviewerFilterType, type SubmissionSearchRequest, type SubmissionSearchResponse, type SubmissionSearchResult, type SubmissionSearchSort, SubmissionSortField, SubmissionState, type SubmissionStateChangeRequest, type SubmissionStatus, type SubmissionView, type SubscriberPagedResults, type Subscription, SubscriptionObjectType, type SubscriptionPagedResults, type SubscriptionQuery, type SubscriptionRequest, type SumFileSizes, type SynapseVersion, type TABLE_CONCRETE_TYPE, TABLE_CONCRETE_TYPE_VALUES, type TABLE_ENTITY_CONCRETE_TYPE, TABLE_ENTITY_CONCRETE_TYPE_VALUE, type TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE, TERMS_OF_USE_ACCESS_REQUIREMENT_CONCRETE_TYPE_VALUE, type TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE, TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE_VALUE, TYPE_FILTER, type Table, type TableBundle, type TableEntity, type TableSchemaChangeRequest, type TableSchemaChangeResponse, type TableUpdateRequest, type TableUpdateResponse, type TableUpdateTransactionRequest, type TableUpdateTransactionResponse, type Team, type TeamMember, type TeamMembershipStatus, type TeamSubmissionEligibility, type TermsOfUseAccessRequirement, type TextMatchesQueryFilter, type Topic, type TotpSecret, type TotpSecretActivationRequest, type TrashedEntity, type TwoFactorAuthDisableRequest, type TwoFactorAuthErrorResponse, type TwoFactorAuthLoginRequest, type TwoFactorAuthOtpType, type TwoFactorAuthRecoveryCodes, type TwoFactorAuthResetRequest, type TwoFactorAuthResetToken, type TwoFactorAuthStatus, type USED_ENTITY_CONCRETE_TYPE, USED_ENTITY_CONCRETE_TYPE_VALUE, type USED_URL_CONCRETE_TYPE, USED_URL_CONCRETE_TYPE_VALUE, type UpdateDiscussionReply, type UpdateThreadMessageRequest, type UpdateThreadTitleRequest, type UploadCallbackResp, type UploadDestination, UploadType, type Used, type UsedEntity, type UsedURL, type UserBundle, type UserEntityPermissions, type UserEvaluationPermissions, type UserGroupHeader, type UserGroupHeaderResponse, type UserGroupHeaderResponsePage, type UserPreference, type UserPreferenceBoolean, type UserPreferenceInterface, type UserProfile, type VERSIONABLE_ENTITY_CONCRETE_TYPE, VERSIONABLE_ENTITY_CONCRETE_TYPE_VALUES, type VIEW_CONCRETE_TYPE, VIEW_CONCRETE_TYPE_VALUES, type VIRTUAL_TABLE_CONCRETE_TYPE, VIRTUAL_TABLE_CONCRETE_TYPE_VALUE, type ValidateDefiningSqlRequest, type ValidateDefiningSqlResponse, type ValidationException, type ValidationResults, type VerificationState, VerificationStateEnum, type VerificationSubmission, type VersionInfo, type Versionable, type VersionableEntity, type View, type ViewColumnModelRequest, type ViewColumnModelResponse, type ViewEntityType, type ViewScope, type VirtualTable, type WikiPage, type WikiPageKey, ZipFileFormat, commandList, isJoinTeamSignedToken, isMembershipInvtnSignedToken, scopeDescriptions };
|
package/dist/index.js
CHANGED
|
@@ -60,6 +60,7 @@ __export(src_exports, {
|
|
|
60
60
|
FILE_ENTITY_CONCRETE_TYPE_VALUE: () => FILE_ENTITY_CONCRETE_TYPE_VALUE,
|
|
61
61
|
FOLDER_CONCRETE_TYPE_VALUE: () => FOLDER_CONCRETE_TYPE_VALUE,
|
|
62
62
|
FacetTypeNames: () => FacetTypeNames,
|
|
63
|
+
FeatureFlagEnum: () => FeatureFlagEnum,
|
|
63
64
|
FileDownloadCode: () => FileDownloadCode,
|
|
64
65
|
FileDownloadStatus: () => FileDownloadStatus,
|
|
65
66
|
FileHandleAssociateType: () => FileHandleAssociateType,
|
|
@@ -203,6 +204,14 @@ var scopeDescriptions = {
|
|
|
203
204
|
offline_access: {
|
|
204
205
|
displayName: "Offline Access",
|
|
205
206
|
description: "Permission to access the resources authorized here when you are not logged in, until you explicitly revoke access"
|
|
207
|
+
},
|
|
208
|
+
email: {
|
|
209
|
+
displayName: "Email",
|
|
210
|
+
description: "Permission to access the email address associated to your account"
|
|
211
|
+
},
|
|
212
|
+
profile: {
|
|
213
|
+
displayName: "User Profile",
|
|
214
|
+
description: "Permission to access your user profile information"
|
|
206
215
|
}
|
|
207
216
|
};
|
|
208
217
|
|
|
@@ -225,6 +234,7 @@ var ACCESS_TYPE = /* @__PURE__ */ ((ACCESS_TYPE2) => {
|
|
|
225
234
|
ACCESS_TYPE2["CHANGE_SETTINGS"] = "CHANGE_SETTINGS";
|
|
226
235
|
ACCESS_TYPE2["MODERATE"] = "MODERATE";
|
|
227
236
|
ACCESS_TYPE2["REVIEW_SUBMISSIONS"] = "REVIEW_SUBMISSIONS";
|
|
237
|
+
ACCESS_TYPE2["EXEMPTION_ELIGIBLE"] = "EXEMPTION_ELIGIBLE";
|
|
228
238
|
return ACCESS_TYPE2;
|
|
229
239
|
})(ACCESS_TYPE || {});
|
|
230
240
|
|
|
@@ -384,6 +394,15 @@ var ErrorResponseCode = /* @__PURE__ */ ((ErrorResponseCode2) => {
|
|
|
384
394
|
return ErrorResponseCode2;
|
|
385
395
|
})(ErrorResponseCode || {});
|
|
386
396
|
|
|
397
|
+
// src/FeatureFlags.ts
|
|
398
|
+
var FeatureFlagEnum = /* @__PURE__ */ ((FeatureFlagEnum2) => {
|
|
399
|
+
FeatureFlagEnum2["DESCRIPTION_FIELD"] = "DESCRIPTION_FIELD";
|
|
400
|
+
FeatureFlagEnum2["VIRTUALTABLE_SUPPORT"] = "VIRTUALTABLE_SUPPORT";
|
|
401
|
+
FeatureFlagEnum2["JSONSCHEMA_VALIDATION_STATUS"] = "JSONSCHEMA_VALIDATION_STATUS";
|
|
402
|
+
FeatureFlagEnum2["REACT_ENTITY_ACL_EDITOR"] = "REACT_ENTITY_ACL_EDITOR";
|
|
403
|
+
return FeatureFlagEnum2;
|
|
404
|
+
})(FeatureFlagEnum || {});
|
|
405
|
+
|
|
387
406
|
// src/File/S3FileHandle.ts
|
|
388
407
|
var S3_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.S3FileHandle";
|
|
389
408
|
|
|
@@ -756,6 +775,7 @@ var VerificationStateEnum = /* @__PURE__ */ ((VerificationStateEnum2) => {
|
|
|
756
775
|
FILE_ENTITY_CONCRETE_TYPE_VALUE,
|
|
757
776
|
FOLDER_CONCRETE_TYPE_VALUE,
|
|
758
777
|
FacetTypeNames,
|
|
778
|
+
FeatureFlagEnum,
|
|
759
779
|
FileDownloadCode,
|
|
760
780
|
FileDownloadStatus,
|
|
761
781
|
FileHandleAssociateType,
|
package/dist/index.mjs
CHANGED
|
@@ -85,6 +85,14 @@ var scopeDescriptions = {
|
|
|
85
85
|
offline_access: {
|
|
86
86
|
displayName: "Offline Access",
|
|
87
87
|
description: "Permission to access the resources authorized here when you are not logged in, until you explicitly revoke access"
|
|
88
|
+
},
|
|
89
|
+
email: {
|
|
90
|
+
displayName: "Email",
|
|
91
|
+
description: "Permission to access the email address associated to your account"
|
|
92
|
+
},
|
|
93
|
+
profile: {
|
|
94
|
+
displayName: "User Profile",
|
|
95
|
+
description: "Permission to access your user profile information"
|
|
88
96
|
}
|
|
89
97
|
};
|
|
90
98
|
|
|
@@ -107,6 +115,7 @@ var ACCESS_TYPE = /* @__PURE__ */ ((ACCESS_TYPE2) => {
|
|
|
107
115
|
ACCESS_TYPE2["CHANGE_SETTINGS"] = "CHANGE_SETTINGS";
|
|
108
116
|
ACCESS_TYPE2["MODERATE"] = "MODERATE";
|
|
109
117
|
ACCESS_TYPE2["REVIEW_SUBMISSIONS"] = "REVIEW_SUBMISSIONS";
|
|
118
|
+
ACCESS_TYPE2["EXEMPTION_ELIGIBLE"] = "EXEMPTION_ELIGIBLE";
|
|
110
119
|
return ACCESS_TYPE2;
|
|
111
120
|
})(ACCESS_TYPE || {});
|
|
112
121
|
|
|
@@ -266,6 +275,15 @@ var ErrorResponseCode = /* @__PURE__ */ ((ErrorResponseCode2) => {
|
|
|
266
275
|
return ErrorResponseCode2;
|
|
267
276
|
})(ErrorResponseCode || {});
|
|
268
277
|
|
|
278
|
+
// src/FeatureFlags.ts
|
|
279
|
+
var FeatureFlagEnum = /* @__PURE__ */ ((FeatureFlagEnum2) => {
|
|
280
|
+
FeatureFlagEnum2["DESCRIPTION_FIELD"] = "DESCRIPTION_FIELD";
|
|
281
|
+
FeatureFlagEnum2["VIRTUALTABLE_SUPPORT"] = "VIRTUALTABLE_SUPPORT";
|
|
282
|
+
FeatureFlagEnum2["JSONSCHEMA_VALIDATION_STATUS"] = "JSONSCHEMA_VALIDATION_STATUS";
|
|
283
|
+
FeatureFlagEnum2["REACT_ENTITY_ACL_EDITOR"] = "REACT_ENTITY_ACL_EDITOR";
|
|
284
|
+
return FeatureFlagEnum2;
|
|
285
|
+
})(FeatureFlagEnum || {});
|
|
286
|
+
|
|
269
287
|
// src/File/S3FileHandle.ts
|
|
270
288
|
var S3_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.S3FileHandle";
|
|
271
289
|
|
|
@@ -637,6 +655,7 @@ export {
|
|
|
637
655
|
FILE_ENTITY_CONCRETE_TYPE_VALUE,
|
|
638
656
|
FOLDER_CONCRETE_TYPE_VALUE,
|
|
639
657
|
FacetTypeNames,
|
|
658
|
+
FeatureFlagEnum,
|
|
640
659
|
FileDownloadCode,
|
|
641
660
|
FileDownloadStatus,
|
|
642
661
|
FileHandleAssociateType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sage-bionetworks/synapse-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"rimraf": "^5.0.
|
|
25
|
-
"tsup": "^
|
|
26
|
-
"typescript": "5.
|
|
24
|
+
"rimraf": "^5.0.5",
|
|
25
|
+
"tsup": "^8.0.2",
|
|
26
|
+
"typescript": "5.5.2"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "rimraf ./dist && tsup ./src/index.ts --format esm,cjs --dts",
|