graphlit-client 1.0.20260422004 → 1.0.20260424001

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
@@ -1872,6 +1872,12 @@ declare class Graphlit {
1872
1872
  * @returns The updated connector.
1873
1873
  */
1874
1874
  updateConnector(connector: Types.ConnectorUpdateInput): Promise<Types.UpdateConnectorMutation>;
1875
+ /**
1876
+ * Creates or updates a connector.
1877
+ * @param connector - The connector to create or update.
1878
+ * @returns The created or updated connector.
1879
+ */
1880
+ upsertConnector(connector: Types.ConnectorInput): Promise<Types.UpsertConnectorMutation>;
1875
1881
  /**
1876
1882
  * Deletes a connector.
1877
1883
  * @param id - The ID of the connector to delete.
package/dist/client.js CHANGED
@@ -3293,16 +3293,14 @@ class Graphlit {
3293
3293
  async updateConnector(connector) {
3294
3294
  return this.mutateAndCheckError(Documents.UpdateConnector, { connector: connector });
3295
3295
  }
3296
- /*
3297
- public async upsertConnector(
3298
- connector: Types.ConnectorInput
3299
- ): Promise<Types.UpsertConnectorMutation> {
3300
- return this.mutateAndCheckError<
3301
- Types.UpsertConnectorMutation,
3302
- { connector: Types.ConnectorInput }
3303
- >(Documents.UpsertConnector, { connector: connector });
3296
+ /**
3297
+ * Creates or updates a connector.
3298
+ * @param connector - The connector to create or update.
3299
+ * @returns The created or updated connector.
3300
+ */
3301
+ async upsertConnector(connector) {
3302
+ return this.mutateAndCheckError(Documents.UpsertConnector, { connector: connector });
3304
3303
  }
3305
- */
3306
3304
  /**
3307
3305
  * Deletes a connector.
3308
3306
  * @param id - The ID of the connector to delete.
@@ -61,6 +61,7 @@ export declare const DeleteConnector: import("graphql").DocumentNode;
61
61
  export declare const GetConnector: import("graphql").DocumentNode;
62
62
  export declare const QueryConnectors: import("graphql").DocumentNode;
63
63
  export declare const UpdateConnector: import("graphql").DocumentNode;
64
+ export declare const UpsertConnector: import("graphql").DocumentNode;
64
65
  export declare const AddContentLabel: import("graphql").DocumentNode;
65
66
  export declare const ApproveContent: import("graphql").DocumentNode;
66
67
  export declare const ClassifyContents: import("graphql").DocumentNode;
@@ -2091,6 +2091,16 @@ export const UpdateConnector = gql `
2091
2091
  }
2092
2092
  }
2093
2093
  `;
2094
+ export const UpsertConnector = gql `
2095
+ mutation UpsertConnector($connector: ConnectorInput!) {
2096
+ upsertConnector(connector: $connector) {
2097
+ id
2098
+ name
2099
+ state
2100
+ type
2101
+ }
2102
+ }
2103
+ `;
2094
2104
  export const AddContentLabel = gql `
2095
2105
  mutation AddContentLabel($id: ID!, $label: String!) {
2096
2106
  addContentLabel(id: $id, label: $label) {
@@ -3477,7 +3477,7 @@ export type Content = {
3477
3477
  links?: Maybe<Array<LinkReference>>;
3478
3478
  /** The geo-location of the content. */
3479
3479
  location?: Maybe<Point>;
3480
- /** The content text formatted as Markdown. Returns the persisted frontmatter-aware Markdown export when available, and otherwise falls back to on-demand export. Export is bounded by stored token count. */
3480
+ /** The content text formatted as Markdown. Returns the persisted Markdown body when available, and otherwise falls back to on-demand export. Export is bounded by stored token count. */
3481
3481
  markdown?: Maybe<Scalars['String']['output']>;
3482
3482
  /** The persisted Markdown export URI of the content. This references the frontmatter-aware Markdown file written under the content folder. */
3483
3483
  markdownUri?: Maybe<Scalars['URL']['output']>;
@@ -17042,6 +17042,8 @@ export type Mutation = {
17042
17042
  upsertAlert?: Maybe<Alert>;
17043
17043
  /** Upserts a category. */
17044
17044
  upsertCategory?: Maybe<Category>;
17045
+ /** Upserts a connector. */
17046
+ upsertConnector?: Maybe<Connector>;
17045
17047
  /** Upserts an emotion. */
17046
17048
  upsertEmotion?: Maybe<Emotion>;
17047
17049
  /** Upserts a label. */
@@ -18327,6 +18329,9 @@ export type MutationUpsertCategoryArgs = {
18327
18329
  category: CategoryInput;
18328
18330
  correlationId?: InputMaybe<Scalars['String']['input']>;
18329
18331
  };
18332
+ export type MutationUpsertConnectorArgs = {
18333
+ connector: ConnectorInput;
18334
+ };
18330
18335
  export type MutationUpsertEmotionArgs = {
18331
18336
  correlationId?: InputMaybe<Scalars['String']['input']>;
18332
18337
  emotion: EmotionInput;
@@ -29308,6 +29313,19 @@ export type UpdateConnectorMutation = {
29308
29313
  type?: ConnectorTypes | null;
29309
29314
  } | null;
29310
29315
  };
29316
+ export type UpsertConnectorMutationVariables = Exact<{
29317
+ connector: ConnectorInput;
29318
+ }>;
29319
+ export type UpsertConnectorMutation = {
29320
+ __typename?: 'Mutation';
29321
+ upsertConnector?: {
29322
+ __typename?: 'Connector';
29323
+ id: string;
29324
+ name: string;
29325
+ state: EntityState;
29326
+ type?: ConnectorTypes | null;
29327
+ } | null;
29328
+ };
29311
29329
  export type AddContentLabelMutationVariables = Exact<{
29312
29330
  id: Scalars['ID']['input'];
29313
29331
  label: Scalars['String']['input'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260422004",
3
+ "version": "1.0.20260424001",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",