@appconda/sdk 1.0.681 → 1.0.683

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.
@@ -1,6 +1,13 @@
1
1
 
2
2
  import z from "zod";
3
3
  import { ServiceClient } from "../../service-client";
4
+ import {
5
+ DecideCollectionAutomationApprovalSchema,
6
+ ListCollectionAutomationExecutionsSchema,
7
+ } from "./schema";
8
+ import type {
9
+ TCollectionAutomationExecutionPage,
10
+ } from "./types";
4
11
 
5
12
 
6
13
  import { AggregateRecordsSchema, ArchiveCollectionSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, ClearWorkerNotebookMessagesSchema, BuildWorkerNotebookContextSchema, ConnectTrelloImportCredentialSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateDriveFolderSchema, CreateDriveRootFolderSchema, CreateDriveRootSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiAiCommandSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiReferenceSchema, CreateWikiRevisionSchema, CreateWorkerNotebookFileSourceSchema, CreateWorkerNotebookNoteSchema, CreateWorkerNotebookSchema, CreateWorkerNotebookSourceSchema, CreateWorkerNotebookStudioOutputSchema, DiscoverWorkerNotebookSourcesSchema, ImportWorkerNotebookSourcesSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAgentFlowSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteDriveItemSchema, DeleteDriveRootItemSchema, DeleteDriveRootSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWikiReferenceSchema, DeleteWorkerNotebookNoteSchema, DeleteWorkerNotebookSchema, DeleteWorkerNotebookSourceSchema, DeleteWorkerNotebookStudioOutputSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateAgentFlowSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureDriveProviderCredentialSchema, EnsureGmailImportCredentialSchema, EnsureGithubImportCredentialSchema, EnsureJiraImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, EnsureTrelloImportCredentialSchema, ExecuteCollectionAiFieldSchema, ExecuteCollectionButtonSchema, ExportDataModelSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionByIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetDriveDeleteImpactSchema, GetDriveRootDeleteImpactSchema, GetLatestWikiRevisionSchema, GetMarketStoreItemSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetPrivateAgentFlowFolderSchema, GetRecordByIdSchema, GetRecordRelationsSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiAiSettingsSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiReferenceByIdSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GetWorkerNotebookSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAirtableImportSourcesSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionAutomationRulesSchema, ListCollectionButtonsSchema, ListCollectionRelationsSchema, ListCollectionsSchema, ListCollectionViewsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListDriveItemsSchema, ListDriveProviderFoldersSchema, ListDriveRootItemsSchema, ListDriveRootsSchema, ListDriveRootTreeSchema, ListDriveTreeSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListGmailImportSourcesSchema, ListGoogleMeetCalendarsSchema, ListGithubImportSourcesSchema, ListInputSchema, ListInstructionsSchema, ListJiraImportSourcesSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListTrelloImportSourcesSchema, ListWikiAiCommandsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWikiReferencesSchema, ListWorkerNotebooksSchema, ListWorkersSchema, ListWorkerTopicsSchema, MoveDriveItemSchema, MoveDriveRootItemSchema, MoveWikiPageSchema, PrepareDriveUploadSchema, PreviewAirtableImportSchema, PreviewCsvImportSchema, PreviewGmailImportSchema, PreviewGithubImportSchema, PreviewJiraImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewTrelloImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, PurgeCollectionSchema, QueryRecordsSchema, ReadDriveRootFileContentSchema, ReadDriveRootFileTextSchema, RenameDriveItemSchema, RenameDriveRootItemSchema, ReorderCollectionFieldsSchema, ResolveDriveDownloadSchema, ResolveDriveRootDownloadSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunCsvImportSchema, RunGmailImportSchema, RunGithubImportSchema, RunJiraImportSchema, RunLinearImportSchema, RunNotionImportSchema, RunTrelloImportSchema, RunWikiAiCommandSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchDriveItemsSchema, SearchDriveRootItemsSchema, SearchRecordsSchema, SendWorkerNotebookMessageSchema, SetWikiAiSettingsSchema, SetWikiPageUserStateSchema, TestGoogleMeetCredentialSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateExtensionSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWikiReferenceSchema, UpdateWorkerNotebookSchema, UpdateWorkerNotebookSourceSchema, UpdateWorkerNotebookStudioOutputSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadCollectionFileSchema, UploadDriveRootFilesSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
@@ -25,6 +32,22 @@ import type {
25
32
  TWorkerDiscordMessageHistory
26
33
  } from './types'
27
34
  import { ImportDataModelSchema } from "./schema";
35
+ import {
36
+ ApplyCollectionAppGenerationSchema,
37
+ GetCollectionAppGenerationPlanSchema,
38
+ GetCollectionAppGenerationRunSchema,
39
+ ListCollectionAppGenerationPlansSchema,
40
+ ListCollectionAppGenerationRunsSchema,
41
+ PreviewCollectionAppGenerationSchema,
42
+ RollbackCollectionAppGenerationSchema,
43
+ ResumeCollectionAppGenerationRunSchema,
44
+ } from "./schema";
45
+ import type {
46
+ TCollectionAppGenerationPlan,
47
+ TCollectionAppGenerationPlanPage,
48
+ TCollectionAppGenerationRun,
49
+ TCollectionAppGenerationRunPage,
50
+ } from "./types";
28
51
  import {
29
52
  CreateWikiSpaceSchema,
30
53
  DeleteWikiSpaceSchema,
@@ -45,6 +68,85 @@ import type {
45
68
  TWorkerBackgroundJobExecutionPage,
46
69
  TClearWorkerBackgroundJobExecutionsResult,
47
70
  } from "./types";
71
+ import type {
72
+ TBulkUpdateRecordsResult,
73
+ TCollection,
74
+ TCollectionRecordPage,
75
+ TGrantRecordPermissionResult,
76
+ TRecordPermissionListResult,
77
+ TReorderCollectionFieldsResult,
78
+ TRevokeRecordPermissionResult,
79
+ } from "./types";
80
+ import {
81
+ DeleteCollectionViewPreferenceSchema,
82
+ UpsertCollectionViewPreferenceSchema,
83
+ } from "./schema";
84
+ import type { TCollectionViewPreferenceResult } from "./types";
85
+ import {
86
+ DeleteCollectionAccessPolicySchema,
87
+ ListCollectionAccessTeamMembersSchema,
88
+ ListCollectionAccessPoliciesSchema,
89
+ PreviewCollectionAccessPolicySchema,
90
+ SetCollectionAccessTeamMembersSchema,
91
+ UpsertCollectionAccessPolicySchema,
92
+ } from "./schema";
93
+ import type {
94
+ TCollectionAccessPolicy,
95
+ TCollectionAccessPolicyPreview,
96
+ TCollectionAccessTeamMember,
97
+ TSetCollectionAccessTeamMembersResult,
98
+ } from "./types";
99
+ import {
100
+ DeleteCollectionFormSchema,
101
+ ListCollectionFormsSchema,
102
+ PublishCollectionFormSchema,
103
+ ResolveCollectionFormSchema,
104
+ RevokeCollectionFormSchema,
105
+ SubmitCollectionFormSchema,
106
+ UpsertCollectionFormSchema,
107
+ } from "./schema";
108
+ import type {
109
+ TCollectionForm,
110
+ TCollectionFormPublishResult,
111
+ TCollectionFormSubmissionResult,
112
+ TResolvedInternalCollectionForm,
113
+ } from "./types";
114
+ import {
115
+ DeleteCollectionDashboardSchema,
116
+ DeleteCollectionReportSchema,
117
+ EvaluateCollectionDashboardSchema,
118
+ EvaluateCollectionReportSchema,
119
+ ListCollectionDashboardsSchema,
120
+ ListCollectionReportsSchema,
121
+ UpsertCollectionDashboardSchema,
122
+ UpsertCollectionReportSchema,
123
+ } from "./schema";
124
+ import type {
125
+ TCollectionDashboard,
126
+ TCollectionDashboardEvaluation,
127
+ TCollectionDashboardPage,
128
+ TCollectionReport,
129
+ TCollectionReportEvaluation,
130
+ TCollectionReportPage,
131
+ } from "./types";
132
+ import {
133
+ CreateCollectionCommentSchema,
134
+ DeleteCollectionCommentSchema,
135
+ ListCollectionCommentsSchema,
136
+ ListCollectionNotificationsSchema,
137
+ ListCollectionRecordActivitySchema,
138
+ ListCollectionRecordCollaboratorsSchema,
139
+ MarkCollectionNotificationsReadSchema,
140
+ SetCollectionRecordCollaboratorsSchema,
141
+ UpdateCollectionCommentSchema,
142
+ } from "./schema";
143
+ import type {
144
+ TCollectionComment,
145
+ TCollectionCommentPage,
146
+ TCollectionNotificationPage,
147
+ TCollectionRecordActivityPage,
148
+ TCollectionRecordCollaborators,
149
+ } from "./types";
48
150
 
49
151
  export class EmploidService extends ServiceClient {
50
152
  protected getServiceName(): string {
@@ -1233,7 +1335,7 @@ export class EmploidService extends ServiceClient {
1233
1335
 
1234
1336
  public async CreateCollection(
1235
1337
  payload: z.infer<typeof CreateCollectionSchema>
1236
- ): Promise<any> {
1338
+ ): Promise<TCollection> {
1237
1339
  return await this.actionCall(
1238
1340
  "collection",
1239
1341
  "CreateCollection",
@@ -1241,9 +1343,57 @@ export class EmploidService extends ServiceClient {
1241
1343
  );
1242
1344
  }
1243
1345
 
1346
+ public async PreviewCollectionAppGeneration(
1347
+ payload: z.infer<typeof PreviewCollectionAppGenerationSchema>
1348
+ ): Promise<TCollectionAppGenerationPlan> {
1349
+ return await this.actionCall("collection", "PreviewCollectionAppGeneration", payload);
1350
+ }
1351
+
1352
+ public async ApplyCollectionAppGeneration(
1353
+ payload: z.infer<typeof ApplyCollectionAppGenerationSchema>
1354
+ ): Promise<TCollectionAppGenerationRun> {
1355
+ return await this.actionCall("collection", "ApplyCollectionAppGeneration", payload);
1356
+ }
1357
+
1358
+ public async RollbackCollectionAppGeneration(
1359
+ payload: z.infer<typeof RollbackCollectionAppGenerationSchema>
1360
+ ): Promise<TCollectionAppGenerationRun> {
1361
+ return await this.actionCall("collection", "RollbackCollectionAppGeneration", payload);
1362
+ }
1363
+
1364
+ public async ResumeCollectionAppGenerationRun(
1365
+ payload: z.infer<typeof ResumeCollectionAppGenerationRunSchema>
1366
+ ): Promise<TCollectionAppGenerationRun> {
1367
+ return await this.actionCall("collection", "ResumeCollectionAppGenerationRun", payload);
1368
+ }
1369
+
1370
+ public async GetCollectionAppGenerationPlan(
1371
+ payload: z.infer<typeof GetCollectionAppGenerationPlanSchema>
1372
+ ): Promise<TCollectionAppGenerationPlan> {
1373
+ return await this.actionCall("collection", "GetCollectionAppGenerationPlan", payload);
1374
+ }
1375
+
1376
+ public async ListCollectionAppGenerationPlans(
1377
+ payload: z.infer<typeof ListCollectionAppGenerationPlansSchema>
1378
+ ): Promise<TCollectionAppGenerationPlanPage> {
1379
+ return await this.actionCall("collection", "ListCollectionAppGenerationPlans", payload);
1380
+ }
1381
+
1382
+ public async GetCollectionAppGenerationRun(
1383
+ payload: z.infer<typeof GetCollectionAppGenerationRunSchema>
1384
+ ): Promise<TCollectionAppGenerationRun> {
1385
+ return await this.actionCall("collection", "GetCollectionAppGenerationRun", payload);
1386
+ }
1387
+
1388
+ public async ListCollectionAppGenerationRuns(
1389
+ payload: z.infer<typeof ListCollectionAppGenerationRunsSchema>
1390
+ ): Promise<TCollectionAppGenerationRunPage> {
1391
+ return await this.actionCall("collection", "ListCollectionAppGenerationRuns", payload);
1392
+ }
1393
+
1244
1394
  public async UpdateCollection(
1245
1395
  payload: z.infer<typeof UpdateCollectionSchema>
1246
- ): Promise<any> {
1396
+ ): Promise<TCollection> {
1247
1397
  return await this.actionCall(
1248
1398
  "collection",
1249
1399
  "UpdateCollection",
@@ -1723,7 +1873,7 @@ export class EmploidService extends ServiceClient {
1723
1873
 
1724
1874
  public async BulkUpdateRecords(
1725
1875
  payload: z.infer<typeof BulkUpdateRecordsSchema>
1726
- ): Promise<any> {
1876
+ ): Promise<TBulkUpdateRecordsResult> {
1727
1877
  return await this.actionCall(
1728
1878
  "collection",
1729
1879
  "BulkUpdateRecords",
@@ -1752,10 +1902,7 @@ export class EmploidService extends ServiceClient {
1752
1902
 
1753
1903
  public async QueryRecords(
1754
1904
  payload: z.infer<typeof QueryRecordsSchema>
1755
- ): Promise<{
1756
- total: number;
1757
- records: any[];
1758
- }> {
1905
+ ): Promise<TCollectionRecordPage> {
1759
1906
  return await this.actionCall(
1760
1907
  "collection",
1761
1908
  "QueryRecords",
@@ -1765,10 +1912,7 @@ export class EmploidService extends ServiceClient {
1765
1912
 
1766
1913
  public async SearchRecords(
1767
1914
  payload: z.infer<typeof SearchRecordsSchema>
1768
- ): Promise<{
1769
- total: number;
1770
- records: any[];
1771
- }> {
1915
+ ): Promise<TCollectionRecordPage> {
1772
1916
  return await this.actionCall(
1773
1917
  "collection",
1774
1918
  "SearchRecords",
@@ -1886,6 +2030,26 @@ export class EmploidService extends ServiceClient {
1886
2030
  );
1887
2031
  }
1888
2032
 
2033
+ public async ListCollectionAutomationExecutions(
2034
+ payload: z.infer<typeof ListCollectionAutomationExecutionsSchema>
2035
+ ): Promise<TCollectionAutomationExecutionPage> {
2036
+ return await this.actionCall(
2037
+ "collection",
2038
+ "ListCollectionAutomationExecutions",
2039
+ payload
2040
+ );
2041
+ }
2042
+
2043
+ public async DecideCollectionAutomationApproval(
2044
+ payload: z.infer<typeof DecideCollectionAutomationApprovalSchema>
2045
+ ): Promise<{ id: string; status: "approved" | "rejected"; executionId: string }> {
2046
+ return await this.actionCall(
2047
+ "collection",
2048
+ "DecideCollectionAutomationApproval",
2049
+ payload
2050
+ );
2051
+ }
2052
+
1889
2053
  public async ListCollectionViews(
1890
2054
  payload: z.infer<typeof ListCollectionViewsSchema>
1891
2055
  ): Promise<TCollectionView[]> {
@@ -1926,6 +2090,26 @@ export class EmploidService extends ServiceClient {
1926
2090
  );
1927
2091
  }
1928
2092
 
2093
+ public async UpsertCollectionViewPreference(
2094
+ payload: z.infer<typeof UpsertCollectionViewPreferenceSchema>
2095
+ ): Promise<TCollectionViewPreferenceResult> {
2096
+ return await this.actionCall(
2097
+ "collection",
2098
+ "UpsertCollectionViewPreference",
2099
+ payload
2100
+ );
2101
+ }
2102
+
2103
+ public async DeleteCollectionViewPreference(
2104
+ payload: z.infer<typeof DeleteCollectionViewPreferenceSchema>
2105
+ ): Promise<{ success: boolean; viewId: string; userId: string }> {
2106
+ return await this.actionCall(
2107
+ "collection",
2108
+ "DeleteCollectionViewPreference",
2109
+ payload
2110
+ );
2111
+ }
2112
+
1929
2113
  public async ListCollectionButtons(
1930
2114
  payload: z.infer<typeof ListCollectionButtonsSchema>
1931
2115
  ): Promise<TCollectionButton[]> {
@@ -2051,7 +2235,7 @@ export class EmploidService extends ServiceClient {
2051
2235
 
2052
2236
  public async ReorderCollectionFields(
2053
2237
  payload: z.infer<typeof ReorderCollectionFieldsSchema>
2054
- ): Promise<any> {
2238
+ ): Promise<TReorderCollectionFieldsResult> {
2055
2239
  return await this.actionCall(
2056
2240
  "collection",
2057
2241
  "ReorderCollectionFields",
@@ -2089,6 +2273,202 @@ export class EmploidService extends ServiceClient {
2089
2273
  );
2090
2274
  }
2091
2275
 
2276
+ public async ListCollectionForms(
2277
+ payload: z.infer<typeof ListCollectionFormsSchema>
2278
+ ): Promise<TCollectionForm[]> {
2279
+ return await this.actionCall("collection", "ListCollectionForms", payload);
2280
+ }
2281
+
2282
+ public async UpsertCollectionForm(
2283
+ payload: z.infer<typeof UpsertCollectionFormSchema>
2284
+ ): Promise<TCollectionForm> {
2285
+ return await this.actionCall("collection", "UpsertCollectionForm", payload);
2286
+ }
2287
+
2288
+ public async ResolveCollectionForm(
2289
+ payload: z.infer<typeof ResolveCollectionFormSchema>
2290
+ ): Promise<TResolvedInternalCollectionForm> {
2291
+ return await this.actionCall("collection", "ResolveCollectionForm", payload);
2292
+ }
2293
+
2294
+ public async SubmitCollectionForm(
2295
+ payload: z.infer<typeof SubmitCollectionFormSchema>
2296
+ ): Promise<TCollectionFormSubmissionResult> {
2297
+ return await this.actionCall("collection", "SubmitCollectionForm", payload);
2298
+ }
2299
+
2300
+ public async PublishCollectionForm(
2301
+ payload: z.infer<typeof PublishCollectionFormSchema>
2302
+ ): Promise<TCollectionFormPublishResult> {
2303
+ return await this.actionCall("collection", "PublishCollectionForm", payload);
2304
+ }
2305
+
2306
+ public async RevokeCollectionForm(
2307
+ payload: z.infer<typeof RevokeCollectionFormSchema>
2308
+ ): Promise<TCollectionForm> {
2309
+ return await this.actionCall("collection", "RevokeCollectionForm", payload);
2310
+ }
2311
+
2312
+ public async DeleteCollectionForm(
2313
+ payload: z.infer<typeof DeleteCollectionFormSchema>
2314
+ ): Promise<{ success: true; formId: string }> {
2315
+ return await this.actionCall("collection", "DeleteCollectionForm", payload);
2316
+ }
2317
+
2318
+ public async ListCollectionReports(
2319
+ payload: z.infer<typeof ListCollectionReportsSchema>
2320
+ ): Promise<TCollectionReportPage> {
2321
+ return await this.actionCall("collection", "ListCollectionReports", payload);
2322
+ }
2323
+
2324
+ public async UpsertCollectionReport(
2325
+ payload: z.infer<typeof UpsertCollectionReportSchema>
2326
+ ): Promise<TCollectionReport> {
2327
+ return await this.actionCall("collection", "UpsertCollectionReport", payload);
2328
+ }
2329
+
2330
+ public async DeleteCollectionReport(
2331
+ payload: z.infer<typeof DeleteCollectionReportSchema>
2332
+ ): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
2333
+ return await this.actionCall("collection", "DeleteCollectionReport", payload);
2334
+ }
2335
+
2336
+ public async EvaluateCollectionReport(
2337
+ payload: z.infer<typeof EvaluateCollectionReportSchema>
2338
+ ): Promise<TCollectionReportEvaluation> {
2339
+ return await this.actionCall("collection", "EvaluateCollectionReport", payload);
2340
+ }
2341
+
2342
+ public async ListCollectionDashboards(
2343
+ payload: z.infer<typeof ListCollectionDashboardsSchema>
2344
+ ): Promise<TCollectionDashboardPage> {
2345
+ return await this.actionCall("collection", "ListCollectionDashboards", payload);
2346
+ }
2347
+
2348
+ public async UpsertCollectionDashboard(
2349
+ payload: z.infer<typeof UpsertCollectionDashboardSchema>
2350
+ ): Promise<TCollectionDashboard> {
2351
+ return await this.actionCall("collection", "UpsertCollectionDashboard", payload);
2352
+ }
2353
+
2354
+ public async DeleteCollectionDashboard(
2355
+ payload: z.infer<typeof DeleteCollectionDashboardSchema>
2356
+ ): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
2357
+ return await this.actionCall("collection", "DeleteCollectionDashboard", payload);
2358
+ }
2359
+
2360
+ public async EvaluateCollectionDashboard(
2361
+ payload: z.infer<typeof EvaluateCollectionDashboardSchema>
2362
+ ): Promise<TCollectionDashboardEvaluation> {
2363
+ return await this.actionCall("collection", "EvaluateCollectionDashboard", payload);
2364
+ }
2365
+
2366
+ public async ListCollectionAccessPolicies(
2367
+ payload: z.infer<typeof ListCollectionAccessPoliciesSchema>
2368
+ ): Promise<TCollectionAccessPolicy[]> {
2369
+ return await this.actionCall(
2370
+ "collection",
2371
+ "ListCollectionAccessPolicies",
2372
+ payload
2373
+ );
2374
+ }
2375
+
2376
+ public async UpsertCollectionAccessPolicy(
2377
+ payload: z.infer<typeof UpsertCollectionAccessPolicySchema>
2378
+ ): Promise<TCollectionAccessPolicy> {
2379
+ return await this.actionCall(
2380
+ "collection",
2381
+ "UpsertCollectionAccessPolicy",
2382
+ payload
2383
+ );
2384
+ }
2385
+
2386
+ public async DeleteCollectionAccessPolicy(
2387
+ payload: z.infer<typeof DeleteCollectionAccessPolicySchema>
2388
+ ): Promise<{ success: true; policyId: string; deletedBy: string }> {
2389
+ return await this.actionCall(
2390
+ "collection",
2391
+ "DeleteCollectionAccessPolicy",
2392
+ payload
2393
+ );
2394
+ }
2395
+
2396
+ public async ListCollectionAccessTeamMembers(
2397
+ payload: z.infer<typeof ListCollectionAccessTeamMembersSchema>
2398
+ ): Promise<TCollectionAccessTeamMember[]> {
2399
+ return await this.actionCall("collection", "ListCollectionAccessTeamMembers", payload);
2400
+ }
2401
+
2402
+ public async SetCollectionAccessTeamMembers(
2403
+ payload: z.infer<typeof SetCollectionAccessTeamMembersSchema>
2404
+ ): Promise<TSetCollectionAccessTeamMembersResult> {
2405
+ return await this.actionCall("collection", "SetCollectionAccessTeamMembers", payload);
2406
+ }
2407
+
2408
+ public async PreviewCollectionAccessPolicy(
2409
+ payload: z.infer<typeof PreviewCollectionAccessPolicySchema>
2410
+ ): Promise<TCollectionAccessPolicyPreview> {
2411
+ return await this.actionCall(
2412
+ "collection",
2413
+ "PreviewCollectionAccessPolicy",
2414
+ payload
2415
+ );
2416
+ }
2417
+
2418
+ public async CreateCollectionComment(
2419
+ payload: z.infer<typeof CreateCollectionCommentSchema>
2420
+ ): Promise<TCollectionComment> {
2421
+ return await this.actionCall("collection", "CreateCollectionComment", payload);
2422
+ }
2423
+
2424
+ public async UpdateCollectionComment(
2425
+ payload: z.infer<typeof UpdateCollectionCommentSchema>
2426
+ ): Promise<TCollectionComment> {
2427
+ return await this.actionCall("collection", "UpdateCollectionComment", payload);
2428
+ }
2429
+
2430
+ public async DeleteCollectionComment(
2431
+ payload: z.infer<typeof DeleteCollectionCommentSchema>
2432
+ ): Promise<{ id: string; deletedAt: string | Date }> {
2433
+ return await this.actionCall("collection", "DeleteCollectionComment", payload);
2434
+ }
2435
+
2436
+ public async ListCollectionComments(
2437
+ payload: z.infer<typeof ListCollectionCommentsSchema>
2438
+ ): Promise<TCollectionCommentPage> {
2439
+ return await this.actionCall("collection", "ListCollectionComments", payload);
2440
+ }
2441
+
2442
+ public async ListCollectionRecordActivity(
2443
+ payload: z.infer<typeof ListCollectionRecordActivitySchema>
2444
+ ): Promise<TCollectionRecordActivityPage> {
2445
+ return await this.actionCall("collection", "ListCollectionRecordActivity", payload);
2446
+ }
2447
+
2448
+ public async ListCollectionRecordCollaborators(
2449
+ payload: z.infer<typeof ListCollectionRecordCollaboratorsSchema>
2450
+ ): Promise<TCollectionRecordCollaborators> {
2451
+ return await this.actionCall("collection", "ListCollectionRecordCollaborators", payload);
2452
+ }
2453
+
2454
+ public async SetCollectionRecordCollaborators(
2455
+ payload: z.infer<typeof SetCollectionRecordCollaboratorsSchema>
2456
+ ): Promise<TCollectionRecordCollaborators> {
2457
+ return await this.actionCall("collection", "SetCollectionRecordCollaborators", payload);
2458
+ }
2459
+
2460
+ public async ListCollectionNotifications(
2461
+ payload: z.infer<typeof ListCollectionNotificationsSchema>
2462
+ ): Promise<TCollectionNotificationPage> {
2463
+ return await this.actionCall("collection", "ListCollectionNotifications", payload);
2464
+ }
2465
+
2466
+ public async MarkCollectionNotificationsRead(
2467
+ payload: z.infer<typeof MarkCollectionNotificationsReadSchema>
2468
+ ): Promise<{ updatedCount: number; notificationIds: string[] }> {
2469
+ return await this.actionCall("collection", "MarkCollectionNotificationsRead", payload);
2470
+ }
2471
+
2092
2472
  public async CheckRecordPermission(
2093
2473
  payload: z.infer<typeof CheckRecordPermissionSchema>
2094
2474
  ): Promise<any> {
@@ -2101,7 +2481,7 @@ export class EmploidService extends ServiceClient {
2101
2481
 
2102
2482
  public async ListRecordPermissions(
2103
2483
  payload: z.infer<typeof ListRecordPermissionsSchema>
2104
- ): Promise<any[]> {
2484
+ ): Promise<TRecordPermissionListResult> {
2105
2485
  return await this.actionCall(
2106
2486
  "collection",
2107
2487
  "ListRecordPermissions",
@@ -2111,7 +2491,7 @@ export class EmploidService extends ServiceClient {
2111
2491
 
2112
2492
  public async GrantRecordPermission(
2113
2493
  payload: z.infer<typeof GrantRecordPermissionSchema>
2114
- ): Promise<any> {
2494
+ ): Promise<TGrantRecordPermissionResult> {
2115
2495
  return await this.actionCall(
2116
2496
  "collection",
2117
2497
  "GrantRecordPermission",
@@ -2122,7 +2502,7 @@ export class EmploidService extends ServiceClient {
2122
2502
 
2123
2503
  public async RevokeRecordPermission(
2124
2504
  payload: z.infer<typeof RevokeRecordPermissionSchema>
2125
- ): Promise<any> {
2505
+ ): Promise<TRevokeRecordPermissionResult> {
2126
2506
  return await this.actionCall(
2127
2507
  "collection",
2128
2508
  "RevokeRecordPermission",