@keystrokehq/shopify 0.0.10 → 0.0.15

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,7 +1,6 @@
1
- import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-D5cqyAen.mjs";
1
+ import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-DrHCkXco.mjs";
2
2
  import { z } from "zod";
3
3
  import { CredentialSet } from "@keystrokehq/core";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
4
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
7
6
  //#region src/_official/provider-app.d.ts
@@ -9,11 +8,7 @@ declare const shopifyAppCredentialSet: CredentialSet<"keystroke:shopify-app", z.
9
8
  clientId: z.ZodString;
10
9
  clientSecret: z.ZodString;
11
10
  webhookSecret: z.ZodString;
12
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
13
- clientId: z.ZodString;
14
- clientSecret: z.ZodString;
15
- webhookSecret: z.ZodString;
16
- }, z.core.$strip>>[] | undefined>;
11
+ }, z.core.$strip>>;
17
12
  declare const shopifyOfficialProviderSeed: {
18
13
  readonly provider: "shopify";
19
14
  readonly appRef: "shopify-platform";
@@ -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-B5LK_0eR.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-DrHCkXco.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/webhook-management.d.ts
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/articles.d.ts
6
5
  declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -41,10 +40,7 @@ declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
41
40
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
42
41
  SHOPIFY_STORE_DOMAIN: z.ZodString;
43
42
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
44
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
45
- SHOPIFY_STORE_DOMAIN: z.ZodString;
46
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
47
- }, z.core.$strip>>[] | undefined>], undefined>;
43
+ }, z.core.$strip>>], undefined>;
48
44
  declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
49
45
  id: z.ZodString;
50
46
  }, z.core.$strip>, z.ZodObject<{
@@ -73,10 +69,7 @@ declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
73
69
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
74
70
  SHOPIFY_STORE_DOMAIN: z.ZodString;
75
71
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
76
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
77
- SHOPIFY_STORE_DOMAIN: z.ZodString;
78
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
79
- }, z.core.$strip>>[] | undefined>], undefined>;
72
+ }, z.core.$strip>>], undefined>;
80
73
  declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
81
74
  handle: z.ZodOptional<z.ZodString>;
82
75
  body: z.ZodOptional<z.ZodString>;
@@ -113,10 +106,7 @@ declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
113
106
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
114
107
  SHOPIFY_STORE_DOMAIN: z.ZodString;
115
108
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
116
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
117
- SHOPIFY_STORE_DOMAIN: z.ZodString;
118
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
119
- }, z.core.$strip>>[] | undefined>], undefined>;
109
+ }, z.core.$strip>>], undefined>;
120
110
  declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
121
111
  blogId: z.ZodOptional<z.ZodString>;
122
112
  title: z.ZodOptional<z.ZodString>;
@@ -155,10 +145,7 @@ declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
155
145
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
156
146
  SHOPIFY_STORE_DOMAIN: z.ZodString;
157
147
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
158
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
159
- SHOPIFY_STORE_DOMAIN: z.ZodString;
160
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
161
- }, z.core.$strip>>[] | undefined>], undefined>;
148
+ }, z.core.$strip>>], undefined>;
162
149
  declare const deleteArticle: _keystrokehq_core0.Operation<z.ZodObject<{
163
150
  id: z.ZodString;
164
151
  }, z.core.$strip>, z.ZodObject<{
@@ -166,9 +153,6 @@ declare const deleteArticle: _keystrokehq_core0.Operation<z.ZodObject<{
166
153
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
167
154
  SHOPIFY_STORE_DOMAIN: z.ZodString;
168
155
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
169
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
170
- SHOPIFY_STORE_DOMAIN: z.ZodString;
171
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
172
- }, z.core.$strip>>[] | undefined>], undefined>;
156
+ }, z.core.$strip>>], undefined>;
173
157
  //#endregion
174
158
  export { createArticle, deleteArticle, getArticle, listArticles, updateArticle };
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-DwZJl9JC.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
 
package/dist/blogs.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/blogs.d.ts
6
5
  declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -26,10 +25,7 @@ declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
26
25
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
27
26
  SHOPIFY_STORE_DOMAIN: z.ZodString;
28
27
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
- SHOPIFY_STORE_DOMAIN: z.ZodString;
31
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
32
- }, z.core.$strip>>[] | undefined>], undefined>;
28
+ }, z.core.$strip>>], undefined>;
33
29
  declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
34
30
  id: z.ZodString;
35
31
  }, z.core.$strip>, z.ZodObject<{
@@ -43,10 +39,7 @@ declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
43
39
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
44
40
  SHOPIFY_STORE_DOMAIN: z.ZodString;
45
41
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
46
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
47
- SHOPIFY_STORE_DOMAIN: z.ZodString;
48
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
49
- }, z.core.$strip>>[] | undefined>], undefined>;
42
+ }, z.core.$strip>>], undefined>;
50
43
  declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
51
44
  handle: z.ZodOptional<z.ZodString>;
52
45
  templateSuffix: z.ZodOptional<z.ZodString>;
@@ -68,10 +61,7 @@ declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
68
61
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
69
62
  SHOPIFY_STORE_DOMAIN: z.ZodString;
70
63
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
72
- SHOPIFY_STORE_DOMAIN: z.ZodString;
73
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
75
65
  declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
76
66
  title: z.ZodOptional<z.ZodString>;
77
67
  handle: z.ZodOptional<z.ZodString>;
@@ -94,10 +84,7 @@ declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
94
84
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
95
85
  SHOPIFY_STORE_DOMAIN: z.ZodString;
96
86
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
97
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
98
- SHOPIFY_STORE_DOMAIN: z.ZodString;
99
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
100
- }, z.core.$strip>>[] | undefined>], undefined>;
87
+ }, z.core.$strip>>], undefined>;
101
88
  declare const deleteBlog: _keystrokehq_core0.Operation<z.ZodObject<{
102
89
  id: z.ZodString;
103
90
  }, z.core.$strip>, z.ZodObject<{
@@ -105,9 +92,6 @@ declare const deleteBlog: _keystrokehq_core0.Operation<z.ZodObject<{
105
92
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
106
93
  SHOPIFY_STORE_DOMAIN: z.ZodString;
107
94
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
108
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
109
- SHOPIFY_STORE_DOMAIN: z.ZodString;
110
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
111
- }, z.core.$strip>>[] | undefined>], undefined>;
95
+ }, z.core.$strip>>], undefined>;
112
96
  //#endregion
113
97
  export { createBlog, deleteBlog, getBlog, listBlogs, updateBlog };
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-DwZJl9JC.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
 
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-DrHCkXco.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-B5LK_0eR.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,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/collections.d.ts
6
5
  declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -32,10 +31,7 @@ declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
32
31
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
33
32
  SHOPIFY_STORE_DOMAIN: z.ZodString;
34
33
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
35
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
36
- SHOPIFY_STORE_DOMAIN: z.ZodString;
37
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
38
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
39
35
  declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
40
36
  id: z.ZodString;
41
37
  }, z.core.$strip>, z.ZodObject<{
@@ -55,10 +51,7 @@ declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
55
51
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
56
52
  SHOPIFY_STORE_DOMAIN: z.ZodString;
57
53
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
58
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
59
- SHOPIFY_STORE_DOMAIN: z.ZodString;
60
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
61
- }, z.core.$strip>>[] | undefined>], undefined>;
54
+ }, z.core.$strip>>], undefined>;
62
55
  declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
63
56
  handle: z.ZodOptional<z.ZodString>;
64
57
  descriptionHtml: z.ZodOptional<z.ZodString>;
@@ -84,10 +77,7 @@ declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
84
77
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
85
78
  SHOPIFY_STORE_DOMAIN: z.ZodString;
86
79
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
87
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
88
- SHOPIFY_STORE_DOMAIN: z.ZodString;
89
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
90
- }, z.core.$strip>>[] | undefined>], undefined>;
80
+ }, z.core.$strip>>], undefined>;
91
81
  declare const deleteCollection: _keystrokehq_core0.Operation<z.ZodObject<{
92
82
  id: z.ZodString;
93
83
  }, z.core.$strip>, z.ZodObject<{
@@ -95,10 +85,7 @@ declare const deleteCollection: _keystrokehq_core0.Operation<z.ZodObject<{
95
85
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
96
86
  SHOPIFY_STORE_DOMAIN: z.ZodString;
97
87
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
99
- SHOPIFY_STORE_DOMAIN: z.ZodString;
100
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
101
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
102
89
  declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<{
103
90
  id: z.ZodString;
104
91
  productIds: z.ZodArray<z.ZodString>;
@@ -119,10 +106,7 @@ declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<
119
106
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
120
107
  SHOPIFY_STORE_DOMAIN: z.ZodString;
121
108
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
122
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
123
- SHOPIFY_STORE_DOMAIN: z.ZodString;
124
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
125
- }, z.core.$strip>>[] | undefined>], undefined>;
109
+ }, z.core.$strip>>], undefined>;
126
110
  declare const removeProductsFromCollection: _keystrokehq_core0.Operation<z.ZodObject<{
127
111
  id: z.ZodString;
128
112
  productIds: z.ZodArray<z.ZodString>;
@@ -132,9 +116,6 @@ declare const removeProductsFromCollection: _keystrokehq_core0.Operation<z.ZodOb
132
116
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
133
117
  SHOPIFY_STORE_DOMAIN: z.ZodString;
134
118
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
135
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
136
- SHOPIFY_STORE_DOMAIN: z.ZodString;
137
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
138
- }, z.core.$strip>>[] | undefined>], undefined>;
119
+ }, z.core.$strip>>], undefined>;
139
120
  //#endregion
140
121
  export { addProductsToCollection, createCollection, deleteCollection, getCollection, listCollections, removeProductsFromCollection };
@@ -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-DwZJl9JC.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
 
@@ -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-DrHCkXco.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-B5LK_0eR.mjs";
2
2
 
3
3
  export { shopify };
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/customers.d.ts
6
5
  declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -27,10 +26,7 @@ declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
27
26
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
28
27
  SHOPIFY_STORE_DOMAIN: z.ZodString;
29
28
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
30
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
31
- SHOPIFY_STORE_DOMAIN: z.ZodString;
32
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
33
- }, z.core.$strip>>[] | undefined>], undefined>;
29
+ }, z.core.$strip>>], undefined>;
34
30
  declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
35
31
  id: z.ZodString;
36
32
  }, z.core.$strip>, z.ZodObject<{
@@ -45,10 +41,7 @@ declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
45
41
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
46
42
  SHOPIFY_STORE_DOMAIN: z.ZodString;
47
43
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
48
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
49
- SHOPIFY_STORE_DOMAIN: z.ZodString;
50
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
51
- }, z.core.$strip>>[] | undefined>], undefined>;
44
+ }, z.core.$strip>>], undefined>;
52
45
  declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
53
46
  email: z.ZodOptional<z.ZodEmail>;
54
47
  firstName: z.ZodOptional<z.ZodString>;
@@ -68,10 +61,7 @@ declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
68
61
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
69
62
  SHOPIFY_STORE_DOMAIN: z.ZodString;
70
63
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
72
- SHOPIFY_STORE_DOMAIN: z.ZodString;
73
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
75
65
  declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
76
66
  email: z.ZodOptional<z.ZodEmail>;
77
67
  firstName: z.ZodOptional<z.ZodString>;
@@ -92,10 +82,7 @@ declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
92
82
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
93
83
  SHOPIFY_STORE_DOMAIN: z.ZodString;
94
84
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
96
- SHOPIFY_STORE_DOMAIN: z.ZodString;
97
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>>[] | undefined>], undefined>;
85
+ }, z.core.$strip>>], undefined>;
99
86
  declare const deleteCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
100
87
  id: z.ZodString;
101
88
  }, z.core.$strip>, z.ZodObject<{
@@ -103,10 +90,7 @@ declare const deleteCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
103
90
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
104
91
  SHOPIFY_STORE_DOMAIN: z.ZodString;
105
92
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
106
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
107
- SHOPIFY_STORE_DOMAIN: z.ZodString;
108
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
109
- }, z.core.$strip>>[] | undefined>], undefined>;
93
+ }, z.core.$strip>>], undefined>;
110
94
  declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
111
95
  id: z.ZodString;
112
96
  first: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -153,9 +137,6 @@ declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
153
137
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
154
138
  SHOPIFY_STORE_DOMAIN: z.ZodString;
155
139
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
156
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
157
- SHOPIFY_STORE_DOMAIN: z.ZodString;
158
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
159
- }, z.core.$strip>>[] | undefined>], undefined>;
140
+ }, z.core.$strip>>], undefined>;
160
141
  //#endregion
161
142
  export { createCustomer, deleteCustomer, getCustomer, getCustomerOrders, listCustomers, updateCustomer };
@@ -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-DwZJl9JC.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
 
@@ -1,4 +1,4 @@
1
- import { t as shopify } from "./integration-CTvqYMCL.mjs";
1
+ import { t as shopify } from "./integration-B5LK_0eR.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/fulfillments.d.ts
6
5
  declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -46,10 +45,7 @@ declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodO
46
45
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
47
46
  SHOPIFY_STORE_DOMAIN: z.ZodString;
48
47
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
49
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
50
- SHOPIFY_STORE_DOMAIN: z.ZodString;
51
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
52
- }, z.core.$strip>>[] | undefined>], undefined>;
48
+ }, z.core.$strip>>], undefined>;
53
49
  declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
54
50
  id: z.ZodString;
55
51
  }, z.core.$strip>, z.ZodObject<{
@@ -62,10 +58,7 @@ declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
62
58
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
63
59
  SHOPIFY_STORE_DOMAIN: z.ZodString;
64
60
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
65
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
66
- SHOPIFY_STORE_DOMAIN: z.ZodString;
67
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
68
- }, z.core.$strip>>[] | undefined>], undefined>;
61
+ }, z.core.$strip>>], undefined>;
69
62
  declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
70
63
  lineItemsByFulfillmentOrder: z.ZodArray<z.ZodObject<{
71
64
  fulfillmentOrderId: z.ZodString;
@@ -91,9 +84,6 @@ declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
91
84
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
92
85
  SHOPIFY_STORE_DOMAIN: z.ZodString;
93
86
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
94
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
95
- SHOPIFY_STORE_DOMAIN: z.ZodString;
96
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
97
- }, z.core.$strip>>[] | undefined>], undefined>;
87
+ }, z.core.$strip>>], undefined>;
98
88
  //#endregion
99
89
  export { createFulfillment, getFulfillment, listFulfillmentOrdersForOrder };
@@ -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-DwZJl9JC.mjs";
4
4
  import { t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -0,0 +1,63 @@
1
+ import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import { CredentialSet } from "@keystrokehq/core";
4
+
5
+ //#region src/_official/provider-app.ts
6
+ const shopifyAppCredentialSet = new CredentialSet({
7
+ id: officialCredentialSetId("shopify-app"),
8
+ credentialType: "manual",
9
+ exposure: "platform-only",
10
+ name: "Shopify App",
11
+ auth: z.object({
12
+ clientId: z.string(),
13
+ clientSecret: z.string(),
14
+ webhookSecret: z.string()
15
+ })
16
+ });
17
+ const shopifyOfficialProviderSeed = {
18
+ provider: "shopify",
19
+ appRef: "shopify-platform",
20
+ displayName: "Shopify Platform",
21
+ credentialSetName: "Keystroke Shopify Platform App",
22
+ envShape: {
23
+ KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID: z.string().optional(),
24
+ KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID: z.string().optional(),
25
+ KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET: z.string().optional(),
26
+ KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET: z.string().optional()
27
+ },
28
+ requiredEnvKeys: [
29
+ "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
30
+ "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID",
31
+ "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET",
32
+ "KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET"
33
+ ],
34
+ externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
35
+ buildCredentials: (env) => ({
36
+ clientId: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID,
37
+ clientSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET,
38
+ webhookSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET
39
+ })
40
+ };
41
+
42
+ //#endregion
43
+ //#region src/integration.ts
44
+ const shopifyStoreDomainSchema = z.string().min(1).regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/i, "Shopify store domain must look like \"example.myshopify.com\".");
45
+ const shopifyAuthSchema = z.object({
46
+ SHOPIFY_STORE_DOMAIN: shopifyStoreDomainSchema,
47
+ SHOPIFY_ACCESS_TOKEN: z.string().min(1)
48
+ });
49
+ const shopifyOfficialIntegration = {
50
+ id: "shopify",
51
+ name: "Shopify",
52
+ description: "Shopify Admin API — stores, products, orders, customers, and webhooks",
53
+ auth: shopifyAuthSchema,
54
+ credentialType: "oauth"
55
+ };
56
+ const shopifyBundle = defineOfficialIntegration({
57
+ ...shopifyOfficialIntegration,
58
+ internal: { providerApp: shopifyAppCredentialSet }
59
+ });
60
+ const shopify = shopifyBundle.credentialSet;
61
+
62
+ //#endregion
63
+ export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
@@ -0,0 +1,27 @@
1
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/integration.d.ts
7
+ declare const shopifyOfficialIntegration: {
8
+ id: "shopify";
9
+ name: string;
10
+ description: string;
11
+ auth: z.ZodObject<{
12
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
13
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
14
+ }, z.core.$strip>;
15
+ credentialType: "oauth";
16
+ };
17
+ declare const shopifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"shopify", z.ZodObject<{
18
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
19
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ declare const shopify: _keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
22
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
23
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ type ShopifyCredentials = InferCredentialSetAuth<typeof shopify>;
26
+ //#endregion
27
+ export { shopifyOfficialIntegration as i, shopify as n, shopifyBundle as r, ShopifyCredentials as t };
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/inventory.d.ts
6
5
  declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -22,10 +21,7 @@ declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
22
21
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
23
22
  SHOPIFY_STORE_DOMAIN: z.ZodString;
24
23
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
25
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
26
- SHOPIFY_STORE_DOMAIN: z.ZodString;
27
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>>[] | undefined>], undefined>;
24
+ }, z.core.$strip>>], undefined>;
29
25
  declare const getInventoryItem: _keystrokehq_core0.Operation<z.ZodObject<{
30
26
  id: z.ZodString;
31
27
  }, z.core.$strip>, z.ZodObject<{
@@ -35,10 +31,7 @@ declare const getInventoryItem: _keystrokehq_core0.Operation<z.ZodObject<{
35
31
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
36
32
  SHOPIFY_STORE_DOMAIN: z.ZodString;
37
33
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
38
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
39
- SHOPIFY_STORE_DOMAIN: z.ZodString;
40
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
42
35
  declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObject<{
43
36
  inventoryItemId: z.ZodString;
44
37
  first: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -71,10 +64,7 @@ declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObjec
71
64
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
72
65
  SHOPIFY_STORE_DOMAIN: z.ZodString;
73
66
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
75
- SHOPIFY_STORE_DOMAIN: z.ZodString;
76
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
77
- }, z.core.$strip>>[] | undefined>], undefined>;
67
+ }, z.core.$strip>>], undefined>;
78
68
  declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObject<{
79
69
  name: z.ZodDefault<z.ZodString>;
80
70
  reason: z.ZodString;
@@ -95,9 +85,6 @@ declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObjec
95
85
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
96
86
  SHOPIFY_STORE_DOMAIN: z.ZodString;
97
87
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
99
- SHOPIFY_STORE_DOMAIN: z.ZodString;
100
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
101
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
102
89
  //#endregion
103
90
  export { adjustInventoryQuantities, getInventoryItem, getInventoryLevelsForItem, listInventoryItems };
@@ -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-DwZJl9JC.mjs";
4
4
  import { r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/locations.d.ts
6
5
  declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -25,10 +24,7 @@ declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
25
24
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
26
25
  SHOPIFY_STORE_DOMAIN: z.ZodString;
27
26
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
- SHOPIFY_STORE_DOMAIN: z.ZodString;
30
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
27
+ }, z.core.$strip>>], undefined>;
32
28
  declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
33
29
  id: z.ZodString;
34
30
  }, z.core.$strip>, z.ZodObject<{
@@ -39,9 +35,6 @@ declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
39
35
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
40
36
  SHOPIFY_STORE_DOMAIN: z.ZodString;
41
37
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
42
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
43
- SHOPIFY_STORE_DOMAIN: z.ZodString;
44
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
45
- }, z.core.$strip>>[] | undefined>], undefined>;
38
+ }, z.core.$strip>>], undefined>;
46
39
  //#endregion
47
40
  export { getLocation, listLocations };
@@ -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-DwZJl9JC.mjs";
4
4
  import { r as shopifyPageInputSchema } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/orders.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/orders.d.ts
6
5
  declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -49,10 +48,7 @@ declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
49
48
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
50
49
  SHOPIFY_STORE_DOMAIN: z.ZodString;
51
50
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
52
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
53
- SHOPIFY_STORE_DOMAIN: z.ZodString;
54
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
55
- }, z.core.$strip>>[] | undefined>], undefined>;
51
+ }, z.core.$strip>>], undefined>;
56
52
  declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
57
53
  id: z.ZodString;
58
54
  }, z.core.$strip>, z.ZodObject<{
@@ -89,10 +85,7 @@ declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
89
85
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
90
86
  SHOPIFY_STORE_DOMAIN: z.ZodString;
91
87
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
92
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
93
- SHOPIFY_STORE_DOMAIN: z.ZodString;
94
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
96
89
  declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
97
90
  currency: z.ZodString;
98
91
  email: z.ZodOptional<z.ZodEmail>;
@@ -141,10 +134,7 @@ declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
141
134
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
142
135
  SHOPIFY_STORE_DOMAIN: z.ZodString;
143
136
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
144
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
145
- SHOPIFY_STORE_DOMAIN: z.ZodString;
146
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
147
- }, z.core.$strip>>[] | undefined>], undefined>;
137
+ }, z.core.$strip>>], undefined>;
148
138
  declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
149
139
  id: z.ZodString;
150
140
  email: z.ZodOptional<z.ZodEmail>;
@@ -195,10 +185,7 @@ declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
195
185
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
196
186
  SHOPIFY_STORE_DOMAIN: z.ZodString;
197
187
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
198
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
199
- SHOPIFY_STORE_DOMAIN: z.ZodString;
200
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
201
- }, z.core.$strip>>[] | undefined>], undefined>;
188
+ }, z.core.$strip>>], undefined>;
202
189
  declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
203
190
  orderId: z.ZodString;
204
191
  reason: z.ZodEnum<{
@@ -221,9 +208,6 @@ declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
221
208
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
222
209
  SHOPIFY_STORE_DOMAIN: z.ZodString;
223
210
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
224
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
225
- SHOPIFY_STORE_DOMAIN: z.ZodString;
226
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
227
- }, z.core.$strip>>[] | undefined>], undefined>;
211
+ }, z.core.$strip>>], undefined>;
228
212
  //#endregion
229
213
  export { cancelOrder, createOrder, getOrder, listOrders, updateOrder };
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-DwZJl9JC.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
 
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/products.d.ts
6
5
  declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -38,10 +37,7 @@ declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
38
37
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
39
38
  SHOPIFY_STORE_DOMAIN: z.ZodString;
40
39
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
42
- SHOPIFY_STORE_DOMAIN: z.ZodString;
43
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
44
- }, z.core.$strip>>[] | undefined>], undefined>;
40
+ }, z.core.$strip>>], undefined>;
45
41
  declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
46
42
  id: z.ZodString;
47
43
  }, z.core.$strip>, z.ZodObject<{
@@ -67,10 +63,7 @@ declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
67
63
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
68
64
  SHOPIFY_STORE_DOMAIN: z.ZodString;
69
65
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
71
- SHOPIFY_STORE_DOMAIN: z.ZodString;
72
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
73
- }, z.core.$strip>>[] | undefined>], undefined>;
66
+ }, z.core.$strip>>], undefined>;
74
67
  declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
75
68
  handle: z.ZodOptional<z.ZodString>;
76
69
  descriptionHtml: z.ZodOptional<z.ZodString>;
@@ -101,10 +94,7 @@ declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
101
94
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
102
95
  SHOPIFY_STORE_DOMAIN: z.ZodString;
103
96
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
104
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
105
- SHOPIFY_STORE_DOMAIN: z.ZodString;
106
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
107
- }, z.core.$strip>>[] | undefined>], undefined>;
97
+ }, z.core.$strip>>], undefined>;
108
98
  declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
109
99
  title: z.ZodOptional<z.ZodString>;
110
100
  handle: z.ZodOptional<z.ZodString>;
@@ -136,10 +126,7 @@ declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
136
126
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
137
127
  SHOPIFY_STORE_DOMAIN: z.ZodString;
138
128
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
139
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
140
- SHOPIFY_STORE_DOMAIN: z.ZodString;
141
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
142
- }, z.core.$strip>>[] | undefined>], undefined>;
129
+ }, z.core.$strip>>], undefined>;
143
130
  declare const deleteProduct: _keystrokehq_core0.Operation<z.ZodObject<{
144
131
  id: z.ZodString;
145
132
  }, z.core.$strip>, z.ZodObject<{
@@ -147,9 +134,6 @@ declare const deleteProduct: _keystrokehq_core0.Operation<z.ZodObject<{
147
134
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
148
135
  SHOPIFY_STORE_DOMAIN: z.ZodString;
149
136
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
150
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
151
- SHOPIFY_STORE_DOMAIN: z.ZodString;
152
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
153
- }, z.core.$strip>>[] | undefined>], undefined>;
137
+ }, z.core.$strip>>], undefined>;
154
138
  //#endregion
155
139
  export { createProduct, deleteProduct, getProduct, listProducts, updateProduct };
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-DwZJl9JC.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
 
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-B5LK_0eR.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/schemas.ts
package/dist/shop.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/shop.d.ts
6
5
  declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
@@ -12,9 +11,6 @@ declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$stri
12
11
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
13
12
  SHOPIFY_STORE_DOMAIN: z.ZodString;
14
13
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
15
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
16
- SHOPIFY_STORE_DOMAIN: z.ZodString;
17
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
18
- }, z.core.$strip>>[] | undefined>], undefined>;
14
+ }, z.core.$strip>>], undefined>;
19
15
  //#endregion
20
16
  export { getShop };
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-DwZJl9JC.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/shop.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/shopify",
3
- "version": "0.0.10",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -84,20 +84,19 @@
84
84
  "LICENSE"
85
85
  ],
86
86
  "dependencies": {
87
- "@keystrokehq/credential-connection": "^1.0.0",
88
- "@keystrokehq/integration-authoring": "^0.0.8",
87
+ "@keystrokehq/integration-authoring": "^0.0.9",
89
88
  "@shopify/admin-api-client": "^1.1.2",
90
89
  "zod": "^4.3.6"
91
90
  },
92
91
  "peerDependencies": {
93
- "@keystrokehq/core": ">=0.0.8 <0.1.0"
92
+ "@keystrokehq/core": ">=0.0.13 <0.1.0"
94
93
  },
95
94
  "devDependencies": {
96
95
  "@types/node": "^22.19.11",
97
96
  "tsdown": "^0.20.3",
98
97
  "typescript": "^5.9.3",
99
98
  "vitest": "^4.0.18",
100
- "@keystrokehq/core": "^0.0.8",
99
+ "@keystrokehq/core": "^0.0.13",
101
100
  "@keystrokehq/test-utils": "0.0.0",
102
101
  "@keystrokehq/typescript-config": "0.0.0"
103
102
  },
@@ -1,204 +0,0 @@
1
- import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
- import { CredentialSet } from "@keystrokehq/core";
4
- import { createHmac, timingSafeEqual } from "node:crypto";
5
- import { TokenExchangeError, normalizeOAuthTokens, parseOAuthTokenResponse } from "@keystrokehq/credential-connection";
6
-
7
- //#region src/_official/provider-app.ts
8
- const shopifyAppCredentialSet = new CredentialSet({
9
- id: officialCredentialSetId("shopify-app"),
10
- exposure: "platform-only",
11
- name: "Shopify App",
12
- auth: z.object({
13
- clientId: z.string(),
14
- clientSecret: z.string(),
15
- webhookSecret: z.string()
16
- })
17
- });
18
- const shopifyOfficialProviderSeed = {
19
- provider: "shopify",
20
- appRef: "shopify-platform",
21
- displayName: "Shopify Platform",
22
- credentialSetName: "Keystroke Shopify Platform App",
23
- envShape: {
24
- KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID: z.string().optional(),
25
- KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID: z.string().optional(),
26
- KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET: z.string().optional(),
27
- KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET: z.string().optional()
28
- },
29
- requiredEnvKeys: [
30
- "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
31
- "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID",
32
- "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET",
33
- "KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET"
34
- ],
35
- externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
36
- buildCredentials: (env) => ({
37
- clientId: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID,
38
- clientSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET,
39
- webhookSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET
40
- })
41
- };
42
-
43
- //#endregion
44
- //#region src/oauth-connection.ts
45
- /**
46
- * Shopify OAuth connection configuration.
47
- *
48
- * Shopify's OAuth flow is per-shop: every handshake is scoped to a specific
49
- * `{shop}.myshopify.com` domain that the user supplies up front. That shop
50
- * domain shows up in three places that make Shopify different from a plain
51
- * OAuth 2.0 integration:
52
- *
53
- * - `buildAuthUrl` must point at the shop-specific authorize endpoint at
54
- * `https://{shop}.myshopify.com/admin/oauth/authorize`. The shop domain is
55
- * threaded in from the initiate-connection request via `initiateInput`.
56
- * - `exchangeCode` verifies the Shopify HMAC signature on the callback query
57
- * string before trusting any of it, and POSTs to the same shop-specific
58
- * token endpoint. HMAC verification uses `timingSafeEqual` to avoid leaking
59
- * bytes through timing side channels.
60
- * - `refreshToken` reads the shop domain out of `oauthClient.metadata` (set
61
- * during the initial exchange) so proactive refreshes still target the
62
- * right store, and the `vault` mapping promotes the shop domain into
63
- * `SHOPIFY_STORE_DOMAIN` so the vault has both the access token and the
64
- * store it belongs to.
65
- *
66
- * Shopify responds with JSON, so we reuse `parseOAuthTokenResponse` +
67
- * `normalizeOAuthTokens` from `@keystrokehq/credential-connection` to avoid reimplementing
68
- * the token-response plumbing.
69
- */
70
- function normalizeShopifyShopDomain(raw) {
71
- const trimmed = raw?.trim().toLowerCase();
72
- if (!trimmed) throw new Error("Shopify requires a store domain.");
73
- const normalized = trimmed.endsWith(".myshopify.com") ? trimmed : `${trimmed}.myshopify.com`;
74
- if (!/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/i.test(normalized)) throw new Error("Invalid Shopify store domain.");
75
- return normalized;
76
- }
77
- function verifyShopifyCallbackHmac(queryParams, clientSecret) {
78
- const receivedHmac = queryParams.hmac;
79
- if (!receivedHmac) return false;
80
- const canonical = Object.entries(queryParams).filter(([key]) => key !== "hmac" && key !== "signature").sort(([left], [right]) => left.localeCompare(right)).map(([key, value]) => `${key}=${value}`).join("&");
81
- const expected = createHmac("sha256", clientSecret).update(canonical).digest("hex");
82
- const received = Buffer.from(receivedHmac, "utf8");
83
- const expectedBuffer = Buffer.from(expected, "utf8");
84
- if (received.length !== expectedBuffer.length) return false;
85
- return timingSafeEqual(received, expectedBuffer);
86
- }
87
- function resolveShopifyTokenUrl(shopDomain) {
88
- return `https://${shopDomain}/admin/oauth/access_token`;
89
- }
90
- async function shopifyTokenPost(shopDomain, body, missingTokenError) {
91
- const response = await fetch(resolveShopifyTokenUrl(shopDomain), {
92
- method: "POST",
93
- headers: {
94
- Accept: "application/json",
95
- "Content-Type": "application/json"
96
- },
97
- body: JSON.stringify(body)
98
- });
99
- if (!response.ok) throw new TokenExchangeError(response.status);
100
- const raw = await parseOAuthTokenResponse(response);
101
- raw._shopifyShopDomain = shopDomain;
102
- const { accessToken, refreshToken, expiresIn } = normalizeOAuthTokens(raw);
103
- if (!accessToken) throw new Error(missingTokenError);
104
- return {
105
- accessToken,
106
- refreshToken,
107
- expiresIn,
108
- raw
109
- };
110
- }
111
- const shopifyOAuthConnection = {
112
- kind: "oauth",
113
- tokenType: "refreshable",
114
- authUrl: "https://{shop}.myshopify.com/admin/oauth/authorize",
115
- tokenUrl: "https://{shop}.myshopify.com/admin/oauth/access_token",
116
- revokeUrl: null,
117
- scopes: [
118
- "read_products",
119
- "write_products",
120
- "read_orders",
121
- "write_orders",
122
- "read_customers",
123
- "write_customers",
124
- "read_inventory",
125
- "write_inventory",
126
- "read_locations",
127
- "read_fulfillments",
128
- "write_fulfillments",
129
- "read_content",
130
- "write_content",
131
- "read_webhooks",
132
- "write_webhooks"
133
- ],
134
- vault: {
135
- accessToken: "SHOPIFY_ACCESS_TOKEN",
136
- raw: { SHOPIFY_STORE_DOMAIN: "_shopifyShopDomain" }
137
- },
138
- buildAuthUrl({ oauthClient, redirectUri, state, connection, initiateInput, requestedScopes }) {
139
- const rawShopDomain = initiateInput?.shopDomain;
140
- if (typeof rawShopDomain !== "string") throw new Error("Shopify requires a store domain.");
141
- const scopes = requestedScopes ?? connection.scopes;
142
- const shopDomain = normalizeShopifyShopDomain(rawShopDomain);
143
- const url = new URL(`https://${shopDomain}/admin/oauth/authorize`);
144
- url.searchParams.set("client_id", oauthClient.clientId);
145
- url.searchParams.set("scope", scopes.join(","));
146
- url.searchParams.set("redirect_uri", redirectUri);
147
- url.searchParams.set("state", state);
148
- return url.toString();
149
- },
150
- async exchangeCode({ oauthClient, code, queryParams }) {
151
- if (!code) throw new Error("Missing authorization code");
152
- const shopDomain = normalizeShopifyShopDomain(queryParams.shop);
153
- if (!verifyShopifyCallbackHmac(queryParams, oauthClient.clientSecret)) throw new Error("Invalid Shopify OAuth callback signature");
154
- return shopifyTokenPost(shopDomain, {
155
- client_id: oauthClient.clientId,
156
- client_secret: oauthClient.clientSecret,
157
- code
158
- }, "No access token in Shopify response");
159
- },
160
- async refreshToken({ oauthClient, refreshToken }) {
161
- const rawShopDomain = oauthClient.metadata?.shopDomain;
162
- if (typeof rawShopDomain !== "string") throw new Error("Missing Shopify store domain for token refresh.");
163
- return shopifyTokenPost(normalizeShopifyShopDomain(rawShopDomain), {
164
- grant_type: "refresh_token",
165
- refresh_token: refreshToken,
166
- client_id: oauthClient.clientId,
167
- client_secret: oauthClient.clientSecret
168
- }, "No access token in Shopify refresh response");
169
- },
170
- extractInstallationInfo({ tokenResult }) {
171
- const shopDomain = typeof tokenResult.raw._shopifyShopDomain === "string" ? tokenResult.raw._shopifyShopDomain : void 0;
172
- return {
173
- externalInstallationId: shopDomain,
174
- externalWorkspaceId: shopDomain,
175
- metadata: shopDomain ? { shopDomain } : void 0
176
- };
177
- }
178
- };
179
-
180
- //#endregion
181
- //#region src/integration.ts
182
- const shopifyStoreDomainSchema = z.string().min(1).regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/i, "Shopify store domain must look like \"example.myshopify.com\".");
183
- const shopifyAuthSchema = z.object({
184
- SHOPIFY_STORE_DOMAIN: shopifyStoreDomainSchema,
185
- SHOPIFY_ACCESS_TOKEN: z.string().min(1)
186
- });
187
- const shopifyOfficialIntegration = {
188
- id: "shopify",
189
- name: "Shopify",
190
- description: "Shopify Admin API — stores, products, orders, customers, and webhooks",
191
- auth: shopifyAuthSchema,
192
- connections: [{
193
- id: "oauth",
194
- ...shopifyOAuthConnection
195
- }]
196
- };
197
- const shopifyBundle = defineOfficialIntegration({
198
- ...shopifyOfficialIntegration,
199
- internal: { providerApp: shopifyAppCredentialSet }
200
- });
201
- const shopify = shopifyBundle.credentialSet;
202
-
203
- //#endregion
204
- export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
@@ -1,71 +0,0 @@
1
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core0 from "@keystrokehq/core";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
-
7
- //#region src/integration.d.ts
8
- declare const shopifyOfficialIntegration: {
9
- id: "shopify";
10
- name: string;
11
- description: string;
12
- auth: z.ZodObject<{
13
- SHOPIFY_STORE_DOMAIN: z.ZodString;
14
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
15
- }, z.core.$strip>;
16
- connections: {
17
- kind: "oauth";
18
- tokenType: "refreshable";
19
- authUrl: "https://{shop}.myshopify.com/admin/oauth/authorize";
20
- tokenUrl: "https://{shop}.myshopify.com/admin/oauth/access_token";
21
- revokeUrl: null;
22
- scopes: readonly ["read_products", "write_products", "read_orders", "write_orders", "read_customers", "write_customers", "read_inventory", "write_inventory", "read_locations", "read_fulfillments", "write_fulfillments", "read_content", "write_content", "read_webhooks", "write_webhooks"];
23
- vault: {
24
- readonly accessToken: "SHOPIFY_ACCESS_TOKEN";
25
- readonly raw: {
26
- readonly SHOPIFY_STORE_DOMAIN: "_shopifyShopDomain";
27
- };
28
- };
29
- buildAuthUrl: ({
30
- oauthClient,
31
- redirectUri,
32
- state,
33
- connection,
34
- initiateInput,
35
- requestedScopes
36
- }: _keystrokehq_core_credential_set0.BuildAuthUrlContext) => string;
37
- exchangeCode: ({
38
- oauthClient,
39
- code,
40
- queryParams
41
- }: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
42
- refreshToken: ({
43
- oauthClient,
44
- refreshToken
45
- }: _keystrokehq_core_credential_set0.RefreshTokenContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
46
- extractInstallationInfo: ({
47
- tokenResult
48
- }: _keystrokehq_core_credential_set0.ExtractInstallationContext) => {
49
- externalInstallationId: string | undefined;
50
- externalWorkspaceId: string | undefined;
51
- metadata: {
52
- shopDomain: string;
53
- } | undefined;
54
- };
55
- id: string;
56
- }[];
57
- };
58
- declare const shopifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"shopify", z.ZodObject<{
59
- SHOPIFY_STORE_DOMAIN: z.ZodString;
60
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
61
- }, z.core.$strip>>;
62
- declare const shopify: _keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
63
- SHOPIFY_STORE_DOMAIN: z.ZodString;
64
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
65
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
66
- SHOPIFY_STORE_DOMAIN: z.ZodString;
67
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
68
- }, z.core.$strip>>[] | undefined>;
69
- type ShopifyCredentials = InferCredentialSetAuth<typeof shopify>;
70
- //#endregion
71
- export { shopifyOfficialIntegration as i, shopify as n, shopifyBundle as r, ShopifyCredentials as t };