@keystrokehq/zendesk 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/_runtime/index.d.mts +59 -59
- package/dist/_runtime/index.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/custom/connection.d.mts +1 -1
- package/dist/custom/connection.mjs +1 -1
- package/dist/custom/jobs.d.mts +1 -1
- package/dist/custom/jobs.mjs +1 -1
- package/dist/custom/organizations.d.mts +1 -1
- package/dist/custom/organizations.mjs +1 -1
- package/dist/custom/search.d.mts +1 -1
- package/dist/custom/search.mjs +1 -1
- package/dist/custom/tickets.d.mts +1 -1
- package/dist/custom/tickets.mjs +1 -1
- package/dist/custom/triggers.d.mts +1 -1
- package/dist/custom/triggers.mjs +1 -1
- package/dist/custom/users.d.mts +1 -1
- package/dist/custom/users.mjs +1 -1
- package/dist/custom.d.mts +1 -1
- package/dist/custom.mjs +1 -1
- package/dist/{factory-BkTVtxO3.mjs → factory-ou1q975N.mjs} +1 -2
- package/dist/{integration-CtcJn--7.d.mts → integration-CdHa-pMh.d.mts} +7 -9
- package/dist/integration-DwdrlwuX.mjs +174 -0
- package/dist/{jobs-Bnu-juJI.mjs → jobs-C_g4owe2.mjs} +3 -3
- package/dist/{jobs-b1iHVfk8.d.mts → jobs-Dl9hHlgC.d.mts} +3 -3
- package/dist/{organizations-BhzeGbyt.d.mts → organizations-DdUvE-1B.d.mts} +17 -17
- package/dist/{organizations-CkUOhxeR.mjs → organizations-sN29x0eG.mjs} +17 -17
- package/dist/platform/connection.d.mts +1 -1
- package/dist/platform/connection.mjs +1 -1
- package/dist/platform/jobs.d.mts +1 -1
- package/dist/platform/jobs.mjs +1 -1
- package/dist/platform/organizations.d.mts +1 -1
- package/dist/platform/organizations.mjs +1 -1
- package/dist/platform/search.d.mts +1 -1
- package/dist/platform/search.mjs +1 -1
- package/dist/platform/tickets.d.mts +1 -1
- package/dist/platform/tickets.mjs +1 -1
- package/dist/platform/triggers.d.mts +1 -1
- package/dist/platform/triggers.mjs +1 -1
- package/dist/platform/users.d.mts +1 -1
- package/dist/platform/users.mjs +1 -1
- package/dist/platform.d.mts +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{search-BhDCvZbH.d.mts → search-68vtAp_t.d.mts} +5 -5
- package/dist/{search-SvN-I0KL.mjs → search-D41iedQX.mjs} +3 -3
- package/dist/{tickets-wDcstuX-.mjs → tickets-DJQf0-Dk.mjs} +19 -19
- package/dist/{tickets-PVnTF9mU.d.mts → tickets-a8IOtaZF.d.mts} +19 -19
- package/dist/{triggers-cLdYl78y.d.mts → triggers-YRytUtLd.d.mts} +3 -4
- package/dist/{triggers-B-QDHWMY.mjs → triggers-oJe3l-Nj.mjs} +52 -2
- package/dist/{users-CKVH1BDt.mjs → users-7GgP08U7.mjs} +19 -19
- package/dist/{users-wFde5fME.d.mts → users-BbnHg3UX.d.mts} +19 -19
- package/package.json +3 -3
- package/dist/integration-Dl2aSMKz.mjs +0 -83
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zendeskBulkJobResponseSchema, zendeskUserEnvelopeSchema, zendeskUserListResponseSchema, zendeskUserSchema } from "./schemas.mjs";
|
|
2
|
-
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-
|
|
2
|
+
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-ou1q975N.mjs";
|
|
3
3
|
import { n as createPlatformZendeskClient, t as createCustomZendeskClient } from "./shared-BmxcJmfq.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -47,7 +47,7 @@ function mapUserInput(input) {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
const platformListUsers = zendeskPlatformOperation({
|
|
50
|
-
id: "
|
|
50
|
+
id: "zendesk-platform.list-users",
|
|
51
51
|
name: "List Zendesk Users",
|
|
52
52
|
description: "List users from Zendesk Support",
|
|
53
53
|
input: listUsersInputSchema,
|
|
@@ -65,7 +65,7 @@ const platformListUsers = zendeskPlatformOperation({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
const customListUsers = zendeskCustomOperation({
|
|
68
|
-
id: "
|
|
68
|
+
id: "zendesk-platform.list-users",
|
|
69
69
|
name: "List Zendesk Users",
|
|
70
70
|
description: "List users from Zendesk Support",
|
|
71
71
|
input: listUsersInputSchema,
|
|
@@ -83,7 +83,7 @@ const customListUsers = zendeskCustomOperation({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
const platformGetUser = zendeskPlatformOperation({
|
|
86
|
-
id: "
|
|
86
|
+
id: "zendesk-platform.get-user",
|
|
87
87
|
name: "Get Zendesk User",
|
|
88
88
|
description: "Get a single Zendesk user by ID",
|
|
89
89
|
input: getUserInputSchema,
|
|
@@ -96,7 +96,7 @@ const platformGetUser = zendeskPlatformOperation({
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
const customGetUser = zendeskCustomOperation({
|
|
99
|
-
id: "
|
|
99
|
+
id: "zendesk-platform.get-user",
|
|
100
100
|
name: "Get Zendesk User",
|
|
101
101
|
description: "Get a single Zendesk user by ID",
|
|
102
102
|
input: getUserInputSchema,
|
|
@@ -109,7 +109,7 @@ const customGetUser = zendeskCustomOperation({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
const platformGetCurrentUser = zendeskPlatformOperation({
|
|
112
|
-
id: "
|
|
112
|
+
id: "zendesk-platform.get-current-user",
|
|
113
113
|
name: "Get Current Zendesk User",
|
|
114
114
|
description: "Get the currently authenticated Zendesk user",
|
|
115
115
|
input: z.object({}),
|
|
@@ -122,7 +122,7 @@ const platformGetCurrentUser = zendeskPlatformOperation({
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
const customGetCurrentUser = zendeskCustomOperation({
|
|
125
|
-
id: "
|
|
125
|
+
id: "zendesk-platform.get-current-user",
|
|
126
126
|
name: "Get Current Zendesk User",
|
|
127
127
|
description: "Get the currently authenticated Zendesk user",
|
|
128
128
|
input: z.object({}),
|
|
@@ -135,7 +135,7 @@ const customGetCurrentUser = zendeskCustomOperation({
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
const platformSearchUsers = zendeskPlatformOperation({
|
|
138
|
-
id: "
|
|
138
|
+
id: "zendesk-platform.search-users",
|
|
139
139
|
name: "Search Zendesk Users",
|
|
140
140
|
description: "Search Zendesk users with a free-text query",
|
|
141
141
|
input: searchUsersInputSchema,
|
|
@@ -149,7 +149,7 @@ const platformSearchUsers = zendeskPlatformOperation({
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
const customSearchUsers = zendeskCustomOperation({
|
|
152
|
-
id: "
|
|
152
|
+
id: "zendesk-platform.search-users",
|
|
153
153
|
name: "Search Zendesk Users",
|
|
154
154
|
description: "Search Zendesk users with a free-text query",
|
|
155
155
|
input: searchUsersInputSchema,
|
|
@@ -163,7 +163,7 @@ const customSearchUsers = zendeskCustomOperation({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
const platformCreateUser = zendeskPlatformOperation({
|
|
166
|
-
id: "
|
|
166
|
+
id: "zendesk-platform.create-user",
|
|
167
167
|
name: "Create Zendesk User",
|
|
168
168
|
description: "Create a new Zendesk user",
|
|
169
169
|
input: userCreateInputSchema,
|
|
@@ -178,7 +178,7 @@ const platformCreateUser = zendeskPlatformOperation({
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
const customCreateUser = zendeskCustomOperation({
|
|
181
|
-
id: "
|
|
181
|
+
id: "zendesk-platform.create-user",
|
|
182
182
|
name: "Create Zendesk User",
|
|
183
183
|
description: "Create a new Zendesk user",
|
|
184
184
|
input: userCreateInputSchema,
|
|
@@ -193,7 +193,7 @@ const customCreateUser = zendeskCustomOperation({
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
const platformUpdateUser = zendeskPlatformOperation({
|
|
196
|
-
id: "
|
|
196
|
+
id: "zendesk-platform.update-user",
|
|
197
197
|
name: "Update Zendesk User",
|
|
198
198
|
description: "Update an existing Zendesk user",
|
|
199
199
|
input: userUpdateInputSchema,
|
|
@@ -208,7 +208,7 @@ const platformUpdateUser = zendeskPlatformOperation({
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
const customUpdateUser = zendeskCustomOperation({
|
|
211
|
-
id: "
|
|
211
|
+
id: "zendesk-platform.update-user",
|
|
212
212
|
name: "Update Zendesk User",
|
|
213
213
|
description: "Update an existing Zendesk user",
|
|
214
214
|
input: userUpdateInputSchema,
|
|
@@ -223,7 +223,7 @@ const customUpdateUser = zendeskCustomOperation({
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
const platformDeleteUser = zendeskPlatformOperation({
|
|
226
|
-
id: "
|
|
226
|
+
id: "zendesk-platform.delete-user",
|
|
227
227
|
name: "Delete Zendesk User",
|
|
228
228
|
description: "Delete a Zendesk user",
|
|
229
229
|
input: deleteUserInputSchema,
|
|
@@ -238,7 +238,7 @@ const platformDeleteUser = zendeskPlatformOperation({
|
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const customDeleteUser = zendeskCustomOperation({
|
|
241
|
-
id: "
|
|
241
|
+
id: "zendesk-platform.delete-user",
|
|
242
242
|
name: "Delete Zendesk User",
|
|
243
243
|
description: "Delete a Zendesk user",
|
|
244
244
|
input: deleteUserInputSchema,
|
|
@@ -253,7 +253,7 @@ const customDeleteUser = zendeskCustomOperation({
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
const platformCreateManyUsers = zendeskPlatformOperation({
|
|
256
|
-
id: "
|
|
256
|
+
id: "zendesk-platform.create-many-users",
|
|
257
257
|
name: "Create Many Zendesk Users",
|
|
258
258
|
description: "Create multiple Zendesk users asynchronously",
|
|
259
259
|
input: createManyUsersInputSchema,
|
|
@@ -268,7 +268,7 @@ const platformCreateManyUsers = zendeskPlatformOperation({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const customCreateManyUsers = zendeskCustomOperation({
|
|
271
|
-
id: "
|
|
271
|
+
id: "zendesk-platform.create-many-users",
|
|
272
272
|
name: "Create Many Zendesk Users",
|
|
273
273
|
description: "Create multiple Zendesk users asynchronously",
|
|
274
274
|
input: createManyUsersInputSchema,
|
|
@@ -283,7 +283,7 @@ const customCreateManyUsers = zendeskCustomOperation({
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
const platformUpdateManyUsers = zendeskPlatformOperation({
|
|
286
|
-
id: "
|
|
286
|
+
id: "zendesk-platform.update-many-users",
|
|
287
287
|
name: "Update Many Zendesk Users",
|
|
288
288
|
description: "Update multiple Zendesk users asynchronously",
|
|
289
289
|
input: updateManyUsersInputSchema,
|
|
@@ -301,7 +301,7 @@ const platformUpdateManyUsers = zendeskPlatformOperation({
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
const customUpdateManyUsers = zendeskCustomOperation({
|
|
304
|
-
id: "
|
|
304
|
+
id: "zendesk-platform.update-many-users",
|
|
305
305
|
name: "Update Many Zendesk Users",
|
|
306
306
|
description: "Update multiple Zendesk users asynchronously",
|
|
307
307
|
input: updateManyUsersInputSchema,
|
|
@@ -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/users.d.ts
|
|
@@ -21,7 +21,7 @@ declare const platformListUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
21
21
|
created_at: z.ZodOptional<z.ZodString>;
|
|
22
22
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
24
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
25
25
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
26
26
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
27
27
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -46,7 +46,7 @@ declare const customListUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
46
46
|
created_at: z.ZodOptional<z.ZodString>;
|
|
47
47
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
49
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
50
50
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
51
51
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
52
52
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -66,7 +66,7 @@ declare const platformGetUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
66
66
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
67
67
|
created_at: z.ZodOptional<z.ZodString>;
|
|
68
68
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
69
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
70
70
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
71
71
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
72
72
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -84,7 +84,7 @@ declare const customGetUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
84
84
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
85
85
|
created_at: z.ZodOptional<z.ZodString>;
|
|
86
86
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
87
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
88
88
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
89
89
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
90
90
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -102,7 +102,7 @@ declare const platformGetCurrentUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
102
102
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
103
103
|
created_at: z.ZodOptional<z.ZodString>;
|
|
104
104
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
105
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
106
106
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
107
107
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
108
108
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -118,7 +118,7 @@ declare const customGetCurrentUser: _keystrokehq_core0.Operation<z.ZodObject<{},
|
|
|
118
118
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
119
119
|
created_at: z.ZodOptional<z.ZodString>;
|
|
120
120
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
121
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
121
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
122
122
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
123
123
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
124
124
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -143,7 +143,7 @@ declare const platformSearchUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
143
143
|
created_at: z.ZodOptional<z.ZodString>;
|
|
144
144
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
145
145
|
}, z.core.$strip>>;
|
|
146
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
146
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
147
147
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
148
148
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
149
149
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -166,7 +166,7 @@ declare const customSearchUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
166
166
|
created_at: z.ZodOptional<z.ZodString>;
|
|
167
167
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
168
168
|
}, z.core.$strip>>;
|
|
169
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
169
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
170
170
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
171
171
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
172
172
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -192,7 +192,7 @@ declare const platformCreateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
192
192
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
193
193
|
created_at: z.ZodOptional<z.ZodString>;
|
|
194
194
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
195
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
195
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
196
196
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
197
197
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
198
198
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -216,7 +216,7 @@ declare const customCreateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
216
216
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
217
217
|
created_at: z.ZodOptional<z.ZodString>;
|
|
218
218
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
219
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
220
220
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
221
221
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
222
222
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -244,7 +244,7 @@ declare const platformUpdateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
244
244
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
245
245
|
created_at: z.ZodOptional<z.ZodString>;
|
|
246
246
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
247
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
247
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
248
248
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
249
249
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
250
250
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -270,7 +270,7 @@ declare const customUpdateUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
270
270
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
271
271
|
created_at: z.ZodOptional<z.ZodString>;
|
|
272
272
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
273
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
273
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
274
274
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
275
275
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
276
276
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -283,7 +283,7 @@ declare const platformDeleteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
283
283
|
id: z.ZodNumber;
|
|
284
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
285
|
success: z.ZodBoolean;
|
|
286
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
286
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
287
287
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
288
288
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
289
289
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -294,7 +294,7 @@ declare const customDeleteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
294
294
|
id: z.ZodNumber;
|
|
295
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
296
296
|
success: z.ZodBoolean;
|
|
297
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
297
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
298
298
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
299
299
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
300
300
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -323,7 +323,7 @@ declare const platformCreateManyUsers: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
323
323
|
url: z.ZodOptional<z.ZodString>;
|
|
324
324
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
325
325
|
}, z.core.$strip>;
|
|
326
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
326
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
327
327
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
328
328
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
329
329
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -350,7 +350,7 @@ declare const customCreateManyUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
350
350
|
url: z.ZodOptional<z.ZodString>;
|
|
351
351
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
352
352
|
}, z.core.$strip>;
|
|
353
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
353
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
354
354
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
355
355
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
356
356
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -381,7 +381,7 @@ declare const platformUpdateManyUsers: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
381
381
|
url: z.ZodOptional<z.ZodString>;
|
|
382
382
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
383
383
|
}, z.core.$strip>;
|
|
384
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
384
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
385
385
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
386
386
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
387
387
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -410,7 +410,7 @@ declare const customUpdateManyUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
410
410
|
url: z.ZodOptional<z.ZodString>;
|
|
411
411
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
412
412
|
}, z.core.$strip>;
|
|
413
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
413
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
414
414
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
415
415
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
416
416
|
ZENDESK_API_TOKEN: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/zendesk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
"LICENSE"
|
|
133
133
|
],
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@keystrokehq/integration-authoring": "^0.0.7",
|
|
136
135
|
"zod": "^4.3.6"
|
|
137
136
|
},
|
|
138
137
|
"peerDependencies": {
|
|
@@ -143,7 +142,8 @@
|
|
|
143
142
|
"tsdown": "^0.20.3",
|
|
144
143
|
"typescript": "^5.9.3",
|
|
145
144
|
"vitest": "^4.0.18",
|
|
146
|
-
"@keystrokehq/core": "^0.0.
|
|
145
|
+
"@keystrokehq/core": "^0.0.12",
|
|
146
|
+
"@keystrokehq/integration-authoring": "0.0.9",
|
|
147
147
|
"@keystrokehq/test-utils": "0.0.0",
|
|
148
148
|
"@keystrokehq/typescript-config": "0.0.0"
|
|
149
149
|
},
|
|
@@ -1,83 +0,0 @@
|
|
|
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 zendeskPlatformAppCredentialSet = new CredentialSet({
|
|
7
|
-
id: officialCredentialSetId("zendesk-platform-app"),
|
|
8
|
-
exposure: "platform-only",
|
|
9
|
-
name: "Zendesk Platform App",
|
|
10
|
-
auth: z.object({
|
|
11
|
-
clientId: z.string().min(1),
|
|
12
|
-
clientSecret: z.string().min(1),
|
|
13
|
-
webhookSigningSecret: z.string().min(1)
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
const zendeskOfficialProviderSeed = {
|
|
17
|
-
provider: "zendesk",
|
|
18
|
-
appRef: "zendesk-platform",
|
|
19
|
-
displayName: "Zendesk Platform",
|
|
20
|
-
credentialSetName: "Keystroke Zendesk Platform App",
|
|
21
|
-
envShape: {
|
|
22
|
-
KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID: z.string().optional(),
|
|
23
|
-
KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET: z.string().optional(),
|
|
24
|
-
KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET: z.string().optional()
|
|
25
|
-
},
|
|
26
|
-
requiredEnvKeys: [
|
|
27
|
-
"KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID",
|
|
28
|
-
"KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET",
|
|
29
|
-
"KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET"
|
|
30
|
-
],
|
|
31
|
-
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID",
|
|
32
|
-
buildCredentials: (env) => ({
|
|
33
|
-
clientId: env.KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID,
|
|
34
|
-
clientSecret: env.KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET,
|
|
35
|
-
webhookSigningSecret: env.KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET
|
|
36
|
-
})
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/integration.ts
|
|
41
|
-
const zendeskSubdomainSchema = z.string().trim().min(1).regex(/^[a-zA-Z0-9-]+$/, { error: "Zendesk subdomain must contain only letters, numbers, and hyphens" });
|
|
42
|
-
const zendeskPlatformAuthSchema = z.object({
|
|
43
|
-
ZENDESK_ACCESS_TOKEN: z.string().min(1),
|
|
44
|
-
ZENDESK_SUBDOMAIN: zendeskSubdomainSchema
|
|
45
|
-
});
|
|
46
|
-
const zendeskCustomAuthSchema = z.object({
|
|
47
|
-
ZENDESK_SUBDOMAIN: zendeskSubdomainSchema,
|
|
48
|
-
ZENDESK_EMAIL: z.email(),
|
|
49
|
-
ZENDESK_API_TOKEN: z.string().min(1)
|
|
50
|
-
});
|
|
51
|
-
const zendeskPlatformOfficialIntegration = {
|
|
52
|
-
id: "zendesk-platform",
|
|
53
|
-
publicId: "zendesk",
|
|
54
|
-
name: "Zendesk Platform",
|
|
55
|
-
description: "Zendesk Support integration via Keystroke-managed OAuth for tickets, users, organizations, search, and triggers",
|
|
56
|
-
auth: zendeskPlatformAuthSchema,
|
|
57
|
-
connections: [{
|
|
58
|
-
id: "oauth",
|
|
59
|
-
kind: "oauth",
|
|
60
|
-
tokenType: "refreshable",
|
|
61
|
-
authUrl: "https://{subdomain}.zendesk.com/oauth/authorizations/new",
|
|
62
|
-
tokenUrl: "https://{subdomain}.zendesk.com/oauth/tokens",
|
|
63
|
-
revokeUrl: "https://{subdomain}.zendesk.com/api/v2/oauth/tokens/current",
|
|
64
|
-
scopes: ["read", "write"],
|
|
65
|
-
vault: { accessToken: "ZENDESK_ACCESS_TOKEN" }
|
|
66
|
-
}]
|
|
67
|
-
};
|
|
68
|
-
const zendeskCustomOfficialIntegration = {
|
|
69
|
-
id: "zendesk-custom",
|
|
70
|
-
name: "Zendesk Custom",
|
|
71
|
-
description: "Zendesk Support integration via bring-your-own API token for tickets, users, organizations, and search",
|
|
72
|
-
auth: zendeskCustomAuthSchema
|
|
73
|
-
};
|
|
74
|
-
const zendeskPlatformBundle = defineOfficialIntegration({
|
|
75
|
-
...zendeskPlatformOfficialIntegration,
|
|
76
|
-
internal: { providerApp: zendeskPlatformAppCredentialSet }
|
|
77
|
-
});
|
|
78
|
-
const zendeskCustomBundle = defineOfficialIntegration(zendeskCustomOfficialIntegration);
|
|
79
|
-
const zendeskPlatform = zendeskPlatformBundle.credentialSet;
|
|
80
|
-
const zendeskCustom = zendeskCustomBundle.credentialSet;
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
export { zendeskPlatformBundle as a, zendeskPlatformAppCredentialSet as c, zendeskPlatform as i, zendeskCustomBundle as n, zendeskPlatformOfficialIntegration as o, zendeskCustomOfficialIntegration as r, zendeskOfficialProviderSeed as s, zendeskCustom as t };
|