@droz-js/sdk 0.3.3 → 0.3.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.3.3",
4
+ "version": "0.3.5",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -64,7 +64,7 @@ class HttpRequester {
64
64
  }
65
65
  async buildRequest() {
66
66
  const [authorization, tenant] = await Promise.all([
67
- config_1.DrozSdk.getAuthorization(this.authorization),
67
+ config_1.DrozSdk.getAuthorization(this.authorization), //
68
68
  config_1.DrozSdk.getTenantConfig(this.tenant)
69
69
  ]);
70
70
  const endpoint = tenant.getEndpoint(this.serviceName);
package/src/client/ws.js CHANGED
@@ -14,7 +14,7 @@ class WsRequester {
14
14
  if (this.client)
15
15
  return this.client;
16
16
  const [tenant, authorization] = await Promise.all([
17
- config_1.DrozSdk.getTenantConfig(),
17
+ config_1.DrozSdk.getTenantConfig(), //
18
18
  config_1.DrozSdk.getAuthorization()
19
19
  ]);
20
20
  const endpoint = tenant.getEndpoint(this.serviceName, 'ws');
@@ -5,14 +5,42 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
6
  withCustomHeaders(headers: () => Record<string, string>): any;
7
7
  } & {
8
+ getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{
9
+ [key: string]: never;
10
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>;
11
+ listAccounts(variables?: import("./sdks/drozcommons").Exact<{
12
+ [key: string]: never;
13
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>;
14
+ listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{
15
+ [key: string]: never;
16
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitRepositoriesQuery>;
17
+ listGitBranches(variables: import("./sdks/drozcommons").Exact<{
18
+ gitRepositoryId: string;
19
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
20
+ deploymentLogs(variables: import("./sdks/drozcommons").Exact<{
21
+ tenantId: string;
22
+ deploymentId: string;
23
+ next?: object;
24
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").DeploymentLogsQuery>;
8
25
  listServices(variables: import("./sdks/drozcommons").Exact<{
9
26
  tenantId: string;
10
27
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListServicesQuery>;
11
28
  getTenant(variables: import("./sdks/drozcommons").Exact<{
12
29
  tenantId: string;
13
30
  withServices?: boolean;
31
+ withDeployments?: boolean;
14
32
  }>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantQuery>;
15
33
  listTenants(variables?: import("./sdks/drozcommons").Exact<{
16
34
  withServices?: boolean;
35
+ withDeployments?: boolean;
17
36
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantsQuery>;
37
+ createTenant(variables: import("./sdks/drozcommons").Exact<{
38
+ input: import("./sdks/drozcommons").CreateTenantInput;
39
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").CreateTenantMutation>;
40
+ updateTenant(variables: import("./sdks/drozcommons").Exact<{
41
+ input: import("./sdks/drozcommons").UpdateTenantInput;
42
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateTenantMutation>;
43
+ removeTenant(variables: import("./sdks/drozcommons").Exact<{
44
+ input: import("./sdks/drozcommons").RemoveTenantInput;
45
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantMutation>;
18
46
  };
@@ -3,6 +3,21 @@ export declare const DrozChatWs: new () => {
3
3
  readonly ws: any;
4
4
  connect(): Promise<void>;
5
5
  } & {
6
+ getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
7
+ id: string;
8
+ }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>;
9
+ listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{
10
+ [key: string]: never;
11
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>;
12
+ createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
13
+ input: import("./sdks/drozchat").CreateDrozChatChannelInput;
14
+ }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>;
15
+ updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
16
+ input: import("./sdks/drozchat").UpdateDrozChatChannelInput;
17
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>;
18
+ removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
19
+ input: import("./sdks/drozchat").RemoveDrozChatChannelInput;
20
+ }>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>;
6
21
  getTicket(variables: import("./sdks/drozchat").Exact<{
7
22
  id: string;
8
23
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/drozchat.d.ts CHANGED
@@ -5,6 +5,21 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
6
  withCustomHeaders(headers: () => Record<string, string>): any;
7
7
  } & {
8
+ getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
9
+ id: string;
10
+ }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>;
11
+ listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{
12
+ [key: string]: never;
13
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>;
14
+ createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
15
+ input: import("./sdks/drozchat").CreateDrozChatChannelInput;
16
+ }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>;
17
+ updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
18
+ input: import("./sdks/drozchat").UpdateDrozChatChannelInput;
19
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>;
20
+ removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
21
+ input: import("./sdks/drozchat").RemoveDrozChatChannelInput;
22
+ }>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>;
8
23
  getTicket(variables: import("./sdks/drozchat").Exact<{
9
24
  id: string;
10
25
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/nucleus.d.ts CHANGED
@@ -17,6 +17,9 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
17
17
  listApiKeyAgents(variables?: import("./sdks/nucleus").Exact<{
18
18
  next?: object;
19
19
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListApiKeyAgentsQuery>;
20
+ updateMyProfile(variables: import("./sdks/nucleus").Exact<{
21
+ input: import("./sdks/nucleus").UpdateMyProfileInput;
22
+ }>, options?: unknown): Promise<import("./sdks/nucleus").UpdateMyProfileMutation>;
20
23
  createAgent(variables: import("./sdks/nucleus").Exact<{
21
24
  input: import("./sdks/nucleus").CreateAgentInput;
22
25
  }>, options?: unknown): Promise<import("./sdks/nucleus").CreateAgentMutation>;
@@ -102,6 +105,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
102
105
  removeCronJob(variables: import("./sdks/nucleus").Exact<{
103
106
  input: import("./sdks/nucleus").RemoveCronJobInput;
104
107
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveCronJobMutation>;
108
+ listSystemRoles(variables?: import("./sdks/nucleus").Exact<{
109
+ [key: string]: never;
110
+ }>, options?: unknown): Promise<import("./sdks/nucleus").ListSystemRolesQuery>;
111
+ getSystemRole(variables: import("./sdks/nucleus").Exact<{
112
+ id: string;
113
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetSystemRoleQuery>;
105
114
  startSession(variables: import("./sdks/nucleus").Exact<{
106
115
  input: import("./sdks/nucleus").StartSessionInput;
107
116
  withCustomer?: boolean;
@@ -101,7 +101,11 @@ export type AssignTicketMyselfInput = {
101
101
  export type CloseTicketInput = {
102
102
  ticketId: Scalars['ID']['input'];
103
103
  };
104
+ export type CreateDrozChatChannelInput = {
105
+ name?: InputMaybe<Scalars['String']['input']>;
106
+ };
104
107
  export type CreateTicketInput = {
108
+ channelId: Scalars['ID']['input'];
105
109
  customerId: Scalars['ID']['input'];
106
110
  subject: Scalars['String']['input'];
107
111
  };
@@ -117,6 +121,12 @@ export type DrozChatAgent = {
117
121
  name: Scalars['String']['output'];
118
122
  updatedAt: Scalars['String']['output'];
119
123
  };
124
+ export type DrozChatChannel = {
125
+ createdAt: Scalars['DateTime']['output'];
126
+ id: Scalars['ID']['output'];
127
+ name: Scalars['String']['output'];
128
+ updatedAt: Scalars['DateTime']['output'];
129
+ };
120
130
  export type DrozChatCustomer = {
121
131
  createdAt: Scalars['String']['output'];
122
132
  email: Scalars['String']['output'];
@@ -132,10 +142,13 @@ export type Mutation = {
132
142
  assignTicket: Ticket;
133
143
  assignTicketMyself: Ticket;
134
144
  closeTicket: Ticket;
145
+ createDrozChatChannel?: Maybe<DrozChatChannel>;
135
146
  createTicket: Ticket;
136
147
  createTicketMessage: TicketMessage;
137
148
  markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
149
+ removeDrozChatChannel?: Maybe<DrozChatChannel>;
138
150
  unassignTicket: Ticket;
151
+ updateDrozChatChannel?: Maybe<DrozChatChannel>;
139
152
  version?: Maybe<Scalars['String']['output']>;
140
153
  };
141
154
  export type MutationAssignTicketArgs = {
@@ -147,6 +160,9 @@ export type MutationAssignTicketMyselfArgs = {
147
160
  export type MutationCloseTicketArgs = {
148
161
  input: CloseTicketInput;
149
162
  };
163
+ export type MutationCreateDrozChatChannelArgs = {
164
+ input: CreateDrozChatChannelInput;
165
+ };
150
166
  export type MutationCreateTicketArgs = {
151
167
  input: CreateTicketInput;
152
168
  };
@@ -156,18 +172,26 @@ export type MutationCreateTicketMessageArgs = {
156
172
  export type MutationMarkTicketMessagesAsReadArgs = {
157
173
  input: MarkTicketMessagesAsReadInput;
158
174
  };
175
+ export type MutationRemoveDrozChatChannelArgs = {
176
+ input: RemoveDrozChatChannelInput;
177
+ };
159
178
  export type MutationUnassignTicketArgs = {
160
179
  input: UnassignTicketInput;
161
180
  };
181
+ export type MutationUpdateDrozChatChannelArgs = {
182
+ input: UpdateDrozChatChannelInput;
183
+ };
162
184
  export type PageInfo = {
163
185
  hasNext: Scalars['Boolean']['output'];
164
186
  next?: Maybe<Scalars['Base64']['output']>;
165
187
  };
166
188
  export type Query = {
167
189
  app?: Maybe<Scalars['DRN']['output']>;
190
+ getDrozChatChannel?: Maybe<DrozChatChannel>;
168
191
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
169
192
  getTicket?: Maybe<Ticket>;
170
193
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
194
+ listDrozChatChannels: Array<DrozChatChannel>;
171
195
  listTicketMessages: TicketMessagesConnection;
172
196
  listTickets: TicketsConnection;
173
197
  listTicketsClosed: TicketsConnection;
@@ -176,6 +200,9 @@ export type Query = {
176
200
  listTicketsInQueue: TicketsConnection;
177
201
  version?: Maybe<Scalars['String']['output']>;
178
202
  };
203
+ export type QueryGetDrozChatChannelArgs = {
204
+ id: Scalars['ID']['input'];
205
+ };
179
206
  export type QueryGetTicketArgs = {
180
207
  id: Scalars['ID']['input'];
181
208
  };
@@ -200,6 +227,9 @@ export type QueryListTicketsInProgressMineArgs = {
200
227
  export type QueryListTicketsInQueueArgs = {
201
228
  next?: InputMaybe<Scalars['Base64']['input']>;
202
229
  };
230
+ export type RemoveDrozChatChannelInput = {
231
+ id: Scalars['ID']['input'];
232
+ };
203
233
  export type Subscription = {
204
234
  onTicketClosed: TicketSubscription;
205
235
  onTicketInProgressMine: TicketSubscription;
@@ -218,7 +248,8 @@ export declare enum SubscriptionAction {
218
248
  export type Ticket = {
219
249
  assignee?: Maybe<DrozChatAgent>;
220
250
  assigneeId?: Maybe<Scalars['ID']['output']>;
221
- channel?: Maybe<TicketChannel>;
251
+ channel: DrozChatChannel;
252
+ channelId: Scalars['ID']['output'];
222
253
  createdAt: Scalars['DateTime']['output'];
223
254
  customer: DrozChatCustomer;
224
255
  customerId: Scalars['ID']['output'];
@@ -230,16 +261,11 @@ export type Ticket = {
230
261
  state: TicketState;
231
262
  status: TicketStatus;
232
263
  subject?: Maybe<Scalars['String']['output']>;
264
+ triggerApp?: Maybe<TicketTriggerApp>;
233
265
  triggerDrn?: Maybe<Scalars['DRN']['output']>;
234
266
  unreadMessagesCount: Scalars['Int']['output'];
235
267
  updatedAt: Scalars['DateTime']['output'];
236
268
  };
237
- export type TicketChannel = {
238
- appId?: Maybe<Scalars['ID']['output']>;
239
- appName?: Maybe<Scalars['String']['output']>;
240
- drn?: Maybe<Scalars['DRN']['output']>;
241
- name?: Maybe<Scalars['String']['output']>;
242
- };
243
269
  export type TicketMessage = {
244
270
  content: Scalars['String']['output'];
245
271
  contentType: Scalars['String']['output'];
@@ -286,12 +312,19 @@ export type TicketSubscription = {
286
312
  action: SubscriptionAction;
287
313
  ticket: Ticket;
288
314
  };
315
+ export type TicketTriggerApp = {
316
+ appId?: Maybe<Scalars['ID']['output']>;
317
+ appName?: Maybe<Scalars['String']['output']>;
318
+ drn?: Maybe<Scalars['DRN']['output']>;
319
+ name?: Maybe<Scalars['String']['output']>;
320
+ };
289
321
  export type TicketsConnection = {
290
322
  nodes: Array<Ticket>;
291
323
  pageInfo: PageInfo;
292
324
  };
293
325
  export declare enum Typenames {
294
326
  Any = "Any",
327
+ Channels = "Channels",
295
328
  GraphqlConnections = "GraphqlConnections",
296
329
  GraphqlSubscriptions = "GraphqlSubscriptions",
297
330
  TicketMappings = "TicketMappings",
@@ -301,13 +334,48 @@ export declare enum Typenames {
301
334
  export type UnassignTicketInput = {
302
335
  ticketId: Scalars['ID']['input'];
303
336
  };
337
+ export type UpdateDrozChatChannelInput = {
338
+ id: Scalars['ID']['input'];
339
+ name?: InputMaybe<Scalars['String']['input']>;
340
+ };
341
+ export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
342
+ export type GetDrozChatChannelQueryVariables = Exact<{
343
+ id: Scalars['ID']['input'];
344
+ }>;
345
+ export type GetDrozChatChannelQuery = {
346
+ getDrozChatChannel?: Maybe<DrozChatChannelFragment>;
347
+ };
348
+ export type ListDrozChatChannelsQueryVariables = Exact<{
349
+ [key: string]: never;
350
+ }>;
351
+ export type ListDrozChatChannelsQuery = {
352
+ listDrozChatChannels: Array<DrozChatChannelFragment>;
353
+ };
354
+ export type CreateDrozChatChannelMutationVariables = Exact<{
355
+ input: CreateDrozChatChannelInput;
356
+ }>;
357
+ export type CreateDrozChatChannelMutation = {
358
+ createDrozChatChannel?: Maybe<DrozChatChannelFragment>;
359
+ };
360
+ export type UpdateDrozChatChannelMutationVariables = Exact<{
361
+ input: UpdateDrozChatChannelInput;
362
+ }>;
363
+ export type UpdateDrozChatChannelMutation = {
364
+ updateDrozChatChannel?: Maybe<DrozChatChannelFragment>;
365
+ };
366
+ export type RemoveDrozChatChannelMutationVariables = Exact<{
367
+ input: RemoveDrozChatChannelInput;
368
+ }>;
369
+ export type RemoveDrozChatChannelMutation = {
370
+ removeDrozChatChannel?: Maybe<DrozChatChannelFragment>;
371
+ };
304
372
  export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
305
373
  export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
306
- export type DrozChatChannelFragment = Pick<TicketChannel, 'drn' | 'name' | 'appId' | 'appName'>;
307
- export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
374
+ export type TicketTriggerAppFragment = Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName'>;
375
+ export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
308
376
  assignee?: Maybe<DrozChatAgentFragment>;
309
377
  customer: CustomerFragment;
310
- channel?: Maybe<DrozChatChannelFragment>;
378
+ triggerApp?: Maybe<TicketTriggerAppFragment>;
311
379
  });
312
380
  export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | 'content' | 'createdAt' | 'updatedAt'>;
313
381
  export type GetTicketQueryVariables = Exact<{
@@ -436,30 +504,41 @@ export type OnTicketMessageSubscription = {
436
504
  message: TicketMessageFragment;
437
505
  });
438
506
  };
507
+ export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
439
508
  export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
440
509
  export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
441
- export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
442
- export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
510
+ export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
511
+ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
443
512
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
444
- export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
445
- export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
446
- export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
447
- export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
448
- export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
513
+ export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
514
+ export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
515
+ export declare const CreateDrozChatChannelDocument = "\n mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {\n createDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
516
+ export declare const UpdateDrozChatChannelDocument = "\n mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {\n updateDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
517
+ export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
518
+ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
519
+ export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
520
+ export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
521
+ export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
522
+ export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
449
523
  export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
450
- export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
524
+ export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
451
525
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
452
526
  export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
453
- export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
454
- export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
455
- export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
456
- export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
457
- export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
458
- export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
459
- export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
527
+ export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
528
+ export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
529
+ export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
530
+ export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
531
+ export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
532
+ export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
533
+ export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n ";
460
534
  export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\n createdAt\n updatedAt\n}\n ";
461
535
  export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
462
536
  export declare function getSdk<C, E>(requester: Requester<C, E>): {
537
+ getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
538
+ listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
539
+ createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>;
540
+ updateDrozChatChannel(variables: UpdateDrozChatChannelMutationVariables, options?: C): Promise<UpdateDrozChatChannelMutation>;
541
+ removeDrozChatChannel(variables: RemoveDrozChatChannelMutationVariables, options?: C): Promise<RemoveDrozChatChannelMutation>;
463
542
  getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
464
543
  listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
465
544
  listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -45,12 +45,21 @@ var TicketStatus;
45
45
  var Typenames;
46
46
  (function (Typenames) {
47
47
  Typenames["Any"] = "Any";
48
+ Typenames["Channels"] = "Channels";
48
49
  Typenames["GraphqlConnections"] = "GraphqlConnections";
49
50
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
50
51
  Typenames["TicketMappings"] = "TicketMappings";
51
52
  Typenames["TicketMessages"] = "TicketMessages";
52
53
  Typenames["Tickets"] = "Tickets";
53
54
  })(Typenames || (exports.Typenames = Typenames = {}));
55
+ exports.DrozChatChannelFragmentDoc = `
56
+ fragment drozChatChannel on DrozChatChannel {
57
+ id
58
+ name
59
+ createdAt
60
+ updatedAt
61
+ }
62
+ `;
54
63
  exports.DrozChatAgentFragmentDoc = `
55
64
  fragment drozChatAgent on DrozChatAgent {
56
65
  id
@@ -67,8 +76,8 @@ exports.CustomerFragmentDoc = `
67
76
  updatedAt
68
77
  }
69
78
  `;
70
- exports.DrozChatChannelFragmentDoc = `
71
- fragment drozChatChannel on TicketChannel {
79
+ exports.TicketTriggerAppFragmentDoc = `
80
+ fragment ticketTriggerApp on TicketTriggerApp {
72
81
  drn
73
82
  name
74
83
  appId
@@ -77,6 +86,7 @@ exports.DrozChatChannelFragmentDoc = `
77
86
  `;
78
87
  exports.TicketFragmentDoc = `
79
88
  fragment ticket on Ticket {
89
+ channelId
80
90
  id
81
91
  state
82
92
  status
@@ -87,8 +97,8 @@ exports.TicketFragmentDoc = `
87
97
  customer {
88
98
  ...customer
89
99
  }
90
- channel {
91
- ...drozChatChannel
100
+ triggerApp {
101
+ ...ticketTriggerApp
92
102
  }
93
103
  messagesCount
94
104
  lastMessage
@@ -99,7 +109,7 @@ exports.TicketFragmentDoc = `
99
109
  }
100
110
  ${exports.DrozChatAgentFragmentDoc}
101
111
  ${exports.CustomerFragmentDoc}
102
- ${exports.DrozChatChannelFragmentDoc}`;
112
+ ${exports.TicketTriggerAppFragmentDoc}`;
103
113
  exports.TicketMessageFragmentDoc = `
104
114
  fragment ticketMessage on TicketMessage {
105
115
  id
@@ -112,6 +122,41 @@ exports.TicketMessageFragmentDoc = `
112
122
  updatedAt
113
123
  }
114
124
  `;
125
+ exports.GetDrozChatChannelDocument = `
126
+ query getDrozChatChannel($id: ID!) {
127
+ getDrozChatChannel(id: $id) {
128
+ ...drozChatChannel
129
+ }
130
+ }
131
+ ${exports.DrozChatChannelFragmentDoc}`;
132
+ exports.ListDrozChatChannelsDocument = `
133
+ query listDrozChatChannels {
134
+ listDrozChatChannels {
135
+ ...drozChatChannel
136
+ }
137
+ }
138
+ ${exports.DrozChatChannelFragmentDoc}`;
139
+ exports.CreateDrozChatChannelDocument = `
140
+ mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {
141
+ createDrozChatChannel(input: $input) {
142
+ ...drozChatChannel
143
+ }
144
+ }
145
+ ${exports.DrozChatChannelFragmentDoc}`;
146
+ exports.UpdateDrozChatChannelDocument = `
147
+ mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {
148
+ updateDrozChatChannel(input: $input) {
149
+ ...drozChatChannel
150
+ }
151
+ }
152
+ ${exports.DrozChatChannelFragmentDoc}`;
153
+ exports.RemoveDrozChatChannelDocument = `
154
+ mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {
155
+ removeDrozChatChannel(input: $input) {
156
+ ...drozChatChannel
157
+ }
158
+ }
159
+ ${exports.DrozChatChannelFragmentDoc}`;
115
160
  exports.GetTicketDocument = `
116
161
  query getTicket($id: ID!) {
117
162
  getTicket(id: $id) {
@@ -273,6 +318,21 @@ exports.OnTicketMessageDocument = `
273
318
  ${exports.TicketMessageFragmentDoc}`;
274
319
  function getSdk(requester) {
275
320
  return {
321
+ getDrozChatChannel(variables, options) {
322
+ return requester(exports.GetDrozChatChannelDocument, variables, options);
323
+ },
324
+ listDrozChatChannels(variables, options) {
325
+ return requester(exports.ListDrozChatChannelsDocument, variables, options);
326
+ },
327
+ createDrozChatChannel(variables, options) {
328
+ return requester(exports.CreateDrozChatChannelDocument, variables, options);
329
+ },
330
+ updateDrozChatChannel(variables, options) {
331
+ return requester(exports.UpdateDrozChatChannelDocument, variables, options);
332
+ },
333
+ removeDrozChatChannel(variables, options) {
334
+ return requester(exports.RemoveDrozChatChannelDocument, variables, options);
335
+ },
276
336
  getTicket(variables, options) {
277
337
  return requester(exports.GetTicketDocument, variables, options);
278
338
  },
@@ -91,27 +91,134 @@ export declare enum AppInstanceStatus {
91
91
  Failing = "Failing",
92
92
  Inactive = "Inactive"
93
93
  }
94
+ export type AuthInfo = {
95
+ authenticationEndpoint: Scalars['String']['output'];
96
+ cognitoConfig: CognitoConfig;
97
+ jwtIssuer: Scalars['String']['output'];
98
+ loginUrl: Scalars['String']['output'];
99
+ logoutUrl: Scalars['String']['output'];
100
+ };
101
+ export type AwsAccount = {
102
+ id: Scalars['ID']['output'];
103
+ name: Scalars['String']['output'];
104
+ tenants: Array<Maybe<Tenant>>;
105
+ tenantsCount: Scalars['Int']['output'];
106
+ };
107
+ export type CognitoConfig = {
108
+ region: Scalars['String']['output'];
109
+ userPoolId: Scalars['String']['output'];
110
+ userPoolWebClientId: Scalars['String']['output'];
111
+ };
112
+ export type CreateTenantInput = {
113
+ accountId: Scalars['ID']['input'];
114
+ name?: InputMaybe<Scalars['String']['input']>;
115
+ tenantId: Scalars['ID']['input'];
116
+ };
117
+ export type DeployInput = {
118
+ branch: Scalars['String']['input'];
119
+ gitRepository: Scalars['String']['input'];
120
+ tenantId: Scalars['ID']['input'];
121
+ };
122
+ export type Deployment = {
123
+ branch: Scalars['String']['output'];
124
+ createdAt: Scalars['DateTime']['output'];
125
+ deployedVersion?: Maybe<Scalars['String']['output']>;
126
+ gitRepository: Scalars['String']['output'];
127
+ id: Scalars['ID']['output'];
128
+ message?: Maybe<Scalars['String']['output']>;
129
+ status: DeploymentStatus;
130
+ tenantId: Scalars['ID']['output'];
131
+ updatedAt: Scalars['DateTime']['output'];
132
+ };
133
+ export declare enum DeploymentCommands {
134
+ Deploy = "DEPLOY",
135
+ Destroy = "DESTROY"
136
+ }
137
+ export type DeploymentLog = {
138
+ deploymentId: Scalars['ID']['output'];
139
+ id: Scalars['ID']['output'];
140
+ message: Scalars['String']['output'];
141
+ timestamp: Scalars['DateTime']['output'];
142
+ };
143
+ export type DeploymentLogConnection = {
144
+ nodes: Array<DeploymentLog>;
145
+ pageInfo: PageInfo;
146
+ };
147
+ export declare enum DeploymentStatus {
148
+ Failed = "FAILED",
149
+ InProgress = "IN_PROGRESS",
150
+ InQueue = "IN_QUEUE",
151
+ Succeeded = "SUCCEEDED"
152
+ }
153
+ export type DestroyInput = {
154
+ branch: Scalars['String']['input'];
155
+ gitRepository: Scalars['String']['input'];
156
+ tenantId: Scalars['ID']['input'];
157
+ };
158
+ export type GitBranch = {
159
+ name: Scalars['String']['output'];
160
+ };
161
+ export type GitRepository = {
162
+ id: Scalars['ID']['output'];
163
+ name: Scalars['String']['output'];
164
+ };
94
165
  export type Mutation = {
166
+ createTenant: Tenant;
167
+ deploy: Deployment;
168
+ destroy: Deployment;
169
+ removeTenant: Tenant;
170
+ updateTenant: Tenant;
95
171
  version?: Maybe<Scalars['String']['output']>;
96
172
  };
173
+ export type MutationCreateTenantArgs = {
174
+ input: CreateTenantInput;
175
+ };
176
+ export type MutationDeployArgs = {
177
+ input: DeployInput;
178
+ };
179
+ export type MutationDestroyArgs = {
180
+ input: DestroyInput;
181
+ };
182
+ export type MutationRemoveTenantArgs = {
183
+ input: RemoveTenantInput;
184
+ };
185
+ export type MutationUpdateTenantArgs = {
186
+ input: UpdateTenantInput;
187
+ };
97
188
  export type PageInfo = {
98
189
  hasNext: Scalars['Boolean']['output'];
99
190
  next?: Maybe<Scalars['Base64']['output']>;
100
191
  };
101
192
  export type Query = {
102
193
  app?: Maybe<Scalars['DRN']['output']>;
194
+ authInfo?: Maybe<AuthInfo>;
195
+ deploymentLogs: DeploymentLogConnection;
103
196
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
104
197
  getTenant?: Maybe<Tenant>;
198
+ listAccounts: Array<AwsAccount>;
199
+ listGitBranches: Array<GitBranch>;
200
+ listGitRepositories: Array<GitRepository>;
105
201
  listServices: Array<Maybe<Service>>;
106
202
  listTenants: Array<Maybe<Tenant>>;
107
203
  version?: Maybe<Scalars['String']['output']>;
108
204
  };
205
+ export type QueryDeploymentLogsArgs = {
206
+ deploymentId?: InputMaybe<Scalars['ID']['input']>;
207
+ next?: InputMaybe<Scalars['Base64']['input']>;
208
+ tenantId: Scalars['ID']['input'];
209
+ };
109
210
  export type QueryGetTenantArgs = {
110
211
  tenantId: Scalars['ID']['input'];
111
212
  };
213
+ export type QueryListGitBranchesArgs = {
214
+ gitRepositoryId: Scalars['ID']['input'];
215
+ };
112
216
  export type QueryListServicesArgs = {
113
217
  tenantId: Scalars['ID']['input'];
114
218
  };
219
+ export type RemoveTenantInput = {
220
+ tenantId: Scalars['ID']['input'];
221
+ };
115
222
  export type Service = {
116
223
  accountId: Scalars['ID']['output'];
117
224
  endpoint: Scalars['String']['output'];
@@ -122,6 +229,9 @@ export type Service = {
122
229
  export type Tenant = {
123
230
  accountId: Scalars['ID']['output'];
124
231
  createdAt: Scalars['DateTime']['output'];
232
+ deployedVersions?: Maybe<Scalars['JSON']['output']>;
233
+ deployments: Array<Deployment>;
234
+ disabled?: Maybe<Scalars['Boolean']['output']>;
125
235
  name?: Maybe<Scalars['String']['output']>;
126
236
  services: Array<Maybe<Service>>;
127
237
  tenantId: Scalars['ID']['output'];
@@ -132,6 +242,51 @@ export declare enum Typenames {
132
242
  GraphqlConnections = "GraphqlConnections",
133
243
  GraphqlSubscriptions = "GraphqlSubscriptions"
134
244
  }
245
+ export type UpdateTenantInput = {
246
+ name?: InputMaybe<Scalars['String']['input']>;
247
+ tenantId: Scalars['ID']['input'];
248
+ };
249
+ export type GetAuthInfoQueryVariables = Exact<{
250
+ [key: string]: never;
251
+ }>;
252
+ export type GetAuthInfoQuery = {
253
+ authInfo?: Maybe<(Pick<AuthInfo, 'authenticationEndpoint' | 'jwtIssuer' | 'loginUrl' | 'logoutUrl'> & {
254
+ cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
255
+ })>;
256
+ };
257
+ export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
258
+ export type GitRepositoryFragment = Pick<GitRepository, 'id' | 'name'>;
259
+ export type GitBranchFragment = Pick<GitBranch, 'name'>;
260
+ export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>;
261
+ export type ListAccountsQueryVariables = Exact<{
262
+ [key: string]: never;
263
+ }>;
264
+ export type ListAccountsQuery = {
265
+ listAccounts: Array<AwsAccountFragment>;
266
+ };
267
+ export type ListGitRepositoriesQueryVariables = Exact<{
268
+ [key: string]: never;
269
+ }>;
270
+ export type ListGitRepositoriesQuery = {
271
+ listGitRepositories: Array<GitRepositoryFragment>;
272
+ };
273
+ export type ListGitBranchesQueryVariables = Exact<{
274
+ gitRepositoryId: Scalars['ID']['input'];
275
+ }>;
276
+ export type ListGitBranchesQuery = {
277
+ listGitBranches: Array<Pick<GitBranch, 'name'>>;
278
+ };
279
+ export type DeploymentLogsQueryVariables = Exact<{
280
+ tenantId: Scalars['ID']['input'];
281
+ deploymentId: Scalars['ID']['input'];
282
+ next?: InputMaybe<Scalars['Base64']['input']>;
283
+ }>;
284
+ export type DeploymentLogsQuery = {
285
+ deploymentLogs: {
286
+ nodes: Array<Pick<DeploymentLog, 'id' | 'deploymentId' | 'message' | 'timestamp'>>;
287
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
288
+ };
289
+ };
135
290
  export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>;
136
291
  export type ListServicesQueryVariables = Exact<{
137
292
  tenantId: Scalars['ID']['input'];
@@ -139,34 +294,76 @@ export type ListServicesQueryVariables = Exact<{
139
294
  export type ListServicesQuery = {
140
295
  listServices: Array<Maybe<ServiceFragment>>;
141
296
  };
142
- export type TenantFragment = Pick<Tenant, 'tenantId' | 'name' | 'createdAt' | 'updatedAt'>;
297
+ export type TenantFragment = Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'createdAt' | 'updatedAt'>;
143
298
  export type GetTenantQueryVariables = Exact<{
144
299
  tenantId: Scalars['ID']['input'];
145
300
  withServices?: InputMaybe<Scalars['Boolean']['input']>;
301
+ withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
146
302
  }>;
147
303
  export type GetTenantQuery = {
148
304
  getTenant?: Maybe<({
149
305
  services?: Array<Maybe<ServiceFragment>>;
306
+ deployments?: Array<DeploymentFragment>;
150
307
  } & TenantFragment)>;
151
308
  };
152
309
  export type ListTenantsQueryVariables = Exact<{
153
310
  withServices?: InputMaybe<Scalars['Boolean']['input']>;
311
+ withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
154
312
  }>;
155
313
  export type ListTenantsQuery = {
156
314
  listTenants: Array<Maybe<({
157
315
  services?: Array<Maybe<ServiceFragment>>;
316
+ deployments?: Array<DeploymentFragment>;
158
317
  } & TenantFragment)>>;
159
318
  };
319
+ export type CreateTenantMutationVariables = Exact<{
320
+ input: CreateTenantInput;
321
+ }>;
322
+ export type CreateTenantMutation = {
323
+ createTenant: TenantFragment;
324
+ };
325
+ export type UpdateTenantMutationVariables = Exact<{
326
+ input: UpdateTenantInput;
327
+ }>;
328
+ export type UpdateTenantMutation = {
329
+ updateTenant: TenantFragment;
330
+ };
331
+ export type RemoveTenantMutationVariables = Exact<{
332
+ input: RemoveTenantInput;
333
+ }>;
334
+ export type RemoveTenantMutation = {
335
+ removeTenant: TenantFragment;
336
+ };
337
+ export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
338
+ export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
339
+ export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
340
+ export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
160
341
  export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
161
- export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n ";
342
+ export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
343
+ export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
344
+ export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
345
+ export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
346
+ export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
347
+ export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {\n deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {\n nodes {\n id\n deploymentId\n message\n timestamp\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n ";
162
348
  export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
163
- export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
164
- export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
349
+ export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
350
+ export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
351
+ export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
352
+ export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
353
+ export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
165
354
  export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
166
355
  export declare function getSdk<C, E>(requester: Requester<C, E>): {
356
+ getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
357
+ listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
358
+ listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
359
+ listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
360
+ deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
167
361
  listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
168
362
  getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
169
363
  listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>;
364
+ createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>;
365
+ updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>;
366
+ removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>;
170
367
  };
171
368
  export type Sdk = ReturnType<typeof getSdk>;
172
369
  export declare const serviceName = "@droz/drozcommons";
@@ -1,19 +1,62 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
8
8
  AppInstanceStatus["Failing"] = "Failing";
9
9
  AppInstanceStatus["Inactive"] = "Inactive";
10
10
  })(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
11
+ var DeploymentCommands;
12
+ (function (DeploymentCommands) {
13
+ DeploymentCommands["Deploy"] = "DEPLOY";
14
+ DeploymentCommands["Destroy"] = "DESTROY";
15
+ })(DeploymentCommands || (exports.DeploymentCommands = DeploymentCommands = {}));
16
+ var DeploymentStatus;
17
+ (function (DeploymentStatus) {
18
+ DeploymentStatus["Failed"] = "FAILED";
19
+ DeploymentStatus["InProgress"] = "IN_PROGRESS";
20
+ DeploymentStatus["InQueue"] = "IN_QUEUE";
21
+ DeploymentStatus["Succeeded"] = "SUCCEEDED";
22
+ })(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
11
23
  var Typenames;
12
24
  (function (Typenames) {
13
25
  Typenames["Any"] = "Any";
14
26
  Typenames["GraphqlConnections"] = "GraphqlConnections";
15
27
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
16
28
  })(Typenames || (exports.Typenames = Typenames = {}));
29
+ exports.DeploymentFragmentDoc = `
30
+ fragment deployment on Deployment {
31
+ id
32
+ tenantId
33
+ gitRepository
34
+ branch
35
+ status
36
+ message
37
+ deployedVersion
38
+ createdAt
39
+ updatedAt
40
+ }
41
+ `;
42
+ exports.GitRepositoryFragmentDoc = `
43
+ fragment gitRepository on GitRepository {
44
+ id
45
+ name
46
+ }
47
+ `;
48
+ exports.GitBranchFragmentDoc = `
49
+ fragment gitBranch on GitBranch {
50
+ name
51
+ }
52
+ `;
53
+ exports.AwsAccountFragmentDoc = `
54
+ fragment awsAccount on AwsAccount {
55
+ id
56
+ name
57
+ tenantsCount
58
+ }
59
+ `;
17
60
  exports.ServiceFragmentDoc = `
18
61
  fragment service on Service {
19
62
  accountId
@@ -25,12 +68,66 @@ exports.ServiceFragmentDoc = `
25
68
  `;
26
69
  exports.TenantFragmentDoc = `
27
70
  fragment tenant on Tenant {
71
+ accountId
28
72
  tenantId
29
73
  name
74
+ deployedVersions
30
75
  createdAt
31
76
  updatedAt
32
77
  }
33
78
  `;
79
+ exports.GetAuthInfoDocument = `
80
+ query getAuthInfo {
81
+ authInfo {
82
+ authenticationEndpoint
83
+ jwtIssuer
84
+ loginUrl
85
+ logoutUrl
86
+ cognitoConfig {
87
+ region
88
+ userPoolId
89
+ userPoolWebClientId
90
+ }
91
+ }
92
+ }
93
+ `;
94
+ exports.ListAccountsDocument = `
95
+ query listAccounts {
96
+ listAccounts {
97
+ ...awsAccount
98
+ }
99
+ }
100
+ ${exports.AwsAccountFragmentDoc}`;
101
+ exports.ListGitRepositoriesDocument = `
102
+ query listGitRepositories {
103
+ listGitRepositories {
104
+ ...gitRepository
105
+ }
106
+ }
107
+ ${exports.GitRepositoryFragmentDoc}`;
108
+ exports.ListGitBranchesDocument = `
109
+ query listGitBranches($gitRepositoryId: ID!) {
110
+ listGitBranches(gitRepositoryId: $gitRepositoryId) {
111
+ name
112
+ }
113
+ }
114
+ `;
115
+ exports.DeploymentLogsDocument = `
116
+ query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {
117
+ deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {
118
+ nodes {
119
+ id
120
+ deploymentId
121
+ message
122
+ timestamp
123
+ }
124
+ pageInfo {
125
+ hasNext
126
+ next
127
+ }
128
+ }
129
+ }
130
+ `;
34
131
  exports.ListServicesDocument = `
35
132
  query listServices($tenantId: ID!) {
36
133
  listServices(tenantId: $tenantId) {
@@ -39,29 +136,73 @@ exports.ListServicesDocument = `
39
136
  }
40
137
  ${exports.ServiceFragmentDoc}`;
41
138
  exports.GetTenantDocument = `
42
- query getTenant($tenantId: ID!, $withServices: Boolean = true) {
139
+ query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
43
140
  getTenant(tenantId: $tenantId) {
44
141
  ...tenant
45
142
  services @include(if: $withServices) {
46
143
  ...service
47
144
  }
145
+ deployments @include(if: $withDeployments) {
146
+ ...deployment
147
+ }
48
148
  }
49
149
  }
50
150
  ${exports.TenantFragmentDoc}
51
- ${exports.ServiceFragmentDoc}`;
151
+ ${exports.ServiceFragmentDoc}
152
+ ${exports.DeploymentFragmentDoc}`;
52
153
  exports.ListTenantsDocument = `
53
- query listTenants($withServices: Boolean = false) {
154
+ query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {
54
155
  listTenants {
55
156
  ...tenant
56
157
  services @include(if: $withServices) {
57
158
  ...service
58
159
  }
160
+ deployments @include(if: $withDeployments) {
161
+ ...deployment
162
+ }
59
163
  }
60
164
  }
61
165
  ${exports.TenantFragmentDoc}
62
- ${exports.ServiceFragmentDoc}`;
166
+ ${exports.ServiceFragmentDoc}
167
+ ${exports.DeploymentFragmentDoc}`;
168
+ exports.CreateTenantDocument = `
169
+ mutation createTenant($input: CreateTenantInput!) {
170
+ createTenant(input: $input) {
171
+ ...tenant
172
+ }
173
+ }
174
+ ${exports.TenantFragmentDoc}`;
175
+ exports.UpdateTenantDocument = `
176
+ mutation updateTenant($input: UpdateTenantInput!) {
177
+ updateTenant(input: $input) {
178
+ ...tenant
179
+ }
180
+ }
181
+ ${exports.TenantFragmentDoc}`;
182
+ exports.RemoveTenantDocument = `
183
+ mutation removeTenant($input: RemoveTenantInput!) {
184
+ removeTenant(input: $input) {
185
+ ...tenant
186
+ }
187
+ }
188
+ ${exports.TenantFragmentDoc}`;
63
189
  function getSdk(requester) {
64
190
  return {
191
+ getAuthInfo(variables, options) {
192
+ return requester(exports.GetAuthInfoDocument, variables, options);
193
+ },
194
+ listAccounts(variables, options) {
195
+ return requester(exports.ListAccountsDocument, variables, options);
196
+ },
197
+ listGitRepositories(variables, options) {
198
+ return requester(exports.ListGitRepositoriesDocument, variables, options);
199
+ },
200
+ listGitBranches(variables, options) {
201
+ return requester(exports.ListGitBranchesDocument, variables, options);
202
+ },
203
+ deploymentLogs(variables, options) {
204
+ return requester(exports.DeploymentLogsDocument, variables, options);
205
+ },
65
206
  listServices(variables, options) {
66
207
  return requester(exports.ListServicesDocument, variables, options);
67
208
  },
@@ -70,6 +211,15 @@ function getSdk(requester) {
70
211
  },
71
212
  listTenants(variables, options) {
72
213
  return requester(exports.ListTenantsDocument, variables, options);
214
+ },
215
+ createTenant(variables, options) {
216
+ return requester(exports.CreateTenantDocument, variables, options);
217
+ },
218
+ updateTenant(variables, options) {
219
+ return requester(exports.UpdateTenantDocument, variables, options);
220
+ },
221
+ removeTenant(variables, options) {
222
+ return requester(exports.RemoveTenantDocument, variables, options);
73
223
  }
74
224
  };
75
225
  }
@@ -286,6 +286,7 @@ export type Mutation = {
286
286
  updateAgent?: Maybe<Agent>;
287
287
  updateCredentials: SafeCredentials;
288
288
  updateCronJob: CronJob;
289
+ updateMyProfile?: Maybe<Agent>;
289
290
  updateStateMachineConfig?: Maybe<StateMachineConfig>;
290
291
  updateStateMachineConfigState?: Maybe<StateMachineConfig>;
291
292
  version?: Maybe<Scalars['String']['output']>;
@@ -362,6 +363,9 @@ export type MutationUpdateCredentialsArgs = {
362
363
  export type MutationUpdateCronJobArgs = {
363
364
  input: UpdateCronJobInput;
364
365
  };
366
+ export type MutationUpdateMyProfileArgs = {
367
+ input: UpdateMyProfileInput;
368
+ };
365
369
  export type MutationUpdateStateMachineConfigArgs = {
366
370
  input: UpdateStateMachineConfigInput;
367
371
  };
@@ -652,6 +656,10 @@ export type UpdateCronJobInput = {
652
656
  id: Scalars['ID']['input'];
653
657
  payload: Scalars['JSON']['input'];
654
658
  };
659
+ export type UpdateMyProfileInput = {
660
+ email?: InputMaybe<Scalars['EmailAddress']['input']>;
661
+ name?: InputMaybe<Scalars['String']['input']>;
662
+ };
655
663
  export type UpdateStateMachineConfigInput = {
656
664
  description?: InputMaybe<Scalars['String']['input']>;
657
665
  id: Scalars['ID']['input'];
@@ -703,6 +711,12 @@ export type ListApiKeyAgentsQuery = {
703
711
  pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
704
712
  };
705
713
  };
714
+ export type UpdateMyProfileMutationVariables = Exact<{
715
+ input: UpdateMyProfileInput;
716
+ }>;
717
+ export type UpdateMyProfileMutation = {
718
+ updateMyProfile?: Maybe<AgentFragment>;
719
+ };
706
720
  export type CreateAgentMutationVariables = Exact<{
707
721
  input: CreateAgentInput;
708
722
  }>;
@@ -895,6 +909,22 @@ export type RemoveCronJobMutationVariables = Exact<{
895
909
  export type RemoveCronJobMutation = {
896
910
  removeCronJob: CronJobFragment;
897
911
  };
912
+ export type PolicyFragment = Pick<Policy, 'id' | 'action' | 'effect' | 'resource'>;
913
+ export type RoleFragment = (Pick<Role, 'id' | 'name'> & {
914
+ policies: Array<PolicyFragment>;
915
+ });
916
+ export type ListSystemRolesQueryVariables = Exact<{
917
+ [key: string]: never;
918
+ }>;
919
+ export type ListSystemRolesQuery = {
920
+ listSystemRoles: Array<RoleFragment>;
921
+ };
922
+ export type GetSystemRoleQueryVariables = Exact<{
923
+ id: Scalars['ID']['input'];
924
+ }>;
925
+ export type GetSystemRoleQuery = {
926
+ getSystemRole?: Maybe<RoleFragment>;
927
+ };
898
928
  export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn'>;
899
929
  export type StartSessionMutationVariables = Exact<{
900
930
  input: StartSessionInput;
@@ -1021,6 +1051,8 @@ export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstan
1021
1051
  export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
1022
1052
  export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1023
1053
  export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
1054
+ export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1055
+ export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1024
1056
  export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n ";
1025
1057
  export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1026
1058
  export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
@@ -1030,6 +1062,7 @@ export declare const GetMeDocument = "\n query getMe {\n getMe {\n ...age
1030
1062
  export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1031
1063
  export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1032
1064
  export declare const ListApiKeyAgentsDocument = "\n query listApiKeyAgents($next: Base64) {\n listApiKeyAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1065
+ export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1033
1066
  export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1034
1067
  export declare const UpdateAgentDocument = "\n mutation updateAgent($input: UpdateAgentInput!) {\n updateAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
1035
1068
  export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
@@ -1057,6 +1090,8 @@ export declare const ListCronJobsDocument = "\n query listCronJobs {\n listC
1057
1090
  export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
1058
1091
  export declare const UpdateCronJobDocument = "\n mutation updateCronJob($input: UpdateCronJobInput!) {\n updateCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
1059
1092
  export declare const RemoveCronJobDocument = "\n mutation removeCronJob($input: RemoveCronJobInput!) {\n removeCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
1093
+ export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1094
+ export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1060
1095
  export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1061
1096
  export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1062
1097
  export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
@@ -1080,6 +1115,7 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
1080
1115
  getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
1081
1116
  listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
1082
1117
  listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
1118
+ updateMyProfile(variables: UpdateMyProfileMutationVariables, options?: C): Promise<UpdateMyProfileMutation>;
1083
1119
  createAgent(variables: CreateAgentMutationVariables, options?: C): Promise<CreateAgentMutation>;
1084
1120
  updateAgent(variables: UpdateAgentMutationVariables, options?: C): Promise<UpdateAgentMutation>;
1085
1121
  removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
@@ -1107,6 +1143,8 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
1107
1143
  createCronJob(variables: CreateCronJobMutationVariables, options?: C): Promise<CreateCronJobMutation>;
1108
1144
  updateCronJob(variables: UpdateCronJobMutationVariables, options?: C): Promise<UpdateCronJobMutation>;
1109
1145
  removeCronJob(variables: RemoveCronJobMutationVariables, options?: C): Promise<RemoveCronJobMutation>;
1146
+ listSystemRoles(variables?: ListSystemRolesQueryVariables, options?: C): Promise<ListSystemRolesQuery>;
1147
+ getSystemRole(variables: GetSystemRoleQueryVariables, options?: C): Promise<GetSystemRoleQuery>;
1110
1148
  startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
1111
1149
  getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
1112
1150
  setSessionAttribute(variables: SetSessionAttributeMutationVariables, options?: C): Promise<SetSessionAttributeMutation>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0;
5
- exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = void 0;
4
+ exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0;
5
+ exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = void 0;
6
6
  var AppInstanceStatus;
7
7
  (function (AppInstanceStatus) {
8
8
  AppInstanceStatus["Active"] = "Active";
@@ -138,6 +138,23 @@ exports.CronJobFragmentDoc = `
138
138
  runs
139
139
  }
140
140
  `;
141
+ exports.PolicyFragmentDoc = `
142
+ fragment policy on Policy {
143
+ id
144
+ action
145
+ effect
146
+ resource
147
+ }
148
+ `;
149
+ exports.RoleFragmentDoc = `
150
+ fragment role on Role {
151
+ id
152
+ name
153
+ policies {
154
+ ...policy
155
+ }
156
+ }
157
+ ${exports.PolicyFragmentDoc}`;
141
158
  exports.SessionFragmentDoc = `
142
159
  fragment session on Session {
143
160
  sessionId
@@ -228,6 +245,13 @@ exports.ListApiKeyAgentsDocument = `
228
245
  }
229
246
  }
230
247
  ${exports.AgentFragmentDoc}`;
248
+ exports.UpdateMyProfileDocument = `
249
+ mutation updateMyProfile($input: UpdateMyProfileInput!) {
250
+ updateMyProfile(input: $input) {
251
+ ...agent
252
+ }
253
+ }
254
+ ${exports.AgentFragmentDoc}`;
231
255
  exports.CreateAgentDocument = `
232
256
  mutation createAgent($input: CreateAgentInput!) {
233
257
  createAgent(input: $input) {
@@ -468,6 +492,20 @@ exports.RemoveCronJobDocument = `
468
492
  }
469
493
  }
470
494
  ${exports.CronJobFragmentDoc}`;
495
+ exports.ListSystemRolesDocument = `
496
+ query listSystemRoles {
497
+ listSystemRoles {
498
+ ...role
499
+ }
500
+ }
501
+ ${exports.RoleFragmentDoc}`;
502
+ exports.GetSystemRoleDocument = `
503
+ query getSystemRole($id: ID!) {
504
+ getSystemRole(id: $id) {
505
+ ...role
506
+ }
507
+ }
508
+ ${exports.RoleFragmentDoc}`;
471
509
  exports.StartSessionDocument = `
472
510
  mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {
473
511
  startSession(input: $input) {
@@ -606,6 +644,9 @@ function getSdk(requester) {
606
644
  listApiKeyAgents(variables, options) {
607
645
  return requester(exports.ListApiKeyAgentsDocument, variables, options);
608
646
  },
647
+ updateMyProfile(variables, options) {
648
+ return requester(exports.UpdateMyProfileDocument, variables, options);
649
+ },
609
650
  createAgent(variables, options) {
610
651
  return requester(exports.CreateAgentDocument, variables, options);
611
652
  },
@@ -687,6 +728,12 @@ function getSdk(requester) {
687
728
  removeCronJob(variables, options) {
688
729
  return requester(exports.RemoveCronJobDocument, variables, options);
689
730
  },
731
+ listSystemRoles(variables, options) {
732
+ return requester(exports.ListSystemRolesDocument, variables, options);
733
+ },
734
+ getSystemRole(variables, options) {
735
+ return requester(exports.GetSystemRoleDocument, variables, options);
736
+ },
690
737
  startSession(variables, options) {
691
738
  return requester(exports.StartSessionDocument, variables, options);
692
739
  },