@keystrokehq/zendesk 0.0.9 → 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.
Files changed (55) hide show
  1. package/dist/_official/index.d.mts +1 -1
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/_runtime/index.d.mts +117 -321
  4. package/dist/_runtime/index.mjs +1 -1
  5. package/dist/client.d.mts +1 -1
  6. package/dist/client.mjs +1 -1
  7. package/dist/custom/connection.d.mts +1 -1
  8. package/dist/custom/connection.mjs +1 -1
  9. package/dist/custom/jobs.d.mts +1 -1
  10. package/dist/custom/jobs.mjs +1 -1
  11. package/dist/custom/organizations.d.mts +1 -1
  12. package/dist/custom/organizations.mjs +1 -1
  13. package/dist/custom/search.d.mts +1 -1
  14. package/dist/custom/search.mjs +1 -1
  15. package/dist/custom/tickets.d.mts +1 -1
  16. package/dist/custom/tickets.mjs +1 -1
  17. package/dist/custom/triggers.d.mts +1 -1
  18. package/dist/custom/triggers.mjs +1 -1
  19. package/dist/custom/users.d.mts +1 -1
  20. package/dist/custom/users.mjs +1 -1
  21. package/dist/custom.d.mts +1 -1
  22. package/dist/custom.mjs +1 -1
  23. package/dist/{factory-ou1q975N.mjs → factory-CCCKLvYC.mjs} +2 -1
  24. package/dist/integration-C7oBvhtb.mjs +76 -0
  25. package/dist/{integration-CdHa-pMh.d.mts → integration-CQfg4GuM.d.mts} +14 -34
  26. package/dist/{jobs-C_g4owe2.mjs → jobs-DQIapMfm.mjs} +1 -1
  27. package/dist/{jobs-Dl9hHlgC.d.mts → jobs-UlSX6gEP.d.mts} +5 -13
  28. package/dist/{organizations-DdUvE-1B.d.mts → organizations-CKAQNEHJ.d.mts} +33 -90
  29. package/dist/{organizations-sN29x0eG.mjs → organizations-DY_2cjq3.mjs} +1 -1
  30. package/dist/platform/connection.d.mts +1 -1
  31. package/dist/platform/connection.mjs +1 -1
  32. package/dist/platform/jobs.d.mts +1 -1
  33. package/dist/platform/jobs.mjs +1 -1
  34. package/dist/platform/organizations.d.mts +1 -1
  35. package/dist/platform/organizations.mjs +1 -1
  36. package/dist/platform/search.d.mts +1 -1
  37. package/dist/platform/search.mjs +1 -1
  38. package/dist/platform/tickets.d.mts +1 -1
  39. package/dist/platform/tickets.mjs +1 -1
  40. package/dist/platform/triggers.d.mts +1 -1
  41. package/dist/platform/triggers.mjs +1 -1
  42. package/dist/platform/users.d.mts +1 -1
  43. package/dist/platform/users.mjs +1 -1
  44. package/dist/platform.d.mts +1 -1
  45. package/dist/platform.mjs +1 -1
  46. package/dist/{search-68vtAp_t.d.mts → search-Bo7Y9fWp.d.mts} +9 -24
  47. package/dist/{search-D41iedQX.mjs → search-ijatwi9u.mjs} +1 -1
  48. package/dist/{tickets-a8IOtaZF.d.mts → tickets-BTRJSv_J.d.mts} +37 -101
  49. package/dist/{tickets-DJQf0-Dk.mjs → tickets-CGvxqnN4.mjs} +1 -1
  50. package/dist/{triggers-YRytUtLd.d.mts → triggers-CwBF6DYN.d.mts} +4 -3
  51. package/dist/{triggers-oJe3l-Nj.mjs → triggers-DYQL-F5D.mjs} +2 -52
  52. package/dist/{users-BbnHg3UX.d.mts → users-BGysoDAw.d.mts} +37 -101
  53. package/dist/{users-7GgP08U7.mjs → users-BSWjHzET.mjs} +1 -1
  54. package/package.json +4 -4
  55. package/dist/integration-DwdrlwuX.mjs +0 -174
@@ -2,7 +2,7 @@ import { t as jobs_exports } from "../platform/jobs.mjs";
2
2
  import { t as organizations_exports } from "../platform/organizations.mjs";
3
3
  import { t as search_exports } from "../platform/search.mjs";
4
4
  import { t as tickets_exports } from "../platform/tickets.mjs";
5
- import { n as platformPolling, t as customPolling } from "../triggers-oJe3l-Nj.mjs";
5
+ import { n as platformPolling, t as customPolling } from "../triggers-DYQL-F5D.mjs";
6
6
  import { t as users_exports } from "../platform/users.mjs";
7
7
  import { t as jobs_exports$1 } from "../custom/jobs.mjs";
8
8
  import { t as organizations_exports$1 } from "../custom/organizations.mjs";
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as ZendeskPlatformCredentials, t as ZendeskCustomCredentials } from "./integration-CdHa-pMh.mjs";
1
+ import { n as ZendeskPlatformCredentials, t as ZendeskCustomCredentials } from "./integration-CQfg4GuM.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/client.d.ts
package/dist/client.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as ZendeskAsyncJobLimitError, r as ZendeskRateLimitError, t as ZendeskApiError } from "./errors-BPAyL8gM.mjs";
2
- import { i as zendeskPlatform, t as zendeskCustom } from "./integration-DwdrlwuX.mjs";
2
+ import { i as zendeskPlatform, t as zendeskCustom } from "./integration-C7oBvhtb.mjs";
3
3
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
4
4
 
5
5
  //#region src/client.ts
@@ -1,2 +1,2 @@
1
- import { a as zendeskCustomOfficialIntegration, i as zendeskCustomBundle, r as zendeskCustom, t as ZendeskCustomCredentials } from "../integration-CdHa-pMh.mjs";
1
+ import { a as zendeskCustomOfficialIntegration, i as zendeskCustomBundle, r as zendeskCustom, t as ZendeskCustomCredentials } from "../integration-CQfg4GuM.mjs";
2
2
  export { type ZendeskCustomCredentials, zendeskCustom, zendeskCustomBundle, zendeskCustomOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { n as zendeskCustomBundle, r as zendeskCustomOfficialIntegration, t as zendeskCustom } from "../integration-DwdrlwuX.mjs";
1
+ import { n as zendeskCustomBundle, r as zendeskCustomOfficialIntegration, t as zendeskCustom } from "../integration-C7oBvhtb.mjs";
2
2
 
3
3
  export { zendeskCustom, zendeskCustomBundle, zendeskCustomOfficialIntegration };
@@ -1,4 +1,4 @@
1
- import { t as customGetJobStatus } from "../jobs-Dl9hHlgC.mjs";
1
+ import { t as customGetJobStatus } from "../jobs-UlSX6gEP.mjs";
2
2
 
3
3
  //#region src/custom/jobs.d.ts
4
4
  declare namespace jobs_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
- import { t as customGetJobStatus } from "../jobs-C_g4owe2.mjs";
2
+ import { t as customGetJobStatus } from "../jobs-DQIapMfm.mjs";
3
3
 
4
4
  //#region src/custom/jobs.ts
5
5
  var jobs_exports = /* @__PURE__ */ __exportAll({ getJobStatus: () => customGetJobStatus });
@@ -1,4 +1,4 @@
1
- import { a as customDeleteOrganization, c as customUpdateOrganization, i as customCreateOrganization, n as customCountOrganizations, o as customGetOrganization, r as customCreateManyOrganizations, s as customListOrganizations, t as customAutocompleteOrganizations } from "../organizations-DdUvE-1B.mjs";
1
+ import { a as customDeleteOrganization, c as customUpdateOrganization, i as customCreateOrganization, n as customCountOrganizations, o as customGetOrganization, r as customCreateManyOrganizations, s as customListOrganizations, t as customAutocompleteOrganizations } from "../organizations-CKAQNEHJ.mjs";
2
2
 
3
3
  //#region src/custom/organizations.d.ts
4
4
  declare namespace organizations_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
- import { a as customDeleteOrganization, c as customUpdateOrganization, i as customCreateOrganization, n as customCountOrganizations, o as customGetOrganization, r as customCreateManyOrganizations, s as customListOrganizations, t as customAutocompleteOrganizations } from "../organizations-sN29x0eG.mjs";
2
+ import { a as customDeleteOrganization, c as customUpdateOrganization, i as customCreateOrganization, n as customCountOrganizations, o as customGetOrganization, r as customCreateManyOrganizations, s as customListOrganizations, t as customAutocompleteOrganizations } from "../organizations-DY_2cjq3.mjs";
3
3
 
4
4
  //#region src/custom/organizations.ts
5
5
  var organizations_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- import { n as customSearch, t as customCountSearchResults } from "../search-68vtAp_t.mjs";
1
+ import { n as customSearch, t as customCountSearchResults } from "../search-Bo7Y9fWp.mjs";
2
2
 
3
3
  //#region src/custom/search.d.ts
4
4
  declare namespace search_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
- import { n as customSearch, t as customCountSearchResults } from "../search-D41iedQX.mjs";
2
+ import { n as customSearch, t as customCountSearchResults } from "../search-ijatwi9u.mjs";
3
3
 
4
4
  //#region src/custom/search.ts
5
5
  var search_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- import { a as customListTickets, c as customUpdateManyTickets, i as customGetTicket, l as customUpdateTicket, n as customCreateTicket, o as customMergeTickets, r as customDeleteTicket, s as customReplyToTicket, t as customCreateManyTickets } from "../tickets-a8IOtaZF.mjs";
1
+ import { a as customListTickets, c as customUpdateManyTickets, i as customGetTicket, l as customUpdateTicket, n as customCreateTicket, o as customMergeTickets, r as customDeleteTicket, s as customReplyToTicket, t as customCreateManyTickets } from "../tickets-BTRJSv_J.mjs";
2
2
 
3
3
  //#region src/custom/tickets.d.ts
4
4
  declare namespace tickets_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
- import { a as customListTickets, c as customUpdateManyTickets, i as customGetTicket, l as customUpdateTicket, n as customCreateTicket, o as customMergeTickets, r as customDeleteTicket, s as customReplyToTicket, t as customCreateManyTickets } from "../tickets-DJQf0-Dk.mjs";
2
+ import { a as customListTickets, c as customUpdateManyTickets, i as customGetTicket, l as customUpdateTicket, n as customCreateTicket, o as customMergeTickets, r as customDeleteTicket, s as customReplyToTicket, t as customCreateManyTickets } from "../tickets-CGvxqnN4.mjs";
3
3
 
4
4
  //#region src/custom/tickets.ts
5
5
  var tickets_exports = /* @__PURE__ */ __exportAll({
@@ -1,2 +1,2 @@
1
- import { t as customPolling } from "../triggers-YRytUtLd.mjs";
1
+ import { t as customPolling } from "../triggers-CwBF6DYN.mjs";
2
2
  export { customPolling as polling };
@@ -1,3 +1,3 @@
1
- import { t as customPolling } from "../triggers-oJe3l-Nj.mjs";
1
+ import { t as customPolling } from "../triggers-DYQL-F5D.mjs";
2
2
 
3
3
  export { customPolling as polling };
@@ -1,4 +1,4 @@
1
- import { a as customGetUser, c as customUpdateManyUsers, i as customGetCurrentUser, l as customUpdateUser, n as customCreateUser, o as customListUsers, r as customDeleteUser, s as customSearchUsers, t as customCreateManyUsers } from "../users-BbnHg3UX.mjs";
1
+ import { a as customGetUser, c as customUpdateManyUsers, i as customGetCurrentUser, l as customUpdateUser, n as customCreateUser, o as customListUsers, r as customDeleteUser, s as customSearchUsers, t as customCreateManyUsers } from "../users-BGysoDAw.mjs";
2
2
 
3
3
  //#region src/custom/users.d.ts
4
4
  declare namespace users_d_exports {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
- import { a as customGetUser, c as customUpdateManyUsers, i as customGetCurrentUser, l as customUpdateUser, n as customCreateUser, o as customListUsers, r as customDeleteUser, s as customSearchUsers, t as customCreateManyUsers } from "../users-7GgP08U7.mjs";
2
+ import { a as customGetUser, c as customUpdateManyUsers, i as customGetCurrentUser, l as customUpdateUser, n as customCreateUser, o as customListUsers, r as customDeleteUser, s as customSearchUsers, t as customCreateManyUsers } from "../users-BSWjHzET.mjs";
3
3
 
4
4
  //#region src/custom/users.ts
5
5
  var users_exports = /* @__PURE__ */ __exportAll({
package/dist/custom.d.mts CHANGED
@@ -2,6 +2,6 @@ import { t as jobs_d_exports } from "./custom/jobs.mjs";
2
2
  import { t as organizations_d_exports } from "./custom/organizations.mjs";
3
3
  import { t as search_d_exports } from "./custom/search.mjs";
4
4
  import { t as tickets_d_exports } from "./custom/tickets.mjs";
5
- import { t as customPolling } from "./triggers-YRytUtLd.mjs";
5
+ import { t as customPolling } from "./triggers-CwBF6DYN.mjs";
6
6
  import { t as users_d_exports } from "./custom/users.mjs";
7
7
  export { jobs_d_exports as jobs, organizations_d_exports as organizations, customPolling as polling, search_d_exports as search, tickets_d_exports as tickets, users_d_exports as users };
package/dist/custom.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as customPolling } from "./triggers-oJe3l-Nj.mjs";
1
+ import { t as customPolling } from "./triggers-DYQL-F5D.mjs";
2
2
  import { t as jobs_exports } from "./custom/jobs.mjs";
3
3
  import { t as organizations_exports } from "./custom/organizations.mjs";
4
4
  import { t as search_exports } from "./custom/search.mjs";
@@ -1,4 +1,5 @@
1
- import { i as zendeskPlatform, l as createOfficialOperationFactory, t as zendeskCustom } from "./integration-DwdrlwuX.mjs";
1
+ import { i as zendeskPlatform, t as zendeskCustom } from "./integration-C7oBvhtb.mjs";
2
+ import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
2
3
 
3
4
  //#region src/factory.ts
4
5
  const zendeskPlatformOperation = createOfficialOperationFactory(zendeskPlatform);
@@ -0,0 +1,76 @@
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
+ credentialType: "manual",
9
+ exposure: "platform-only",
10
+ name: "Zendesk Platform App",
11
+ auth: z.object({
12
+ clientId: z.string().min(1),
13
+ clientSecret: z.string().min(1),
14
+ webhookSigningSecret: z.string().min(1)
15
+ })
16
+ });
17
+ const zendeskOfficialProviderSeed = {
18
+ provider: "zendesk",
19
+ appRef: "zendesk-platform",
20
+ displayName: "Zendesk Platform",
21
+ credentialSetName: "Keystroke Zendesk Platform App",
22
+ envShape: {
23
+ KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID: z.string().optional(),
24
+ KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET: z.string().optional(),
25
+ KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET: z.string().optional()
26
+ },
27
+ requiredEnvKeys: [
28
+ "KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID",
29
+ "KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET",
30
+ "KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET"
31
+ ],
32
+ externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID",
33
+ buildCredentials: (env) => ({
34
+ clientId: env.KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_ID,
35
+ clientSecret: env.KEYSTROKE_OFFICIAL_ZENDESK_CLIENT_SECRET,
36
+ webhookSigningSecret: env.KEYSTROKE_OFFICIAL_ZENDESK_WEBHOOK_SIGNING_SECRET
37
+ })
38
+ };
39
+
40
+ //#endregion
41
+ //#region src/integration.ts
42
+ const zendeskSubdomainSchema = z.string().trim().min(1).regex(/^[a-zA-Z0-9-]+$/, { error: "Zendesk subdomain must contain only letters, numbers, and hyphens" });
43
+ const zendeskPlatformAuthSchema = z.object({
44
+ ZENDESK_ACCESS_TOKEN: z.string().min(1),
45
+ ZENDESK_SUBDOMAIN: zendeskSubdomainSchema
46
+ });
47
+ const zendeskCustomAuthSchema = z.object({
48
+ ZENDESK_SUBDOMAIN: zendeskSubdomainSchema,
49
+ ZENDESK_EMAIL: z.email(),
50
+ ZENDESK_API_TOKEN: z.string().min(1)
51
+ });
52
+ const zendeskPlatformOfficialIntegration = {
53
+ id: "zendesk-platform",
54
+ publicId: "zendesk",
55
+ name: "Zendesk Platform",
56
+ description: "Zendesk Support integration via Keystroke-managed OAuth for tickets, users, organizations, search, and triggers",
57
+ credentialType: "oauth",
58
+ auth: zendeskPlatformAuthSchema
59
+ };
60
+ const zendeskCustomOfficialIntegration = {
61
+ id: "zendesk-custom",
62
+ name: "Zendesk Custom",
63
+ description: "Zendesk Support integration via bring-your-own API token for tickets, users, organizations, and search",
64
+ credentialType: "manual",
65
+ auth: zendeskCustomAuthSchema
66
+ };
67
+ const zendeskPlatformBundle = defineOfficialIntegration({
68
+ ...zendeskPlatformOfficialIntegration,
69
+ internal: { providerApp: zendeskPlatformAppCredentialSet }
70
+ });
71
+ const zendeskCustomBundle = defineOfficialIntegration(zendeskCustomOfficialIntegration);
72
+ const zendeskPlatform = zendeskPlatformBundle.credentialSet;
73
+ const zendeskCustom = zendeskCustomBundle.credentialSet;
74
+
75
+ //#endregion
76
+ 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 };
@@ -1,7 +1,7 @@
1
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
1
3
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
4
  import { CredentialSet } from "@keystrokehq/core";
3
- import { z } from "zod";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
5
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
6
 
7
7
  //#region src/_official/provider-app.d.ts
@@ -9,11 +9,7 @@ declare const zendeskPlatformAppCredentialSet: CredentialSet<"keystroke:zendesk-
9
9
  clientId: z.ZodString;
10
10
  clientSecret: z.ZodString;
11
11
  webhookSigningSecret: z.ZodString;
12
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
13
- clientId: z.ZodString;
14
- clientSecret: z.ZodString;
15
- webhookSigningSecret: z.ZodString;
16
- }, z.core.$strip>>[] | undefined>;
12
+ }, z.core.$strip>>;
17
13
  declare const zendeskOfficialProviderSeed: {
18
14
  readonly provider: "zendesk";
19
15
  readonly appRef: "zendesk-platform";
@@ -35,61 +31,45 @@ declare const zendeskOfficialProviderSeed: {
35
31
  //#endregion
36
32
  //#region src/integration.d.ts
37
33
  declare const zendeskPlatformOfficialIntegration: {
38
- id: "zendesk.platform-oauth";
34
+ id: "zendesk-platform";
35
+ publicId: string;
39
36
  name: string;
40
37
  description: string;
38
+ credentialType: "oauth";
41
39
  auth: z.ZodObject<{
42
40
  ZENDESK_ACCESS_TOKEN: z.ZodString;
43
41
  ZENDESK_SUBDOMAIN: z.ZodString;
44
42
  }, z.core.$strip>;
45
- connections: {
46
- id: string;
47
- kind: "oauth";
48
- tokenType: "refreshable";
49
- authUrl: string;
50
- tokenUrl: string;
51
- revokeUrl: string;
52
- scopes: string[];
53
- vault: {
54
- accessToken: "ZENDESK_ACCESS_TOKEN";
55
- };
56
- }[];
57
43
  };
58
44
  declare const zendeskCustomOfficialIntegration: {
59
- id: "zendesk.custom-token";
45
+ id: "zendesk-custom";
60
46
  name: string;
61
47
  description: string;
48
+ credentialType: "manual";
62
49
  auth: z.ZodObject<{
63
50
  ZENDESK_SUBDOMAIN: z.ZodString;
64
51
  ZENDESK_EMAIL: z.ZodEmail;
65
52
  ZENDESK_API_TOKEN: z.ZodString;
66
53
  }, z.core.$strip>;
67
54
  };
68
- declare const zendeskPlatformBundle: undefined<"zendesk.platform-oauth", z.ZodObject<{
55
+ declare const zendeskPlatformBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"zendesk-platform", z.ZodObject<{
69
56
  ZENDESK_ACCESS_TOKEN: z.ZodString;
70
57
  ZENDESK_SUBDOMAIN: z.ZodString;
71
58
  }, z.core.$strip>>;
72
- declare const zendeskCustomBundle: undefined<"zendesk.custom-token", z.ZodObject<{
59
+ declare const zendeskCustomBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"zendesk-custom", z.ZodObject<{
73
60
  ZENDESK_SUBDOMAIN: z.ZodString;
74
61
  ZENDESK_EMAIL: z.ZodEmail;
75
62
  ZENDESK_API_TOKEN: z.ZodString;
76
63
  }, z.core.$strip>>;
77
- declare const zendeskPlatform: _keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
64
+ declare const zendeskPlatform: _keystrokehq_core0.CredentialSet<"keystroke:zendesk-platform", z.ZodObject<{
78
65
  ZENDESK_ACCESS_TOKEN: z.ZodString;
79
66
  ZENDESK_SUBDOMAIN: z.ZodString;
80
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
81
- ZENDESK_ACCESS_TOKEN: z.ZodString;
82
- ZENDESK_SUBDOMAIN: z.ZodString;
83
- }, z.core.$strip>>[] | undefined>;
84
- declare const zendeskCustom: _keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
85
- ZENDESK_SUBDOMAIN: z.ZodString;
86
- ZENDESK_EMAIL: z.ZodEmail;
87
- ZENDESK_API_TOKEN: z.ZodString;
88
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
67
+ }, z.core.$strip>>;
68
+ declare const zendeskCustom: _keystrokehq_core0.CredentialSet<"keystroke:zendesk-custom", z.ZodObject<{
89
69
  ZENDESK_SUBDOMAIN: z.ZodString;
90
70
  ZENDESK_EMAIL: z.ZodEmail;
91
71
  ZENDESK_API_TOKEN: z.ZodString;
92
- }, z.core.$strip>>[] | undefined>;
72
+ }, z.core.$strip>>;
93
73
  type ZendeskPlatformCredentials = InferCredentialSetAuth<typeof zendeskPlatform>;
94
74
  type ZendeskCustomCredentials = InferCredentialSetAuth<typeof zendeskCustom>;
95
75
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { zendeskJobStatusEnvelopeSchema, zendeskJobStatusSchema } from "./schemas.mjs";
2
- import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-ou1q975N.mjs";
2
+ import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-CCCKLvYC.mjs";
3
3
  import { n as createPlatformZendeskClient, t as createCustomZendeskClient } from "./shared-BmxcJmfq.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/jobs.d.ts
6
5
  declare const platformGetJobStatus: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -13,13 +12,10 @@ declare const platformGetJobStatus: _keystrokehq_core0.Operation<z.ZodObject<{
13
12
  total: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
14
13
  url: z.ZodOptional<z.ZodString>;
15
14
  results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
16
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
17
- ZENDESK_ACCESS_TOKEN: z.ZodString;
18
- ZENDESK_SUBDOMAIN: z.ZodString;
19
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
15
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:zendesk-platform", z.ZodObject<{
20
16
  ZENDESK_ACCESS_TOKEN: z.ZodString;
21
17
  ZENDESK_SUBDOMAIN: z.ZodString;
22
- }, z.core.$strip>>[] | undefined>], undefined>;
18
+ }, z.core.$strip>>], undefined>;
23
19
  declare const customGetJobStatus: _keystrokehq_core0.Operation<z.ZodObject<{
24
20
  id: z.ZodString;
25
21
  }, z.core.$strip>, z.ZodObject<{
@@ -30,14 +26,10 @@ declare const customGetJobStatus: _keystrokehq_core0.Operation<z.ZodObject<{
30
26
  total: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
31
27
  url: z.ZodOptional<z.ZodString>;
32
28
  results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
33
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
34
- ZENDESK_SUBDOMAIN: z.ZodString;
35
- ZENDESK_EMAIL: z.ZodEmail;
36
- ZENDESK_API_TOKEN: z.ZodString;
37
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:zendesk-custom", z.ZodObject<{
38
30
  ZENDESK_SUBDOMAIN: z.ZodString;
39
31
  ZENDESK_EMAIL: z.ZodEmail;
40
32
  ZENDESK_API_TOKEN: z.ZodString;
41
- }, z.core.$strip>>[] | undefined>], undefined>;
33
+ }, z.core.$strip>>], undefined>;
42
34
  //#endregion
43
35
  export { platformGetJobStatus as n, customGetJobStatus as t };