graphlit-client 1.0.20251007002 → 1.0.20251008001

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/dist/client.d.ts CHANGED
@@ -119,6 +119,7 @@ declare class Graphlit {
119
119
  searchWeb(text: string, service?: Types.SearchServiceTypes, limit?: number, correlationId?: string): Promise<Types.SearchWebQuery>;
120
120
  createAlert(alert: Types.AlertInput, correlationId?: string): Promise<Types.CreateAlertMutation>;
121
121
  updateAlert(alert: Types.AlertUpdateInput): Promise<Types.UpdateAlertMutation>;
122
+ upsertAlert(alert: Types.AlertInput): Promise<Types.UpsertAlertMutation>;
122
123
  deleteAlert(id: string): Promise<Types.DeleteAlertMutation>;
123
124
  deleteAlerts(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteAlertsMutation>;
124
125
  deleteAllAlerts(filter?: Types.AlertFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllAlertsMutation>;
package/dist/client.js CHANGED
@@ -471,6 +471,9 @@ class Graphlit {
471
471
  async updateAlert(alert) {
472
472
  return this.mutateAndCheckError(Documents.UpdateAlert, { alert: alert });
473
473
  }
474
+ async upsertAlert(alert) {
475
+ return this.mutateAndCheckError(Documents.UpsertAlert, { alert: alert });
476
+ }
474
477
  async deleteAlert(id) {
475
478
  return this.mutateAndCheckError(Documents.DeleteAlert, { id: id });
476
479
  }
@@ -8,6 +8,7 @@ export declare const EnableAlert: import("graphql").DocumentNode;
8
8
  export declare const GetAlert: import("graphql").DocumentNode;
9
9
  export declare const QueryAlerts: import("graphql").DocumentNode;
10
10
  export declare const UpdateAlert: import("graphql").DocumentNode;
11
+ export declare const UpsertAlert: import("graphql").DocumentNode;
11
12
  export declare const CountCategories: import("graphql").DocumentNode;
12
13
  export declare const CreateCategory: import("graphql").DocumentNode;
13
14
  export declare const DeleteAllCategories: import("graphql").DocumentNode;
@@ -426,6 +426,16 @@ export const UpdateAlert = gql `
426
426
  }
427
427
  }
428
428
  `;
429
+ export const UpsertAlert = gql `
430
+ mutation UpsertAlert($alert: AlertInput!) {
431
+ upsertAlert(alert: $alert) {
432
+ id
433
+ name
434
+ state
435
+ type
436
+ }
437
+ }
438
+ `;
429
439
  export const CountCategories = gql `
430
440
  query CountCategories($filter: CategoryFilter, $correlationId: String) {
431
441
  countCategories(filter: $filter, correlationId: $correlationId) {
@@ -2423,7 +2423,7 @@ export type ContentPublishingConnectorUpdateInput = {
2423
2423
  /** The specific properties for ElevenLabs Audio publishing. */
2424
2424
  elevenLabs?: InputMaybe<ElevenLabsPublishingPropertiesInput>;
2425
2425
  /** The content publishing format, i.e. MP3, Markdown. */
2426
- format?: InputMaybe<ContentPublishingFormats>;
2426
+ format: ContentPublishingFormats;
2427
2427
  /** The specific properties for Google Image publishing. */
2428
2428
  googleImage?: InputMaybe<GoogleImagePublishingPropertiesInput>;
2429
2429
  /** The specific properties for OpenAI Image publishing. */
@@ -2431,7 +2431,7 @@ export type ContentPublishingConnectorUpdateInput = {
2431
2431
  /** The specific properties for OpenAI Video publishing. */
2432
2432
  openAIVideo?: InputMaybe<OpenAiVideoPublishingPropertiesInput>;
2433
2433
  /** The content publishing service type. */
2434
- type?: InputMaybe<ContentPublishingServiceTypes>;
2434
+ type: ContentPublishingServiceTypes;
2435
2435
  };
2436
2436
  export declare enum ContentPublishingFormats {
2437
2437
  /** HTML */
@@ -5976,6 +5976,8 @@ export type IntegrationConnectorUpdateInput = {
5976
5976
  email?: InputMaybe<EmailIntegrationPropertiesInput>;
5977
5977
  /** MCP integration properties. */
5978
5978
  mcp?: InputMaybe<McpIntegrationPropertiesInput>;
5979
+ /** Integration service type. */
5980
+ serviceType: IntegrationServiceTypes;
5979
5981
  /** Slack integration properties. */
5980
5982
  slack?: InputMaybe<SlackIntegrationPropertiesInput>;
5981
5983
  /** Twitter integration properties. */
@@ -9253,6 +9255,8 @@ export type Mutation = {
9253
9255
  updateView?: Maybe<View>;
9254
9256
  /** Updates an existing content workflow. */
9255
9257
  updateWorkflow?: Maybe<Workflow>;
9258
+ /** Upserts a alert. */
9259
+ upsertAlert?: Maybe<Alert>;
9256
9260
  /** Upserts a category. */
9257
9261
  upsertCategory?: Maybe<Category>;
9258
9262
  /** Upserts a label. */
@@ -10146,6 +10150,9 @@ export type MutationUpdateViewArgs = {
10146
10150
  export type MutationUpdateWorkflowArgs = {
10147
10151
  workflow: WorkflowUpdateInput;
10148
10152
  };
10153
+ export type MutationUpsertAlertArgs = {
10154
+ alert: AlertInput;
10155
+ };
10149
10156
  export type MutationUpsertCategoryArgs = {
10150
10157
  category: CategoryInput;
10151
10158
  };
@@ -16138,6 +16145,19 @@ export type UpdateAlertMutation = {
16138
16145
  type: AlertTypes;
16139
16146
  } | null;
16140
16147
  };
16148
+ export type UpsertAlertMutationVariables = Exact<{
16149
+ alert: AlertInput;
16150
+ }>;
16151
+ export type UpsertAlertMutation = {
16152
+ __typename?: 'Mutation';
16153
+ upsertAlert?: {
16154
+ __typename?: 'Alert';
16155
+ id: string;
16156
+ name: string;
16157
+ state: EntityState;
16158
+ type: AlertTypes;
16159
+ } | null;
16160
+ };
16141
16161
  export type CountCategoriesQueryVariables = Exact<{
16142
16162
  filter?: InputMaybe<CategoryFilter>;
16143
16163
  correlationId?: InputMaybe<Scalars['String']['input']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20251007002",
3
+ "version": "1.0.20251008001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",