@tai42/api-client 20.0.0 → 22.0.0
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/README.md +29 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +6 -4
- package/dist/agents.js.map +1 -1
- package/dist/client/agents-client.d.ts.map +1 -1
- package/dist/client/agents-client.js +3 -2
- package/dist/client/agents-client.js.map +1 -1
- package/dist/client/auth-client.d.ts +129 -127
- package/dist/client/auth-client.d.ts.map +1 -1
- package/dist/client/auth-client.js +68 -28
- package/dist/client/auth-client.js.map +1 -1
- package/dist/client/backend-client.d.ts +14 -13
- package/dist/client/backend-client.d.ts.map +1 -1
- package/dist/client/backend-client.js +7 -3
- package/dist/client/backend-client.js.map +1 -1
- package/dist/client/backup-client.d.ts +45 -19
- package/dist/client/backup-client.d.ts.map +1 -1
- package/dist/client/backup-client.js +8 -3
- package/dist/client/backup-client.js.map +1 -1
- package/dist/client/capabilities-client.d.ts +20 -16
- package/dist/client/capabilities-client.d.ts.map +1 -1
- package/dist/client/capabilities-client.js +3 -2
- package/dist/client/capabilities-client.js.map +1 -1
- package/dist/client/channels-client.d.ts.map +1 -1
- package/dist/client/channels-client.js +2 -1
- package/dist/client/channels-client.js.map +1 -1
- package/dist/client/config-client.d.ts +44 -17
- package/dist/client/config-client.d.ts.map +1 -1
- package/dist/client/config-client.js +10 -4
- package/dist/client/config-client.js.map +1 -1
- package/dist/client/connectors-client.d.ts +270 -81
- package/dist/client/connectors-client.d.ts.map +1 -1
- package/dist/client/connectors-client.js +38 -10
- package/dist/client/connectors-client.js.map +1 -1
- package/dist/client/conversations-client.d.ts +440 -86
- package/dist/client/conversations-client.d.ts.map +1 -1
- package/dist/client/conversations-client.js +46 -17
- package/dist/client/conversations-client.js.map +1 -1
- package/dist/client/hooks-client.d.ts +3 -3
- package/dist/client/hooks-client.d.ts.map +1 -1
- package/dist/client/hooks-client.js +12 -7
- package/dist/client/hooks-client.js.map +1 -1
- package/dist/client/index.d.ts +2272 -914
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +10 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/interactions-client.d.ts +19 -14
- package/dist/client/interactions-client.d.ts.map +1 -1
- package/dist/client/interactions-client.js +21 -9
- package/dist/client/interactions-client.js.map +1 -1
- package/dist/client/login-client.d.ts +18 -17
- package/dist/client/login-client.d.ts.map +1 -1
- package/dist/client/login-client.js +8 -4
- package/dist/client/login-client.js.map +1 -1
- package/dist/client/manifest-client.d.ts +276 -105
- package/dist/client/manifest-client.d.ts.map +1 -1
- package/dist/client/manifest-client.js +22 -16
- package/dist/client/manifest-client.js.map +1 -1
- package/dist/client/marketplace-client.d.ts +181 -51
- package/dist/client/marketplace-client.d.ts.map +1 -1
- package/dist/client/marketplace-client.js +23 -12
- package/dist/client/marketplace-client.js.map +1 -1
- package/dist/client/mcp-config-schema-client.d.ts.map +1 -1
- package/dist/client/mcp-config-schema-client.js +2 -1
- package/dist/client/mcp-config-schema-client.js.map +1 -1
- package/dist/client/notifications-client.d.ts +43 -6
- package/dist/client/notifications-client.d.ts.map +1 -1
- package/dist/client/notifications-client.js +2 -1
- package/dist/client/notifications-client.js.map +1 -1
- package/dist/client/observability-client.d.ts +78 -38
- package/dist/client/observability-client.d.ts.map +1 -1
- package/dist/client/observability-client.js +29 -6
- package/dist/client/observability-client.js.map +1 -1
- package/dist/client/plugins-client.d.ts +8 -6
- package/dist/client/plugins-client.d.ts.map +1 -1
- package/dist/client/plugins-client.js +2 -1
- package/dist/client/plugins-client.js.map +1 -1
- package/dist/client/policy-client.d.ts +4 -4
- package/dist/client/policy-client.d.ts.map +1 -1
- package/dist/client/policy-client.js +11 -4
- package/dist/client/policy-client.js.map +1 -1
- package/dist/client/presets-client.d.ts +84 -39
- package/dist/client/presets-client.d.ts.map +1 -1
- package/dist/client/presets-client.js +25 -13
- package/dist/client/presets-client.js.map +1 -1
- package/dist/client/profiles-client.d.ts +40 -33
- package/dist/client/profiles-client.d.ts.map +1 -1
- package/dist/client/profiles-client.js +15 -10
- package/dist/client/profiles-client.js.map +1 -1
- package/dist/client/schedules-client.d.ts +21 -17
- package/dist/client/schedules-client.d.ts.map +1 -1
- package/dist/client/schedules-client.js +8 -5
- package/dist/client/schedules-client.js.map +1 -1
- package/dist/client/settings-schema-client.d.ts +1 -1
- package/dist/client/settings-schema-client.d.ts.map +1 -1
- package/dist/client/settings-schema-client.js +2 -1
- package/dist/client/settings-schema-client.js.map +1 -1
- package/dist/client/states-client.d.ts +215 -87
- package/dist/client/states-client.d.ts.map +1 -1
- package/dist/client/states-client.js +98 -37
- package/dist/client/states-client.js.map +1 -1
- package/dist/client/storage-client.d.ts +5 -5
- package/dist/client/storage-client.d.ts.map +1 -1
- package/dist/client/storage-client.js +24 -12
- package/dist/client/storage-client.js.map +1 -1
- package/dist/client/sub-mcp-client.d.ts +3 -1
- package/dist/client/sub-mcp-client.d.ts.map +1 -1
- package/dist/client/sub-mcp-client.js +9 -4
- package/dist/client/sub-mcp-client.js.map +1 -1
- package/dist/client/system-client.d.ts +2 -2
- package/dist/client/system-client.d.ts.map +1 -1
- package/dist/client/system-client.js +2 -1
- package/dist/client/system-client.js.map +1 -1
- package/dist/client/templates-client.d.ts +65 -6
- package/dist/client/templates-client.d.ts.map +1 -1
- package/dist/client/templates-client.js +25 -7
- package/dist/client/templates-client.js.map +1 -1
- package/dist/client/tool-extensions-client.d.ts +41 -16
- package/dist/client/tool-extensions-client.d.ts.map +1 -1
- package/dist/client/tool-extensions-client.js +6 -4
- package/dist/client/tool-extensions-client.js.map +1 -1
- package/dist/client/tool-meta-client.d.ts +8 -8
- package/dist/client/tool-meta-client.d.ts.map +1 -1
- package/dist/client/tool-meta-client.js +12 -8
- package/dist/client/tool-meta-client.js.map +1 -1
- package/dist/client/tools-client.d.ts +150 -23
- package/dist/client/tools-client.d.ts.map +1 -1
- package/dist/client/tools-client.js +8 -8
- package/dist/client/tools-client.js.map +1 -1
- package/dist/client/trigger-links-client.d.ts +11 -9
- package/dist/client/trigger-links-client.d.ts.map +1 -1
- package/dist/client/trigger-links-client.js +4 -4
- package/dist/client/trigger-links-client.js.map +1 -1
- package/dist/fleet-report.d.ts +21 -5
- package/dist/fleet-report.d.ts.map +1 -1
- package/dist/fleet-report.js +31 -6
- package/dist/fleet-report.js.map +1 -1
- package/dist/generated/api-routes.d.ts +1014 -0
- package/dist/generated/api-routes.d.ts.map +1 -0
- package/dist/generated/api-routes.js +322 -0
- package/dist/generated/api-routes.js.map +1 -0
- package/dist/generated/openapi-schemas.d.ts +12425 -0
- package/dist/generated/openapi-schemas.d.ts.map +1 -0
- package/dist/generated/openapi-schemas.js +671 -0
- package/dist/generated/openapi-schemas.js.map +1 -0
- package/dist/generated/served-schemas.d.ts +6698 -349
- package/dist/generated/served-schemas.d.ts.map +1 -1
- package/dist/generated/served-schemas.js +7062 -21
- package/dist/generated/served-schemas.js.map +1 -1
- package/dist/headers.d.ts +4 -0
- package/dist/headers.d.ts.map +1 -0
- package/dist/headers.js +4 -0
- package/dist/headers.js.map +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +4 -3
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/api-keys.d.ts +14 -12
- package/dist/schemas/api-keys.d.ts.map +1 -1
- package/dist/schemas/api-keys.js +9 -23
- package/dist/schemas/api-keys.js.map +1 -1
- package/dist/schemas/auth-routes.d.ts +34 -29
- package/dist/schemas/auth-routes.d.ts.map +1 -1
- package/dist/schemas/auth-routes.js +22 -27
- package/dist/schemas/auth-routes.js.map +1 -1
- package/dist/schemas/backup.d.ts +157 -36
- package/dist/schemas/backup.d.ts.map +1 -1
- package/dist/schemas/backup.js +27 -26
- package/dist/schemas/backup.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +32 -22
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +15 -40
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/channels.d.ts +1 -1
- package/dist/schemas/channels.d.ts.map +1 -1
- package/dist/schemas/channels.js +2 -5
- package/dist/schemas/channels.js.map +1 -1
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/config.js +4 -6
- package/dist/schemas/config.js.map +1 -1
- package/dist/schemas/connectors.d.ts +381 -185
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/connectors.js +54 -101
- package/dist/schemas/connectors.js.map +1 -1
- package/dist/schemas/conversations.d.ts +977 -248
- package/dist/schemas/conversations.d.ts.map +1 -1
- package/dist/schemas/conversations.js +40 -134
- package/dist/schemas/conversations.js.map +1 -1
- package/dist/schemas/extensions.d.ts +9 -6
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/extensions.js +6 -4
- package/dist/schemas/extensions.js.map +1 -1
- package/dist/schemas/fleet.d.ts +153 -99
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/fleet.js +41 -51
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/hooks.d.ts +34 -34
- package/dist/schemas/hooks.d.ts.map +1 -1
- package/dist/schemas/hooks.js +15 -34
- package/dist/schemas/hooks.js.map +1 -1
- package/dist/schemas/index.d.ts +0 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/interactions.d.ts +400 -128
- package/dist/schemas/interactions.d.ts.map +1 -1
- package/dist/schemas/interactions.js +202 -131
- package/dist/schemas/interactions.js.map +1 -1
- package/dist/schemas/login.d.ts +36 -37
- package/dist/schemas/login.d.ts.map +1 -1
- package/dist/schemas/login.js +8 -42
- package/dist/schemas/login.js.map +1 -1
- package/dist/schemas/manifest-mcp.d.ts +61 -35
- package/dist/schemas/manifest-mcp.d.ts.map +1 -1
- package/dist/schemas/manifest-mcp.js +13 -19
- package/dist/schemas/manifest-mcp.js.map +1 -1
- package/dist/schemas/marketplace.d.ts +219 -133
- package/dist/schemas/marketplace.d.ts.map +1 -1
- package/dist/schemas/marketplace.js +35 -120
- package/dist/schemas/marketplace.js.map +1 -1
- package/dist/schemas/members.d.ts +59 -52
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +20 -52
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/notifications.d.ts +115 -17
- package/dist/schemas/notifications.d.ts.map +1 -1
- package/dist/schemas/notifications.js +9 -35
- package/dist/schemas/notifications.js.map +1 -1
- package/dist/schemas/observability.d.ts +174 -72
- package/dist/schemas/observability.d.ts.map +1 -1
- package/dist/schemas/observability.js +23 -76
- package/dist/schemas/observability.js.map +1 -1
- package/dist/schemas/policy.d.ts +11 -11
- package/dist/schemas/policy.d.ts.map +1 -1
- package/dist/schemas/policy.js +5 -12
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/presets.d.ts +109 -64
- package/dist/schemas/presets.d.ts.map +1 -1
- package/dist/schemas/presets.js +12 -48
- package/dist/schemas/presets.js.map +1 -1
- package/dist/schemas/principals.d.ts +28 -21
- package/dist/schemas/principals.d.ts.map +1 -1
- package/dist/schemas/principals.js +13 -25
- package/dist/schemas/principals.js.map +1 -1
- package/dist/schemas/profiles.d.ts +75 -63
- package/dist/schemas/profiles.d.ts.map +1 -1
- package/dist/schemas/profiles.js +24 -54
- package/dist/schemas/profiles.js.map +1 -1
- package/dist/schemas/roles.d.ts +22 -22
- package/dist/schemas/roles.d.ts.map +1 -1
- package/dist/schemas/roles.js +10 -17
- package/dist/schemas/roles.js.map +1 -1
- package/dist/schemas/schedules.d.ts +21 -15
- package/dist/schemas/schedules.d.ts.map +1 -1
- package/dist/schemas/schedules.js +4 -13
- package/dist/schemas/schedules.js.map +1 -1
- package/dist/schemas/served.d.ts +6373 -181
- package/dist/schemas/served.d.ts.map +1 -1
- package/dist/schemas/served.js +21 -0
- package/dist/schemas/served.js.map +1 -1
- package/dist/schemas/settings-schema.d.ts +1 -1
- package/dist/schemas/settings-schema.d.ts.map +1 -1
- package/dist/schemas/settings-schema.js +17 -19
- package/dist/schemas/settings-schema.js.map +1 -1
- package/dist/schemas/setup.d.ts +6 -6
- package/dist/schemas/setup.d.ts.map +1 -1
- package/dist/schemas/setup.js +2 -11
- package/dist/schemas/setup.js.map +1 -1
- package/dist/schemas/states.d.ts +450 -135
- package/dist/schemas/states.d.ts.map +1 -1
- package/dist/schemas/states.js +76 -140
- package/dist/schemas/states.js.map +1 -1
- package/dist/schemas/storage.d.ts +7 -8
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +8 -17
- package/dist/schemas/storage.js.map +1 -1
- package/dist/schemas/studio-plugins.d.ts +24 -18
- package/dist/schemas/studio-plugins.d.ts.map +1 -1
- package/dist/schemas/studio-plugins.js +5 -19
- package/dist/schemas/studio-plugins.js.map +1 -1
- package/dist/schemas/sub-mcp.d.ts +11 -8
- package/dist/schemas/sub-mcp.d.ts.map +1 -1
- package/dist/schemas/sub-mcp.js +10 -19
- package/dist/schemas/sub-mcp.js.map +1 -1
- package/dist/schemas/system-kinds.d.ts +76 -46
- package/dist/schemas/system-kinds.d.ts.map +1 -1
- package/dist/schemas/system-kinds.js +11 -28
- package/dist/schemas/system-kinds.js.map +1 -1
- package/dist/schemas/templates.d.ts +83 -25
- package/dist/schemas/templates.d.ts.map +1 -1
- package/dist/schemas/templates.js +8 -9
- package/dist/schemas/templates.js.map +1 -1
- package/dist/schemas/tool-meta.d.ts +15 -15
- package/dist/schemas/tool-meta.d.ts.map +1 -1
- package/dist/schemas/tool-meta.js +6 -21
- package/dist/schemas/tool-meta.js.map +1 -1
- package/dist/schemas/tools.d.ts +177 -56
- package/dist/schemas/tools.d.ts.map +1 -1
- package/dist/schemas/tools.js +20 -41
- package/dist/schemas/tools.js.map +1 -1
- package/dist/schemas/trigger-links.d.ts +22 -17
- package/dist/schemas/trigger-links.d.ts.map +1 -1
- package/dist/schemas/trigger-links.js +7 -27
- package/dist/schemas/trigger-links.js.map +1 -1
- package/dist/tool-runs.d.ts +175 -54
- package/dist/tool-runs.d.ts.map +1 -1
- package/dist/tool-runs.js +33 -34
- package/dist/tool-runs.js.map +1 -1
- package/package.json +4 -3
- package/src/agents.ts +16 -4
- package/src/client/agents-client.ts +3 -2
- package/src/client/auth-client.ts +102 -37
- package/src/client/backend-client.ts +8 -3
- package/src/client/backup-client.ts +8 -3
- package/src/client/capabilities-client.ts +4 -2
- package/src/client/channels-client.ts +3 -1
- package/src/client/config-client.ts +13 -5
- package/src/client/connectors-client.ts +91 -16
- package/src/client/conversations-client.ts +79 -30
- package/src/client/hooks-client.ts +25 -12
- package/src/client/index.ts +16 -4
- package/src/client/interactions-client.ts +40 -16
- package/src/client/login-client.ts +8 -4
- package/src/client/manifest-client.ts +48 -24
- package/src/client/marketplace-client.ts +23 -12
- package/src/client/mcp-config-schema-client.ts +2 -1
- package/src/client/notifications-client.ts +2 -1
- package/src/client/observability-client.ts +60 -8
- package/src/client/plugins-client.ts +2 -1
- package/src/client/policy-client.ts +24 -9
- package/src/client/presets-client.ts +26 -13
- package/src/client/profiles-client.ts +53 -24
- package/src/client/schedules-client.ts +14 -20
- package/src/client/settings-schema-client.ts +2 -1
- package/src/client/states-client.ts +151 -49
- package/src/client/storage-client.ts +43 -14
- package/src/client/sub-mcp-client.ts +10 -4
- package/src/client/system-client.ts +2 -1
- package/src/client/templates-client.ts +26 -7
- package/src/client/tool-extensions-client.ts +14 -7
- package/src/client/tool-meta-client.ts +46 -21
- package/src/client/tools-client.ts +13 -8
- package/src/client/trigger-links-client.ts +10 -6
- package/src/fleet-report.ts +48 -7
- package/src/generated/api-routes.ts +327 -0
- package/src/generated/openapi-schemas.ts +1508 -0
- package/src/generated/served-schemas.ts +7120 -40
- package/src/headers.ts +4 -0
- package/src/http.ts +4 -3
- package/src/index.ts +54 -10
- package/src/schemas/api-keys.ts +9 -25
- package/src/schemas/auth-routes.ts +27 -28
- package/src/schemas/backup.ts +33 -31
- package/src/schemas/capabilities.ts +16 -39
- package/src/schemas/channels.ts +4 -4
- package/src/schemas/config.ts +6 -6
- package/src/schemas/connectors.ts +61 -102
- package/src/schemas/conversations.ts +43 -133
- package/src/schemas/extensions.ts +7 -4
- package/src/schemas/fleet.ts +51 -51
- package/src/schemas/hooks.ts +18 -37
- package/src/schemas/index.ts +0 -1
- package/src/schemas/interactions.ts +227 -131
- package/src/schemas/login.ts +10 -41
- package/src/schemas/manifest-mcp.ts +13 -19
- package/src/schemas/marketplace.ts +37 -120
- package/src/schemas/members.ts +21 -51
- package/src/schemas/notifications.ts +10 -34
- package/src/schemas/observability.ts +34 -79
- package/src/schemas/policy.ts +5 -12
- package/src/schemas/presets.ts +13 -48
- package/src/schemas/principals.ts +17 -24
- package/src/schemas/profiles.ts +25 -55
- package/src/schemas/roles.ts +11 -17
- package/src/schemas/schedules.ts +4 -15
- package/src/schemas/served.ts +33 -0
- package/src/schemas/settings-schema.ts +18 -23
- package/src/schemas/setup.ts +4 -10
- package/src/schemas/states.ts +88 -139
- package/src/schemas/storage.ts +10 -16
- package/src/schemas/studio-plugins.ts +8 -19
- package/src/schemas/sub-mcp.ts +12 -18
- package/src/schemas/system-kinds.ts +12 -29
- package/src/schemas/templates.ts +8 -10
- package/src/schemas/tool-meta.ts +8 -20
- package/src/schemas/tools.ts +22 -45
- package/src/schemas/trigger-links.ts +8 -26
- package/src/tool-runs.ts +47 -38
- package/dist/client/web-entry-gate-client.d.ts +0 -34
- package/dist/client/web-entry-gate-client.d.ts.map +0 -1
- package/dist/client/web-entry-gate-client.js +0 -25
- package/dist/client/web-entry-gate-client.js.map +0 -1
- package/dist/schemas/web-entry.d.ts +0 -45
- package/dist/schemas/web-entry.d.ts.map +0 -1
- package/dist/schemas/web-entry.js +0 -36
- package/dist/schemas/web-entry.js.map +0 -1
- package/src/client/web-entry-gate-client.ts +0 -45
- package/src/schemas/web-entry.ts +0 -46
|
@@ -2,78 +2,68 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const answerFormat: z.ZodEnum<{
|
|
4
4
|
text: "text";
|
|
5
|
-
|
|
5
|
+
free: "free";
|
|
6
6
|
confirm: "confirm";
|
|
7
|
-
select: "select";
|
|
8
7
|
form: "form";
|
|
8
|
+
select: "select";
|
|
9
|
+
external: "external";
|
|
9
10
|
}>;
|
|
10
11
|
export type AnswerFormat = z.infer<typeof answerFormat>;
|
|
11
|
-
/** The kind of a
|
|
12
|
+
/** The kind of a display-only media item: an image, a link, or a document, video or audio file. */
|
|
12
13
|
export declare const mediaKind: z.ZodEnum<{
|
|
13
|
-
link: "link";
|
|
14
14
|
image: "image";
|
|
15
|
+
link: "link";
|
|
16
|
+
document: "document";
|
|
17
|
+
video: "video";
|
|
18
|
+
audio: "audio";
|
|
15
19
|
}>;
|
|
16
20
|
export type MediaKind = z.infer<typeof mediaKind>;
|
|
17
21
|
/**
|
|
18
|
-
* One item of a question's display-only media.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* so one malformed/hostile item is a loud per-item notice, not a whole-frame parse
|
|
22
|
-
* failure that would silently vanish an answerable question.
|
|
23
|
-
*
|
|
24
|
-
* `caption` is `.nullish()` (absent OR `null` both parse to a caption-less item):
|
|
25
|
-
* a caption-less item may arrive with the key omitted OR with an explicit `null`, so
|
|
26
|
-
* `.optional()` here would false-fail the explicit `null` and render a good image as
|
|
27
|
-
* malformed. `url` and `kind` are the only load-bearing fields; the image
|
|
28
|
-
* src scheme gate and the link neutralization are enforced by the renderer.
|
|
22
|
+
* One item of a question's display-only media. The renderer resolves `url` (the image src
|
|
23
|
+
* scheme gate and the link neutralization are enforced there); `caption` and `filename`
|
|
24
|
+
* are `null` when absent.
|
|
29
25
|
*/
|
|
30
26
|
export declare const interactionMediaItem: z.ZodObject<{
|
|
27
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
filename: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
31
29
|
kind: z.ZodEnum<{
|
|
32
|
-
link: "link";
|
|
33
30
|
image: "image";
|
|
31
|
+
link: "link";
|
|
32
|
+
document: "document";
|
|
33
|
+
video: "video";
|
|
34
|
+
audio: "audio";
|
|
34
35
|
}>;
|
|
35
36
|
url: z.ZodString;
|
|
36
|
-
|
|
37
|
-
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
38
|
export type InteractionMediaItem = z.infer<typeof interactionMediaItem>;
|
|
39
|
-
/**
|
|
40
|
-
* The kind of a byte-backed inbound attachment carried on a transcript record. A
|
|
41
|
-
* fetchable file — `image`/`document`/`audio`/`video` — never a `link`: a labelled
|
|
42
|
-
* anchor is question CONTEXT (see {@link mediaKind}), not a participant's sent file.
|
|
43
|
-
*/
|
|
39
|
+
/** The kind of an inbound attachment carried on a transcript record. */
|
|
44
40
|
export declare const attachmentMediaKind: z.ZodEnum<{
|
|
45
41
|
image: "image";
|
|
46
|
-
|
|
42
|
+
link: "link";
|
|
47
43
|
document: "document";
|
|
48
44
|
video: "video";
|
|
45
|
+
audio: "audio";
|
|
49
46
|
}>;
|
|
50
47
|
export type AttachmentMediaKind = z.infer<typeof attachmentMediaKind>;
|
|
51
48
|
/**
|
|
52
49
|
* One inbound attachment a participant sent, projected onto a transcript record's
|
|
53
|
-
* `inbound_attachments`.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* `url` is the served-media reference the renderer resolves to the API origin (the
|
|
59
|
-
* same served-url discipline the ask-media renderer uses); the image src scheme gate
|
|
60
|
-
* and the per-item load-failure notice are enforced there. `caption` and `filename`
|
|
61
|
-
* are `.nullish()` (absent OR explicit `null` both parse to absent): the projection
|
|
62
|
-
* may omit the key OR emit `null`, so `.optional()` alone would false-fail an explicit
|
|
63
|
-
* `null`. `filename` is meaningful only for a `document`; the renderer shows it as the
|
|
64
|
-
* download label.
|
|
50
|
+
* `inbound_attachments`. `url` is the served-media reference the renderer resolves to the
|
|
51
|
+
* API origin (the same served-url discipline the ask-media renderer uses); the image src
|
|
52
|
+
* scheme gate and the per-item load-failure notice are enforced there. `filename` is
|
|
53
|
+
* meaningful only for a `document`; the renderer shows it as the download label.
|
|
65
54
|
*/
|
|
66
55
|
export declare const attachmentMediaItem: z.ZodObject<{
|
|
56
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
filename: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
58
|
kind: z.ZodEnum<{
|
|
68
59
|
image: "image";
|
|
69
|
-
|
|
60
|
+
link: "link";
|
|
70
61
|
document: "document";
|
|
71
62
|
video: "video";
|
|
63
|
+
audio: "audio";
|
|
72
64
|
}>;
|
|
73
65
|
url: z.ZodString;
|
|
74
|
-
|
|
75
|
-
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
}, z.core.$strip>;
|
|
66
|
+
}, z.core.$strict>;
|
|
77
67
|
export type AttachmentMediaItem = z.infer<typeof attachmentMediaItem>;
|
|
78
68
|
/**
|
|
79
69
|
* One per-send choice for a `form` property whose schema is a string (or array of
|
|
@@ -83,9 +73,9 @@ export type AttachmentMediaItem = z.infer<typeof attachmentMediaItem>;
|
|
|
83
73
|
* the form preview (safeParsed), so a malformed entry is a loud notice, never silent.
|
|
84
74
|
*/
|
|
85
75
|
export declare const formOption: z.ZodObject<{
|
|
76
|
+
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
86
77
|
value: z.ZodString;
|
|
87
|
-
|
|
88
|
-
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strict>;
|
|
89
79
|
export type FormOption = z.infer<typeof formOption>;
|
|
90
80
|
/**
|
|
91
81
|
* Per-send `form` data: `values` prefills top-level properties (keyed by property
|
|
@@ -94,18 +84,18 @@ export type FormOption = z.infer<typeof formOption>;
|
|
|
94
84
|
* malformed block is a loud notice rather than a whole-frame parse failure.
|
|
95
85
|
*/
|
|
96
86
|
export declare const formData: z.ZodObject<{
|
|
97
|
-
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
87
|
options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
88
|
+
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
99
89
|
value: z.ZodString;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, z.core.$
|
|
90
|
+
}, z.core.$strict>>>>;
|
|
91
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
103
93
|
export type FormData = z.infer<typeof formData>;
|
|
104
94
|
/** The kind of an ordered display block a page may carry alongside its input fields. */
|
|
105
95
|
export declare const displayBlockKind: z.ZodEnum<{
|
|
106
|
-
image: "image";
|
|
107
96
|
heading: "heading";
|
|
108
97
|
body: "body";
|
|
98
|
+
image: "image";
|
|
109
99
|
}>;
|
|
110
100
|
export type DisplayBlockKind = z.infer<typeof displayBlockKind>;
|
|
111
101
|
/**
|
|
@@ -120,16 +110,16 @@ export type DisplayBlockKind = z.infer<typeof displayBlockKind>;
|
|
|
120
110
|
* so a malformed block is a loud notice, never silent.
|
|
121
111
|
*/
|
|
122
112
|
export declare const displayBlock: z.ZodObject<{
|
|
113
|
+
alt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
123
114
|
kind: z.ZodEnum<{
|
|
124
|
-
image: "image";
|
|
125
115
|
heading: "heading";
|
|
126
116
|
body: "body";
|
|
117
|
+
image: "image";
|
|
127
118
|
}>;
|
|
128
|
-
|
|
129
|
-
src: z.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}, z.core.$strip>;
|
|
119
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
src: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
}, z.core.$strict>;
|
|
133
123
|
export type DisplayBlock = z.infer<typeof displayBlock>;
|
|
134
124
|
/** A page's role: an ordinary `input` page (default) or a terminal `review` summary. */
|
|
135
125
|
export declare const formPageKind: z.ZodEnum<{
|
|
@@ -146,50 +136,299 @@ export type FormPageKind = z.infer<typeof formPageKind>;
|
|
|
146
136
|
* instead of, for a review page) its input fields; it defaults to empty, so a page that
|
|
147
137
|
* carries none renders exactly as before. `kind` marks a `review` page — a terminal
|
|
148
138
|
* summary step that shows the readback of entered values and the confirm/submit footer
|
|
149
|
-
* and carries no new input fields; it defaults to `input`.
|
|
139
|
+
* and carries no new input fields; it defaults to `input`. `button_label` is the text of
|
|
140
|
+
* the page's primary button — the one that advances from an input page, or submits from
|
|
141
|
+
* the last — in the sender's words and the end-user's language; absent (`null`), the
|
|
142
|
+
* surface shows its own generic word ("Next"/"Submit"/"Confirm"). All additive: an older
|
|
150
143
|
* payload ({title, fields}) parses unchanged.
|
|
151
144
|
*/
|
|
152
145
|
export declare const formPage: z.ZodObject<{
|
|
153
|
-
title: z.ZodString;
|
|
154
|
-
fields: z.ZodArray<z.ZodString>;
|
|
155
146
|
display: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
147
|
+
alt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
156
148
|
kind: z.ZodEnum<{
|
|
157
|
-
image: "image";
|
|
158
149
|
heading: "heading";
|
|
159
150
|
body: "body";
|
|
151
|
+
image: "image";
|
|
160
152
|
}>;
|
|
161
|
-
|
|
162
|
-
src: z.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
153
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
src: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
}, z.core.$strict>>>;
|
|
157
|
+
fields: z.ZodArray<z.ZodString>;
|
|
166
158
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
167
159
|
input: "input";
|
|
168
160
|
review: "review";
|
|
169
161
|
}>>;
|
|
170
|
-
|
|
162
|
+
title: z.ZodString;
|
|
163
|
+
button_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
}, z.core.$strict>;
|
|
171
165
|
export type FormPage = z.infer<typeof formPage>;
|
|
172
166
|
/** The `form` pages list (`format_payload.pages`), safeParsed as a whole by the preview. */
|
|
173
167
|
export declare const formPages: z.ZodArray<z.ZodObject<{
|
|
174
|
-
title: z.ZodString;
|
|
175
|
-
fields: z.ZodArray<z.ZodString>;
|
|
176
168
|
display: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
169
|
+
alt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
177
170
|
kind: z.ZodEnum<{
|
|
178
|
-
image: "image";
|
|
179
171
|
heading: "heading";
|
|
180
172
|
body: "body";
|
|
173
|
+
image: "image";
|
|
181
174
|
}>;
|
|
182
|
-
|
|
183
|
-
src: z.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
175
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
src: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
}, z.core.$strict>>>;
|
|
179
|
+
fields: z.ZodArray<z.ZodString>;
|
|
187
180
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
188
181
|
input: "input";
|
|
189
182
|
review: "review";
|
|
190
183
|
}>>;
|
|
191
|
-
|
|
184
|
+
title: z.ZodString;
|
|
185
|
+
button_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
192
187
|
export type FormPages = z.infer<typeof formPages>;
|
|
188
|
+
/**
|
|
189
|
+
* One form field's platform-drawn words (`wording.form.fields[name]`): `choice_label` is
|
|
190
|
+
* the placeholder of the field's picker (its empty-state prompt).
|
|
191
|
+
*/
|
|
192
|
+
export declare const fieldWording: z.ZodObject<{
|
|
193
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export type FieldWording = z.infer<typeof fieldWording>;
|
|
196
|
+
/**
|
|
197
|
+
* A form's platform-drawn chrome (`wording.form`): `title` heads the form surface;
|
|
198
|
+
* `open`/`cancel` label the buttons that open and close it; `back` the button that returns
|
|
199
|
+
* to the previous step; `submit` the terminal button of a form with no pages;
|
|
200
|
+
* `review_empty` the review step's line before anything is filled; `fields` carries
|
|
201
|
+
* per-field words keyed by property name. The inbox draws the form inline, so it reads
|
|
202
|
+
* `back`, `submit` and `fields`; `title`/`open`/`cancel`/`review_empty` parse unused.
|
|
203
|
+
*/
|
|
204
|
+
export declare const formWording: z.ZodObject<{
|
|
205
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
cancel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
|
+
back: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
review_empty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
212
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
}, z.core.$strip>>>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
export type FormWording = z.infer<typeof formWording>;
|
|
216
|
+
/**
|
|
217
|
+
* A choice list's platform-drawn words (`wording.choice`): `label` is the word on the
|
|
218
|
+
* control that presents the list, `reply_hint` the line under a numbered-text list, and
|
|
219
|
+
* `group_label` the accessible name of a flat group of option buttons. The inbox reads
|
|
220
|
+
* `label` (the select field's label and picker placeholder); the rest parse unused.
|
|
221
|
+
*/
|
|
222
|
+
export declare const choiceWording: z.ZodObject<{
|
|
223
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
group_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type ChoiceWording = z.infer<typeof choiceWording>;
|
|
228
|
+
/**
|
|
229
|
+
* A non-form question's answer controls and refusal sentences (`wording.answer`): `open`
|
|
230
|
+
* labels the control that opens a `confirm`/`external` question's answer page, `confirm`
|
|
231
|
+
* its affirmative control, `decline` its negative control, `submit` the button that sends a
|
|
232
|
+
* typed or picked answer, `reply_hint` the hint in an empty reply input. `rejected` /
|
|
233
|
+
* `rejected_final` are the sentences the end user reads when an answer is refused; the
|
|
234
|
+
* inbox draws neither (web-only). The inbox reads `open`, `confirm`, `decline`, `submit`
|
|
235
|
+
* and `reply_hint` where it draws the matching control.
|
|
236
|
+
*/
|
|
237
|
+
export declare const answerWording: z.ZodObject<{
|
|
238
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
decline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
rejected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
rejected_final: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export type AnswerWording = z.infer<typeof answerWording>;
|
|
247
|
+
/**
|
|
248
|
+
* The lines of a delivery message (`wording.lines`): `answer_link` carries the tappable
|
|
249
|
+
* answer link, `deadline` names the deadline, `reply` tells the end user how to reply, and
|
|
250
|
+
* `options` lists the choices. Drawn by the chat channels; the inbox draws none of them.
|
|
251
|
+
*/
|
|
252
|
+
export declare const lineWording: z.ZodObject<{
|
|
253
|
+
answer_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
255
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export type LineWording = z.infer<typeof lineWording>;
|
|
259
|
+
/** The heading and sentence of one platform-drawn answer page (`wording.answer_page.*`). */
|
|
260
|
+
export declare const pageCopy: z.ZodObject<{
|
|
261
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export type PageCopy = z.infer<typeof pageCopy>;
|
|
265
|
+
/**
|
|
266
|
+
* The form page's own sentences (`wording.answer_page.form`): `failed` when a send did not
|
|
267
|
+
* land, `network_error` when the browser could not reach the server, `update_failed` when a
|
|
268
|
+
* reacting form could not refresh, `choose_one` for an empty required multi-choice, and
|
|
269
|
+
* `date_unavailable` for a blocked date. Drawn by the callback form page; the inbox draws
|
|
270
|
+
* none of them.
|
|
271
|
+
*/
|
|
272
|
+
export declare const formPageWording: z.ZodObject<{
|
|
273
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
export type FormPageWording = z.infer<typeof formPageWording>;
|
|
280
|
+
/**
|
|
281
|
+
* The pages a question's link opens (`wording.answer_page`): `confirm` the confirm page's
|
|
282
|
+
* copy, `done` the already-answered page's, `awaiting` the reply-on-the-channel page's,
|
|
283
|
+
* `submitted` the form page's post-submit copy, and `form` the form page's own
|
|
284
|
+
* validation/error sentences. Drawn by the callback pages; the inbox draws none of them.
|
|
285
|
+
*/
|
|
286
|
+
export declare const answerPageWording: z.ZodObject<{
|
|
287
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
288
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
292
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
awaiting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
submitted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
300
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>>>;
|
|
303
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
304
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type AnswerPageWording = z.infer<typeof answerPageWording>;
|
|
312
|
+
/**
|
|
313
|
+
* A live question card's countdown words (`wording.status.countdown`): `seconds_left` the
|
|
314
|
+
* visible plural line, `one_second_left` the visible singular, and `under_minute` /
|
|
315
|
+
* `under_half_minute` / `under_ten_seconds` the spoken lines at the three thresholds. Drawn
|
|
316
|
+
* by the web widget; the inbox draws no countdown.
|
|
317
|
+
*/
|
|
318
|
+
export declare const countdownWording: z.ZodObject<{
|
|
319
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export type CountdownWording = z.infer<typeof countdownWording>;
|
|
326
|
+
/**
|
|
327
|
+
* In-flight and settled status copy (`wording.status`): `sending` the screen-reader label
|
|
328
|
+
* while a send is in flight, `answered` / `expired` / `closed` the badges once a question
|
|
329
|
+
* settles, `sent` the badge after an ask-less form is submitted, `unavailable` the line
|
|
330
|
+
* when a form's door no longer resolves, and `countdown` the live-countdown words. Drawn by
|
|
331
|
+
* the web widget; the inbox draws none of them.
|
|
332
|
+
*/
|
|
333
|
+
export declare const statusWording: z.ZodObject<{
|
|
334
|
+
sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
answered: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
expired: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
closed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
sent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
countdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
341
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
export type StatusWording = z.infer<typeof statusWording>;
|
|
349
|
+
/**
|
|
350
|
+
* The one catalogue of a send's platform-drawn texts (`format_payload.wording`), grouped
|
|
351
|
+
* by what each word decorates: the form (`form`), the choice list (`choice`), a question's
|
|
352
|
+
* answer controls and refusal sentences (`answer`), the lines of the delivery message
|
|
353
|
+
* (`lines`), the pages a question's link opens (`answer_page`), and in-flight and settled
|
|
354
|
+
* status (`status`). A page's primary button is the one text not here — it is on the page
|
|
355
|
+
* (`pages[].button_label`). Every leaf is the sender's own words in the end-user's
|
|
356
|
+
* language; absent (or `null`), the surface shows its own word.
|
|
357
|
+
*/
|
|
358
|
+
export declare const wording: z.ZodObject<{
|
|
359
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
360
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
cancel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
back: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
review_empty: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
367
|
+
choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
|
+
}, z.core.$strip>>>>;
|
|
369
|
+
}, z.core.$strip>>>;
|
|
370
|
+
choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
371
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
|
+
group_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
|
+
}, z.core.$strip>>>;
|
|
375
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
376
|
+
open: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
decline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
submit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
reply_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
rejected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
rejected_final: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
}, z.core.$strip>>>;
|
|
384
|
+
lines: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
385
|
+
answer_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
+
}, z.core.$strip>>>;
|
|
390
|
+
answer_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
391
|
+
confirm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
392
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
394
|
+
}, z.core.$strip>>>;
|
|
395
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
396
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
397
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
+
}, z.core.$strip>>>;
|
|
399
|
+
awaiting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
400
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
}, z.core.$strip>>>;
|
|
403
|
+
submitted: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
404
|
+
heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
}, z.core.$strip>>>;
|
|
407
|
+
form: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
408
|
+
failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
409
|
+
network_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
update_failed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
choose_one: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
date_unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
+
}, z.core.$strip>>>;
|
|
414
|
+
}, z.core.$strip>>>;
|
|
415
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
416
|
+
sending: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
+
answered: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
+
expired: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
419
|
+
closed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
|
+
sent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
countdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
423
|
+
seconds_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
one_second_left: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
under_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
under_half_minute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
under_ten_seconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
}, z.core.$strip>>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type Wording = z.infer<typeof wording>;
|
|
193
432
|
/**
|
|
194
433
|
* When a `form` reacts while it is open (`format_payload.reactions`): the plain,
|
|
195
434
|
* renderer-readable description of WHEN the form calls its reaction handler. Absent ⇒ a
|
|
@@ -209,68 +448,89 @@ export declare const formReactions: z.ZodObject<{
|
|
|
209
448
|
}, z.core.$strip>;
|
|
210
449
|
export type FormReactions = z.infer<typeof formReactions>;
|
|
211
450
|
/**
|
|
212
|
-
* The form update a reaction door returns (`POST /api/interactions/{id}/react
|
|
213
|
-
* same kind of data a form is sent with, applied to the open form. `values`
|
|
214
|
-
* values; `options` replaces the per-send choice list of option-bearing fields;
|
|
215
|
-
* shows per-field messages (keyed by field name); `display` fills display slots
|
|
216
|
-
* slot name) — a computed total among them. Every member defaults to empty, so a
|
|
217
|
-
* that touches only one of them returns only that one. The door response is safeParsed, so
|
|
451
|
+
* The form update a reaction door returns (`POST /api/interactions/{id}/react`, its
|
|
452
|
+
* `update`): the same kind of data a form is sent with, applied to the open form. `values`
|
|
453
|
+
* sets field values; `options` replaces the per-send choice list of option-bearing fields;
|
|
454
|
+
* `errors` shows per-field messages (keyed by field name); `display` fills display slots
|
|
455
|
+
* (keyed by slot name) — a computed total among them. Every member defaults to empty, so a
|
|
456
|
+
* reaction that touches only one of them returns only that one. The door response is safeParsed, so
|
|
218
457
|
* a malformed update surfaces loudly rather than applying a half-understood change.
|
|
219
458
|
*/
|
|
220
459
|
export declare const formUpdate: z.ZodObject<{
|
|
221
460
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
222
461
|
options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
462
|
+
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
223
463
|
value: z.ZodString;
|
|
224
|
-
|
|
225
|
-
}, z.core.$strip>>>>;
|
|
464
|
+
}, z.core.$strict>>>>;
|
|
226
465
|
errors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
227
466
|
display: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
228
467
|
}, z.core.$strip>;
|
|
229
468
|
export type FormUpdate = z.infer<typeof formUpdate>;
|
|
230
469
|
/**
|
|
231
|
-
* The event a reaction round-trip reports to the door
|
|
232
|
-
* declared events fired, `field` names the changed
|
|
233
|
-
* `page` names the advanced-from page (by title) for a
|
|
234
|
-
* `submitted` event carries neither. The body also carries the
|
|
235
|
-
* far (see {@link interactionsClient}'s `reactInteraction`).
|
|
470
|
+
* The event a reaction round-trip reports to the door (the contract's `FormReactionEvent`
|
|
471
|
+
* document): `kind` is which of the three declared events fired, `field` names the changed
|
|
472
|
+
* field for a `field_changed` event, and `page` names the advanced-from page (by title) for a
|
|
473
|
+
* `page_advanced` event. A `submitted` event carries neither. The body also carries the
|
|
474
|
+
* partial `values` filled so far (see {@link interactionsClient}'s `reactInteraction`).
|
|
236
475
|
*/
|
|
237
|
-
export declare const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
kind: z.
|
|
245
|
-
|
|
246
|
-
page_advanced: "page_advanced";
|
|
247
|
-
submitted: "submitted";
|
|
248
|
-
}>;
|
|
249
|
-
field: z.ZodOptional<z.ZodString>;
|
|
250
|
-
page: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, z.core.$strip>;
|
|
476
|
+
export declare const reactionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
|
+
field: z.ZodString;
|
|
478
|
+
kind: z.ZodDefault<z.ZodLiteral<"field_changed">>;
|
|
479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
480
|
+
kind: z.ZodDefault<z.ZodLiteral<"page_advanced">>;
|
|
481
|
+
page: z.ZodString;
|
|
482
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
483
|
+
kind: z.ZodDefault<z.ZodLiteral<"submitted">>;
|
|
484
|
+
}, z.core.$strict>], "kind">;
|
|
252
485
|
export type ReactionEvent = z.infer<typeof reactionEvent>;
|
|
253
|
-
export
|
|
486
|
+
export type ReactionEventKind = ReactionEvent['kind'];
|
|
487
|
+
/** The reaction door's reply: the interaction id and the form `update` to apply. */
|
|
488
|
+
export declare const interactionReaction: z.ZodObject<{
|
|
254
489
|
interaction_id: z.ZodString;
|
|
255
|
-
|
|
256
|
-
|
|
490
|
+
update: z.ZodObject<{
|
|
491
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
492
|
+
options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
493
|
+
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
494
|
+
value: z.ZodString;
|
|
495
|
+
}, z.core.$strict>>>>;
|
|
496
|
+
errors: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
497
|
+
display: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
export type InteractionReaction = z.infer<typeof interactionReaction>;
|
|
501
|
+
export declare const interaction: z.ZodObject<{
|
|
257
502
|
answer_format: z.ZodEnum<{
|
|
258
503
|
text: "text";
|
|
259
|
-
|
|
504
|
+
free: "free";
|
|
260
505
|
confirm: "confirm";
|
|
261
|
-
select: "select";
|
|
262
506
|
form: "form";
|
|
507
|
+
select: "select";
|
|
508
|
+
external: "external";
|
|
263
509
|
}>;
|
|
264
|
-
|
|
510
|
+
audience: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
265
512
|
created_at: z.ZodString;
|
|
513
|
+
group_id: z.ZodString;
|
|
514
|
+
interaction_id: z.ZodString;
|
|
515
|
+
media: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
516
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
517
|
+
filename: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
518
|
+
kind: z.ZodEnum<{
|
|
519
|
+
image: "image";
|
|
520
|
+
link: "link";
|
|
521
|
+
document: "document";
|
|
522
|
+
video: "video";
|
|
523
|
+
audio: "audio";
|
|
524
|
+
}>;
|
|
525
|
+
url: z.ZodString;
|
|
526
|
+
}, z.core.$strict>>>>;
|
|
527
|
+
origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
question: z.ZodString;
|
|
529
|
+
recipient: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
530
|
+
sensitive: z.ZodBoolean;
|
|
531
|
+
server_verified: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
266
532
|
timeout_at: z.ZodString;
|
|
267
|
-
|
|
268
|
-
server_verified: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
270
|
-
recipient: z.ZodOptional<z.ZodString>;
|
|
271
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
272
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
273
|
-
media: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
533
|
+
format_payload: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown> | null | undefined>>;
|
|
274
534
|
}, z.core.$strip>;
|
|
275
535
|
export type Interaction = z.infer<typeof interaction>;
|
|
276
536
|
/** The answer door's response — the blocked caller was woken. */
|
|
@@ -296,32 +556,44 @@ export type InteractionCancelled = z.infer<typeof interactionCancelled>;
|
|
|
296
556
|
* set is the paged base the tail-only stream applies live deltas over.
|
|
297
557
|
*/
|
|
298
558
|
export declare const interactionsPage: z.ZodObject<{
|
|
299
|
-
|
|
559
|
+
next_page: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
300
560
|
page: z.ZodNumber;
|
|
301
561
|
page_size: z.ZodNumber;
|
|
302
|
-
|
|
562
|
+
total: z.ZodNumber;
|
|
303
563
|
truncated: z.ZodBoolean;
|
|
304
564
|
items: z.ZodArray<z.ZodObject<{
|
|
305
|
-
interaction_id: z.ZodString;
|
|
306
|
-
group_id: z.ZodString;
|
|
307
|
-
question: z.ZodDefault<z.ZodString>;
|
|
308
565
|
answer_format: z.ZodEnum<{
|
|
309
566
|
text: "text";
|
|
310
|
-
|
|
567
|
+
free: "free";
|
|
311
568
|
confirm: "confirm";
|
|
312
|
-
select: "select";
|
|
313
569
|
form: "form";
|
|
570
|
+
select: "select";
|
|
571
|
+
external: "external";
|
|
314
572
|
}>;
|
|
315
|
-
|
|
573
|
+
audience: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
574
|
+
channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
316
575
|
created_at: z.ZodString;
|
|
576
|
+
group_id: z.ZodString;
|
|
577
|
+
interaction_id: z.ZodString;
|
|
578
|
+
media: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
579
|
+
caption: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
580
|
+
filename: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
581
|
+
kind: z.ZodEnum<{
|
|
582
|
+
image: "image";
|
|
583
|
+
link: "link";
|
|
584
|
+
document: "document";
|
|
585
|
+
video: "video";
|
|
586
|
+
audio: "audio";
|
|
587
|
+
}>;
|
|
588
|
+
url: z.ZodString;
|
|
589
|
+
}, z.core.$strict>>>>;
|
|
590
|
+
origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
question: z.ZodString;
|
|
592
|
+
recipient: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
593
|
+
sensitive: z.ZodBoolean;
|
|
594
|
+
server_verified: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
317
595
|
timeout_at: z.ZodString;
|
|
318
|
-
|
|
319
|
-
server_verified: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
321
|
-
recipient: z.ZodOptional<z.ZodString>;
|
|
322
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
323
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
324
|
-
media: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
596
|
+
format_payload: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown>, Record<string, unknown> | null | undefined>>;
|
|
325
597
|
}, z.core.$strip>>;
|
|
326
598
|
}, z.core.$strip>;
|
|
327
599
|
export type InteractionsPage = z.infer<typeof interactionsPage>;
|