@keystrokehq/typeform 0.0.1 → 0.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Buster
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,3 +1,36 @@
1
- import { i as typeformOfficialIntegration, r as typeformBundle } from "../integration-d_VqlGvZ.mjs";
2
- import { n as typeformAppCredentialSet, r as typeformPlatformProviderSeed, t as TypeformAppCredentials } from "../provider-app-BnLMYj3B.mjs";
1
+ import { i as typeformOfficialIntegration, r as typeformBundle } from "../integration-VP99jFXG.mjs";
2
+ import { z } from "zod";
3
+ import { CredentialSet } from "@keystrokehq/core";
4
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/_official/provider-app.d.ts
7
+ declare const typeformAppCredentialSet: CredentialSet<"keystroke:typeform-app", z.ZodObject<{
8
+ clientId: z.ZodString;
9
+ clientSecret: z.ZodString;
10
+ webhookSecret: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
12
+ clientId: z.ZodString;
13
+ clientSecret: z.ZodString;
14
+ webhookSecret: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>>[] | undefined>;
16
+ declare const typeformPlatformProviderSeed: {
17
+ readonly provider: "typeform";
18
+ readonly appRef: "typeform-platform";
19
+ readonly displayName: "Typeform Platform";
20
+ readonly credentialSetName: "Keystroke Typeform Platform App";
21
+ readonly envShape: {
22
+ readonly KEYSTROKE_PLATFORM_TYPEFORM_CLIENT_ID: z.ZodOptional<z.ZodString>;
23
+ readonly KEYSTROKE_PLATFORM_TYPEFORM_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
24
+ readonly KEYSTROKE_PLATFORM_TYPEFORM_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
25
+ };
26
+ readonly requiredEnvKeys: readonly ["KEYSTROKE_PLATFORM_TYPEFORM_CLIENT_ID", "KEYSTROKE_PLATFORM_TYPEFORM_CLIENT_SECRET"];
27
+ readonly externalAppIdEnvKey: "KEYSTROKE_PLATFORM_TYPEFORM_CLIENT_ID";
28
+ readonly buildCredentials: (env: Record<string, string | undefined>) => {
29
+ webhookSecret?: string | undefined;
30
+ clientId: string | undefined;
31
+ clientSecret: string | undefined;
32
+ };
33
+ };
34
+ type TypeformAppCredentials = z.infer<typeof typeformAppCredentialSet.auth>;
35
+ //#endregion
3
36
  export { TypeformAppCredentials, typeformAppCredentialSet, typeformBundle, typeformOfficialIntegration, typeformPlatformProviderSeed };
@@ -1,3 +1,3 @@
1
- import { a as typeformPlatformProviderSeed, i as typeformAppCredentialSet, n as typeformBundle, r as typeformOfficialIntegration } from "../integration-BCzgn7Dm.mjs";
1
+ import { a as typeformPlatformProviderSeed, i as typeformAppCredentialSet, n as typeformBundle, r as typeformOfficialIntegration } from "../integration-BZVxAx4l.mjs";
2
2
 
3
3
  export { typeformAppCredentialSet, typeformBundle, typeformOfficialIntegration, typeformPlatformProviderSeed };
@@ -8,7 +8,7 @@ declare const getAboutMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$s
8
8
  email: z.ZodOptional<z.ZodString>;
9
9
  language: z.ZodOptional<z.ZodString>;
10
10
  user_id: z.ZodOptional<z.ZodString>;
11
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
11
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
12
12
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
13
13
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
14
14
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
package/dist/accounts.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createTypeformClient } from "./client.mjs";
2
- import { w as typeformAccountSchema } from "./workspace-C1CCnvgv.mjs";
3
- import { t as typeformOperation } from "./factory-B_dyn39A.mjs";
2
+ import { typeformAccountSchema } from "./schemas/index.mjs";
3
+ import { t as typeformOperation } from "./factory-C-RzHxwx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/accounts.ts
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as TypeformCredentials } from "./integration-d_VqlGvZ.mjs";
1
+ import { t as TypeformCredentials } from "./integration-VP99jFXG.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  type Primitive = string | number | boolean;
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as typeform } from "./integration-BCzgn7Dm.mjs";
1
+ import { t as typeform } from "./integration-BZVxAx4l.mjs";
2
2
  import { n as TYPEFORM_CONNECT_HINT, t as TYPEFORM_API_BASE_URL } from "./shared-D0ONnQL8.mjs";
3
3
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
4
4
  import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
@@ -1,2 +1,2 @@
1
- import { i as typeformOfficialIntegration, n as typeform, t as TypeformCredentials } from "./integration-d_VqlGvZ.mjs";
1
+ import { i as typeformOfficialIntegration, n as typeform, t as TypeformCredentials } from "./integration-VP99jFXG.mjs";
2
2
  export { type TypeformCredentials, typeform, typeformOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { r as typeformOfficialIntegration, t as typeform } from "./integration-BCzgn7Dm.mjs";
1
+ import { r as typeformOfficialIntegration, t as typeform } from "./integration-BZVxAx4l.mjs";
2
2
 
3
3
  export { typeform, typeformOfficialIntegration };
package/dist/events.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { N as typeformLooseObjectSchema, d as typeformAnswerSchema, f as typeformCalculatedSchema, g as typeformVariableSchema, p as typeformHiddenFieldsSchema } from "./workspace-C1CCnvgv.mjs";
1
+ import { typeformAnswerSchema, typeformCalculatedSchema, typeformHiddenFieldsSchema, typeformLooseObjectSchema, typeformVariableSchema } from "./schemas/index.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/events.ts
@@ -1,4 +1,4 @@
1
- import { t as typeform } from "./integration-BCzgn7Dm.mjs";
1
+ import { t as typeform } from "./integration-BZVxAx4l.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
package/dist/forms.d.mts CHANGED
@@ -30,7 +30,7 @@ declare const listForms: _keystrokehq_core0.Operation<z.ZodObject<{
30
30
  totalItems: z.ZodOptional<z.ZodNumber>;
31
31
  pageCount: z.ZodOptional<z.ZodNumber>;
32
32
  }, z.core.$strip>>;
33
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
33
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
34
34
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
35
35
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
36
36
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -101,7 +101,7 @@ declare const getForm: _keystrokehq_core0.Operation<z.ZodObject<{
101
101
  _links: z.ZodOptional<z.ZodObject<{
102
102
  display: z.ZodOptional<z.ZodString>;
103
103
  }, z.core.$catchall<z.ZodUnknown>>>;
104
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
104
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
105
105
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
106
106
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
107
107
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -194,7 +194,7 @@ declare const createForm: _keystrokehq_core0.Operation<z.ZodObject<{
194
194
  _links: z.ZodOptional<z.ZodObject<{
195
195
  display: z.ZodOptional<z.ZodString>;
196
196
  }, z.core.$catchall<z.ZodUnknown>>>;
197
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
197
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
198
198
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
199
199
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
200
200
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -288,7 +288,7 @@ declare const updateForm: _keystrokehq_core0.Operation<z.ZodObject<{
288
288
  _links: z.ZodOptional<z.ZodObject<{
289
289
  display: z.ZodOptional<z.ZodString>;
290
290
  }, z.core.$catchall<z.ZodUnknown>>>;
291
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
291
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
292
292
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
293
293
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
294
294
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -372,7 +372,7 @@ declare const patchForm: _keystrokehq_core0.Operation<z.ZodObject<{
372
372
  _links: z.ZodOptional<z.ZodObject<{
373
373
  display: z.ZodOptional<z.ZodString>;
374
374
  }, z.core.$catchall<z.ZodUnknown>>>;
375
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
375
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
376
376
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
377
377
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
378
378
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -381,7 +381,7 @@ declare const deleteForm: _keystrokehq_core0.Operation<z.ZodObject<{
381
381
  formId: z.ZodString;
382
382
  }, z.core.$strip>, z.ZodObject<{
383
383
  success: z.ZodBoolean;
384
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
384
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
385
385
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
386
386
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
387
387
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
package/dist/forms.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as mapPagePagination, o as omitUndefined, r as asRecord } from "./shared-D0ONnQL8.mjs";
2
2
  import { createTypeformClient } from "./client.mjs";
3
- import { C as typeformFormSchema, N as typeformLooseObjectSchema, S as typeformFormRefSchema, k as typeformIdentifierSchema, x as typeformFormListSchema } from "./workspace-C1CCnvgv.mjs";
4
- import { t as typeformOperation } from "./factory-B_dyn39A.mjs";
3
+ import { typeformFormListSchema, typeformFormRefSchema, typeformFormSchema, typeformIdentifierSchema, typeformLooseObjectSchema } from "./schemas/index.mjs";
4
+ import { t as typeformOperation } from "./factory-C-RzHxwx.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/forms.ts
package/dist/images.d.mts CHANGED
@@ -13,7 +13,7 @@ declare const listImages: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$s
13
13
  media_type: z.ZodOptional<z.ZodString>;
14
14
  has_alpha: z.ZodOptional<z.ZodBoolean>;
15
15
  }, z.core.$catchall<z.ZodUnknown>>>;
16
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
16
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
17
17
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
18
18
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
19
19
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -30,7 +30,7 @@ declare const createImage: _keystrokehq_core0.Operation<z.ZodObject<{
30
30
  height: z.ZodOptional<z.ZodNumber>;
31
31
  media_type: z.ZodOptional<z.ZodString>;
32
32
  has_alpha: z.ZodOptional<z.ZodBoolean>;
33
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
33
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
34
34
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
35
35
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
36
36
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -50,7 +50,7 @@ declare const getImageBySize: _keystrokehq_core0.Operation<z.ZodObject<{
50
50
  height: z.ZodOptional<z.ZodNumber>;
51
51
  media_type: z.ZodOptional<z.ZodString>;
52
52
  has_alpha: z.ZodOptional<z.ZodBoolean>;
53
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
53
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
54
54
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
55
55
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
56
56
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -71,7 +71,7 @@ declare const getBackgroundBySize: _keystrokehq_core0.Operation<z.ZodObject<{
71
71
  height: z.ZodOptional<z.ZodNumber>;
72
72
  media_type: z.ZodOptional<z.ZodString>;
73
73
  has_alpha: z.ZodOptional<z.ZodBoolean>;
74
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
74
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
75
75
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
76
76
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
77
77
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -94,7 +94,7 @@ declare const getChoiceImageBySize: _keystrokehq_core0.Operation<z.ZodObject<{
94
94
  height: z.ZodOptional<z.ZodNumber>;
95
95
  media_type: z.ZodOptional<z.ZodString>;
96
96
  has_alpha: z.ZodOptional<z.ZodBoolean>;
97
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
97
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
98
98
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
99
99
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
100
100
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -103,7 +103,7 @@ declare const deleteImage: _keystrokehq_core0.Operation<z.ZodObject<{
103
103
  imageId: z.ZodString;
104
104
  }, z.core.$strip>, z.ZodObject<{
105
105
  success: z.ZodBoolean;
106
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
106
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
107
107
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
108
108
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
109
109
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
package/dist/images.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { o as omitUndefined, r as asRecord } from "./shared-D0ONnQL8.mjs";
2
2
  import { createTypeformClient } from "./client.mjs";
3
- import { A as typeformImageBackgroundSizeSchema, M as typeformImageSizeSchema, j as typeformImageChoiceSizeSchema, k as typeformIdentifierSchema, v as typeformImageListSchema, y as typeformImageSchema } from "./workspace-C1CCnvgv.mjs";
4
- import { t as typeformOperation } from "./factory-B_dyn39A.mjs";
3
+ import { typeformIdentifierSchema, typeformImageBackgroundSizeSchema, typeformImageChoiceSizeSchema, typeformImageListSchema, typeformImageSchema, typeformImageSizeSchema } from "./schemas/index.mjs";
4
+ import { t as typeformOperation } from "./factory-C-RzHxwx.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/images.ts
@@ -7,7 +7,7 @@ declare const getFormMessages: _keystrokehq_core0.Operation<z.ZodObject<{
7
7
  formId: z.ZodString;
8
8
  }, z.core.$strip>, z.ZodObject<{
9
9
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
10
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
10
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
11
11
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
12
12
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
13
13
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -17,7 +17,7 @@ declare const updateFormMessages: _keystrokehq_core0.Operation<z.ZodObject<{
17
17
  messages: z.ZodRecord<z.ZodString, z.ZodString>;
18
18
  }, z.core.$strip>, z.ZodObject<{
19
19
  success: z.ZodBoolean;
20
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
20
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
21
21
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
22
22
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
23
23
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
package/dist/insights.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createTypeformClient } from "./client.mjs";
2
- import { _ as typeformFormMessagesSchema, k as typeformIdentifierSchema } from "./workspace-C1CCnvgv.mjs";
3
- import { t as typeformOperation } from "./factory-B_dyn39A.mjs";
2
+ import { typeformFormMessagesSchema, typeformIdentifierSchema } from "./schemas/index.mjs";
3
+ import { t as typeformOperation } from "./factory-C-RzHxwx.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/insights.ts
@@ -1,10 +1,10 @@
1
- import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
1
+ import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
2
  import { z } from "zod";
3
3
  import { CredentialSet } from "@keystrokehq/core";
4
4
 
5
5
  //#region src/_official/provider-app.ts
6
6
  const typeformAppCredentialSet = new CredentialSet({
7
- id: "typeform-app",
7
+ id: officialCredentialSetId("typeform-app"),
8
8
  exposure: "platform-only",
9
9
  name: "Typeform App",
10
10
  auth: z.object({
@@ -28,7 +28,7 @@ declare const typeformOfficialIntegration: {
28
28
  declare const typeformBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"typeform", z.ZodObject<{
29
29
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
30
30
  }, z.core.$strip>>;
31
- declare const typeform: _keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
31
+ declare const typeform: _keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
32
32
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
33
33
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
34
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -80,7 +80,7 @@ declare const getFormResponses: _keystrokehq_core0.Operation<z.ZodObject<{
80
80
  before: z.ZodOptional<z.ZodString>;
81
81
  after: z.ZodOptional<z.ZodString>;
82
82
  }, z.core.$strip>>;
83
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
83
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
84
84
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
85
85
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
86
86
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -92,7 +92,7 @@ declare const deleteResponses: _keystrokehq_core0.Operation<z.ZodObject<{
92
92
  }, z.core.$strip>, z.ZodObject<{
93
93
  success: z.ZodBoolean;
94
94
  deleted: z.ZodNumber;
95
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
95
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
96
96
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
97
97
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
98
98
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -109,7 +109,7 @@ declare const getAllResponseFiles: _keystrokehq_core0.Operation<z.ZodObject<{
109
109
  filename: z.ZodString;
110
110
  downloadUrl: z.ZodString;
111
111
  note: z.ZodString;
112
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"typeform", z.ZodObject<{
112
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:typeform", z.ZodObject<{
113
113
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
114
114
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
115
115
  TYPEFORM_ACCESS_TOKEN: z.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { i as mapCursorPagination, o as omitUndefined, r as asRecord } from "./shared-D0ONnQL8.mjs";
2
2
  import { createTypeformClient } from "./client.mjs";
3
- import { h as typeformResponseSchema, k as typeformIdentifierSchema, m as typeformResponseListSchema } from "./workspace-C1CCnvgv.mjs";
4
- import { t as typeformOperation } from "./factory-B_dyn39A.mjs";
3
+ import { typeformIdentifierSchema, typeformResponseListSchema, typeformResponseSchema } from "./schemas/index.mjs";
4
+ import { t as typeformOperation } from "./factory-C-RzHxwx.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/responses.ts
@@ -1,3 +1,271 @@
1
- import { A as typeformImageBackgroundSizeSchema, C as typeformFormSchema, D as typeformErrorSchema, E as typeformDateTimeSchema, F as typeformThemeFontSchema, M as typeformImageSizeSchema, N as typeformLooseObjectSchema, O as typeformFieldTypeSchema, P as typeformPagePaginationSchema, S as typeformFormRefSchema, T as typeformCursorPaginationSchema, _ as typeformFormMessagesSchema, a as typeformWebhookSchema, b as typeformFormFieldSchema, c as typeformThemeListSchema, d as typeformAnswerSchema, f as typeformCalculatedSchema, g as typeformVariableSchema, h as typeformResponseSchema, i as typeformWebhookListSchema, j as typeformImageChoiceSizeSchema, k as typeformIdentifierSchema, l as typeformThemeSchema, m as typeformResponseListSchema, n as typeformWorkspaceMemberSchema, o as typeformVideoSchema, p as typeformHiddenFieldsSchema, r as typeformWorkspaceSchema, s as typeformThemeColorsSchema, t as typeformWorkspaceListSchema, u as typeformAnswerFieldRefSchema, v as typeformImageListSchema, w as typeformAccountSchema, x as typeformFormListSchema, y as typeformImageSchema } from "../workspace-C1CCnvgv.mjs";
1
+ import { z } from "zod";
2
2
 
3
+ //#region src/schemas/shared.ts
4
+ const typeformIdentifierSchema = z.string().trim().min(1);
5
+ const typeformDateTimeSchema = z.string().trim().min(1);
6
+ function typeformLooseObjectSchema(shape = {}) {
7
+ return z.object(shape).catchall(z.unknown());
8
+ }
9
+ const typeformPagePaginationSchema = z.object({
10
+ page: z.number().int().nonnegative().optional(),
11
+ pageSize: z.number().int().positive().optional(),
12
+ totalItems: z.number().int().nonnegative().optional(),
13
+ pageCount: z.number().int().nonnegative().optional()
14
+ });
15
+ const typeformCursorPaginationSchema = z.object({
16
+ pageSize: z.number().int().positive().optional(),
17
+ totalItems: z.number().int().nonnegative().optional(),
18
+ pageCount: z.number().int().nonnegative().optional(),
19
+ before: z.string().optional(),
20
+ after: z.string().optional()
21
+ });
22
+ const typeformErrorSchema = z.object({
23
+ code: z.string().min(1),
24
+ description: z.string().min(1),
25
+ details: z.array(z.object({
26
+ code: z.string().optional(),
27
+ description: z.string().optional(),
28
+ field: z.string().optional()
29
+ })).optional()
30
+ });
31
+ const typeformFieldTypeSchema = z.enum([
32
+ "date",
33
+ "dropdown",
34
+ "email",
35
+ "file_upload",
36
+ "group",
37
+ "legal",
38
+ "long_text",
39
+ "matrix",
40
+ "multiple_choice",
41
+ "number",
42
+ "opinion_scale",
43
+ "payment",
44
+ "phone_number",
45
+ "picture_choice",
46
+ "rating",
47
+ "ranking",
48
+ "short_text",
49
+ "statement",
50
+ "website",
51
+ "yes_no",
52
+ "nps",
53
+ "ending"
54
+ ]);
55
+ const typeformThemeFontSchema = z.string().trim().min(1);
56
+ const typeformImageSizeSchema = z.enum([
57
+ "default",
58
+ "thumbnail",
59
+ "mobile"
60
+ ]);
61
+ const typeformImageChoiceSizeSchema = z.enum([
62
+ "default",
63
+ "thumbnail",
64
+ "supersize",
65
+ "supermobile",
66
+ "supersizefit",
67
+ "supermobilefit"
68
+ ]);
69
+ const typeformImageBackgroundSizeSchema = z.enum([
70
+ "default",
71
+ "thumbnail",
72
+ "mobile",
73
+ "tablet"
74
+ ]);
75
+
76
+ //#endregion
77
+ //#region src/schemas/account.ts
78
+ const typeformAccountSchema = typeformLooseObjectSchema({
79
+ alias: z.string().optional(),
80
+ email: z.string().optional(),
81
+ language: z.string().optional(),
82
+ user_id: z.string().optional()
83
+ });
84
+
85
+ //#endregion
86
+ //#region src/schemas/form.ts
87
+ const typeformFormRefSchema = typeformLooseObjectSchema({
88
+ id: typeformIdentifierSchema,
89
+ title: z.string().optional(),
90
+ href: z.string().optional(),
91
+ last_updated_at: z.string().optional(),
92
+ self: typeformLooseObjectSchema({ href: z.string().optional() }).optional(),
93
+ theme: typeformLooseObjectSchema({ href: z.string().optional() }).optional(),
94
+ _links: typeformLooseObjectSchema().optional()
95
+ });
96
+ const typeformFormFieldSchema = typeformLooseObjectSchema({
97
+ id: typeformIdentifierSchema,
98
+ ref: z.string().optional(),
99
+ title: z.string().optional(),
100
+ type: typeformFieldTypeSchema,
101
+ properties: typeformLooseObjectSchema().optional(),
102
+ validations: typeformLooseObjectSchema().optional()
103
+ });
104
+ const typeformFormSchema = typeformLooseObjectSchema({
105
+ id: typeformIdentifierSchema,
106
+ title: z.string().optional(),
107
+ language: z.string().optional(),
108
+ workspace: typeformLooseObjectSchema({ href: z.string().optional() }).optional(),
109
+ theme: typeformLooseObjectSchema({ href: z.string().optional() }).optional(),
110
+ settings: typeformLooseObjectSchema().optional(),
111
+ welcome_screens: z.array(typeformLooseObjectSchema()).optional(),
112
+ thankyou_screens: z.array(typeformLooseObjectSchema()).optional(),
113
+ fields: z.array(typeformFormFieldSchema).optional(),
114
+ hidden: z.array(z.string()).optional(),
115
+ variables: typeformLooseObjectSchema().optional(),
116
+ logic: z.array(typeformLooseObjectSchema()).optional(),
117
+ _links: typeformLooseObjectSchema({ display: z.string().optional() }).optional()
118
+ });
119
+ const typeformFormListSchema = z.object({
120
+ items: z.array(typeformFormRefSchema),
121
+ pagination: typeformPagePaginationSchema.optional()
122
+ });
123
+
124
+ //#endregion
125
+ //#region src/schemas/image.ts
126
+ const typeformImageSchema = typeformLooseObjectSchema({
127
+ id: typeformIdentifierSchema,
128
+ file_name: z.string().optional(),
129
+ url: z.string().optional(),
130
+ width: z.number().int().optional(),
131
+ height: z.number().int().optional(),
132
+ media_type: z.string().optional(),
133
+ has_alpha: z.boolean().optional()
134
+ });
135
+ const typeformImageListSchema = z.object({ items: z.array(typeformImageSchema) });
136
+
137
+ //#endregion
138
+ //#region src/schemas/insights.ts
139
+ const typeformFormMessagesSchema = typeformLooseObjectSchema();
140
+
141
+ //#endregion
142
+ //#region src/schemas/response.ts
143
+ const typeformHiddenFieldsSchema = z.record(z.string(), z.string());
144
+ const typeformAnswerFieldRefSchema = typeformLooseObjectSchema({
145
+ id: typeformIdentifierSchema,
146
+ ref: z.string().optional(),
147
+ type: z.string().optional()
148
+ });
149
+ const typeformAnswerSchema = typeformLooseObjectSchema({
150
+ field: typeformAnswerFieldRefSchema,
151
+ type: z.string().optional(),
152
+ text: z.string().optional(),
153
+ email: z.string().optional(),
154
+ url: z.string().optional(),
155
+ phone_number: z.string().optional(),
156
+ number: z.number().optional(),
157
+ boolean: z.boolean().optional(),
158
+ date: z.string().optional(),
159
+ choice: typeformLooseObjectSchema({
160
+ label: z.string().optional(),
161
+ other: z.string().optional()
162
+ }).optional(),
163
+ choices: typeformLooseObjectSchema({
164
+ labels: z.array(z.string()).optional(),
165
+ other: z.string().optional()
166
+ }).optional(),
167
+ file_url: z.string().optional(),
168
+ payment: typeformLooseObjectSchema().optional()
169
+ });
170
+ const typeformVariableSchema = typeformLooseObjectSchema({
171
+ key: z.string(),
172
+ type: z.string().optional(),
173
+ number: z.number().optional(),
174
+ text: z.string().optional()
175
+ });
176
+ const typeformCalculatedSchema = typeformLooseObjectSchema({ score: z.number().optional() });
177
+ const typeformResponseSchema = typeformLooseObjectSchema({
178
+ response_id: z.string().optional(),
179
+ token: z.string().optional(),
180
+ landed_at: z.string().optional(),
181
+ submitted_at: z.string().optional(),
182
+ metadata: typeformLooseObjectSchema().optional(),
183
+ hidden: typeformHiddenFieldsSchema.optional(),
184
+ calculated: typeformCalculatedSchema.optional(),
185
+ variables: z.array(typeformVariableSchema).optional(),
186
+ answers: z.array(typeformAnswerSchema).optional(),
187
+ definition: typeformLooseObjectSchema().optional(),
188
+ ending: typeformLooseObjectSchema().optional()
189
+ });
190
+ const typeformResponseListSchema = z.object({
191
+ items: z.array(typeformResponseSchema),
192
+ totalItems: z.number().int().nonnegative().optional(),
193
+ pageCount: z.number().int().nonnegative().optional(),
194
+ pagination: typeformCursorPaginationSchema.optional()
195
+ });
196
+
197
+ //#endregion
198
+ //#region src/schemas/theme.ts
199
+ const typeformThemeColorsSchema = z.object({
200
+ answer: z.string().optional(),
201
+ background: z.string().optional(),
202
+ button: z.string().optional(),
203
+ question: z.string().optional()
204
+ });
205
+ const typeformThemeSchema = typeformLooseObjectSchema({
206
+ id: typeformIdentifierSchema,
207
+ name: z.string().optional(),
208
+ visibility: z.enum(["public", "private"]).optional(),
209
+ has_transparent_button: z.boolean().optional(),
210
+ background: typeformLooseObjectSchema({
211
+ brightness: z.number().optional(),
212
+ href: z.string().optional(),
213
+ layout: z.string().optional()
214
+ }).optional(),
215
+ colors: typeformThemeColorsSchema.optional(),
216
+ fields: typeformLooseObjectSchema().optional(),
217
+ font: typeformThemeFontSchema.optional()
218
+ });
219
+ const typeformThemeListSchema = z.object({
220
+ items: z.array(typeformThemeSchema),
221
+ pagination: typeformPagePaginationSchema.optional()
222
+ });
223
+
224
+ //#endregion
225
+ //#region src/schemas/video.ts
226
+ const typeformVideoSchema = typeformLooseObjectSchema({
227
+ id: typeformIdentifierSchema,
228
+ url: z.string().optional(),
229
+ source: z.string().optional(),
230
+ embed_url: z.string().optional()
231
+ });
232
+
233
+ //#endregion
234
+ //#region src/schemas/webhook.ts
235
+ const typeformWebhookSchema = typeformLooseObjectSchema({
236
+ id: typeformIdentifierSchema,
237
+ form_id: z.string().optional(),
238
+ tag: z.string().optional(),
239
+ url: z.string().optional(),
240
+ enabled: z.boolean().optional(),
241
+ verify_ssl: z.boolean().optional(),
242
+ created_at: z.string().optional(),
243
+ updated_at: z.string().optional()
244
+ });
245
+ const typeformWebhookListSchema = z.object({ items: z.array(typeformWebhookSchema) });
246
+
247
+ //#endregion
248
+ //#region src/schemas/workspace.ts
249
+ const typeformWorkspaceMemberSchema = typeformLooseObjectSchema({
250
+ email: z.string().optional(),
251
+ role: z.string().optional()
252
+ });
253
+ const typeformWorkspaceSchema = typeformLooseObjectSchema({
254
+ id: typeformIdentifierSchema,
255
+ name: z.string().optional(),
256
+ default: z.boolean().optional(),
257
+ account_id: z.string().optional(),
258
+ shared: z.boolean().optional(),
259
+ forms: typeformLooseObjectSchema({
260
+ count: z.number().int().optional(),
261
+ href: z.string().optional()
262
+ }).optional(),
263
+ members: z.array(typeformWorkspaceMemberSchema).optional()
264
+ });
265
+ const typeformWorkspaceListSchema = z.object({
266
+ items: z.array(typeformWorkspaceSchema),
267
+ pagination: typeformPagePaginationSchema.optional()
268
+ });
269
+
270
+ //#endregion
3
271
  export { typeformAccountSchema, typeformAnswerFieldRefSchema, typeformAnswerSchema, typeformCalculatedSchema, typeformCursorPaginationSchema, typeformDateTimeSchema, typeformErrorSchema, typeformFieldTypeSchema, typeformFormFieldSchema, typeformFormListSchema, typeformFormMessagesSchema, typeformFormRefSchema, typeformFormSchema, typeformHiddenFieldsSchema, typeformIdentifierSchema, typeformImageBackgroundSizeSchema, typeformImageChoiceSizeSchema, typeformImageListSchema, typeformImageSchema, typeformImageSizeSchema, typeformLooseObjectSchema, typeformPagePaginationSchema, typeformResponseListSchema, typeformResponseSchema, typeformThemeColorsSchema, typeformThemeFontSchema, typeformThemeListSchema, typeformThemeSchema, typeformVariableSchema, typeformVideoSchema, typeformWebhookListSchema, typeformWebhookSchema, typeformWorkspaceListSchema, typeformWorkspaceMemberSchema, typeformWorkspaceSchema };