@appconda/nextjs 1.0.400 → 1.0.402

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.
@@ -2,13 +2,13 @@
2
2
 
3
3
  import { z } from 'zod';
4
4
  import { AppcondaException } from '../../client';
5
- import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
6
5
  import { CreateAgentFlowSchema, CreateAssistantSchema, CreateCompetencySchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateJobDefinitionSchema, CreateOccupationSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTeamSchema, CreateWorkerSchema, DeleteAssistantSchema, DeleteChatByIdSchema, DeleteCompetencySchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteEmploidSchema, DeleteInputSchema, DeleteJobDefinitionSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTeamSchema, DeleteWorkerSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, ListAgentFlowsSchema, ListAssistantsSchema, ListCompetenciesSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListJobDefinitionSchema, ListOccupationsSchema, ListScopesSchema, ListSkillsSchema, ListTeamsSchema, ListWorkersSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, UpdateAssistantSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCompetencySchema, UpdateEmploidSchema, UpdateInputSchema, UpdateJobDefinitionSchema, UpdateOccupationSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTeamSchema, UpdateWorkerSchema, VoteMessageSchema } from './schema';
7
6
  import { TEmploid } from './types';
7
+ import { getSDKForService } from '../../getSDKForService';
8
8
 
9
9
  export async function CreateEmploid(parsedInput: z.infer<typeof CreateEmploidSchema>): Promise<TEmploid> {
10
10
  try {
11
- const { emploid } = await getSDKForCurrentUser();
11
+ const { emploid } = await getSDKForService();
12
12
  //@ts-ignore
13
13
  const app = await emploid.CreateEmploid(parsedInput);
14
14
  return app;
@@ -24,7 +24,7 @@ export async function CreateEmploid(parsedInput: z.infer<typeof CreateEmploidSch
24
24
 
25
25
  export const UpdateEmploid = async (parsedInput: z.infer<typeof UpdateEmploidSchema>): Promise<TEmploid> => {
26
26
  try {
27
- const { emploid } = await getSDKForCurrentUser();
27
+ const { emploid } = await getSDKForService();
28
28
  //@ts-ignore
29
29
  const app = await emploid.UpdateEmploid(parsedInput);
30
30
  return app;
@@ -39,7 +39,7 @@ export const UpdateEmploid = async (parsedInput: z.infer<typeof UpdateEmploidSch
39
39
 
40
40
  export const DeleteEmploid = async (parsedInput: z.infer<typeof DeleteEmploidSchema>): Promise<TEmploid> => {
41
41
  try {
42
- const { emploid } = await getSDKForCurrentUser();
42
+ const { emploid } = await getSDKForService();
43
43
  //@ts-ignore
44
44
  const app = await emploid.DeleteEmploid(parsedInput);
45
45
  return app;
@@ -55,7 +55,7 @@ export const DeleteEmploid = async (parsedInput: z.infer<typeof DeleteEmploidSch
55
55
 
56
56
  export const ListEmploids = async (parsedInput: z.infer<typeof ListEmploidsSchema>) => {
57
57
  try {
58
- const { emploid } = await getSDKForCurrentUser();
58
+ const { emploid } = await getSDKForService();
59
59
  //@ts-ignore
60
60
  const app = await emploid.ListEmploids(parsedInput);
61
61
  return app;
@@ -70,7 +70,7 @@ export const ListEmploids = async (parsedInput: z.infer<typeof ListEmploidsSchem
70
70
 
71
71
  export const ListEmploidsPaginated = async (parsedInput: z.infer<typeof ListEmploidsPaginatedSchema>) => {
72
72
  try {
73
- const { emploid } = await getSDKForCurrentUser();
73
+ const { emploid } = await getSDKForService();
74
74
  //@ts-ignore
75
75
  const app = await emploid.ListEmploidsPaginated(parsedInput);
76
76
  return app;
@@ -85,7 +85,7 @@ export const ListEmploidsPaginated = async (parsedInput: z.infer<typeof ListEmpl
85
85
 
86
86
  export const ListScopes = async (parsedInput: z.infer<typeof ListScopesSchema>) => {
87
87
  try {
88
- const { emploid } = await getSDKForCurrentUser();
88
+ const { emploid } = await getSDKForService();
89
89
  //@ts-ignore
90
90
  const app = await emploid.ListScopes(parsedInput);
91
91
  return app;
@@ -100,7 +100,7 @@ export const ListScopes = async (parsedInput: z.infer<typeof ListScopesSchema>)
100
100
 
101
101
  export const CreateOccupation = async (parsedInput: z.infer<typeof CreateOccupationSchema>) => {
102
102
  try {
103
- const { emploid } = await getSDKForCurrentUser();
103
+ const { emploid } = await getSDKForService();
104
104
  //@ts-ignore
105
105
  const app = await emploid.CreateOccupation(parsedInput);
106
106
  return app;
@@ -115,7 +115,7 @@ export const CreateOccupation = async (parsedInput: z.infer<typeof CreateOccupat
115
115
 
116
116
  export const UpdateOccupation = async (parsedInput: z.infer<typeof UpdateOccupationSchema>) => {
117
117
  try {
118
- const { emploid } = await getSDKForCurrentUser();
118
+ const { emploid } = await getSDKForService();
119
119
  //@ts-ignore
120
120
  const app = await emploid.UpdateOccupation(parsedInput);
121
121
  return app;
@@ -130,7 +130,7 @@ export const UpdateOccupation = async (parsedInput: z.infer<typeof UpdateOccupat
130
130
 
131
131
  export const DeleteOccupation = async (parsedInput: z.infer<typeof DeleteOccupationSchema>) => {
132
132
  try {
133
- const { emploid } = await getSDKForCurrentUser();
133
+ const { emploid } = await getSDKForService();
134
134
  //@ts-ignore
135
135
  const app = await emploid.DeleteOccupation(parsedInput);
136
136
  return app;
@@ -146,7 +146,7 @@ export const DeleteOccupation = async (parsedInput: z.infer<typeof DeleteOccupat
146
146
 
147
147
  export const CreateScope = async (parsedInput: z.infer<typeof CreateScopeSchema>) => {
148
148
  try {
149
- const { emploid } = await getSDKForCurrentUser();
149
+ const { emploid } = await getSDKForService();
150
150
  //@ts-ignore
151
151
  const app = await emploid.CreateScope(parsedInput);
152
152
  return app;
@@ -161,7 +161,7 @@ export const CreateScope = async (parsedInput: z.infer<typeof CreateScopeSchema>
161
161
 
162
162
  export const UpdateScope = async (parsedInput: z.infer<typeof UpdateScopeSchema>) => {
163
163
  try {
164
- const { emploid } = await getSDKForCurrentUser();
164
+ const { emploid } = await getSDKForService();
165
165
  //@ts-ignore
166
166
  const app = await emploid.UpdateScope(parsedInput);
167
167
  return app;
@@ -176,7 +176,7 @@ export const UpdateScope = async (parsedInput: z.infer<typeof UpdateScopeSchema>
176
176
 
177
177
  export const DeleteScope = async (parsedInput: z.infer<typeof DeleteScopeSchema>) => {
178
178
  try {
179
- const { emploid } = await getSDKForCurrentUser();
179
+ const { emploid } = await getSDKForService();
180
180
  //@ts-ignore
181
181
  const app = await emploid.DeleteScope(parsedInput);
182
182
  return app;
@@ -192,7 +192,7 @@ export const DeleteScope = async (parsedInput: z.infer<typeof DeleteScopeSchema>
192
192
 
193
193
  export const ListOccupations = async (parsedInput: z.infer<typeof ListOccupationsSchema>) => {
194
194
  try {
195
- const { emploid } = await getSDKForCurrentUser();
195
+ const { emploid } = await getSDKForService();
196
196
  //@ts-ignore
197
197
  const app = await emploid.ListOccupations(parsedInput);
198
198
  return app;
@@ -207,7 +207,7 @@ export const ListOccupations = async (parsedInput: z.infer<typeof ListOccupation
207
207
 
208
208
  export const CreateJobDefinition = async (parsedInput: z.infer<typeof CreateJobDefinitionSchema>) => {
209
209
  try {
210
- const { emploid } = await getSDKForCurrentUser();
210
+ const { emploid } = await getSDKForService();
211
211
  //@ts-ignore
212
212
  const app = await emploid.CreateJobDefinition(parsedInput);
213
213
  return app;
@@ -222,7 +222,7 @@ export const CreateJobDefinition = async (parsedInput: z.infer<typeof CreateJobD
222
222
 
223
223
  export const UpdateJobDefinition = async (parsedInput: z.infer<typeof UpdateJobDefinitionSchema>) => {
224
224
  try {
225
- const { emploid } = await getSDKForCurrentUser();
225
+ const { emploid } = await getSDKForService();
226
226
  //@ts-ignore
227
227
  const app = await emploid.UpdateJobDefinition(parsedInput);
228
228
  return app;
@@ -237,7 +237,7 @@ export const UpdateJobDefinition = async (parsedInput: z.infer<typeof UpdateJobD
237
237
 
238
238
  export const DeleteJobDefinition = async (parsedInput: z.infer<typeof DeleteJobDefinitionSchema>) => {
239
239
  try {
240
- const { emploid } = await getSDKForCurrentUser();
240
+ const { emploid } = await getSDKForService();
241
241
  //@ts-ignore
242
242
  const app = await emploid.DeleteJobDefinition(parsedInput);
243
243
  return app;
@@ -252,7 +252,7 @@ export const DeleteJobDefinition = async (parsedInput: z.infer<typeof DeleteJobD
252
252
 
253
253
  export const ListJobDefinitions = async (parsedInput: z.infer<typeof ListJobDefinitionSchema>) => {
254
254
  try {
255
- const { emploid } = await getSDKForCurrentUser();
255
+ const { emploid } = await getSDKForService();
256
256
  //@ts-ignore
257
257
  const app = await emploid.ListJobDefinitions(parsedInput);
258
258
  return app;
@@ -268,7 +268,7 @@ export const ListJobDefinitions = async (parsedInput: z.infer<typeof ListJobDefi
268
268
 
269
269
  export const CreateCompetency = async (parsedInput: z.infer<typeof CreateCompetencySchema>) => {
270
270
  try {
271
- const { emploid } = await getSDKForCurrentUser();
271
+ const { emploid } = await getSDKForService();
272
272
  //@ts-ignore
273
273
  const app = await emploid.CreateCompetency(parsedInput);
274
274
  return app;
@@ -283,7 +283,7 @@ export const CreateCompetency = async (parsedInput: z.infer<typeof CreateCompete
283
283
 
284
284
  export const UpdateCompetency = async (parsedInput: z.infer<typeof UpdateCompetencySchema>) => {
285
285
  try {
286
- const { emploid } = await getSDKForCurrentUser();
286
+ const { emploid } = await getSDKForService();
287
287
  //@ts-ignore
288
288
  const app = await emploid.UpdateCompetency(parsedInput);
289
289
  return app;
@@ -298,7 +298,7 @@ export const UpdateCompetency = async (parsedInput: z.infer<typeof UpdateCompete
298
298
 
299
299
  export const DeleteCompetency = async (parsedInput: z.infer<typeof DeleteCompetencySchema>) => {
300
300
  try {
301
- const { emploid } = await getSDKForCurrentUser();
301
+ const { emploid } = await getSDKForService();
302
302
  //@ts-ignore
303
303
  const app = await emploid.DeleteCompetency(parsedInput);
304
304
  return app;
@@ -313,7 +313,7 @@ export const DeleteCompetency = async (parsedInput: z.infer<typeof DeleteCompete
313
313
 
314
314
  export const ListCompetencies = async (parsedInput: z.infer<typeof ListCompetenciesSchema>) => {
315
315
  try {
316
- const { emploid } = await getSDKForCurrentUser();
316
+ const { emploid } = await getSDKForService();
317
317
  //@ts-ignore
318
318
  const app = await emploid.ListCompetencies(parsedInput);
319
319
  return app;
@@ -328,7 +328,7 @@ export const ListCompetencies = async (parsedInput: z.infer<typeof ListCompetenc
328
328
 
329
329
  export const CreateAgentFlow = async (parsedInput: z.infer<typeof CreateAgentFlowSchema>) => {
330
330
  try {
331
- const { emploid } = await getSDKForCurrentUser();
331
+ const { emploid } = await getSDKForService();
332
332
  //@ts-ignore
333
333
  const app = await emploid.CreateAgentFlow(parsedInput);
334
334
  return app;
@@ -343,7 +343,7 @@ export const CreateAgentFlow = async (parsedInput: z.infer<typeof CreateAgentFlo
343
343
 
344
344
  export const ListAgentFlows = async (parsedInput: z.infer<typeof ListAgentFlowsSchema>) => {
345
345
  try {
346
- const { emploid } = await getSDKForCurrentUser();
346
+ const { emploid } = await getSDKForService();
347
347
  //@ts-ignore
348
348
  const app = await emploid.ListAgentFlows(parsedInput);
349
349
  return app;
@@ -358,7 +358,7 @@ export const ListAgentFlows = async (parsedInput: z.infer<typeof ListAgentFlowsS
358
358
 
359
359
  export const CreateExtension = async (parsedInput: z.infer<typeof CreateExtensionSchema>) => {
360
360
  try {
361
- const { emploid } = await getSDKForCurrentUser();
361
+ const { emploid } = await getSDKForService();
362
362
  //@ts-ignore
363
363
  const app = await emploid.CreateExtension(parsedInput);
364
364
  return app;
@@ -373,7 +373,7 @@ export const CreateExtension = async (parsedInput: z.infer<typeof CreateExtensio
373
373
 
374
374
  export const ListExtensions = async (parsedInput: z.infer<typeof ListExtensionsSchema>) => {
375
375
  try {
376
- const { emploid } = await getSDKForCurrentUser();
376
+ const { emploid } = await getSDKForService();
377
377
  //@ts-ignore
378
378
  const app = await emploid.ListExtensions(parsedInput);
379
379
  return app;
@@ -388,7 +388,7 @@ export const ListExtensions = async (parsedInput: z.infer<typeof ListExtensionsS
388
388
 
389
389
  export const CreateAssistant = async (parsedInput: z.infer<typeof CreateAssistantSchema>) => {
390
390
  try {
391
- const { emploid } = await getSDKForCurrentUser();
391
+ const { emploid } = await getSDKForService();
392
392
  //@ts-ignore
393
393
  const app = await emploid.CreateAssistant(parsedInput);
394
394
  return app;
@@ -403,7 +403,7 @@ export const CreateAssistant = async (parsedInput: z.infer<typeof CreateAssistan
403
403
 
404
404
  export const UpdateAssistant = async (parsedInput: z.infer<typeof UpdateAssistantSchema>) => {
405
405
  try {
406
- const { emploid } = await getSDKForCurrentUser();
406
+ const { emploid } = await getSDKForService();
407
407
  //@ts-ignore
408
408
  const app = await emploid.UpdateAssistant(parsedInput);
409
409
  return app;
@@ -418,7 +418,7 @@ export const UpdateAssistant = async (parsedInput: z.infer<typeof UpdateAssistan
418
418
 
419
419
  export const DeleteAssistant = async (parsedInput: z.infer<typeof DeleteAssistantSchema>) => {
420
420
  try {
421
- const { emploid } = await getSDKForCurrentUser();
421
+ const { emploid } = await getSDKForService();
422
422
  //@ts-ignore
423
423
  const app = await emploid.DeleteAssistant(parsedInput);
424
424
  return app;
@@ -433,7 +433,7 @@ export const DeleteAssistant = async (parsedInput: z.infer<typeof DeleteAssistan
433
433
 
434
434
  export const ListAssistants = async (parsedInput: z.infer<typeof ListAssistantsSchema>) => {
435
435
  try {
436
- const { emploid } = await getSDKForCurrentUser();
436
+ const { emploid } = await getSDKForService();
437
437
  //@ts-ignore
438
438
  const app = await emploid.ListAssistants(parsedInput);
439
439
  return app;
@@ -448,7 +448,7 @@ export const ListAssistants = async (parsedInput: z.infer<typeof ListAssistantsS
448
448
 
449
449
  export const CreateWorker = async (parsedInput: z.infer<typeof CreateWorkerSchema>) => {
450
450
  try {
451
- const { emploid } = await getSDKForCurrentUser();
451
+ const { emploid } = await getSDKForService();
452
452
  //@ts-ignore
453
453
  const app = await emploid.CreateWorker(parsedInput);
454
454
  return app;
@@ -463,7 +463,7 @@ export const CreateWorker = async (parsedInput: z.infer<typeof CreateWorkerSchem
463
463
 
464
464
  export const UpdateWorker = async (parsedInput: z.infer<typeof UpdateWorkerSchema>) => {
465
465
  try {
466
- const { emploid } = await getSDKForCurrentUser();
466
+ const { emploid } = await getSDKForService();
467
467
  //@ts-ignore
468
468
  const app = await emploid.UpdateWorker(parsedInput);
469
469
  return app;
@@ -478,7 +478,7 @@ export const UpdateWorker = async (parsedInput: z.infer<typeof UpdateWorkerSchem
478
478
 
479
479
  export const DeleteWorker = async (parsedInput: z.infer<typeof DeleteWorkerSchema>) => {
480
480
  try {
481
- const { emploid } = await getSDKForCurrentUser();
481
+ const { emploid } = await getSDKForService();
482
482
  //@ts-ignore
483
483
  const app = await emploid.DeleteWorker(parsedInput);
484
484
  return app;
@@ -493,7 +493,7 @@ export const DeleteWorker = async (parsedInput: z.infer<typeof DeleteWorkerSchem
493
493
 
494
494
  export const ListWorkers = async (parsedInput: z.infer<typeof ListWorkersSchema>) => {
495
495
  try {
496
- const { emploid } = await getSDKForCurrentUser();
496
+ const { emploid } = await getSDKForService();
497
497
  //@ts-ignore
498
498
  const app = await emploid.ListWorkers(parsedInput);
499
499
  return app;
@@ -508,7 +508,7 @@ export const ListWorkers = async (parsedInput: z.infer<typeof ListWorkersSchema>
508
508
 
509
509
  export const CreateInput = async (parsedInput: z.infer<typeof CreateInputSchema>) => {
510
510
  try {
511
- const { emploid } = await getSDKForCurrentUser();
511
+ const { emploid } = await getSDKForService();
512
512
  //@ts-ignore
513
513
  const app = await emploid.CreateInput(parsedInput);
514
514
  return app;
@@ -523,7 +523,7 @@ export const CreateInput = async (parsedInput: z.infer<typeof CreateInputSchema>
523
523
 
524
524
  export const UpdateInput = async (parsedInput: z.infer<typeof UpdateInputSchema>) => {
525
525
  try {
526
- const { emploid } = await getSDKForCurrentUser();
526
+ const { emploid } = await getSDKForService();
527
527
  //@ts-ignore
528
528
  const app = await emploid.UpdateInput(parsedInput);
529
529
  return app;
@@ -538,7 +538,7 @@ export const UpdateInput = async (parsedInput: z.infer<typeof UpdateInputSchema>
538
538
 
539
539
  export const DeleteInput = async (parsedInput: z.infer<typeof DeleteInputSchema>) => {
540
540
  try {
541
- const { emploid } = await getSDKForCurrentUser();
541
+ const { emploid } = await getSDKForService();
542
542
  //@ts-ignore
543
543
  const app = await emploid.DeleteInput(parsedInput);
544
544
  return app;
@@ -553,7 +553,7 @@ export const DeleteInput = async (parsedInput: z.infer<typeof DeleteInputSchema>
553
553
 
554
554
  export const ListInputs = async (parsedInput: z.infer<typeof ListInputSchema>) => {
555
555
  try {
556
- const { emploid } = await getSDKForCurrentUser();
556
+ const { emploid } = await getSDKForService();
557
557
  //@ts-ignore
558
558
  const app = await emploid.ListInputs(parsedInput);
559
559
  return app;
@@ -568,7 +568,7 @@ export const ListInputs = async (parsedInput: z.infer<typeof ListInputSchema>) =
568
568
 
569
569
  export const CreateTeam = async (parsedInput: z.infer<typeof CreateTeamSchema>) => {
570
570
  try {
571
- const { emploid } = await getSDKForCurrentUser();
571
+ const { emploid } = await getSDKForService();
572
572
  //@ts-ignore
573
573
  const app = await emploid.CreateTeam(parsedInput);
574
574
  return app;
@@ -583,7 +583,7 @@ export const CreateTeam = async (parsedInput: z.infer<typeof CreateTeamSchema>)
583
583
 
584
584
  export const UpdateTeam = async (parsedInput: z.infer<typeof UpdateTeamSchema>) => {
585
585
  try {
586
- const { emploid } = await getSDKForCurrentUser();
586
+ const { emploid } = await getSDKForService();
587
587
  //@ts-ignore
588
588
  const app = await emploid.UpdateTeam(parsedInput);
589
589
  return app;
@@ -598,7 +598,7 @@ export const UpdateTeam = async (parsedInput: z.infer<typeof UpdateTeamSchema>)
598
598
 
599
599
  export const DeleteTeam = async (parsedInput: z.infer<typeof DeleteTeamSchema>) => {
600
600
  try {
601
- const { emploid } = await getSDKForCurrentUser();
601
+ const { emploid } = await getSDKForService();
602
602
  //@ts-ignore
603
603
  const app = await emploid.DeleteTeam(parsedInput);
604
604
  return app;
@@ -613,7 +613,7 @@ export const DeleteTeam = async (parsedInput: z.infer<typeof DeleteTeamSchema>)
613
613
 
614
614
  export const ListTeams = async (parsedInput: z.infer<typeof ListTeamsSchema>) => {
615
615
  try {
616
- const { emploid } = await getSDKForCurrentUser();
616
+ const { emploid } = await getSDKForService();
617
617
  //@ts-ignore
618
618
  const app = await emploid.ListTeams(parsedInput);
619
619
  return app;
@@ -628,7 +628,7 @@ export const ListTeams = async (parsedInput: z.infer<typeof ListTeamsSchema>) =>
628
628
 
629
629
  export const SaveChat = async (parsedInput: z.infer<typeof SaveChatSchema>) => {
630
630
  try {
631
- const { emploid } = await getSDKForCurrentUser();
631
+ const { emploid } = await getSDKForService();
632
632
  //@ts-ignore
633
633
  const app = await emploid.SaveChat(parsedInput);
634
634
  return app;
@@ -643,7 +643,7 @@ export const SaveChat = async (parsedInput: z.infer<typeof SaveChatSchema>) => {
643
643
 
644
644
  export const DeleteChatById = async (parsedInput: z.infer<typeof DeleteChatByIdSchema>) => {
645
645
  try {
646
- const { emploid } = await getSDKForCurrentUser();
646
+ const { emploid } = await getSDKForService();
647
647
  //@ts-ignore
648
648
  const app = await emploid.DeleteChatById(parsedInput);
649
649
  return app;
@@ -658,7 +658,7 @@ export const DeleteChatById = async (parsedInput: z.infer<typeof DeleteChatByIdS
658
658
 
659
659
  export const GetChatById = async (parsedInput: z.infer<typeof GetChatByIdSchema>) => {
660
660
  try {
661
- const { emploid } = await getSDKForCurrentUser();
661
+ const { emploid } = await getSDKForService();
662
662
  //@ts-ignore
663
663
  const app = await emploid.GetChatById(parsedInput);
664
664
  return app;
@@ -673,7 +673,7 @@ export const GetChatById = async (parsedInput: z.infer<typeof GetChatByIdSchema>
673
673
 
674
674
  export const GetChatsByUserId = async (parsedInput: z.infer<typeof GetChatsByUserIdSchema>) => {
675
675
  try {
676
- const { emploid } = await getSDKForCurrentUser();
676
+ const { emploid } = await getSDKForService();
677
677
  //@ts-ignore
678
678
  const app = await emploid.GetChatsByUserId(parsedInput);
679
679
  return app;
@@ -688,7 +688,7 @@ export const GetChatsByUserId = async (parsedInput: z.infer<typeof GetChatsByUse
688
688
 
689
689
  export const SaveMessages = async (parsedInput: z.infer<typeof SaveMessagesSchema>) => {
690
690
  try {
691
- const { emploid } = await getSDKForCurrentUser();
691
+ const { emploid } = await getSDKForService();
692
692
  //@ts-ignore
693
693
  const app = await emploid.SaveMessages(parsedInput);
694
694
  return app;
@@ -703,7 +703,7 @@ export const SaveMessages = async (parsedInput: z.infer<typeof SaveMessagesSchem
703
703
 
704
704
  export const GetMessagesByChatId = async (parsedInput: z.infer<typeof GetMessagesByChatIdSchema>) => {
705
705
  try {
706
- const { emploid } = await getSDKForCurrentUser();
706
+ const { emploid } = await getSDKForService();
707
707
  //@ts-ignore
708
708
  const app = await emploid.GetMessagesByChatId(parsedInput);
709
709
  return app;
@@ -718,7 +718,7 @@ export const GetMessagesByChatId = async (parsedInput: z.infer<typeof GetMessage
718
718
 
719
719
  export const GetMessageById = async (parsedInput: z.infer<typeof GetMessageByIdSchema>) => {
720
720
  try {
721
- const { emploid } = await getSDKForCurrentUser();
721
+ const { emploid } = await getSDKForService();
722
722
  //@ts-ignore
723
723
  const app = await emploid.GetMessageById(parsedInput);
724
724
  return app;
@@ -733,7 +733,7 @@ export const GetMessageById = async (parsedInput: z.infer<typeof GetMessageByIdS
733
733
 
734
734
  export const VoteMessage = async (parsedInput: z.infer<typeof VoteMessageSchema>) => {
735
735
  try {
736
- const { emploid } = await getSDKForCurrentUser();
736
+ const { emploid } = await getSDKForService();
737
737
  //@ts-ignore
738
738
  const app = await emploid.VoteMessage(parsedInput);
739
739
  return app;
@@ -748,7 +748,7 @@ export const VoteMessage = async (parsedInput: z.infer<typeof VoteMessageSchema>
748
748
 
749
749
  export const GetVotesByChatId = async (parsedInput: z.infer<typeof GetVotesByChatIdSchema>) => {
750
750
  try {
751
- const { emploid } = await getSDKForCurrentUser();
751
+ const { emploid } = await getSDKForService();
752
752
  //@ts-ignore
753
753
  const app = await emploid.GetVotesByChatId(parsedInput);
754
754
  return app;
@@ -763,7 +763,7 @@ export const GetVotesByChatId = async (parsedInput: z.infer<typeof GetVotesByCha
763
763
 
764
764
  export const DeleteDocumentsByIdAfterTimestamp = async (parsedInput: z.infer<typeof DeleteDocumentsByIdAfterTimestampSchema>) => {
765
765
  try {
766
- const { emploid } = await getSDKForCurrentUser();
766
+ const { emploid } = await getSDKForService();
767
767
  //@ts-ignore
768
768
  const app = await emploid.DeleteDocumentsByIdAfterTimestamp(parsedInput);
769
769
  return app;
@@ -778,7 +778,7 @@ export const DeleteDocumentsByIdAfterTimestamp = async (parsedInput: z.infer<typ
778
778
 
779
779
  export const SaveSuggestions = async (parsedInput: z.infer<typeof SaveSuggestionsSchema>) => {
780
780
  try {
781
- const { emploid } = await getSDKForCurrentUser();
781
+ const { emploid } = await getSDKForService();
782
782
  //@ts-ignore
783
783
  const app = await emploid.SaveSuggestions(parsedInput);
784
784
  return app;
@@ -793,7 +793,7 @@ export const SaveSuggestions = async (parsedInput: z.infer<typeof SaveSuggestion
793
793
 
794
794
  export const GetSuggestionsByDocumentId = async (parsedInput: z.infer<typeof GetSuggestionsByDocumentIdSchema>) => {
795
795
  try {
796
- const { emploid } = await getSDKForCurrentUser();
796
+ const { emploid } = await getSDKForService();
797
797
  //@ts-ignore
798
798
  const app = await emploid.GetSuggestionsByDocumentId(parsedInput);
799
799
  return app;
@@ -808,7 +808,7 @@ export const GetSuggestionsByDocumentId = async (parsedInput: z.infer<typeof Get
808
808
 
809
809
  export const DeleteMessagesByChatIdAfterTimestamp = async (parsedInput: z.infer<typeof DeleteMessagesByChatIdAfterTimestampSchema>) => {
810
810
  try {
811
- const { emploid } = await getSDKForCurrentUser();
811
+ const { emploid } = await getSDKForService();
812
812
  //@ts-ignore
813
813
  const app = await emploid.DeleteMessagesByChatIdAfterTimestamp(parsedInput);
814
814
  return app;
@@ -823,7 +823,7 @@ export const DeleteMessagesByChatIdAfterTimestamp = async (parsedInput: z.infer<
823
823
 
824
824
  export const UpdateChatVisiblityById = async (parsedInput: z.infer<typeof UpdateChatVisiblityByIdSchema>) => {
825
825
  try {
826
- const { emploid } = await getSDKForCurrentUser();
826
+ const { emploid } = await getSDKForService();
827
827
  //@ts-ignore
828
828
  const app = await emploid.UpdateChatVisiblityById(parsedInput);
829
829
  return app;
@@ -838,7 +838,7 @@ export const UpdateChatVisiblityById = async (parsedInput: z.infer<typeof Update
838
838
 
839
839
  export const UpdateChatLastContextById = async (parsedInput: z.infer<typeof UpdateChatLastContextByIdSchema>) => {
840
840
  try {
841
- const { emploid } = await getSDKForCurrentUser();
841
+ const { emploid } = await getSDKForService();
842
842
  //@ts-ignore
843
843
  const app = await emploid.UpdateChatLastContextById(parsedInput);
844
844
  return app;
@@ -853,7 +853,7 @@ export const UpdateChatLastContextById = async (parsedInput: z.infer<typeof Upda
853
853
 
854
854
  export const GetMessageCountByUserId = async (parsedInput: z.infer<typeof GetMessageCountByUserIdSchema>) => {
855
855
  try {
856
- const { emploid } = await getSDKForCurrentUser();
856
+ const { emploid } = await getSDKForService();
857
857
  //@ts-ignore
858
858
  const app = await emploid.GetMessageCountByUserId(parsedInput);
859
859
  return app;
@@ -868,7 +868,7 @@ export const GetMessageCountByUserId = async (parsedInput: z.infer<typeof GetMes
868
868
 
869
869
  export const CreateStreamId = async (parsedInput: z.infer<typeof CreateStreamIdSchema>) => {
870
870
  try {
871
- const { emploid } = await getSDKForCurrentUser();
871
+ const { emploid } = await getSDKForService();
872
872
  //@ts-ignore
873
873
  const app = await emploid.CreateStreamId(parsedInput);
874
874
  return app;
@@ -883,7 +883,7 @@ export const CreateStreamId = async (parsedInput: z.infer<typeof CreateStreamIdS
883
883
 
884
884
  export const GetStreamIdsByChatId = async (parsedInput: z.infer<typeof GetStreamIdsByChatIdSchema>) => {
885
885
  try {
886
- const { emploid } = await getSDKForCurrentUser();
886
+ const { emploid } = await getSDKForService();
887
887
  //@ts-ignore
888
888
  const app = await emploid.GetStreamIdsByChatId(parsedInput);
889
889
  return app;
@@ -898,7 +898,7 @@ export const GetStreamIdsByChatId = async (parsedInput: z.infer<typeof GetStream
898
898
 
899
899
  export const SaveDocument = async (parsedInput: z.infer<typeof SaveDocumentSchema>) => {
900
900
  try {
901
- const { emploid } = await getSDKForCurrentUser();
901
+ const { emploid } = await getSDKForService();
902
902
  //@ts-ignore
903
903
  const app = await emploid.SaveDocument(parsedInput);
904
904
  return app;
@@ -913,7 +913,7 @@ export const SaveDocument = async (parsedInput: z.infer<typeof SaveDocumentSchem
913
913
 
914
914
  export const GetDocumentById = async (parsedInput: z.infer<typeof GetDocumentByIdSchema>) => {
915
915
  try {
916
- const { emploid } = await getSDKForCurrentUser();
916
+ const { emploid } = await getSDKForService();
917
917
  //@ts-ignore
918
918
  const app = await emploid.GetDocumentById(parsedInput);
919
919
  return app;
@@ -928,7 +928,7 @@ export const GetDocumentById = async (parsedInput: z.infer<typeof GetDocumentByI
928
928
 
929
929
  export const GetDocumentsById = async (parsedInput: z.infer<typeof GetDocumentsByIdSchema>) => {
930
930
  try {
931
- const { emploid } = await getSDKForCurrentUser();
931
+ const { emploid } = await getSDKForService();
932
932
  //@ts-ignore
933
933
  const app = await emploid.GetDocumentsById(parsedInput);
934
934
  return app;
@@ -943,7 +943,7 @@ export const GetDocumentsById = async (parsedInput: z.infer<typeof GetDocumentsB
943
943
 
944
944
  export const CreateSkill = async (parsedInput: z.infer<typeof CreateSkillSchema>) => {
945
945
  try {
946
- const { emploid } = await getSDKForCurrentUser();
946
+ const { emploid } = await getSDKForService();
947
947
  //@ts-ignore
948
948
  const app = await emploid.CreateSkill(parsedInput);
949
949
  return app;
@@ -958,7 +958,7 @@ export const CreateSkill = async (parsedInput: z.infer<typeof CreateSkillSchema>
958
958
 
959
959
  export const UpdateSkill = async (parsedInput: z.infer<typeof UpdateSkillSchema>) => {
960
960
  try {
961
- const { emploid } = await getSDKForCurrentUser();
961
+ const { emploid } = await getSDKForService();
962
962
  //@ts-ignore
963
963
  const app = await emploid.UpdateSkill(parsedInput);
964
964
  return app;
@@ -973,7 +973,7 @@ export const UpdateSkill = async (parsedInput: z.infer<typeof UpdateSkillSchema>
973
973
 
974
974
  export const DeleteSkill = async (parsedInput: z.infer<typeof DeleteSkillSchema>) => {
975
975
  try {
976
- const { emploid } = await getSDKForCurrentUser();
976
+ const { emploid } = await getSDKForService();
977
977
  //@ts-ignore
978
978
  const app = await emploid.DeleteSkill(parsedInput);
979
979
  return app;
@@ -988,7 +988,7 @@ export const DeleteSkill = async (parsedInput: z.infer<typeof DeleteSkillSchema>
988
988
 
989
989
  export const ListSkills = async (parsedInput: z.infer<typeof ListSkillsSchema>) => {
990
990
  try {
991
- const { emploid } = await getSDKForCurrentUser();
991
+ const { emploid } = await getSDKForService();
992
992
  //@ts-ignore
993
993
  const app = await emploid.ListSkills(parsedInput);
994
994
  return app;