@keystrokehq/shopify 0.0.9 → 0.0.11

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.
@@ -1,6 +1,6 @@
1
- import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-D5cqyAen.mjs";
2
- import { z } from "zod";
1
+ import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-HrSKAMfF.mjs";
3
2
  import { CredentialSet } from "@keystrokehq/core";
3
+ import { z } from "zod";
4
4
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
5
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
6
 
@@ -1,3 +1,3 @@
1
- import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-CTvqYMCL.mjs";
1
+ import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-vSl3XHTG.mjs";
2
2
 
3
3
  export { shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration, shopifyOfficialProviderSeed };
@@ -1,4 +1,4 @@
1
- import { t as ShopifyCredentials } from "../integration-D5cqyAen.mjs";
1
+ import { t as ShopifyCredentials } from "../integration-HrSKAMfF.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/webhook-management.d.ts
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/articles.d.ts
@@ -38,7 +38,7 @@ declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
38
38
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  endCursor: z.ZodNullable<z.ZodString>;
40
40
  }, z.core.$strip>;
41
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
41
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
42
42
  SHOPIFY_STORE_DOMAIN: z.ZodString;
43
43
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
44
44
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -70,7 +70,7 @@ declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
70
70
  }, z.core.$strip>>>;
71
71
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
72
72
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
73
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
73
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
74
74
  SHOPIFY_STORE_DOMAIN: z.ZodString;
75
75
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
76
76
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -110,7 +110,7 @@ declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
110
110
  }, z.core.$strip>>>;
111
111
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
112
112
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
113
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
113
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
114
114
  SHOPIFY_STORE_DOMAIN: z.ZodString;
115
115
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
116
116
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -152,7 +152,7 @@ declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
152
152
  }, z.core.$strip>>>;
153
153
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
154
154
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
155
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
155
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
156
156
  SHOPIFY_STORE_DOMAIN: z.ZodString;
157
157
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
158
158
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -163,7 +163,7 @@ declare const deleteArticle: _keystrokehq_core0.Operation<z.ZodObject<{
163
163
  id: z.ZodString;
164
164
  }, z.core.$strip>, z.ZodObject<{
165
165
  deletedArticleId: z.ZodString;
166
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
166
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
167
167
  SHOPIFY_STORE_DOMAIN: z.ZodString;
168
168
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
169
169
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/articles.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyArticleSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -107,7 +107,7 @@ function buildArticleInput(input) {
107
107
  });
108
108
  }
109
109
  const listArticles = shopifyOperation({
110
- id: "list_shopify_articles",
110
+ id: "shopify.list-shopify-articles",
111
111
  name: "List Shopify Articles",
112
112
  description: "List blog articles from the connected Shopify store.",
113
113
  input: shopifyPageInputSchema,
@@ -139,7 +139,7 @@ const listArticles = shopifyOperation({
139
139
  }
140
140
  });
141
141
  const getArticle = shopifyOperation({
142
- id: "get_shopify_article",
142
+ id: "shopify.get-shopify-article",
143
143
  name: "Get Shopify Article",
144
144
  description: "Retrieve a single Shopify article by its global ID.",
145
145
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -157,7 +157,7 @@ const getArticle = shopifyOperation({
157
157
  }
158
158
  });
159
159
  const createArticle = shopifyOperation({
160
- id: "create_shopify_article",
160
+ id: "shopify.create-shopify-article",
161
161
  name: "Create Shopify Article",
162
162
  description: "Create an article in the connected Shopify store.",
163
163
  needsApproval: true,
@@ -187,7 +187,7 @@ const createArticle = shopifyOperation({
187
187
  }
188
188
  });
189
189
  const updateArticle = shopifyOperation({
190
- id: "update_shopify_article",
190
+ id: "shopify.update-shopify-article",
191
191
  name: "Update Shopify Article",
192
192
  description: "Update a Shopify article by its global ID.",
193
193
  needsApproval: true,
@@ -223,7 +223,7 @@ const updateArticle = shopifyOperation({
223
223
  }
224
224
  });
225
225
  const deleteArticle = shopifyOperation({
226
- id: "delete_shopify_article",
226
+ id: "shopify.delete-shopify-article",
227
227
  name: "Delete Shopify Article",
228
228
  description: "Delete a Shopify article by its global ID.",
229
229
  needsApproval: true,
package/dist/blogs.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/blogs.d.ts
@@ -23,7 +23,7 @@ declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
23
23
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  endCursor: z.ZodNullable<z.ZodString>;
25
25
  }, z.core.$strip>;
26
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
26
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
27
27
  SHOPIFY_STORE_DOMAIN: z.ZodString;
28
28
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
29
29
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -40,7 +40,7 @@ declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
40
40
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
41
41
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
43
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
44
44
  SHOPIFY_STORE_DOMAIN: z.ZodString;
45
45
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
46
46
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -65,7 +65,7 @@ declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
65
65
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
66
66
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
67
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
68
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
69
69
  SHOPIFY_STORE_DOMAIN: z.ZodString;
70
70
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
71
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -91,7 +91,7 @@ declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
91
91
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
92
92
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
94
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
95
95
  SHOPIFY_STORE_DOMAIN: z.ZodString;
96
96
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
97
97
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -102,7 +102,7 @@ declare const deleteBlog: _keystrokehq_core0.Operation<z.ZodObject<{
102
102
  id: z.ZodString;
103
103
  }, z.core.$strip>, z.ZodObject<{
104
104
  deletedBlogId: z.ZodString;
105
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
105
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
106
106
  SHOPIFY_STORE_DOMAIN: z.ZodString;
107
107
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
108
108
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/blogs.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyBlogSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -37,7 +37,7 @@ const deleteBlogResponseSchema = z.object({
37
37
  userErrors: z.array(shopifyUserErrorSchema.extend({ code: z.string().optional() }))
38
38
  });
39
39
  const listBlogs = shopifyOperation({
40
- id: "list_shopify_blogs",
40
+ id: "shopify.list-shopify-blogs",
41
41
  name: "List Shopify Blogs",
42
42
  description: "List blogs from the connected Shopify store.",
43
43
  input: shopifyPageInputSchema,
@@ -65,7 +65,7 @@ const listBlogs = shopifyOperation({
65
65
  }
66
66
  });
67
67
  const getBlog = shopifyOperation({
68
- id: "get_shopify_blog",
68
+ id: "shopify.get-shopify-blog",
69
69
  name: "Get Shopify Blog",
70
70
  description: "Retrieve a single Shopify blog by its global ID.",
71
71
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -83,7 +83,7 @@ const getBlog = shopifyOperation({
83
83
  }
84
84
  });
85
85
  const createBlog = shopifyOperation({
86
- id: "create_shopify_blog",
86
+ id: "shopify.create-shopify-blog",
87
87
  name: "Create Shopify Blog",
88
88
  description: "Create a blog in the connected Shopify store.",
89
89
  needsApproval: true,
@@ -110,7 +110,7 @@ const createBlog = shopifyOperation({
110
110
  }
111
111
  });
112
112
  const updateBlog = shopifyOperation({
113
- id: "update_shopify_blog",
113
+ id: "shopify.update-shopify-blog",
114
114
  name: "Update Shopify Blog",
115
115
  description: "Update a Shopify blog by its global ID.",
116
116
  needsApproval: true,
@@ -145,7 +145,7 @@ const updateBlog = shopifyOperation({
145
145
  }
146
146
  });
147
147
  const deleteBlog = shopifyOperation({
148
- id: "delete_shopify_blog",
148
+ id: "shopify.delete-shopify-blog",
149
149
  name: "Delete Shopify Blog",
150
150
  description: "Delete a Shopify blog by its global ID.",
151
151
  needsApproval: true,
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ShopifyCredentials } from "./integration-D5cqyAen.mjs";
1
+ import { t as ShopifyCredentials } from "./integration-HrSKAMfF.mjs";
2
2
  import { z } from "zod";
3
3
  import { ClientResponse, SearchParams } from "@shopify/admin-api-client";
4
4
 
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as shopify } from "./integration-CTvqYMCL.mjs";
1
+ import { t as shopify } from "./integration-vSl3XHTG.mjs";
2
2
  import { shopifyGraphqlErrorSchema } from "./schemas.mjs";
3
3
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
4
4
  import { createAdminApiClient, createAdminRestApiClient } from "@shopify/admin-api-client";
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/collections.d.ts
@@ -29,7 +29,7 @@ declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
29
29
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  endCursor: z.ZodNullable<z.ZodString>;
31
31
  }, z.core.$strip>;
32
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
32
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
33
33
  SHOPIFY_STORE_DOMAIN: z.ZodString;
34
34
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
35
35
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -52,7 +52,7 @@ declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
52
52
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  }, z.core.$strip>>>;
55
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
55
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
56
56
  SHOPIFY_STORE_DOMAIN: z.ZodString;
57
57
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
58
58
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -81,7 +81,7 @@ declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
81
81
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
82
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
83
  }, z.core.$strip>>>;
84
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
84
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
85
85
  SHOPIFY_STORE_DOMAIN: z.ZodString;
86
86
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
87
87
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -92,7 +92,7 @@ declare const deleteCollection: _keystrokehq_core0.Operation<z.ZodObject<{
92
92
  id: z.ZodString;
93
93
  }, z.core.$strip>, z.ZodObject<{
94
94
  deletedCollectionId: z.ZodString;
95
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
95
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
96
96
  SHOPIFY_STORE_DOMAIN: z.ZodString;
97
97
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
98
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -116,7 +116,7 @@ declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<
116
116
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
117
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
118
  }, z.core.$strip>>>;
119
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
119
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
120
120
  SHOPIFY_STORE_DOMAIN: z.ZodString;
121
121
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
122
122
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -129,7 +129,7 @@ declare const removeProductsFromCollection: _keystrokehq_core0.Operation<z.ZodOb
129
129
  }, z.core.$strip>, z.ZodObject<{
130
130
  id: z.ZodString;
131
131
  done: z.ZodOptional<z.ZodBoolean>;
132
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
132
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
133
133
  SHOPIFY_STORE_DOMAIN: z.ZodString;
134
134
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
135
135
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { shopifyCollectionSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyJobSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { i as shopifyProductIdsInputSchema, n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -44,7 +44,7 @@ const removeProductsResponseSchema = z.object({
44
44
  userErrors: z.array(shopifyUserErrorSchema)
45
45
  });
46
46
  const listCollections = shopifyOperation({
47
- id: "list_shopify_collections",
47
+ id: "shopify.list-shopify-collections",
48
48
  name: "List Shopify Collections",
49
49
  description: "List collections from the connected Shopify store.",
50
50
  input: shopifyPageInputSchema,
@@ -72,7 +72,7 @@ const listCollections = shopifyOperation({
72
72
  }
73
73
  });
74
74
  const getCollection = shopifyOperation({
75
- id: "get_shopify_collection",
75
+ id: "shopify.get-shopify-collection",
76
76
  name: "Get Shopify Collection",
77
77
  description: "Retrieve a single Shopify collection by its global ID.",
78
78
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -90,7 +90,7 @@ const getCollection = shopifyOperation({
90
90
  }
91
91
  });
92
92
  const createCollection = shopifyOperation({
93
- id: "create_shopify_collection",
93
+ id: "shopify.create-shopify-collection",
94
94
  name: "Create Shopify Collection",
95
95
  description: "Create a collection in the connected Shopify store.",
96
96
  needsApproval: true,
@@ -116,7 +116,7 @@ const createCollection = shopifyOperation({
116
116
  }
117
117
  });
118
118
  const deleteCollection = shopifyOperation({
119
- id: "delete_shopify_collection",
119
+ id: "shopify.delete-shopify-collection",
120
120
  name: "Delete Shopify Collection",
121
121
  description: "Delete a Shopify collection by its global ID.",
122
122
  needsApproval: true,
@@ -140,7 +140,7 @@ const deleteCollection = shopifyOperation({
140
140
  }
141
141
  });
142
142
  const addProductsToCollection = shopifyOperation({
143
- id: "add_products_to_shopify_collection",
143
+ id: "shopify.add-products-to-shopify-collection",
144
144
  name: "Add Products To Shopify Collection",
145
145
  description: "Add products to a manual Shopify collection.",
146
146
  needsApproval: true,
@@ -172,7 +172,7 @@ const addProductsToCollection = shopifyOperation({
172
172
  }
173
173
  });
174
174
  const removeProductsFromCollection = shopifyOperation({
175
- id: "remove_products_from_shopify_collection",
175
+ id: "shopify.remove-products-from-shopify-collection",
176
176
  name: "Remove Products From Shopify Collection",
177
177
  description: "Remove products from a manual Shopify collection.",
178
178
  needsApproval: true,
@@ -1,2 +1,2 @@
1
- import { n as shopify, t as ShopifyCredentials } from "./integration-D5cqyAen.mjs";
1
+ import { n as shopify, t as ShopifyCredentials } from "./integration-HrSKAMfF.mjs";
2
2
  export { type ShopifyCredentials, shopify };
@@ -1,3 +1,3 @@
1
- import { t as shopify } from "./integration-CTvqYMCL.mjs";
1
+ import { t as shopify } from "./integration-vSl3XHTG.mjs";
2
2
 
3
3
  export { shopify };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/customers.d.ts
@@ -24,7 +24,7 @@ declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
24
24
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  endCursor: z.ZodNullable<z.ZodString>;
26
26
  }, z.core.$strip>;
27
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
27
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
28
28
  SHOPIFY_STORE_DOMAIN: z.ZodString;
29
29
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
30
30
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -42,7 +42,7 @@ declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
42
42
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
43
  createdAt: z.ZodOptional<z.ZodISODateTime>;
44
44
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
45
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
45
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
46
46
  SHOPIFY_STORE_DOMAIN: z.ZodString;
47
47
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
48
48
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -65,7 +65,7 @@ declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
65
65
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  createdAt: z.ZodOptional<z.ZodISODateTime>;
67
67
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
68
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
69
69
  SHOPIFY_STORE_DOMAIN: z.ZodString;
70
70
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
71
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -89,7 +89,7 @@ declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
89
89
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
90
  createdAt: z.ZodOptional<z.ZodISODateTime>;
91
91
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
92
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
92
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
93
93
  SHOPIFY_STORE_DOMAIN: z.ZodString;
94
94
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
95
95
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -100,7 +100,7 @@ declare const deleteCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
100
100
  id: z.ZodString;
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  deletedCustomerId: z.ZodString;
103
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
103
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
104
104
  SHOPIFY_STORE_DOMAIN: z.ZodString;
105
105
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
106
106
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -150,7 +150,7 @@ declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
150
150
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
151
  endCursor: z.ZodNullable<z.ZodString>;
152
152
  }, z.core.$strip>;
153
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
153
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
154
154
  SHOPIFY_STORE_DOMAIN: z.ZodString;
155
155
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
156
156
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyCustomerSchema, shopifyGlobalIdSchema, shopifyOrderSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -63,7 +63,7 @@ const customerDeleteResponseSchema = z.object({
63
63
  });
64
64
  const customerOrdersResponseSchema = z.object({ customer: z.object({ orders: shopifyConnectionNodesSchema(shopifyOrderSchema) }).nullable() });
65
65
  const listCustomers = shopifyOperation({
66
- id: "list_shopify_customers",
66
+ id: "shopify.list-shopify-customers",
67
67
  name: "List Shopify Customers",
68
68
  description: "List customers from the connected Shopify store.",
69
69
  input: shopifyPageInputSchema,
@@ -91,7 +91,7 @@ const listCustomers = shopifyOperation({
91
91
  }
92
92
  });
93
93
  const getCustomer = shopifyOperation({
94
- id: "get_shopify_customer",
94
+ id: "shopify.get-shopify-customer",
95
95
  name: "Get Shopify Customer",
96
96
  description: "Retrieve a single Shopify customer by its global ID.",
97
97
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -109,7 +109,7 @@ const getCustomer = shopifyOperation({
109
109
  }
110
110
  });
111
111
  const createCustomer = shopifyOperation({
112
- id: "create_shopify_customer",
112
+ id: "shopify.create-shopify-customer",
113
113
  name: "Create Shopify Customer",
114
114
  description: "Create a customer in the connected Shopify store.",
115
115
  needsApproval: true,
@@ -135,7 +135,7 @@ const createCustomer = shopifyOperation({
135
135
  }
136
136
  });
137
137
  const updateCustomer = shopifyOperation({
138
- id: "update_shopify_customer",
138
+ id: "shopify.update-shopify-customer",
139
139
  name: "Update Shopify Customer",
140
140
  description: "Update a Shopify customer by its global ID.",
141
141
  needsApproval: true,
@@ -161,7 +161,7 @@ const updateCustomer = shopifyOperation({
161
161
  }
162
162
  });
163
163
  const deleteCustomer = shopifyOperation({
164
- id: "delete_shopify_customer",
164
+ id: "shopify.delete-shopify-customer",
165
165
  name: "Delete Shopify Customer",
166
166
  description: "Delete a Shopify customer who has no placed orders.",
167
167
  needsApproval: true,
@@ -185,7 +185,7 @@ const deleteCustomer = shopifyOperation({
185
185
  }
186
186
  });
187
187
  const getCustomerOrders = shopifyOperation({
188
- id: "get_shopify_customer_orders",
188
+ id: "shopify.get-shopify-customer-orders",
189
189
  name: "Get Shopify Customer Orders",
190
190
  description: "Retrieve orders for a specific Shopify customer.",
191
191
  input: z.object({
@@ -0,0 +1,7 @@
1
+ import { s as createOfficialOperationFactory, t as shopify } from "./integration-vSl3XHTG.mjs";
2
+
3
+ //#region src/factory.ts
4
+ const shopifyOperation = createOfficialOperationFactory(shopify);
5
+
6
+ //#endregion
7
+ export { shopifyOperation as t };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/fulfillments.d.ts
@@ -43,7 +43,7 @@ declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodO
43
43
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  endCursor: z.ZodNullable<z.ZodString>;
45
45
  }, z.core.$strip>;
46
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
46
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
47
47
  SHOPIFY_STORE_DOMAIN: z.ZodString;
48
48
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
49
49
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -59,7 +59,7 @@ declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
59
59
  number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
61
61
  }, z.core.$strip>>>;
62
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
62
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
63
63
  SHOPIFY_STORE_DOMAIN: z.ZodString;
64
64
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
65
65
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -88,7 +88,7 @@ declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
88
88
  number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
89
  url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
90
90
  }, z.core.$strip>>>;
91
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
91
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
92
92
  SHOPIFY_STORE_DOMAIN: z.ZodString;
93
93
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
94
94
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyFulfillmentSchema, shopifyGlobalIdSchema, shopifyLocationSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -35,7 +35,7 @@ const fulfillmentCreatePayloadSchema = z.object({
35
35
  userErrors: z.array(shopifyUserErrorSchema)
36
36
  });
37
37
  const listFulfillmentOrdersForOrder = shopifyOperation({
38
- id: "list_shopify_fulfillment_orders_for_order",
38
+ id: "shopify.list-shopify-fulfillment-orders-for-order",
39
39
  name: "List Shopify Fulfillment Orders For Order",
40
40
  description: "List fulfillment orders for a Shopify order so they can be fulfilled.",
41
41
  input: z.object({
@@ -97,7 +97,7 @@ const listFulfillmentOrdersForOrder = shopifyOperation({
97
97
  }
98
98
  });
99
99
  const getFulfillment = shopifyOperation({
100
- id: "get_shopify_fulfillment",
100
+ id: "shopify.get-shopify-fulfillment",
101
101
  name: "Get Shopify Fulfillment",
102
102
  description: "Retrieve a single Shopify fulfillment by its global ID.",
103
103
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -115,7 +115,7 @@ const getFulfillment = shopifyOperation({
115
115
  }
116
116
  });
117
117
  const createFulfillment = shopifyOperation({
118
- id: "create_shopify_fulfillment",
118
+ id: "shopify.create-shopify-fulfillment",
119
119
  name: "Create Shopify Fulfillment",
120
120
  description: "Create a fulfillment from one or more Shopify fulfillment orders.",
121
121
  needsApproval: true,
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
4
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
4
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
@@ -55,11 +54,11 @@ declare const shopifyOfficialIntegration: {
55
54
  id: string;
56
55
  }[];
57
56
  };
58
- declare const shopifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"shopify", z.ZodObject<{
57
+ declare const shopifyBundle: undefined<"shopify", z.ZodObject<{
59
58
  SHOPIFY_STORE_DOMAIN: z.ZodString;
60
59
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
61
60
  }, z.core.$strip>>;
62
- declare const shopify: _keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
61
+ declare const shopify: _keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
63
62
  SHOPIFY_STORE_DOMAIN: z.ZodString;
64
63
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
65
64
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,9 +1,100 @@
1
- import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
1
+ import { CredentialSet, Operation } from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import { CredentialSet } from "@keystrokehq/core";
4
3
  import { createHmac, timingSafeEqual } from "node:crypto";
5
- import { TokenExchangeError, normalizeOAuthTokens, parseOAuthTokenResponse } from "@keystrokehq/credential-connection";
6
4
 
5
+ //#region ../../packages/integration-authoring/dist/official/runtime.mjs
6
+ const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
7
+ function getRegistry() {
8
+ const globalStore = globalThis;
9
+ if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
10
+ return globalStore[REGISTRY_KEY];
11
+ }
12
+ function registerOfficialOperation(operation, metadata) {
13
+ getRegistry().set(operation, Object.freeze({ ...metadata }));
14
+ }
15
+
16
+ //#endregion
17
+ //#region ../../packages/integration-authoring/dist/official/index.mjs
18
+ const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
19
+ function officialCredentialSetId(id) {
20
+ return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
21
+ }
22
+ function stripOfficialCredentialSetIdPrefix(id) {
23
+ return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
24
+ }
25
+ /**
26
+ * Creates a factory for Keystroke-official integration operations.
27
+ *
28
+ * It keeps the same flat `run(input, credentials)` ergonomics as the generic
29
+ * operation factory, while registering official metadata for builder/runtime
30
+ * operation metadata.
31
+ */
32
+ function createOfficialOperationFactory(credentialSet) {
33
+ const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
34
+ return (config) => {
35
+ const wrappedRun = async (input, ctx) => {
36
+ const creds = ctx.credentials[credentialSet.id];
37
+ return config.run(input, creds);
38
+ };
39
+ const operation = new Operation({
40
+ id: config.id,
41
+ name: config.name,
42
+ description: config.description,
43
+ input: config.input,
44
+ output: config.output,
45
+ credentialSets: [credentialSet],
46
+ ...config.tags !== void 0 ? { tags: config.tags } : {},
47
+ ...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
48
+ ...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
49
+ ...config.retries !== void 0 ? { retries: config.retries } : {},
50
+ ...config.timeout !== void 0 ? { timeout: config.timeout } : {},
51
+ ...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
52
+ run: wrappedRun
53
+ });
54
+ registerOfficialOperation(operation, { integrationId });
55
+ return operation;
56
+ };
57
+ }
58
+ /**
59
+ * Creates an official integration bundle from a single config object.
60
+ *
61
+ * - Creates the public `CredentialSet` internally.
62
+ * - Accepts optional `internal` fields for Keystroke-owned platform credentials.
63
+ */
64
+ function defineOfficialIntegration(config) {
65
+ const internalCredentialSets = config.internal ?? {};
66
+ const allInternalCredentialSets = [
67
+ ...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
68
+ ...internalCredentialSets.providerAppVariants ?? [],
69
+ ...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
70
+ ...internalCredentialSets.other ?? []
71
+ ];
72
+ const credentialSet = new CredentialSet({
73
+ id: config.id,
74
+ name: config.name,
75
+ description: config.description,
76
+ auth: config.auth,
77
+ ...config.connections ? { connections: config.connections } : {},
78
+ ...config.proxy ? { proxy: config.proxy } : {},
79
+ ...config.needsRawSecret === true ? { needsRawSecret: true } : {}
80
+ });
81
+ return Object.freeze({
82
+ integration: {
83
+ id: config.id,
84
+ name: config.name,
85
+ ...config.description !== void 0 ? { description: config.description } : {},
86
+ auth: config.auth,
87
+ ...config.proxy ? { proxy: config.proxy } : {},
88
+ ...config.needsRawSecret === true ? { needsRawSecret: true } : {},
89
+ ...config.connections ? { connections: config.connections } : {}
90
+ },
91
+ credentialSet,
92
+ internalCredentialSets,
93
+ allInternalCredentialSets
94
+ });
95
+ }
96
+
97
+ //#endregion
7
98
  //#region src/_official/provider-app.ts
8
99
  const shopifyAppCredentialSet = new CredentialSet({
9
100
  id: officialCredentialSetId("shopify-app"),
@@ -40,6 +131,51 @@ const shopifyOfficialProviderSeed = {
40
131
  })
41
132
  };
42
133
 
134
+ //#endregion
135
+ //#region ../../packages/credential-connection/dist/defaults-YE9AvLIc.mjs
136
+ /**
137
+ * Shared OAuth 2.0 token-response plumbing.
138
+ *
139
+ * `parseOAuthTokenResponse` handles the two common wire formats (JSON and
140
+ * form-urlencoded, the latter used by GitHub unless you explicitly ask for
141
+ * JSON). `normalizeOAuthTokens` pulls the standard fields out of the parsed
142
+ * body in both the flat form and Slack's nested `authed_user.access_token`
143
+ * form. These helpers are exposed so integration authors overriding
144
+ * `exchangeCode` / `refreshToken` do not have to re-implement them.
145
+ */
146
+ var TokenExchangeError = class extends Error {
147
+ httpStatus;
148
+ constructor(httpStatus) {
149
+ super(`Token exchange failed: HTTP ${httpStatus}`);
150
+ this.name = "TokenExchangeError";
151
+ this.httpStatus = httpStatus;
152
+ }
153
+ };
154
+ async function parseOAuthTokenResponse(response) {
155
+ const contentType = response.headers.get("content-type")?.toLowerCase() ?? "";
156
+ if (contentType.includes("application/json")) return await response.json();
157
+ const text = await response.text();
158
+ if (!text.trim()) return {};
159
+ if (contentType.includes("application/x-www-form-urlencoded") || text.includes("=")) {
160
+ const params = new URLSearchParams(text);
161
+ return Object.fromEntries(params.entries());
162
+ }
163
+ throw new Error(`Unsupported OAuth token response content type: ${contentType || "unknown"}`);
164
+ }
165
+ function normalizeOAuthTokens(tokenData) {
166
+ const authedUser = tokenData.authed_user;
167
+ const rawAccessToken = tokenData.access_token ?? authedUser?.access_token;
168
+ const rawRefreshToken = tokenData.refresh_token;
169
+ const rawExpiresIn = tokenData.expires_in;
170
+ const rawInstanceUrl = tokenData.instance_url;
171
+ return {
172
+ accessToken: typeof rawAccessToken === "string" ? rawAccessToken : void 0,
173
+ refreshToken: typeof rawRefreshToken === "string" ? rawRefreshToken : void 0,
174
+ expiresIn: typeof rawExpiresIn === "number" ? rawExpiresIn : typeof rawExpiresIn === "string" ? Number(rawExpiresIn) || void 0 : void 0,
175
+ instanceUrl: typeof rawInstanceUrl === "string" ? rawInstanceUrl : void 0
176
+ };
177
+ }
178
+
43
179
  //#endregion
44
180
  //#region src/oauth-connection.ts
45
181
  /**
@@ -201,4 +337,4 @@ const shopifyBundle = defineOfficialIntegration({
201
337
  const shopify = shopifyBundle.credentialSet;
202
338
 
203
339
  //#endregion
204
- export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
340
+ export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, createOfficialOperationFactory as s, shopify as t };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/inventory.d.ts
@@ -19,7 +19,7 @@ declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
19
19
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  endCursor: z.ZodNullable<z.ZodString>;
21
21
  }, z.core.$strip>;
22
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
22
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
23
23
  SHOPIFY_STORE_DOMAIN: z.ZodString;
24
24
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
25
25
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -32,7 +32,7 @@ declare const getInventoryItem: _keystrokehq_core0.Operation<z.ZodObject<{
32
32
  id: z.ZodString;
33
33
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  tracked: z.ZodOptional<z.ZodBoolean>;
35
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
35
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
36
36
  SHOPIFY_STORE_DOMAIN: z.ZodString;
37
37
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
38
38
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -68,7 +68,7 @@ declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObjec
68
68
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  endCursor: z.ZodNullable<z.ZodString>;
70
70
  }, z.core.$strip>;
71
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
71
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
72
72
  SHOPIFY_STORE_DOMAIN: z.ZodString;
73
73
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
74
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -92,7 +92,7 @@ declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObjec
92
92
  name: z.ZodString;
93
93
  delta: z.ZodNumber;
94
94
  }, z.core.$strip>>;
95
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
95
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
96
96
  SHOPIFY_STORE_DOMAIN: z.ZodString;
97
97
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
98
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyInventoryItemSchema, shopifyInventoryLevelSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -42,7 +42,7 @@ const inventoryAdjustmentResponseSchema = z.object({
42
42
  userErrors: z.array(shopifyUserErrorSchema)
43
43
  });
44
44
  const listInventoryItems = shopifyOperation({
45
- id: "list_shopify_inventory_items",
45
+ id: "shopify.list-shopify-inventory-items",
46
46
  name: "List Shopify Inventory Items",
47
47
  description: "List inventory items from the connected Shopify store.",
48
48
  input: shopifyPageInputSchema,
@@ -70,7 +70,7 @@ const listInventoryItems = shopifyOperation({
70
70
  }
71
71
  });
72
72
  const getInventoryItem = shopifyOperation({
73
- id: "get_shopify_inventory_item",
73
+ id: "shopify.get-shopify-inventory-item",
74
74
  name: "Get Shopify Inventory Item",
75
75
  description: "Retrieve a single Shopify inventory item by its global ID.",
76
76
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -88,7 +88,7 @@ const getInventoryItem = shopifyOperation({
88
88
  }
89
89
  });
90
90
  const getInventoryLevelsForItem = shopifyOperation({
91
- id: "get_shopify_inventory_levels_for_item",
91
+ id: "shopify.get-shopify-inventory-levels-for-item",
92
92
  name: "Get Shopify Inventory Levels For Item",
93
93
  description: "Retrieve inventory levels for a specific Shopify inventory item.",
94
94
  input: z.object({
@@ -124,7 +124,7 @@ const getInventoryLevelsForItem = shopifyOperation({
124
124
  }
125
125
  });
126
126
  const adjustInventoryQuantities = shopifyOperation({
127
- id: "adjust_shopify_inventory_quantities",
127
+ id: "shopify.adjust-shopify-inventory-quantities",
128
128
  name: "Adjust Shopify Inventory Quantities",
129
129
  description: "Adjust inventory quantities at specific Shopify locations.",
130
130
  needsApproval: true,
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/locations.d.ts
@@ -22,7 +22,7 @@ declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
22
22
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  endCursor: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>;
25
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
25
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
26
26
  SHOPIFY_STORE_DOMAIN: z.ZodString;
27
27
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
28
28
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -36,7 +36,7 @@ declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
36
36
  name: z.ZodString;
37
37
  isActive: z.ZodOptional<z.ZodBoolean>;
38
38
  fulfillsOnlineOrders: z.ZodOptional<z.ZodBoolean>;
39
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
39
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
40
40
  SHOPIFY_STORE_DOMAIN: z.ZodString;
41
41
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
42
42
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyLocationSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { r as shopifyPageInputSchema } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -14,7 +14,7 @@ const locationSelection = `
14
14
  const listLocationsResponseSchema = z.object({ locations: shopifyConnectionNodesSchema(shopifyLocationSchema) });
15
15
  const getLocationResponseSchema = z.object({ location: shopifyLocationSchema.nullable() });
16
16
  const listLocations = shopifyOperation({
17
- id: "list_shopify_locations",
17
+ id: "shopify.list-shopify-locations",
18
18
  name: "List Shopify Locations",
19
19
  description: "List locations from the connected Shopify store.",
20
20
  input: shopifyPageInputSchema.extend({
@@ -59,7 +59,7 @@ const listLocations = shopifyOperation({
59
59
  }
60
60
  });
61
61
  const getLocation = shopifyOperation({
62
- id: "get_shopify_location",
62
+ id: "shopify.get-shopify-location",
63
63
  name: "Get Shopify Location",
64
64
  description: "Retrieve a single Shopify location by its global ID.",
65
65
  input: z.object({ id: shopifyGlobalIdSchema }),
package/dist/orders.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/orders.d.ts
@@ -46,7 +46,7 @@ declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
46
46
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  endCursor: z.ZodNullable<z.ZodString>;
48
48
  }, z.core.$strip>;
49
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
49
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
50
50
  SHOPIFY_STORE_DOMAIN: z.ZodString;
51
51
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
52
52
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -86,7 +86,7 @@ declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
86
86
  createdAt: z.ZodOptional<z.ZodISODateTime>;
87
87
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
88
88
  }, z.core.$strip>>>;
89
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
89
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
90
90
  SHOPIFY_STORE_DOMAIN: z.ZodString;
91
91
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
92
92
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -138,7 +138,7 @@ declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
138
138
  createdAt: z.ZodOptional<z.ZodISODateTime>;
139
139
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
140
140
  }, z.core.$strip>>>;
141
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
141
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
142
142
  SHOPIFY_STORE_DOMAIN: z.ZodString;
143
143
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
144
144
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -192,7 +192,7 @@ declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
192
192
  createdAt: z.ZodOptional<z.ZodISODateTime>;
193
193
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
194
194
  }, z.core.$strip>>>;
195
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
195
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
196
196
  SHOPIFY_STORE_DOMAIN: z.ZodString;
197
197
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
198
198
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -218,7 +218,7 @@ declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
218
218
  }, z.core.$strip>, z.ZodObject<{
219
219
  id: z.ZodString;
220
220
  done: z.ZodOptional<z.ZodBoolean>;
221
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
221
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
222
222
  SHOPIFY_STORE_DOMAIN: z.ZodString;
223
223
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
224
224
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/orders.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyJobSchema, shopifyOrderSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -110,7 +110,7 @@ function buildOrderCreateLineItems(lineItems, currency) {
110
110
  });
111
111
  }
112
112
  const listOrders = shopifyOperation({
113
- id: "list_shopify_orders",
113
+ id: "shopify.list-shopify-orders",
114
114
  name: "List Shopify Orders",
115
115
  description: "List orders from the connected Shopify store.",
116
116
  input: shopifyPageInputSchema,
@@ -138,7 +138,7 @@ const listOrders = shopifyOperation({
138
138
  }
139
139
  });
140
140
  const getOrder = shopifyOperation({
141
- id: "get_shopify_order",
141
+ id: "shopify.get-shopify-order",
142
142
  name: "Get Shopify Order",
143
143
  description: "Retrieve a single Shopify order by its global ID.",
144
144
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -156,7 +156,7 @@ const getOrder = shopifyOperation({
156
156
  }
157
157
  });
158
158
  const createOrder = shopifyOperation({
159
- id: "create_shopify_order",
159
+ id: "shopify.create-shopify-order",
160
160
  name: "Create Shopify Order",
161
161
  description: "Create an order in the connected Shopify store.",
162
162
  needsApproval: true,
@@ -192,7 +192,7 @@ const createOrder = shopifyOperation({
192
192
  }
193
193
  });
194
194
  const updateOrder = shopifyOperation({
195
- id: "update_shopify_order",
195
+ id: "shopify.update-shopify-order",
196
196
  name: "Update Shopify Order",
197
197
  description: "Update simple order attributes such as note, tags, email, or shipping address.",
198
198
  needsApproval: true,
@@ -218,7 +218,7 @@ const updateOrder = shopifyOperation({
218
218
  }
219
219
  });
220
220
  const cancelOrder = shopifyOperation({
221
- id: "cancel_shopify_order",
221
+ id: "shopify.cancel-shopify-order",
222
222
  name: "Cancel Shopify Order",
223
223
  description: "Cancel a Shopify order and return the asynchronous cancellation job.",
224
224
  needsApproval: true,
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/products.d.ts
@@ -35,7 +35,7 @@ declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
35
35
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  endCursor: z.ZodNullable<z.ZodString>;
37
37
  }, z.core.$strip>;
38
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
38
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
39
39
  SHOPIFY_STORE_DOMAIN: z.ZodString;
40
40
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
41
41
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -64,7 +64,7 @@ declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
64
64
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  }, z.core.$strip>>>;
66
66
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
67
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
68
68
  SHOPIFY_STORE_DOMAIN: z.ZodString;
69
69
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
70
70
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -98,7 +98,7 @@ declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
98
98
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
99
  }, z.core.$strip>>>;
100
100
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
101
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
102
102
  SHOPIFY_STORE_DOMAIN: z.ZodString;
103
103
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
104
104
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -133,7 +133,7 @@ declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
133
133
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
134
  }, z.core.$strip>>>;
135
135
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
136
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
137
137
  SHOPIFY_STORE_DOMAIN: z.ZodString;
138
138
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
139
139
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
@@ -144,7 +144,7 @@ declare const deleteProduct: _keystrokehq_core0.Operation<z.ZodObject<{
144
144
  id: z.ZodString;
145
145
  }, z.core.$strip>, z.ZodObject<{
146
146
  deletedProductId: z.ZodString;
147
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
147
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
148
148
  SHOPIFY_STORE_DOMAIN: z.ZodString;
149
149
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
150
150
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/products.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyProductSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -45,7 +45,7 @@ const deleteProductResponseSchema = z.object({
45
45
  userErrors: z.array(shopifyUserErrorSchema)
46
46
  });
47
47
  const listProducts = shopifyOperation({
48
- id: "list_shopify_products",
48
+ id: "shopify.list-shopify-products",
49
49
  name: "List Shopify Products",
50
50
  description: "List products from the connected Shopify store.",
51
51
  input: shopifyPageInputSchema,
@@ -73,7 +73,7 @@ const listProducts = shopifyOperation({
73
73
  }
74
74
  });
75
75
  const getProduct = shopifyOperation({
76
- id: "get_shopify_product",
76
+ id: "shopify.get-shopify-product",
77
77
  name: "Get Shopify Product",
78
78
  description: "Retrieve a single Shopify product by its global ID.",
79
79
  input: z.object({ id: shopifyGlobalIdSchema }),
@@ -91,7 +91,7 @@ const getProduct = shopifyOperation({
91
91
  }
92
92
  });
93
93
  const createProduct = shopifyOperation({
94
- id: "create_shopify_product",
94
+ id: "shopify.create-shopify-product",
95
95
  name: "Create Shopify Product",
96
96
  description: "Create a product in the connected Shopify store.",
97
97
  needsApproval: true,
@@ -117,7 +117,7 @@ const createProduct = shopifyOperation({
117
117
  }
118
118
  });
119
119
  const updateProduct = shopifyOperation({
120
- id: "update_shopify_product",
120
+ id: "shopify.update-shopify-product",
121
121
  name: "Update Shopify Product",
122
122
  description: "Update a Shopify product by its global ID.",
123
123
  needsApproval: true,
@@ -143,7 +143,7 @@ const updateProduct = shopifyOperation({
143
143
  }
144
144
  });
145
145
  const deleteProduct = shopifyOperation({
146
- id: "delete_shopify_product",
146
+ id: "shopify.delete-shopify-product",
147
147
  name: "Delete Shopify Product",
148
148
  description: "Delete a Shopify product by its global ID.",
149
149
  needsApproval: true,
package/dist/schemas.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as shopifyStoreDomainSchema } from "./integration-CTvqYMCL.mjs";
1
+ import { i as shopifyStoreDomainSchema } from "./integration-vSl3XHTG.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/schemas.ts
package/dist/shop.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/shop.d.ts
@@ -9,7 +9,7 @@ declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$stri
9
9
  myshopifyDomain: z.ZodString;
10
10
  contactEmail: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
11
11
  currencyCode: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
12
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
13
13
  SHOPIFY_STORE_DOMAIN: z.ZodString;
14
14
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
15
15
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
package/dist/shop.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyShopSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BQsdrC0B.mjs";
3
+ import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/shop.ts
@@ -17,7 +17,7 @@ const getShopQuery = `
17
17
  }
18
18
  `;
19
19
  const getShop = shopifyOperation({
20
- id: "get_shopify_shop",
20
+ id: "shopify.get-shopify-shop",
21
21
  name: "Get Shopify Shop",
22
22
  description: "Retrieve high-level details about the connected Shopify store.",
23
23
  input: z.object({}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/shopify",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -84,8 +84,6 @@
84
84
  "LICENSE"
85
85
  ],
86
86
  "dependencies": {
87
- "@keystrokehq/credential-connection": "^1.0.0",
88
- "@keystrokehq/integration-authoring": "^0.0.7",
89
87
  "@shopify/admin-api-client": "^1.1.2",
90
88
  "zod": "^4.3.6"
91
89
  },
@@ -97,9 +95,11 @@
97
95
  "tsdown": "^0.20.3",
98
96
  "typescript": "^5.9.3",
99
97
  "vitest": "^4.0.18",
100
- "@keystrokehq/core": "^0.0.8",
98
+ "@keystrokehq/core": "^0.0.12",
101
99
  "@keystrokehq/test-utils": "0.0.0",
102
- "@keystrokehq/typescript-config": "0.0.0"
100
+ "@keystrokehq/integration-authoring": "0.0.9",
101
+ "@keystrokehq/typescript-config": "0.0.0",
102
+ "@keystrokehq/credential-connection": "1.0.0"
103
103
  },
104
104
  "keywords": [
105
105
  "shopify",
@@ -1,8 +0,0 @@
1
- import { t as shopify } from "./integration-CTvqYMCL.mjs";
2
- import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
-
4
- //#region src/factory.ts
5
- const shopifyOperation = createOfficialOperationFactory(shopify);
6
-
7
- //#endregion
8
- export { shopifyOperation as t };