Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@droz-js/sdk

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@droz-js/sdk - npm Package Compare versions

Comparing version 0.2.16 to 0.2.17

5

package.json
{
"name": "@droz-js/sdk",
"description": "Droz SDK",
"version": "0.2.16",
"version": "0.2.17",
"private": false,

@@ -16,3 +16,4 @@ "exports": {

"build": "tsc --project tsconfig-build.json",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},

@@ -19,0 +20,0 @@ "dependencies": {

4

src/client/config.js

@@ -25,3 +25,3 @@ "use strict";

}
throw new Error(`Tenant "${this.tenant}" endpoint for service "${serviceId}" and type "${type}" not found`);
throw new helpers_1.SdkConfigurationError(`Tenant "${this.tenant}" endpoint for service "${serviceId}" and type "${type}" not found`);
}

@@ -77,3 +77,3 @@ }

if (instances.length === 0) {
throw new Error(`Invalid tenant '${tenant}', no instances found on service discovery`);
throw new helpers_1.SdkConfigurationError(`Invalid tenant '${tenant}', no instances found on service discovery`);
}

@@ -80,0 +80,0 @@ // create tenant config and cache it

@@ -1,2 +0,2 @@

import type { ExecutionResult } from 'graphql';
import type { ExecutionResult, GraphQLError } from 'graphql';
export declare const serviceDiscoveryEndpoint = "https://root.droz.services";

@@ -6,2 +6,11 @@ export type AuthorizationProvider = string | (() => Promise<string>) | (() => string);

export type GetSdk<Sdk> = (requester: Requester<Sdk>) => Sdk;
export declare class SdkError extends Error {
statusCode?: number;
errorCode?: string;
errors?: ReadonlyArray<GraphQLError>;
constructor(errors: ReadonlyArray<GraphQLError>);
}
export declare class SdkConfigurationError extends Error {
constructor(message: string);
}
export declare function toAuthorizationProvider(type?: string, ...values: string[]): AuthorizationProvider;

@@ -8,0 +17,0 @@ export declare function resolveAuthorization(provider?: AuthorizationProvider): Promise<string>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapAsyncIterableGraphqlResponse = exports.mapGraphqlResponse = exports.resolveAuthorization = exports.toAuthorizationProvider = exports.serviceDiscoveryEndpoint = void 0;
exports.mapAsyncIterableGraphqlResponse = exports.mapGraphqlResponse = exports.resolveAuthorization = exports.toAuthorizationProvider = exports.SdkConfigurationError = exports.SdkError = exports.serviceDiscoveryEndpoint = void 0;
exports.serviceDiscoveryEndpoint = 'https://root.droz.services';
class SdkError extends Error {
statusCode;
errorCode;
errors;
constructor(errors) {
const { message, extensions } = errors[0];
super(message);
this.errors = errors;
this.statusCode = extensions.statusCode;
this.errorCode = extensions.errorCode;
}
}
exports.SdkError = SdkError;
class SdkConfigurationError extends Error {
constructor(message) {
super(message);
}
}
exports.SdkConfigurationError = SdkConfigurationError;
function toAuthorizationProvider(type, ...values) {

@@ -18,7 +37,3 @@ // this means it is unsetting the authorization token

}
// TODO to be removed
if (type == 'Mock') {
return `Mock ${values[0]}`;
}
throw new Error(`Invalid authentication type '${type}'`);
throw new SdkConfigurationError(`Invalid authentication type '${type}'`);
}

@@ -39,3 +54,3 @@ exports.toAuthorizationProvider = toAuthorizationProvider;

if ('errors' in response)
throw new Error(response.errors.map(e => e.message).join('\n'));
throw new SdkError(response.errors);
if ('data' in response)

@@ -42,0 +57,0 @@ return response.data;

@@ -35,4 +35,5 @@ "use strict";

requester(query, variables) {
if (!this.client)
throw new Error('ws client not connected, you must call await client.connect(); first');
if (!this.client) {
throw new helpers_1.SdkConfigurationError('ws client not connected, you must call await client.connect(); first');
}
const isSubscription = query.trim().startsWith('subscription ');

@@ -39,0 +40,0 @@ const operation = { query, variables };

@@ -8,17 +8,2 @@ export * from './sdks/droznexo';

} & {
createDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
input: import("./sdks/droznexo").CreateDrozNexoAgentInput;
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentMutation>;
listDrozNexoAgents(variables?: import("./sdks/droznexo").Exact<{
next?: object;
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentsQuery>;
getDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
id: string;
}>, options?: unknown): Promise<import("./sdks/droznexo").GetDrozNexoAgentQuery>;
createDrozNexoAgentGroup(variables: import("./sdks/droznexo").Exact<{
input: import("./sdks/droznexo").CreateDrozNexoAgentGroupInput;
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentGroupMutation>;
listDrozNexoAgentGroups(variables?: import("./sdks/droznexo").Exact<{
next?: object;
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentGroupsQuery>;
listDrozNexoSuggestions(variables?: import("./sdks/droznexo").Exact<{

@@ -25,0 +10,0 @@ [key: string]: never;

@@ -8,2 +8,5 @@ export * from './sdks/nucleus';

} & {
getMe(variables?: import("./sdks/nucleus").Exact<{
[key: string]: never;
}>, options?: unknown): Promise<import("./sdks/nucleus").GetMeQuery>;
getAgent(variables: import("./sdks/nucleus").Exact<{

@@ -24,2 +27,8 @@ id: string;

}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveAgentMutation>;
addRoleToAgent(variables: import("./sdks/nucleus").Exact<{
input: import("./sdks/nucleus").AddRoleToAgentInput;
}>, options?: unknown): Promise<import("./sdks/nucleus").AddRoleToAgentMutation>;
removeRoleFromAgent(variables: import("./sdks/nucleus").Exact<{
input: import("./sdks/nucleus").RemoveRoleFromAgentInput;
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveRoleFromAgentMutation>;
getApp(variables: import("./sdks/nucleus").Exact<{

@@ -26,0 +35,0 @@ appId: string;

@@ -95,4 +95,6 @@ export type Maybe<T> = T;

export type ChatWidget = {
createdAt: Scalars['DateTime']['output'];
id: Scalars['ID']['output'];
name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};

@@ -188,3 +190,3 @@ export type ChatWidgetMessage = {

};
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name'>;
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id'> & {

@@ -239,9 +241,9 @@ payload: Array<Pick<ChatWidgetMessagePayload, 'contentType' | 'content' | 'filename'>>;

};
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n ";
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget($input: UpdateChatWidgetInput!) {\n updateChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n}\n ";
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget($input: UpdateChatWidgetInput!) {\n updateChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";

@@ -248,0 +250,0 @@ export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n ";

@@ -29,2 +29,4 @@ "use strict";

name
createdAt
updatedAt
}

@@ -31,0 +33,0 @@ `;

@@ -117,2 +117,3 @@ export type Maybe<T> = T;

export type DrozBotInstance = {
createdAt: Scalars['DateTime']['output'];
credentialsId: Scalars['ID']['output'];

@@ -122,2 +123,3 @@ id: Scalars['ID']['output'];

name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};

@@ -185,3 +187,3 @@ export type DrozBotTicket = {

};
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'credentialsId' | 'isTest'>;
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'credentialsId' | 'isTest' | 'createdAt' | 'updatedAt'>;
export type GetDrozBotInstanceQueryVariables = Exact<{

@@ -229,8 +231,8 @@ id: Scalars['ID']['input'];

};
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n createdAt\n updatedAt\n}\n ";
export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";

@@ -237,0 +239,0 @@ export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";

@@ -25,2 +25,4 @@ "use strict";

isTest
createdAt
updatedAt
}

@@ -27,0 +29,0 @@ `;

@@ -94,10 +94,2 @@ export type Maybe<T> = T;

}
export type CreateDrozNexoAgentGroupInput = {
name: Scalars['ID']['input'];
};
export type CreateDrozNexoAgentInput = {
email: Scalars['EmailAddress']['input'];
groupIds: Scalars['Set']['input'];
name: Scalars['String']['input'];
};
export type CreateDrozNexoConnectionInput = {

@@ -107,28 +99,2 @@ destinationDrn: Scalars['DRN']['input'];

};
export type DrozNexoAgent = {
createdAt: Scalars['DateTime']['output'];
email: Scalars['EmailAddress']['output'];
extension?: Maybe<DrozNexoAgentExtension>;
id: Scalars['ID']['output'];
name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};
export type DrozNexoAgentExtension = {
groupIds?: Maybe<Scalars['Set']['output']>;
groups?: Maybe<Array<DrozNexoAgentGroup>>;
};
export type DrozNexoAgentGroup = {
createdAt: Scalars['DateTime']['output'];
id: Scalars['ID']['output'];
name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};
export type DrozNexoAgentGroupsConnection = {
nodes: Array<DrozNexoAgentGroup>;
pageInfo: PageInfo;
};
export type DrozNexoAgentsConnection = {
nodes: Array<DrozNexoAgent>;
pageInfo: PageInfo;
};
export type DrozNexoApp = {

@@ -164,4 +130,2 @@ description?: Maybe<Scalars['String']['output']>;

export type Mutation = {
createDrozNexoAgent: DrozNexoAgent;
createDrozNexoAgentGroup: DrozNexoAgentGroup;
createDrozNexoConnection: DrozNexoConnection;

@@ -171,8 +135,2 @@ removeDrozNexoConnection: DrozNexoConnection;

};
export type MutationCreateDrozNexoAgentArgs = {
input: CreateDrozNexoAgentInput;
};
export type MutationCreateDrozNexoAgentGroupArgs = {
input: CreateDrozNexoAgentGroupInput;
};
export type MutationCreateDrozNexoConnectionArgs = {

@@ -190,6 +148,3 @@ input: CreateDrozNexoConnectionInput;

app?: Maybe<Scalars['DRN']['output']>;
getDrozNexoAgent?: Maybe<DrozNexoAgent>;
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
listDrozNexoAgentGroups: DrozNexoAgentGroupsConnection;
listDrozNexoAgents: DrozNexoAgentsConnection;
listDrozNexoConnections: DrozNexoConnectionConnection;

@@ -199,11 +154,2 @@ listDrozNexoSuggestions: Array<DrozNexoConnectionSuggestion>;

};
export type QueryGetDrozNexoAgentArgs = {
id: Scalars['ID']['input'];
};
export type QueryListDrozNexoAgentGroupsArgs = {
next?: InputMaybe<Scalars['Base64']['input']>;
};
export type QueryListDrozNexoAgentsArgs = {
next?: InputMaybe<Scalars['Base64']['input']>;
};
export type QueryListDrozNexoConnectionsArgs = {

@@ -218,49 +164,5 @@ next?: InputMaybe<Scalars['Base64']['input']>;

Any = "Any",
DrozNexoAgentExtension = "DrozNexoAgentExtension",
DrozNexoAgentGroups = "DrozNexoAgentGroups",
GraphqlConnections = "GraphqlConnections",
GraphqlSubscriptions = "GraphqlSubscriptions"
}
export type DrozNexoAgentFragment = (Pick<DrozNexoAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
extension?: Maybe<(Pick<DrozNexoAgentExtension, 'groupIds'> & {
groups?: Maybe<Array<DrozNexoAgentGroupFragment>>;
})>;
});
export type DrozNexoAgentGroupFragment = Pick<DrozNexoAgentGroup, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
export type CreateDrozNexoAgentMutationVariables = Exact<{
input: CreateDrozNexoAgentInput;
}>;
export type CreateDrozNexoAgentMutation = {
createDrozNexoAgent: DrozNexoAgentFragment;
};
export type ListDrozNexoAgentsQueryVariables = Exact<{
next?: InputMaybe<Scalars['Base64']['input']>;
}>;
export type ListDrozNexoAgentsQuery = {
listDrozNexoAgents: {
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
nodes: Array<DrozNexoAgentFragment>;
};
};
export type GetDrozNexoAgentQueryVariables = Exact<{
id: Scalars['ID']['input'];
}>;
export type GetDrozNexoAgentQuery = {
getDrozNexoAgent?: Maybe<DrozNexoAgentFragment>;
};
export type CreateDrozNexoAgentGroupMutationVariables = Exact<{
input: CreateDrozNexoAgentGroupInput;
}>;
export type CreateDrozNexoAgentGroupMutation = {
createDrozNexoAgentGroup: DrozNexoAgentGroupFragment;
};
export type ListDrozNexoAgentGroupsQueryVariables = Exact<{
next?: InputMaybe<Scalars['Base64']['input']>;
}>;
export type ListDrozNexoAgentGroupsQuery = {
listDrozNexoAgentGroups: {
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
nodes: Array<DrozNexoAgentGroupFragment>;
};
};
export type DrozNexoAppInstanceFragment = {

@@ -305,12 +207,5 @@ app: Pick<DrozNexoApp, 'id' | 'name' | 'description'>;

};
export declare const DrozNexoAgentGroupFragmentDoc = "\n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const DrozNexoAgentFragmentDoc = "\n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const DrozNexoAppInstanceFragmentDoc = "\n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
export declare const DrozNexoSuggestionFragmentDoc = "\n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
export declare const DrozNexoConnectionFragmentDoc = "\n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
export declare const CreateDrozNexoAgentDocument = "\n mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {\n createDrozNexoAgent(input: $input) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const ListDrozNexoAgentsDocument = "\n query listDrozNexoAgents($next: Base64) {\n listDrozNexoAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgent\n }\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const GetDrozNexoAgentDocument = "\n query getDrozNexoAgent($id: ID!) {\n getDrozNexoAgent(id: $id) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const CreateDrozNexoAgentGroupDocument = "\n mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {\n createDrozNexoAgentGroup(input: $input) {\n ...drozNexoAgentGroup\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const ListDrozNexoAgentGroupsDocument = "\n query listDrozNexoAgentGroups($next: Base64) {\n listDrozNexoAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const ListDrozNexoSuggestionsDocument = "\n query listDrozNexoSuggestions {\n listDrozNexoSuggestions {\n ...drozNexoSuggestion\n }\n}\n \n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";

@@ -322,7 +217,2 @@ export declare const ListDrozNexoConnectionsDocument = "\n query listDrozNexoConnections($next: Base64) {\n listDrozNexoConnections(next: $next) {\n nodes {\n ...drozNexoConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";

export declare function getSdk<C, E>(requester: Requester<C, E>): {
createDrozNexoAgent(variables: CreateDrozNexoAgentMutationVariables, options?: C): Promise<CreateDrozNexoAgentMutation>;
listDrozNexoAgents(variables?: ListDrozNexoAgentsQueryVariables, options?: C): Promise<ListDrozNexoAgentsQuery>;
getDrozNexoAgent(variables: GetDrozNexoAgentQueryVariables, options?: C): Promise<GetDrozNexoAgentQuery>;
createDrozNexoAgentGroup(variables: CreateDrozNexoAgentGroupMutationVariables, options?: C): Promise<CreateDrozNexoAgentGroupMutation>;
listDrozNexoAgentGroups(variables?: ListDrozNexoAgentGroupsQueryVariables, options?: C): Promise<ListDrozNexoAgentGroupsQuery>;
listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;

@@ -329,0 +219,0 @@ listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;

"use strict";
/* istanbul ignore file */
Object.defineProperty(exports, "__esModule", { value: true });
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoConnectionFragmentDoc = exports.DrozNexoSuggestionFragmentDoc = exports.DrozNexoAppInstanceFragmentDoc = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.DrozNexoConnectionFragmentDoc = exports.DrozNexoSuggestionFragmentDoc = exports.DrozNexoAppInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
var AppInstanceStatus;

@@ -14,29 +14,5 @@ (function (AppInstanceStatus) {

Typenames["Any"] = "Any";
Typenames["DrozNexoAgentExtension"] = "DrozNexoAgentExtension";
Typenames["DrozNexoAgentGroups"] = "DrozNexoAgentGroups";
Typenames["GraphqlConnections"] = "GraphqlConnections";
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
})(Typenames || (exports.Typenames = Typenames = {}));
exports.DrozNexoAgentGroupFragmentDoc = `
fragment drozNexoAgentGroup on DrozNexoAgentGroup {
id
name
createdAt
updatedAt
}
`;
exports.DrozNexoAgentFragmentDoc = `
fragment drozNexoAgent on DrozNexoAgent {
id
name
createdAt
updatedAt
extension {
groupIds
groups {
...drozNexoAgentGroup
}
}
}
${exports.DrozNexoAgentGroupFragmentDoc}`;
exports.DrozNexoAppInstanceFragmentDoc = `

@@ -79,49 +55,2 @@ fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {

${exports.DrozNexoAppInstanceFragmentDoc}`;
exports.CreateDrozNexoAgentDocument = `
mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {
createDrozNexoAgent(input: $input) {
...drozNexoAgent
}
}
${exports.DrozNexoAgentFragmentDoc}`;
exports.ListDrozNexoAgentsDocument = `
query listDrozNexoAgents($next: Base64) {
listDrozNexoAgents(next: $next) {
pageInfo {
hasNext
next
}
nodes {
...drozNexoAgent
}
}
}
${exports.DrozNexoAgentFragmentDoc}`;
exports.GetDrozNexoAgentDocument = `
query getDrozNexoAgent($id: ID!) {
getDrozNexoAgent(id: $id) {
...drozNexoAgent
}
}
${exports.DrozNexoAgentFragmentDoc}`;
exports.CreateDrozNexoAgentGroupDocument = `
mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {
createDrozNexoAgentGroup(input: $input) {
...drozNexoAgentGroup
}
}
${exports.DrozNexoAgentGroupFragmentDoc}`;
exports.ListDrozNexoAgentGroupsDocument = `
query listDrozNexoAgentGroups($next: Base64) {
listDrozNexoAgentGroups(next: $next) {
pageInfo {
hasNext
next
}
nodes {
...drozNexoAgentGroup
}
}
}
${exports.DrozNexoAgentGroupFragmentDoc}`;
exports.ListDrozNexoSuggestionsDocument = `

@@ -163,17 +92,2 @@ query listDrozNexoSuggestions {

return {
createDrozNexoAgent(variables, options) {
return requester(exports.CreateDrozNexoAgentDocument, variables, options);
},
listDrozNexoAgents(variables, options) {
return requester(exports.ListDrozNexoAgentsDocument, variables, options);
},
getDrozNexoAgent(variables, options) {
return requester(exports.GetDrozNexoAgentDocument, variables, options);
},
createDrozNexoAgentGroup(variables, options) {
return requester(exports.CreateDrozNexoAgentGroupDocument, variables, options);
},
listDrozNexoAgentGroups(variables, options) {
return requester(exports.ListDrozNexoAgentGroupsDocument, variables, options);
},
listDrozNexoSuggestions(variables, options) {

@@ -180,0 +94,0 @@ return requester(exports.ListDrozNexoSuggestionsDocument, variables, options);

@@ -100,2 +100,3 @@ export type Maybe<T> = T;

export type MercadoLivreInstance = {
createdAt: Scalars['DateTime']['output'];
credentialId?: Maybe<Scalars['ID']['output']>;

@@ -106,2 +107,3 @@ cronJobId?: Maybe<Scalars['ID']['output']>;

type: MercadoLivreInstanceType;
updatedAt: Scalars['DateTime']['output'];
};

@@ -156,3 +158,3 @@ export declare enum MercadoLivreInstanceType {

};
export type ReclameAquiInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'credentialId' | 'cronJobId'>;
export type ReclameAquiInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'createdAt' | 'updatedAt'>;
export type GetMercadoLivreInstanceQueryVariables = Exact<{

@@ -188,8 +190,8 @@ id: Scalars['ID']['input'];

};
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;

@@ -196,0 +198,0 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {

@@ -30,2 +30,4 @@ "use strict";

cronJobId
createdAt
updatedAt
}

@@ -32,0 +34,0 @@ `;

@@ -89,2 +89,6 @@ export type Maybe<T> = T;

};
export type AddRoleToAgentInput = {
agentId: Scalars['ID']['input'];
roleId: Scalars['ID']['input'];
};
export type Agent = {

@@ -99,2 +103,3 @@ apps?: Maybe<Scalars['Set']['output']>;

picture?: Maybe<Scalars['String']['output']>;
roles?: Maybe<Scalars['Set']['output']>;
updatedAt: Scalars['DateTime']['output'];

@@ -254,2 +259,3 @@ };

export type Mutation = {
addRoleToAgent?: Maybe<Agent>;
createAgent?: Maybe<Agent>;

@@ -268,2 +274,3 @@ createCredentials: SafeCredentials;

removeCronJob: CronJob;
removeRoleFromAgent?: Maybe<Agent>;
removeStateMachineConfig?: Maybe<StateMachineConfig>;

@@ -281,2 +288,5 @@ removeStateMachineConfigState?: Maybe<StateMachineConfig>;

};
export type MutationAddRoleToAgentArgs = {
input: AddRoleToAgentInput;
};
export type MutationCreateAgentArgs = {

@@ -321,2 +331,5 @@ input: CreateAgentInput;

};
export type MutationRemoveRoleFromAgentArgs = {
input: RemoveRoleFromAgentInput;
};
export type MutationRemoveStateMachineConfigArgs = {

@@ -385,2 +398,8 @@ input: RemoveStateMachineConfigInput;

};
export type Policy = {
action: Scalars['String']['output'];
effect: Scalars['String']['output'];
id: Scalars['ID']['output'];
resource: Scalars['String']['output'];
};
export type PublishStateMachineConfigInput = {

@@ -402,4 +421,6 @@ id: Scalars['ID']['input'];

getHttpEndpoint?: Maybe<Scalars['String']['output']>;
getMe?: Maybe<Agent>;
getSession?: Maybe<Session>;
getStateMachineConfig?: Maybe<StateMachineConfig>;
getSystemRole?: Maybe<Role>;
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;

@@ -416,2 +437,3 @@ listAgents: AgentConnection;

listStateMachineConfigVersions: Array<StateMachineConfig>;
listSystemRoles: Array<Role>;
version?: Maybe<Scalars['String']['output']>;

@@ -447,2 +469,5 @@ };

};
export type QueryGetSystemRoleArgs = {
id: Scalars['ID']['input'];
};
export type QueryGetXStateMachineConfigArgs = {

@@ -496,2 +521,6 @@ id: Scalars['ID']['input'];

};
export type RemoveRoleFromAgentInput = {
agentId: Scalars['ID']['input'];
roleId: Scalars['ID']['input'];
};
export type RemoveStateMachineConfigInput = {

@@ -506,2 +535,7 @@ id: Scalars['ID']['input'];

};
export type Role = {
id: Scalars['ID']['output'];
name: Scalars['String']['output'];
policies: Array<Policy>;
};
export type SafeCredentials = ICredentials & {

@@ -591,2 +625,4 @@ createdAt: Scalars['DateTime']['output'];

MachineStates = "MachineStates",
Policies = "Policies",
Roles = "Roles",
SessionAttributes = "SessionAttributes",

@@ -636,3 +672,9 @@ Sessions = "Sessions"

};
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'createdAt' | 'updatedAt'>;
export type GetMeQueryVariables = Exact<{
[key: string]: never;
}>;
export type GetMeQuery = {
getMe?: Maybe<AgentFragment>;
};
export type GetAgentQueryVariables = Exact<{

@@ -671,2 +713,14 @@ id: Scalars['ID']['input'];

};
export type AddRoleToAgentMutationVariables = Exact<{
input: AddRoleToAgentInput;
}>;
export type AddRoleToAgentMutation = {
addRoleToAgent?: Maybe<AgentFragment>;
};
export type RemoveRoleFromAgentMutationVariables = Exact<{
input: RemoveRoleFromAgentInput;
}>;
export type RemoveRoleFromAgentMutation = {
removeRoleFromAgent?: Maybe<AgentFragment>;
};
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;

@@ -953,3 +1007,3 @@ export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;

};
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n createdAt\n updatedAt\n}\n ";
export declare const AgentFragmentDoc = "\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 ";
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";

@@ -966,7 +1020,10 @@ export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";

export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \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 ";
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 createdAt\n updatedAt\n}\n ";
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 createdAt\n updatedAt\n}\n ";
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 createdAt\n updatedAt\n}\n ";
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 createdAt\n updatedAt\n}\n ";
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 createdAt\n updatedAt\n}\n ";
export declare const GetMeDocument = "\n query getMe {\n getMe {\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 ";
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 ";
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 ";
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 ";
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 ";
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 ";
export declare const AddRoleToAgentDocument = "\n mutation addRoleToAgent($input: AddRoleToAgentInput!) {\n addRoleToAgent(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 ";
export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {\n removeRoleFromAgent(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 ";
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";

@@ -1013,2 +1070,3 @@ export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";

export declare function getSdk<C, E>(requester: Requester<C, E>): {
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;

@@ -1019,2 +1077,4 @@ listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;

removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;

@@ -1021,0 +1081,0 @@ listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;

"use strict";
/* istanbul ignore file */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = 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.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListAgentsDocument = exports.GetAgentDocument = 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;
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 = void 0;
exports.StartSessionDocument = 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.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;
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 = void 0;
var AppInstanceStatus;

@@ -58,2 +58,4 @@ (function (AppInstanceStatus) {

Typenames["MachineStates"] = "MachineStates";
Typenames["Policies"] = "Policies";
Typenames["Roles"] = "Roles";
Typenames["SessionAttributes"] = "SessionAttributes";

@@ -66,2 +68,8 @@ Typenames["Sessions"] = "Sessions";

name
email
emailVerified
picture
apps
roles
cognitoUserStatus
createdAt

@@ -185,2 +193,9 @@ updatedAt

${exports.StateMachineConfigFragmentDoc}`;
exports.GetMeDocument = `
query getMe {
getMe {
...agent
}
}
${exports.AgentFragmentDoc}`;
exports.GetAgentDocument = `

@@ -227,2 +242,16 @@ query getAgent($id: ID!) {

${exports.AgentFragmentDoc}`;
exports.AddRoleToAgentDocument = `
mutation addRoleToAgent($input: AddRoleToAgentInput!) {
addRoleToAgent(input: $input) {
...agent
}
}
${exports.AgentFragmentDoc}`;
exports.RemoveRoleFromAgentDocument = `
mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {
removeRoleFromAgent(input: $input) {
...agent
}
}
${exports.AgentFragmentDoc}`;
exports.GetAppDocument = `

@@ -559,2 +588,5 @@ query getApp($appId: ID!, $withInstances: Boolean = false) {

return {
getMe(variables, options) {
return requester(exports.GetMeDocument, variables, options);
},
getAgent(variables, options) {

@@ -575,2 +607,8 @@ return requester(exports.GetAgentDocument, variables, options);

},
addRoleToAgent(variables, options) {
return requester(exports.AddRoleToAgentDocument, variables, options);
},
removeRoleFromAgent(variables, options) {
return requester(exports.RemoveRoleFromAgentDocument, variables, options);
},
getApp(variables, options) {

@@ -577,0 +615,0 @@ return requester(exports.GetAppDocument, variables, options);

@@ -128,2 +128,3 @@ export type Maybe<T> = T;

export type ReclameAquiInstance = {
createdAt: Scalars['DateTime']['output'];
credentialId?: Maybe<Scalars['ID']['output']>;

@@ -135,2 +136,3 @@ cronJobId?: Maybe<Scalars['ID']['output']>;

status?: Maybe<AppInstanceStatus>;
updatedAt: Scalars['DateTime']['output'];
};

@@ -151,3 +153,3 @@ export type RemoveReclameAquiInstanceInput = {

};
export type ReclameAquiInstanceFragment = Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'status' | 'failingReason'>;
export type ReclameAquiInstanceFragment = Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'status' | 'failingReason' | 'createdAt' | 'updatedAt'>;
export type GetReclameAquiInstanceQueryVariables = Exact<{

@@ -183,8 +185,8 @@ id: Scalars['ID']['input'];

};
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n}\n ";
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n cronJobId\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;

@@ -191,0 +193,0 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {

@@ -26,2 +26,4 @@ "use strict";

failingReason
createdAt
updatedAt
}

@@ -28,0 +30,0 @@ `;

@@ -159,2 +159,3 @@ export type Maybe<T> = T;

closedStatuses: Array<Scalars['String']['output']>;
createdAt: Scalars['DateTime']['output'];
credentialId?: Maybe<Scalars['ID']['output']>;

@@ -164,5 +165,6 @@ domain: Scalars['String']['output'];

name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
webhookId?: Maybe<Scalars['ID']['output']>;
};
export type ZendeskInstanceFragment = Pick<ZendeskInstance, 'id' | 'name' | 'domain' | 'credentialId'>;
export type ZendeskInstanceFragment = Pick<ZendeskInstance, 'id' | 'name' | 'domain' | 'credentialId' | 'createdAt' | 'updatedAt'>;
export type GetZendeskInstanceQueryVariables = Exact<{

@@ -198,8 +200,8 @@ id: Scalars['ID']['input'];

};
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const GetZendeskInstanceDocument = "\n query getZendeskInstance($id: ID!) {\n getZendeskInstance(id: $id) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n}\n ";
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export declare const GetZendeskInstanceDocument = "\n query getZendeskInstance($id: ID!) {\n getZendeskInstance(id: $id) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;

@@ -206,0 +208,0 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {

@@ -25,2 +25,4 @@ "use strict";

credentialId
createdAt
updatedAt
}

@@ -27,0 +29,0 @@ `;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc