@appconda/sdk 1.0.681 → 1.0.685

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,23 @@
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";
11
+ import {
12
+ CreateDataModelAgentFlowSchema,
13
+ DeleteDataModelAgentFlowSchema,
14
+ ListDataModelAgentFlowsSchema,
15
+ UpdateDataModelAgentFlowSchema,
16
+ } from "./schema";
17
+ import type {
18
+ TDataModelAgentFlow,
19
+ TDataModelAgentFlowPage,
20
+ } from "./types";
4
21
 
5
22
 
6
23
  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 +42,22 @@ import type {
25
42
  TWorkerDiscordMessageHistory
26
43
  } from './types'
27
44
  import { ImportDataModelSchema } from "./schema";
45
+ import {
46
+ ApplyCollectionAppGenerationSchema,
47
+ GetCollectionAppGenerationPlanSchema,
48
+ GetCollectionAppGenerationRunSchema,
49
+ ListCollectionAppGenerationPlansSchema,
50
+ ListCollectionAppGenerationRunsSchema,
51
+ PreviewCollectionAppGenerationSchema,
52
+ RollbackCollectionAppGenerationSchema,
53
+ ResumeCollectionAppGenerationRunSchema,
54
+ } from "./schema";
55
+ import type {
56
+ TCollectionAppGenerationPlan,
57
+ TCollectionAppGenerationPlanPage,
58
+ TCollectionAppGenerationRun,
59
+ TCollectionAppGenerationRunPage,
60
+ } from "./types";
28
61
  import {
29
62
  CreateWikiSpaceSchema,
30
63
  DeleteWikiSpaceSchema,
@@ -45,6 +78,85 @@ import type {
45
78
  TWorkerBackgroundJobExecutionPage,
46
79
  TClearWorkerBackgroundJobExecutionsResult,
47
80
  } from "./types";
81
+ import type {
82
+ TBulkUpdateRecordsResult,
83
+ TCollection,
84
+ TCollectionRecordPage,
85
+ TGrantRecordPermissionResult,
86
+ TRecordPermissionListResult,
87
+ TReorderCollectionFieldsResult,
88
+ TRevokeRecordPermissionResult,
89
+ } from "./types";
90
+ import {
91
+ DeleteCollectionViewPreferenceSchema,
92
+ UpsertCollectionViewPreferenceSchema,
93
+ } from "./schema";
94
+ import type { TCollectionViewPreferenceResult } from "./types";
95
+ import {
96
+ DeleteCollectionAccessPolicySchema,
97
+ ListCollectionAccessTeamMembersSchema,
98
+ ListCollectionAccessPoliciesSchema,
99
+ PreviewCollectionAccessPolicySchema,
100
+ SetCollectionAccessTeamMembersSchema,
101
+ UpsertCollectionAccessPolicySchema,
102
+ } from "./schema";
103
+ import type {
104
+ TCollectionAccessPolicy,
105
+ TCollectionAccessPolicyPreview,
106
+ TCollectionAccessTeamMember,
107
+ TSetCollectionAccessTeamMembersResult,
108
+ } from "./types";
109
+ import {
110
+ DeleteCollectionFormSchema,
111
+ ListCollectionFormsSchema,
112
+ PublishCollectionFormSchema,
113
+ ResolveCollectionFormSchema,
114
+ RevokeCollectionFormSchema,
115
+ SubmitCollectionFormSchema,
116
+ UpsertCollectionFormSchema,
117
+ } from "./schema";
118
+ import type {
119
+ TCollectionForm,
120
+ TCollectionFormPublishResult,
121
+ TCollectionFormSubmissionResult,
122
+ TResolvedInternalCollectionForm,
123
+ } from "./types";
124
+ import {
125
+ DeleteCollectionDashboardSchema,
126
+ DeleteCollectionReportSchema,
127
+ EvaluateCollectionDashboardSchema,
128
+ EvaluateCollectionReportSchema,
129
+ ListCollectionDashboardsSchema,
130
+ ListCollectionReportsSchema,
131
+ UpsertCollectionDashboardSchema,
132
+ UpsertCollectionReportSchema,
133
+ } from "./schema";
134
+ import type {
135
+ TCollectionDashboard,
136
+ TCollectionDashboardEvaluation,
137
+ TCollectionDashboardPage,
138
+ TCollectionReport,
139
+ TCollectionReportEvaluation,
140
+ TCollectionReportPage,
141
+ } from "./types";
142
+ import {
143
+ CreateCollectionCommentSchema,
144
+ DeleteCollectionCommentSchema,
145
+ ListCollectionCommentsSchema,
146
+ ListCollectionNotificationsSchema,
147
+ ListCollectionRecordActivitySchema,
148
+ ListCollectionRecordCollaboratorsSchema,
149
+ MarkCollectionNotificationsReadSchema,
150
+ SetCollectionRecordCollaboratorsSchema,
151
+ UpdateCollectionCommentSchema,
152
+ } from "./schema";
153
+ import type {
154
+ TCollectionComment,
155
+ TCollectionCommentPage,
156
+ TCollectionNotificationPage,
157
+ TCollectionRecordActivityPage,
158
+ TCollectionRecordCollaborators,
159
+ } from "./types";
48
160
 
49
161
  export class EmploidService extends ServiceClient {
50
162
  protected getServiceName(): string {
@@ -366,6 +478,22 @@ export class EmploidService extends ServiceClient {
366
478
  return await this.actionCall('agent-flow', 'ListAgentFlows', payload);
367
479
  }
368
480
 
481
+ public async CreateDataModelAgentFlow(payload: z.infer<typeof CreateDataModelAgentFlowSchema>): Promise<TDataModelAgentFlow> {
482
+ return await this.actionCall('agent-flow', 'CreateDataModelAgentFlow', payload);
483
+ }
484
+
485
+ public async ListDataModelAgentFlows(payload: z.infer<typeof ListDataModelAgentFlowsSchema>): Promise<TDataModelAgentFlowPage> {
486
+ return await this.actionCall('agent-flow', 'ListDataModelAgentFlows', payload);
487
+ }
488
+
489
+ public async UpdateDataModelAgentFlow(payload: z.infer<typeof UpdateDataModelAgentFlowSchema>): Promise<TDataModelAgentFlow> {
490
+ return await this.actionCall('agent-flow', 'UpdateDataModelAgentFlow', payload);
491
+ }
492
+
493
+ public async DeleteDataModelAgentFlow(payload: z.infer<typeof DeleteDataModelAgentFlowSchema>): Promise<TDeleteAgentFlowResult> {
494
+ return await this.actionCall('agent-flow', 'DeleteDataModelAgentFlow', payload);
495
+ }
496
+
369
497
  public async CreateAgentFlowFolder(payload: z.infer<typeof CreateAgentFlowFolderSchema>): Promise<TAgentFlowFolder> {
370
498
  return await this.actionCall('agent-flow', 'CreateAgentFlowFolder', payload);
371
499
  }
@@ -1233,7 +1361,7 @@ export class EmploidService extends ServiceClient {
1233
1361
 
1234
1362
  public async CreateCollection(
1235
1363
  payload: z.infer<typeof CreateCollectionSchema>
1236
- ): Promise<any> {
1364
+ ): Promise<TCollection> {
1237
1365
  return await this.actionCall(
1238
1366
  "collection",
1239
1367
  "CreateCollection",
@@ -1241,9 +1369,57 @@ export class EmploidService extends ServiceClient {
1241
1369
  );
1242
1370
  }
1243
1371
 
1372
+ public async PreviewCollectionAppGeneration(
1373
+ payload: z.infer<typeof PreviewCollectionAppGenerationSchema>
1374
+ ): Promise<TCollectionAppGenerationPlan> {
1375
+ return await this.actionCall("collection", "PreviewCollectionAppGeneration", payload);
1376
+ }
1377
+
1378
+ public async ApplyCollectionAppGeneration(
1379
+ payload: z.infer<typeof ApplyCollectionAppGenerationSchema>
1380
+ ): Promise<TCollectionAppGenerationRun> {
1381
+ return await this.actionCall("collection", "ApplyCollectionAppGeneration", payload);
1382
+ }
1383
+
1384
+ public async RollbackCollectionAppGeneration(
1385
+ payload: z.infer<typeof RollbackCollectionAppGenerationSchema>
1386
+ ): Promise<TCollectionAppGenerationRun> {
1387
+ return await this.actionCall("collection", "RollbackCollectionAppGeneration", payload);
1388
+ }
1389
+
1390
+ public async ResumeCollectionAppGenerationRun(
1391
+ payload: z.infer<typeof ResumeCollectionAppGenerationRunSchema>
1392
+ ): Promise<TCollectionAppGenerationRun> {
1393
+ return await this.actionCall("collection", "ResumeCollectionAppGenerationRun", payload);
1394
+ }
1395
+
1396
+ public async GetCollectionAppGenerationPlan(
1397
+ payload: z.infer<typeof GetCollectionAppGenerationPlanSchema>
1398
+ ): Promise<TCollectionAppGenerationPlan> {
1399
+ return await this.actionCall("collection", "GetCollectionAppGenerationPlan", payload);
1400
+ }
1401
+
1402
+ public async ListCollectionAppGenerationPlans(
1403
+ payload: z.infer<typeof ListCollectionAppGenerationPlansSchema>
1404
+ ): Promise<TCollectionAppGenerationPlanPage> {
1405
+ return await this.actionCall("collection", "ListCollectionAppGenerationPlans", payload);
1406
+ }
1407
+
1408
+ public async GetCollectionAppGenerationRun(
1409
+ payload: z.infer<typeof GetCollectionAppGenerationRunSchema>
1410
+ ): Promise<TCollectionAppGenerationRun> {
1411
+ return await this.actionCall("collection", "GetCollectionAppGenerationRun", payload);
1412
+ }
1413
+
1414
+ public async ListCollectionAppGenerationRuns(
1415
+ payload: z.infer<typeof ListCollectionAppGenerationRunsSchema>
1416
+ ): Promise<TCollectionAppGenerationRunPage> {
1417
+ return await this.actionCall("collection", "ListCollectionAppGenerationRuns", payload);
1418
+ }
1419
+
1244
1420
  public async UpdateCollection(
1245
1421
  payload: z.infer<typeof UpdateCollectionSchema>
1246
- ): Promise<any> {
1422
+ ): Promise<TCollection> {
1247
1423
  return await this.actionCall(
1248
1424
  "collection",
1249
1425
  "UpdateCollection",
@@ -1723,7 +1899,7 @@ export class EmploidService extends ServiceClient {
1723
1899
 
1724
1900
  public async BulkUpdateRecords(
1725
1901
  payload: z.infer<typeof BulkUpdateRecordsSchema>
1726
- ): Promise<any> {
1902
+ ): Promise<TBulkUpdateRecordsResult> {
1727
1903
  return await this.actionCall(
1728
1904
  "collection",
1729
1905
  "BulkUpdateRecords",
@@ -1752,10 +1928,7 @@ export class EmploidService extends ServiceClient {
1752
1928
 
1753
1929
  public async QueryRecords(
1754
1930
  payload: z.infer<typeof QueryRecordsSchema>
1755
- ): Promise<{
1756
- total: number;
1757
- records: any[];
1758
- }> {
1931
+ ): Promise<TCollectionRecordPage> {
1759
1932
  return await this.actionCall(
1760
1933
  "collection",
1761
1934
  "QueryRecords",
@@ -1765,10 +1938,7 @@ export class EmploidService extends ServiceClient {
1765
1938
 
1766
1939
  public async SearchRecords(
1767
1940
  payload: z.infer<typeof SearchRecordsSchema>
1768
- ): Promise<{
1769
- total: number;
1770
- records: any[];
1771
- }> {
1941
+ ): Promise<TCollectionRecordPage> {
1772
1942
  return await this.actionCall(
1773
1943
  "collection",
1774
1944
  "SearchRecords",
@@ -1886,6 +2056,26 @@ export class EmploidService extends ServiceClient {
1886
2056
  );
1887
2057
  }
1888
2058
 
2059
+ public async ListCollectionAutomationExecutions(
2060
+ payload: z.infer<typeof ListCollectionAutomationExecutionsSchema>
2061
+ ): Promise<TCollectionAutomationExecutionPage> {
2062
+ return await this.actionCall(
2063
+ "collection",
2064
+ "ListCollectionAutomationExecutions",
2065
+ payload
2066
+ );
2067
+ }
2068
+
2069
+ public async DecideCollectionAutomationApproval(
2070
+ payload: z.infer<typeof DecideCollectionAutomationApprovalSchema>
2071
+ ): Promise<{ id: string; status: "approved" | "rejected"; executionId: string }> {
2072
+ return await this.actionCall(
2073
+ "collection",
2074
+ "DecideCollectionAutomationApproval",
2075
+ payload
2076
+ );
2077
+ }
2078
+
1889
2079
  public async ListCollectionViews(
1890
2080
  payload: z.infer<typeof ListCollectionViewsSchema>
1891
2081
  ): Promise<TCollectionView[]> {
@@ -1926,6 +2116,26 @@ export class EmploidService extends ServiceClient {
1926
2116
  );
1927
2117
  }
1928
2118
 
2119
+ public async UpsertCollectionViewPreference(
2120
+ payload: z.infer<typeof UpsertCollectionViewPreferenceSchema>
2121
+ ): Promise<TCollectionViewPreferenceResult> {
2122
+ return await this.actionCall(
2123
+ "collection",
2124
+ "UpsertCollectionViewPreference",
2125
+ payload
2126
+ );
2127
+ }
2128
+
2129
+ public async DeleteCollectionViewPreference(
2130
+ payload: z.infer<typeof DeleteCollectionViewPreferenceSchema>
2131
+ ): Promise<{ success: boolean; viewId: string; userId: string }> {
2132
+ return await this.actionCall(
2133
+ "collection",
2134
+ "DeleteCollectionViewPreference",
2135
+ payload
2136
+ );
2137
+ }
2138
+
1929
2139
  public async ListCollectionButtons(
1930
2140
  payload: z.infer<typeof ListCollectionButtonsSchema>
1931
2141
  ): Promise<TCollectionButton[]> {
@@ -2051,7 +2261,7 @@ export class EmploidService extends ServiceClient {
2051
2261
 
2052
2262
  public async ReorderCollectionFields(
2053
2263
  payload: z.infer<typeof ReorderCollectionFieldsSchema>
2054
- ): Promise<any> {
2264
+ ): Promise<TReorderCollectionFieldsResult> {
2055
2265
  return await this.actionCall(
2056
2266
  "collection",
2057
2267
  "ReorderCollectionFields",
@@ -2089,6 +2299,202 @@ export class EmploidService extends ServiceClient {
2089
2299
  );
2090
2300
  }
2091
2301
 
2302
+ public async ListCollectionForms(
2303
+ payload: z.infer<typeof ListCollectionFormsSchema>
2304
+ ): Promise<TCollectionForm[]> {
2305
+ return await this.actionCall("collection", "ListCollectionForms", payload);
2306
+ }
2307
+
2308
+ public async UpsertCollectionForm(
2309
+ payload: z.infer<typeof UpsertCollectionFormSchema>
2310
+ ): Promise<TCollectionForm> {
2311
+ return await this.actionCall("collection", "UpsertCollectionForm", payload);
2312
+ }
2313
+
2314
+ public async ResolveCollectionForm(
2315
+ payload: z.infer<typeof ResolveCollectionFormSchema>
2316
+ ): Promise<TResolvedInternalCollectionForm> {
2317
+ return await this.actionCall("collection", "ResolveCollectionForm", payload);
2318
+ }
2319
+
2320
+ public async SubmitCollectionForm(
2321
+ payload: z.infer<typeof SubmitCollectionFormSchema>
2322
+ ): Promise<TCollectionFormSubmissionResult> {
2323
+ return await this.actionCall("collection", "SubmitCollectionForm", payload);
2324
+ }
2325
+
2326
+ public async PublishCollectionForm(
2327
+ payload: z.infer<typeof PublishCollectionFormSchema>
2328
+ ): Promise<TCollectionFormPublishResult> {
2329
+ return await this.actionCall("collection", "PublishCollectionForm", payload);
2330
+ }
2331
+
2332
+ public async RevokeCollectionForm(
2333
+ payload: z.infer<typeof RevokeCollectionFormSchema>
2334
+ ): Promise<TCollectionForm> {
2335
+ return await this.actionCall("collection", "RevokeCollectionForm", payload);
2336
+ }
2337
+
2338
+ public async DeleteCollectionForm(
2339
+ payload: z.infer<typeof DeleteCollectionFormSchema>
2340
+ ): Promise<{ success: true; formId: string }> {
2341
+ return await this.actionCall("collection", "DeleteCollectionForm", payload);
2342
+ }
2343
+
2344
+ public async ListCollectionReports(
2345
+ payload: z.infer<typeof ListCollectionReportsSchema>
2346
+ ): Promise<TCollectionReportPage> {
2347
+ return await this.actionCall("collection", "ListCollectionReports", payload);
2348
+ }
2349
+
2350
+ public async UpsertCollectionReport(
2351
+ payload: z.infer<typeof UpsertCollectionReportSchema>
2352
+ ): Promise<TCollectionReport> {
2353
+ return await this.actionCall("collection", "UpsertCollectionReport", payload);
2354
+ }
2355
+
2356
+ public async DeleteCollectionReport(
2357
+ payload: z.infer<typeof DeleteCollectionReportSchema>
2358
+ ): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
2359
+ return await this.actionCall("collection", "DeleteCollectionReport", payload);
2360
+ }
2361
+
2362
+ public async EvaluateCollectionReport(
2363
+ payload: z.infer<typeof EvaluateCollectionReportSchema>
2364
+ ): Promise<TCollectionReportEvaluation> {
2365
+ return await this.actionCall("collection", "EvaluateCollectionReport", payload);
2366
+ }
2367
+
2368
+ public async ListCollectionDashboards(
2369
+ payload: z.infer<typeof ListCollectionDashboardsSchema>
2370
+ ): Promise<TCollectionDashboardPage> {
2371
+ return await this.actionCall("collection", "ListCollectionDashboards", payload);
2372
+ }
2373
+
2374
+ public async UpsertCollectionDashboard(
2375
+ payload: z.infer<typeof UpsertCollectionDashboardSchema>
2376
+ ): Promise<TCollectionDashboard> {
2377
+ return await this.actionCall("collection", "UpsertCollectionDashboard", payload);
2378
+ }
2379
+
2380
+ public async DeleteCollectionDashboard(
2381
+ payload: z.infer<typeof DeleteCollectionDashboardSchema>
2382
+ ): Promise<{ id: string; archived: true; archivedAt: string | Date }> {
2383
+ return await this.actionCall("collection", "DeleteCollectionDashboard", payload);
2384
+ }
2385
+
2386
+ public async EvaluateCollectionDashboard(
2387
+ payload: z.infer<typeof EvaluateCollectionDashboardSchema>
2388
+ ): Promise<TCollectionDashboardEvaluation> {
2389
+ return await this.actionCall("collection", "EvaluateCollectionDashboard", payload);
2390
+ }
2391
+
2392
+ public async ListCollectionAccessPolicies(
2393
+ payload: z.infer<typeof ListCollectionAccessPoliciesSchema>
2394
+ ): Promise<TCollectionAccessPolicy[]> {
2395
+ return await this.actionCall(
2396
+ "collection",
2397
+ "ListCollectionAccessPolicies",
2398
+ payload
2399
+ );
2400
+ }
2401
+
2402
+ public async UpsertCollectionAccessPolicy(
2403
+ payload: z.infer<typeof UpsertCollectionAccessPolicySchema>
2404
+ ): Promise<TCollectionAccessPolicy> {
2405
+ return await this.actionCall(
2406
+ "collection",
2407
+ "UpsertCollectionAccessPolicy",
2408
+ payload
2409
+ );
2410
+ }
2411
+
2412
+ public async DeleteCollectionAccessPolicy(
2413
+ payload: z.infer<typeof DeleteCollectionAccessPolicySchema>
2414
+ ): Promise<{ success: true; policyId: string; deletedBy: string }> {
2415
+ return await this.actionCall(
2416
+ "collection",
2417
+ "DeleteCollectionAccessPolicy",
2418
+ payload
2419
+ );
2420
+ }
2421
+
2422
+ public async ListCollectionAccessTeamMembers(
2423
+ payload: z.infer<typeof ListCollectionAccessTeamMembersSchema>
2424
+ ): Promise<TCollectionAccessTeamMember[]> {
2425
+ return await this.actionCall("collection", "ListCollectionAccessTeamMembers", payload);
2426
+ }
2427
+
2428
+ public async SetCollectionAccessTeamMembers(
2429
+ payload: z.infer<typeof SetCollectionAccessTeamMembersSchema>
2430
+ ): Promise<TSetCollectionAccessTeamMembersResult> {
2431
+ return await this.actionCall("collection", "SetCollectionAccessTeamMembers", payload);
2432
+ }
2433
+
2434
+ public async PreviewCollectionAccessPolicy(
2435
+ payload: z.infer<typeof PreviewCollectionAccessPolicySchema>
2436
+ ): Promise<TCollectionAccessPolicyPreview> {
2437
+ return await this.actionCall(
2438
+ "collection",
2439
+ "PreviewCollectionAccessPolicy",
2440
+ payload
2441
+ );
2442
+ }
2443
+
2444
+ public async CreateCollectionComment(
2445
+ payload: z.infer<typeof CreateCollectionCommentSchema>
2446
+ ): Promise<TCollectionComment> {
2447
+ return await this.actionCall("collection", "CreateCollectionComment", payload);
2448
+ }
2449
+
2450
+ public async UpdateCollectionComment(
2451
+ payload: z.infer<typeof UpdateCollectionCommentSchema>
2452
+ ): Promise<TCollectionComment> {
2453
+ return await this.actionCall("collection", "UpdateCollectionComment", payload);
2454
+ }
2455
+
2456
+ public async DeleteCollectionComment(
2457
+ payload: z.infer<typeof DeleteCollectionCommentSchema>
2458
+ ): Promise<{ id: string; deletedAt: string | Date }> {
2459
+ return await this.actionCall("collection", "DeleteCollectionComment", payload);
2460
+ }
2461
+
2462
+ public async ListCollectionComments(
2463
+ payload: z.infer<typeof ListCollectionCommentsSchema>
2464
+ ): Promise<TCollectionCommentPage> {
2465
+ return await this.actionCall("collection", "ListCollectionComments", payload);
2466
+ }
2467
+
2468
+ public async ListCollectionRecordActivity(
2469
+ payload: z.infer<typeof ListCollectionRecordActivitySchema>
2470
+ ): Promise<TCollectionRecordActivityPage> {
2471
+ return await this.actionCall("collection", "ListCollectionRecordActivity", payload);
2472
+ }
2473
+
2474
+ public async ListCollectionRecordCollaborators(
2475
+ payload: z.infer<typeof ListCollectionRecordCollaboratorsSchema>
2476
+ ): Promise<TCollectionRecordCollaborators> {
2477
+ return await this.actionCall("collection", "ListCollectionRecordCollaborators", payload);
2478
+ }
2479
+
2480
+ public async SetCollectionRecordCollaborators(
2481
+ payload: z.infer<typeof SetCollectionRecordCollaboratorsSchema>
2482
+ ): Promise<TCollectionRecordCollaborators> {
2483
+ return await this.actionCall("collection", "SetCollectionRecordCollaborators", payload);
2484
+ }
2485
+
2486
+ public async ListCollectionNotifications(
2487
+ payload: z.infer<typeof ListCollectionNotificationsSchema>
2488
+ ): Promise<TCollectionNotificationPage> {
2489
+ return await this.actionCall("collection", "ListCollectionNotifications", payload);
2490
+ }
2491
+
2492
+ public async MarkCollectionNotificationsRead(
2493
+ payload: z.infer<typeof MarkCollectionNotificationsReadSchema>
2494
+ ): Promise<{ updatedCount: number; notificationIds: string[] }> {
2495
+ return await this.actionCall("collection", "MarkCollectionNotificationsRead", payload);
2496
+ }
2497
+
2092
2498
  public async CheckRecordPermission(
2093
2499
  payload: z.infer<typeof CheckRecordPermissionSchema>
2094
2500
  ): Promise<any> {
@@ -2101,7 +2507,7 @@ export class EmploidService extends ServiceClient {
2101
2507
 
2102
2508
  public async ListRecordPermissions(
2103
2509
  payload: z.infer<typeof ListRecordPermissionsSchema>
2104
- ): Promise<any[]> {
2510
+ ): Promise<TRecordPermissionListResult> {
2105
2511
  return await this.actionCall(
2106
2512
  "collection",
2107
2513
  "ListRecordPermissions",
@@ -2111,7 +2517,7 @@ export class EmploidService extends ServiceClient {
2111
2517
 
2112
2518
  public async GrantRecordPermission(
2113
2519
  payload: z.infer<typeof GrantRecordPermissionSchema>
2114
- ): Promise<any> {
2520
+ ): Promise<TGrantRecordPermissionResult> {
2115
2521
  return await this.actionCall(
2116
2522
  "collection",
2117
2523
  "GrantRecordPermission",
@@ -2122,7 +2528,7 @@ export class EmploidService extends ServiceClient {
2122
2528
 
2123
2529
  public async RevokeRecordPermission(
2124
2530
  payload: z.infer<typeof RevokeRecordPermissionSchema>
2125
- ): Promise<any> {
2531
+ ): Promise<TRevokeRecordPermissionResult> {
2126
2532
  return await this.actionCall(
2127
2533
  "collection",
2128
2534
  "RevokeRecordPermission",