@droz-js/sdk 0.11.0 → 0.11.2

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.11.0",
4
+ "version": "0.11.2",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
package/src/nucleus.d.ts CHANGED
@@ -69,6 +69,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
69
69
  leaveOrganization(variables: import("./sdks/nucleus").Exact<{
70
70
  input: import("./sdks/nucleus").LeaveOrganizationInput;
71
71
  }>, options?: unknown): Promise<import("./sdks/nucleus").LeaveOrganizationMutation>;
72
+ resendConfirmationEmail(variables: import("./sdks/nucleus").Exact<{
73
+ input: import("./sdks/nucleus").ResendConfirmationEmailInput;
74
+ }>, options?: unknown): Promise<import("./sdks/nucleus").ResendConfirmationEmailMutation>;
72
75
  getApp(variables: import("./sdks/nucleus").Exact<{
73
76
  appId: import("./sdks/nucleus").Scalars["ID"]["input"];
74
77
  withInstances?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["Boolean"]["input"]>;
@@ -370,10 +370,7 @@ export type Customer = {
370
370
  updatedAt: Scalars['DateTime']['output'];
371
371
  };
372
372
  export declare enum CustomerIndex {
373
- ByDocument = "byDocument",
374
- ByEmail = "byEmail",
375
- ByExternalId = "byExternalId",
376
- ByPhone = "byPhone"
373
+ ByExternalId = "byExternalId"
377
374
  }
378
375
  export type CustomerSearchResults = {
379
376
  nodes: Array<Customer>;
@@ -518,6 +515,7 @@ export type Mutation = {
518
515
  removeSystemApiKeyAgent?: Maybe<ApiKeyAgent>;
519
516
  removeSystemCredentials?: Maybe<SafeCredentials>;
520
517
  removeTagsFromSessionAttributes?: Maybe<Scalars['JSON']['output']>;
518
+ resendConfirmationEmail?: Maybe<Scalars['Boolean']['output']>;
521
519
  setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
522
520
  startCustomSession?: Maybe<Session>;
523
521
  startSession?: Maybe<Session>;
@@ -628,6 +626,9 @@ export type MutationRemoveSystemCredentialsArgs = {
628
626
  export type MutationRemoveTagsFromSessionAttributesArgs = {
629
627
  input: RemoveTagsFromSessionAttributesInput;
630
628
  };
629
+ export type MutationResendConfirmationEmailArgs = {
630
+ input: ResendConfirmationEmailInput;
631
+ };
631
632
  export type MutationSetSessionAttributeArgs = {
632
633
  input: SetSessionAttributeInput;
633
634
  };
@@ -938,6 +939,9 @@ export type RemoveTagsFromSessionAttributesInput = {
938
939
  sessionId: Scalars['ID']['input'];
939
940
  tags: Array<Scalars['String']['input']>;
940
941
  };
942
+ export type ResendConfirmationEmailInput = {
943
+ email: Scalars['EmailAddress']['input'];
944
+ };
941
945
  export type Role = {
942
946
  id: Scalars['ID']['output'];
943
947
  name: Scalars['String']['output'];
@@ -1337,6 +1341,10 @@ export type LeaveOrganizationMutationVariables = Exact<{
1337
1341
  input: LeaveOrganizationInput;
1338
1342
  }>;
1339
1343
  export type LeaveOrganizationMutation = Pick<Mutation, 'leaveOrganization'>;
1344
+ export type ResendConfirmationEmailMutationVariables = Exact<{
1345
+ input: ResendConfirmationEmailInput;
1346
+ }>;
1347
+ export type ResendConfirmationEmailMutation = Pick<Mutation, 'resendConfirmationEmail'>;
1340
1348
  export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
1341
1349
  channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
1342
1350
  });
@@ -1871,6 +1879,7 @@ export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFro
1871
1879
  export declare const ChangeAgentRoleDocument = "\n mutation changeAgentRole($input: ChangeAgentRoleInput!) {\n changeAgentRole(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1872
1880
  export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
1873
1881
  export declare const LeaveOrganizationDocument = "\n mutation leaveOrganization($input: LeaveOrganizationInput!) {\n leaveOrganization(input: $input)\n}\n ";
1882
+ export declare const ResendConfirmationEmailDocument = "\n mutation resendConfirmationEmail($input: ResendConfirmationEmailInput!) {\n resendConfirmationEmail(input: $input)\n}\n ";
1874
1883
  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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1875
1884
  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 color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
1876
1885
  export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
@@ -1963,6 +1972,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
1963
1972
  changeAgentRole(variables: ChangeAgentRoleMutationVariables, options?: C): Promise<ChangeAgentRoleMutation>;
1964
1973
  joinAsSuperAdmin(variables: JoinAsSuperAdminMutationVariables, options?: C): Promise<JoinAsSuperAdminMutation>;
1965
1974
  leaveOrganization(variables: LeaveOrganizationMutationVariables, options?: C): Promise<LeaveOrganizationMutation>;
1975
+ resendConfirmationEmail(variables: ResendConfirmationEmailMutationVariables, options?: C): Promise<ResendConfirmationEmailMutation>;
1966
1976
  getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
1967
1977
  listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
1968
1978
  getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
@@ -2,8 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ChangeAgentRoleDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.ChangeAgentStatusDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.IndexedSessionFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.OperationMode = exports.CustomerStatus = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = exports.AgentStatus = void 0;
5
- exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.MergeCustomersDocument = exports.DeleteCustomerDocument = exports.UpdateCustomerDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.DynamicSearchCustomerDocument = exports.SearchCustomersDocument = exports.ListCustomersDocument = exports.BatchGetCustomersByIdDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = void 0;
6
- exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = void 0;
5
+ exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.MergeCustomersDocument = exports.DeleteCustomerDocument = exports.UpdateCustomerDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.DynamicSearchCustomerDocument = exports.SearchCustomersDocument = exports.ListCustomersDocument = exports.BatchGetCustomersByIdDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.ResendConfirmationEmailDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = void 0;
6
+ exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = void 0;
7
7
  exports.getSdk = getSdk;
8
8
  var AgentStatus;
9
9
  (function (AgentStatus) {
@@ -39,10 +39,7 @@ var CredentialsType;
39
39
  })(CredentialsType || (exports.CredentialsType = CredentialsType = {}));
40
40
  var CustomerIndex;
41
41
  (function (CustomerIndex) {
42
- CustomerIndex["ByDocument"] = "byDocument";
43
- CustomerIndex["ByEmail"] = "byEmail";
44
42
  CustomerIndex["ByExternalId"] = "byExternalId";
45
- CustomerIndex["ByPhone"] = "byPhone";
46
43
  })(CustomerIndex || (exports.CustomerIndex = CustomerIndex = {}));
47
44
  var CustomerStatus;
48
45
  (function (CustomerStatus) {
@@ -527,6 +524,11 @@ exports.LeaveOrganizationDocument = `
527
524
  leaveOrganization(input: $input)
528
525
  }
529
526
  `;
527
+ exports.ResendConfirmationEmailDocument = `
528
+ mutation resendConfirmationEmail($input: ResendConfirmationEmailInput!) {
529
+ resendConfirmationEmail(input: $input)
530
+ }
531
+ `;
530
532
  exports.GetAppDocument = `
531
533
  query getApp($appId: ID!, $withInstances: Boolean = false) {
532
534
  getApp(appId: $appId) {
@@ -1166,6 +1168,9 @@ function getSdk(requester) {
1166
1168
  leaveOrganization(variables, options) {
1167
1169
  return requester(exports.LeaveOrganizationDocument, variables, options);
1168
1170
  },
1171
+ resendConfirmationEmail(variables, options) {
1172
+ return requester(exports.ResendConfirmationEmailDocument, variables, options);
1173
+ },
1169
1174
  getApp(variables, options) {
1170
1175
  return requester(exports.GetAppDocument, variables, options);
1171
1176
  },