@zapier/zapier-sdk 0.0.3 → 0.1.1

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 (189) hide show
  1. package/dist/api/auth.d.ts +8 -0
  2. package/dist/api/auth.js +29 -0
  3. package/dist/api/client.d.ts +8 -0
  4. package/dist/api/client.js +102 -0
  5. package/dist/api/debug.d.ts +12 -0
  6. package/dist/api/debug.js +50 -0
  7. package/dist/api/index.d.ts +26 -0
  8. package/dist/api/index.js +51 -0
  9. package/dist/api/polling.d.ts +17 -0
  10. package/dist/api/polling.js +34 -0
  11. package/dist/{types.d.ts → api/types.d.ts} +37 -88
  12. package/dist/api/types.js +9 -0
  13. package/dist/functions/{bundleCode.d.ts → bundleCode/index.d.ts} +1 -8
  14. package/dist/functions/bundleCode/info.d.ts +27 -0
  15. package/dist/functions/bundleCode/info.js +11 -0
  16. package/dist/functions/bundleCode/schemas.d.ts +27 -0
  17. package/dist/functions/bundleCode/schemas.js +22 -0
  18. package/dist/functions/findFirstAuthentication/index.d.ts +12 -0
  19. package/dist/functions/findFirstAuthentication/index.js +21 -0
  20. package/dist/functions/findFirstAuthentication/info.d.ts +30 -0
  21. package/dist/functions/findFirstAuthentication/info.js +11 -0
  22. package/dist/functions/findFirstAuthentication/schemas.d.ts +42 -0
  23. package/dist/functions/findFirstAuthentication/schemas.js +25 -0
  24. package/dist/functions/findUniqueAuthentication/index.d.ts +13 -0
  25. package/dist/functions/findUniqueAuthentication/index.js +28 -0
  26. package/dist/functions/findUniqueAuthentication/info.d.ts +30 -0
  27. package/dist/functions/findUniqueAuthentication/info.js +11 -0
  28. package/dist/functions/findUniqueAuthentication/schemas.d.ts +42 -0
  29. package/dist/functions/findUniqueAuthentication/schemas.js +25 -0
  30. package/dist/functions/{generateTypes.d.ts → generateTypes/index.d.ts} +2 -7
  31. package/dist/functions/{generateTypes.js → generateTypes/index.js} +58 -24
  32. package/dist/functions/generateTypes/info.d.ts +21 -0
  33. package/dist/functions/generateTypes/info.js +11 -0
  34. package/dist/functions/generateTypes/schemas.d.ts +30 -0
  35. package/dist/functions/generateTypes/schemas.js +14 -0
  36. package/dist/functions/{getAction.d.ts → getAction/index.d.ts} +2 -6
  37. package/dist/functions/{getAction.js → getAction/index.js} +6 -5
  38. package/dist/functions/getAction/info.d.ts +18 -0
  39. package/dist/functions/getAction/info.js +11 -0
  40. package/dist/functions/getAction/schemas.d.ts +30 -0
  41. package/dist/functions/getAction/schemas.js +13 -0
  42. package/dist/functions/{getApp.d.ts → getApp/index.d.ts} +2 -4
  43. package/dist/functions/{getApp.js → getApp/index.js} +6 -10
  44. package/dist/functions/getApp/info.d.ts +12 -0
  45. package/dist/functions/getApp/info.js +11 -0
  46. package/dist/functions/getApp/schemas.d.ts +24 -0
  47. package/dist/functions/getApp/schemas.js +11 -0
  48. package/dist/functions/{listActions.d.ts → listActions/index.d.ts} +3 -6
  49. package/dist/functions/{listActions.js → listActions/index.js} +4 -3
  50. package/dist/functions/listActions/info.d.ts +15 -0
  51. package/dist/functions/listActions/info.js +11 -0
  52. package/dist/functions/listActions/schemas.d.ts +27 -0
  53. package/dist/functions/listActions/schemas.js +14 -0
  54. package/dist/functions/{listApps.d.ts → listApps/index.d.ts} +2 -6
  55. package/dist/functions/{listApps.js → listApps/index.js} +1 -1
  56. package/dist/functions/listApps/info.d.ts +18 -0
  57. package/dist/functions/listApps/info.js +11 -0
  58. package/dist/functions/listApps/schemas.d.ts +30 -0
  59. package/dist/functions/listApps/schemas.js +15 -0
  60. package/dist/functions/{listAuths.d.ts → listAuthentications/index.d.ts} +3 -9
  61. package/dist/functions/{listAuths.js → listAuthentications/index.js} +28 -12
  62. package/dist/functions/listAuthentications/info.d.ts +30 -0
  63. package/dist/functions/listAuthentications/info.js +11 -0
  64. package/dist/functions/listAuthentications/schemas.d.ts +42 -0
  65. package/dist/functions/listAuthentications/schemas.js +25 -0
  66. package/dist/functions/{listFields.d.ts → listFields/index.d.ts} +3 -9
  67. package/dist/functions/{listFields.js → listFields/index.js} +8 -10
  68. package/dist/functions/listFields/info.d.ts +24 -0
  69. package/dist/functions/listFields/info.js +11 -0
  70. package/dist/functions/listFields/schemas.d.ts +36 -0
  71. package/dist/functions/listFields/schemas.js +17 -0
  72. package/dist/functions/{runAction.d.ts → runAction/index.d.ts} +2 -8
  73. package/dist/functions/{runAction.js → runAction/index.js} +15 -14
  74. package/dist/functions/runAction/info.d.ts +24 -0
  75. package/dist/functions/runAction/info.js +11 -0
  76. package/dist/functions/runAction/schemas.d.ts +36 -0
  77. package/dist/functions/runAction/schemas.js +15 -0
  78. package/dist/index.d.ts +10 -4
  79. package/dist/index.js +17 -6
  80. package/dist/plugins/apps/index.d.ts +8 -0
  81. package/dist/plugins/apps/index.js +77 -0
  82. package/dist/plugins/apps/info.d.ts +6 -0
  83. package/dist/plugins/apps/info.js +13 -0
  84. package/dist/plugins/apps/types.d.ts +21 -0
  85. package/dist/plugins/apps/types.js +2 -0
  86. package/dist/resolvers/actionKey.d.ts +8 -0
  87. package/dist/resolvers/actionKey.js +20 -0
  88. package/dist/resolvers/actionType.d.ts +8 -0
  89. package/dist/resolvers/actionType.js +21 -0
  90. package/dist/resolvers/appKey.d.ts +6 -0
  91. package/dist/resolvers/appKey.js +8 -0
  92. package/dist/resolvers/authenticationId.d.ts +8 -0
  93. package/dist/resolvers/authenticationId.js +29 -0
  94. package/dist/resolvers/index.d.ts +39 -0
  95. package/dist/resolvers/index.js +105 -0
  96. package/dist/resolvers/inputs.d.ts +7 -0
  97. package/dist/resolvers/inputs.js +15 -0
  98. package/dist/schema-utils.d.ts +44 -0
  99. package/dist/schema-utils.js +76 -0
  100. package/dist/schemas/Action.d.ts +21 -0
  101. package/dist/schemas/Action.js +31 -0
  102. package/dist/schemas/App.d.ts +19 -0
  103. package/dist/schemas/App.js +32 -0
  104. package/dist/schemas/Auth.d.ts +27 -0
  105. package/dist/schemas/Auth.js +42 -0
  106. package/dist/schemas/Field.d.ts +15 -0
  107. package/dist/schemas/Field.js +25 -0
  108. package/dist/sdk.d.ts +3 -4
  109. package/dist/sdk.js +104 -11
  110. package/dist/types/domain.d.ts +22 -0
  111. package/dist/types/domain.js +21 -0
  112. package/dist/types/properties.d.ts +21 -0
  113. package/dist/types/properties.js +43 -0
  114. package/dist/types/sdk.d.ts +23 -0
  115. package/dist/types/sdk.js +2 -0
  116. package/package.json +4 -2
  117. package/src/api/auth.ts +28 -0
  118. package/src/api/client.ts +148 -0
  119. package/src/api/debug.ts +58 -0
  120. package/src/api/index.ts +83 -0
  121. package/src/api/polling.ts +56 -0
  122. package/src/api/types.ts +177 -0
  123. package/src/functions/{bundleCode.ts → bundleCode/index.ts} +1 -8
  124. package/src/functions/bundleCode/info.ts +9 -0
  125. package/src/functions/bundleCode/schemas.ts +30 -0
  126. package/src/functions/findFirstAuthentication/index.ts +24 -0
  127. package/src/functions/findFirstAuthentication/info.ts +9 -0
  128. package/src/functions/findFirstAuthentication/schemas.ts +60 -0
  129. package/src/functions/findUniqueAuthentication/index.ts +35 -0
  130. package/src/functions/findUniqueAuthentication/info.ts +9 -0
  131. package/src/functions/findUniqueAuthentication/schemas.ts +60 -0
  132. package/src/functions/{generateTypes.ts → generateTypes/index.ts} +70 -31
  133. package/src/functions/generateTypes/info.ts +9 -0
  134. package/src/functions/generateTypes/schemas.ts +38 -0
  135. package/src/functions/{getAction.ts → getAction/index.ts} +11 -12
  136. package/src/functions/getAction/info.ts +9 -0
  137. package/src/functions/getAction/schemas.ts +35 -0
  138. package/src/functions/{getApp.ts → getApp/index.ts} +9 -15
  139. package/src/functions/getApp/info.ts +9 -0
  140. package/src/functions/getApp/schemas.ts +31 -0
  141. package/src/functions/{listActions.ts → listActions/index.ts} +8 -10
  142. package/src/functions/listActions/info.ts +9 -0
  143. package/src/functions/listActions/schemas.ts +40 -0
  144. package/src/functions/{listApps.ts → listApps/index.ts} +3 -8
  145. package/src/functions/listApps/info.ts +9 -0
  146. package/src/functions/listApps/schemas.ts +43 -0
  147. package/src/functions/{listAuths.ts → listAuthentications/index.ts} +32 -23
  148. package/src/functions/listAuthentications/info.ts +9 -0
  149. package/src/functions/listAuthentications/schemas.ts +60 -0
  150. package/src/functions/{listFields.ts → listFields/index.ts} +11 -20
  151. package/src/functions/listFields/info.ts +9 -0
  152. package/src/functions/listFields/schemas.ts +46 -0
  153. package/src/functions/{runAction.ts → runAction/index.ts} +25 -23
  154. package/src/functions/runAction/info.ts +9 -0
  155. package/src/functions/runAction/schemas.ts +41 -0
  156. package/src/index.ts +19 -5
  157. package/src/plugins/apps/index.ts +144 -0
  158. package/src/plugins/apps/info.ts +12 -0
  159. package/src/plugins/apps/types.ts +34 -0
  160. package/src/resolvers/actionKey.ts +33 -0
  161. package/src/resolvers/actionType.ts +30 -0
  162. package/src/resolvers/appKey.ts +11 -0
  163. package/src/resolvers/authenticationId.ts +38 -0
  164. package/src/resolvers/index.ts +117 -0
  165. package/src/resolvers/inputs.ts +23 -0
  166. package/src/schema-utils.ts +154 -0
  167. package/src/schemas/Action.ts +40 -0
  168. package/src/schemas/App.ts +43 -0
  169. package/src/schemas/Auth.ts +54 -0
  170. package/src/schemas/Field.ts +34 -0
  171. package/src/sdk.ts +165 -19
  172. package/src/types/domain.ts +54 -0
  173. package/src/types/properties.ts +67 -0
  174. package/src/types/sdk.ts +46 -0
  175. package/dist/actions-sdk.d.ts +0 -47
  176. package/dist/actions-sdk.js +0 -208
  177. package/dist/api.d.ts +0 -62
  178. package/dist/api.js +0 -227
  179. package/dist/output-schemas.d.ts +0 -95
  180. package/dist/output-schemas.js +0 -138
  181. package/dist/schemas.d.ts +0 -338
  182. package/dist/schemas.js +0 -336
  183. package/dist/types.js +0 -41
  184. package/src/actions-sdk.ts +0 -356
  185. package/src/api.ts +0 -361
  186. package/src/output-schemas.ts +0 -196
  187. package/src/schemas.ts +0 -467
  188. package/src/types.ts +0 -257
  189. /package/dist/functions/{bundleCode.js → bundleCode/index.js} +0 -0
@@ -1,138 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FieldItemSchema = exports.AuthItemSchema = exports.ActionItemSchema = exports.AppItemSchema = void 0;
4
- exports.withOutputSchema = withOutputSchema;
5
- exports.getFormatMetadata = getFormatMetadata;
6
- exports.getOutputSchema = getOutputSchema;
7
- const zod_1 = require("zod");
8
- // ============================================================================
9
- // Schema Enhancement Helpers
10
- // ============================================================================
11
- // Helper function to add format metadata to schemas
12
- function withFormatter(schema, formatMeta) {
13
- // Store format metadata on the schema definition
14
- schema._def.formatMeta = formatMeta;
15
- return schema;
16
- }
17
- // Helper function to link input schemas to output schemas
18
- function withOutputSchema(inputSchema, outputSchema) {
19
- // Store output schema reference on the input schema
20
- inputSchema._def.outputSchema = outputSchema;
21
- return inputSchema;
22
- }
23
- // Helper function to get format metadata from a schema
24
- function getFormatMetadata(schema) {
25
- return schema._def.formatMeta;
26
- }
27
- // Helper function to get output schema from an input schema
28
- function getOutputSchema(inputSchema) {
29
- return inputSchema._def.outputSchema;
30
- }
31
- // ============================================================================
32
- // Output Item Schemas
33
- // ============================================================================
34
- exports.AppItemSchema = withFormatter(zod_1.z.object({
35
- key: zod_1.z.string(),
36
- name: zod_1.z.string().optional(),
37
- description: zod_1.z.string().optional(),
38
- category: zod_1.z.string().optional(),
39
- }), {
40
- format: (item) => {
41
- const details = [];
42
- if (item.description) {
43
- details.push({ text: item.description, style: "dim" });
44
- }
45
- if (item.category) {
46
- details.push({
47
- text: `Category: ${item.category}`,
48
- style: "accent",
49
- });
50
- }
51
- return {
52
- title: item.name || item.key,
53
- subtitle: `(${item.key})`,
54
- details,
55
- };
56
- },
57
- });
58
- exports.ActionItemSchema = withFormatter(zod_1.z.object({
59
- key: zod_1.z.string(),
60
- name: zod_1.z.string().optional(),
61
- type: zod_1.z.string(),
62
- appKey: zod_1.z.string().optional(),
63
- description: zod_1.z.string().optional(),
64
- }), {
65
- format: (item) => {
66
- const details = [];
67
- details.push({ text: `Type: ${item.type}`, style: "accent" });
68
- if (item.appKey) {
69
- details.push({ text: `App: ${item.appKey}`, style: "normal" });
70
- }
71
- if (item.description) {
72
- details.push({ text: item.description, style: "dim" });
73
- }
74
- return {
75
- title: item.name || item.key,
76
- subtitle: `(${item.key})`,
77
- details,
78
- };
79
- },
80
- });
81
- exports.AuthItemSchema = withFormatter(zod_1.z.object({
82
- id: zod_1.z.number(),
83
- title: zod_1.z.string().optional(),
84
- label: zod_1.z.string().optional(),
85
- identifier: zod_1.z.string().optional(),
86
- account_id: zod_1.z.string().optional(),
87
- is_private: zod_1.z.boolean().optional(),
88
- shared_with_all: zod_1.z.boolean().optional(),
89
- marked_stale_at: zod_1.z.string().optional(),
90
- }), {
91
- format: (item) => {
92
- const details = [];
93
- if (item.identifier) {
94
- details.push({
95
- text: `Identifier: ${item.identifier}`,
96
- style: "accent",
97
- });
98
- }
99
- if (item.label && item.title && item.label !== item.title) {
100
- details.push({
101
- text: `Label: ${item.label}`,
102
- style: "normal",
103
- });
104
- }
105
- details.push({
106
- text: `Account: ${item.account_id || "unknown"} | Private: ${item.is_private || false} | Shared: ${item.shared_with_all || false}`,
107
- style: "dim",
108
- });
109
- if (item.marked_stale_at) {
110
- details.push({
111
- text: `⚠️ Marked stale: ${new Date(item.marked_stale_at).toLocaleDateString()}`,
112
- style: "warning",
113
- });
114
- }
115
- return {
116
- title: item.title || item.label || `Authentication ${item.id}`,
117
- subtitle: `(ID: ${item.id})`,
118
- details,
119
- };
120
- },
121
- });
122
- exports.FieldItemSchema = withFormatter(zod_1.z.object({
123
- key: zod_1.z.string(),
124
- name: zod_1.z.string().optional(),
125
- description: zod_1.z.string().optional(),
126
- }), {
127
- format: (item) => {
128
- const details = [];
129
- if (item.description) {
130
- details.push({ text: item.description, style: "dim" });
131
- }
132
- return {
133
- title: item.name || item.key,
134
- subtitle: `(${item.key})`,
135
- details,
136
- };
137
- },
138
- });
package/dist/schemas.d.ts DELETED
@@ -1,338 +0,0 @@
1
- import { z } from "zod";
2
- export interface StaticResolver {
3
- type: "static";
4
- inputType?: "input" | "password" | "editor";
5
- placeholder?: string;
6
- }
7
- export interface DynamicResolver {
8
- type: "dynamic";
9
- fetch: (sdk: any, resolvedParams: any) => Promise<any[]>;
10
- prompt: (items: any[], params: any) => any;
11
- depends?: string[];
12
- }
13
- export interface FieldsResolver {
14
- type: "fields";
15
- fetch: (sdk: any, resolvedParams: any) => Promise<any[]>;
16
- depends?: string[];
17
- }
18
- export interface ResolverMetadata {
19
- resolver?: StaticResolver | DynamicResolver | FieldsResolver;
20
- }
21
- export declare const AppsListSchema: z.ZodObject<{
22
- limit: z.ZodOptional<z.ZodNumber>;
23
- offset: z.ZodOptional<z.ZodNumber>;
24
- category: z.ZodOptional<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- category?: string | undefined;
27
- limit?: number | undefined;
28
- offset?: number | undefined;
29
- }, {
30
- category?: string | undefined;
31
- limit?: number | undefined;
32
- offset?: number | undefined;
33
- }>;
34
- export declare const AppsGetSchema: z.ZodObject<{
35
- key: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- key: string;
38
- }, {
39
- key: string;
40
- }>;
41
- export declare const FieldsListSchema: z.ZodObject<{
42
- app: z.ZodString;
43
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
44
- action: z.ZodString;
45
- authId: z.ZodOptional<z.ZodNumber>;
46
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47
- }, "strip", z.ZodTypeAny, {
48
- action: string;
49
- type: "create" | "update" | "search" | "delete" | "read" | "write";
50
- app: string;
51
- authId?: number | undefined;
52
- params?: Record<string, any> | undefined;
53
- }, {
54
- action: string;
55
- type: "create" | "update" | "search" | "delete" | "read" | "write";
56
- app: string;
57
- authId?: number | undefined;
58
- params?: Record<string, any> | undefined;
59
- }>;
60
- export declare const ActionsListSchema: z.ZodObject<{
61
- appKey: z.ZodString;
62
- type: z.ZodOptional<z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>>;
63
- }, "strip", z.ZodTypeAny, {
64
- appKey: string;
65
- type?: "create" | "update" | "search" | "delete" | "read" | "write" | undefined;
66
- }, {
67
- appKey: string;
68
- type?: "create" | "update" | "search" | "delete" | "read" | "write" | undefined;
69
- }>;
70
- export declare const ActionsGetSchema: z.ZodObject<{
71
- app: z.ZodString;
72
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
73
- action: z.ZodString;
74
- }, "strip", z.ZodTypeAny, {
75
- action: string;
76
- type: "create" | "update" | "search" | "delete" | "read" | "write";
77
- app: string;
78
- }, {
79
- action: string;
80
- type: "create" | "update" | "search" | "delete" | "read" | "write";
81
- app: string;
82
- }>;
83
- export declare const ActionsRunSchema: z.ZodObject<{
84
- app: z.ZodString;
85
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
86
- action: z.ZodString;
87
- inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
88
- authId: z.ZodOptional<z.ZodNumber>;
89
- }, "strip", z.ZodTypeAny, {
90
- action: string;
91
- type: "create" | "update" | "search" | "delete" | "read" | "write";
92
- app: string;
93
- inputs?: Record<string, any> | undefined;
94
- authId?: number | undefined;
95
- }, {
96
- action: string;
97
- type: "create" | "update" | "search" | "delete" | "read" | "write";
98
- app: string;
99
- inputs?: Record<string, any> | undefined;
100
- authId?: number | undefined;
101
- }>;
102
- export declare const AuthsListSchema: z.ZodObject<{
103
- limit: z.ZodOptional<z.ZodNumber>;
104
- offset: z.ZodOptional<z.ZodNumber>;
105
- appKey: z.ZodString;
106
- account_id: z.ZodOptional<z.ZodString>;
107
- owner: z.ZodOptional<z.ZodString>;
108
- }, "strip", z.ZodTypeAny, {
109
- appKey: string;
110
- account_id?: string | undefined;
111
- owner?: string | undefined;
112
- limit?: number | undefined;
113
- offset?: number | undefined;
114
- }, {
115
- appKey: string;
116
- account_id?: string | undefined;
117
- owner?: string | undefined;
118
- limit?: number | undefined;
119
- offset?: number | undefined;
120
- }>;
121
- export declare const AuthsFindSchema: z.ZodObject<{
122
- appKey: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- appKey: string;
125
- }, {
126
- appKey: string;
127
- }>;
128
- export declare const GenerateSchema: z.ZodObject<{
129
- appKey: z.ZodString;
130
- token: z.ZodOptional<z.ZodString>;
131
- authId: z.ZodOptional<z.ZodNumber>;
132
- output: z.ZodOptional<z.ZodString>;
133
- debug: z.ZodDefault<z.ZodBoolean>;
134
- }, "strip", z.ZodTypeAny, {
135
- debug: boolean;
136
- appKey: string;
137
- token?: string | undefined;
138
- authId?: number | undefined;
139
- output?: string | undefined;
140
- }, {
141
- appKey: string;
142
- token?: string | undefined;
143
- debug?: boolean | undefined;
144
- authId?: number | undefined;
145
- output?: string | undefined;
146
- }>;
147
- export declare const BundleSchema: z.ZodObject<{
148
- input: z.ZodString;
149
- output: z.ZodOptional<z.ZodString>;
150
- string: z.ZodDefault<z.ZodBoolean>;
151
- minify: z.ZodDefault<z.ZodBoolean>;
152
- target: z.ZodDefault<z.ZodString>;
153
- cjs: z.ZodDefault<z.ZodBoolean>;
154
- }, "strip", z.ZodTypeAny, {
155
- string: boolean;
156
- input: string;
157
- target: string;
158
- cjs: boolean;
159
- minify: boolean;
160
- output?: string | undefined;
161
- }, {
162
- input: string;
163
- string?: boolean | undefined;
164
- output?: string | undefined;
165
- target?: string | undefined;
166
- cjs?: boolean | undefined;
167
- minify?: boolean | undefined;
168
- }>;
169
- export declare const SdkSchemas: {
170
- readonly apps: {
171
- readonly list: z.ZodObject<{
172
- limit: z.ZodOptional<z.ZodNumber>;
173
- offset: z.ZodOptional<z.ZodNumber>;
174
- category: z.ZodOptional<z.ZodString>;
175
- }, "strip", z.ZodTypeAny, {
176
- category?: string | undefined;
177
- limit?: number | undefined;
178
- offset?: number | undefined;
179
- }, {
180
- category?: string | undefined;
181
- limit?: number | undefined;
182
- offset?: number | undefined;
183
- }>;
184
- readonly get: z.ZodObject<{
185
- key: z.ZodString;
186
- }, "strip", z.ZodTypeAny, {
187
- key: string;
188
- }, {
189
- key: string;
190
- }>;
191
- };
192
- readonly actions: {
193
- readonly list: z.ZodObject<{
194
- appKey: z.ZodString;
195
- type: z.ZodOptional<z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>>;
196
- }, "strip", z.ZodTypeAny, {
197
- appKey: string;
198
- type?: "create" | "update" | "search" | "delete" | "read" | "write" | undefined;
199
- }, {
200
- appKey: string;
201
- type?: "create" | "update" | "search" | "delete" | "read" | "write" | undefined;
202
- }>;
203
- readonly get: z.ZodObject<{
204
- app: z.ZodString;
205
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
206
- action: z.ZodString;
207
- }, "strip", z.ZodTypeAny, {
208
- action: string;
209
- type: "create" | "update" | "search" | "delete" | "read" | "write";
210
- app: string;
211
- }, {
212
- action: string;
213
- type: "create" | "update" | "search" | "delete" | "read" | "write";
214
- app: string;
215
- }>;
216
- readonly run: z.ZodObject<{
217
- app: z.ZodString;
218
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
219
- action: z.ZodString;
220
- inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
221
- authId: z.ZodOptional<z.ZodNumber>;
222
- }, "strip", z.ZodTypeAny, {
223
- action: string;
224
- type: "create" | "update" | "search" | "delete" | "read" | "write";
225
- app: string;
226
- inputs?: Record<string, any> | undefined;
227
- authId?: number | undefined;
228
- }, {
229
- action: string;
230
- type: "create" | "update" | "search" | "delete" | "read" | "write";
231
- app: string;
232
- inputs?: Record<string, any> | undefined;
233
- authId?: number | undefined;
234
- }>;
235
- };
236
- readonly auths: {
237
- readonly list: z.ZodObject<{
238
- limit: z.ZodOptional<z.ZodNumber>;
239
- offset: z.ZodOptional<z.ZodNumber>;
240
- appKey: z.ZodString;
241
- account_id: z.ZodOptional<z.ZodString>;
242
- owner: z.ZodOptional<z.ZodString>;
243
- }, "strip", z.ZodTypeAny, {
244
- appKey: string;
245
- account_id?: string | undefined;
246
- owner?: string | undefined;
247
- limit?: number | undefined;
248
- offset?: number | undefined;
249
- }, {
250
- appKey: string;
251
- account_id?: string | undefined;
252
- owner?: string | undefined;
253
- limit?: number | undefined;
254
- offset?: number | undefined;
255
- }>;
256
- readonly find: z.ZodObject<{
257
- appKey: z.ZodString;
258
- }, "strip", z.ZodTypeAny, {
259
- appKey: string;
260
- }, {
261
- appKey: string;
262
- }>;
263
- };
264
- readonly fields: {
265
- readonly list: z.ZodObject<{
266
- app: z.ZodString;
267
- type: z.ZodEnum<["read", "write", "search", "create", "update", "delete"]>;
268
- action: z.ZodString;
269
- authId: z.ZodOptional<z.ZodNumber>;
270
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
271
- }, "strip", z.ZodTypeAny, {
272
- action: string;
273
- type: "create" | "update" | "search" | "delete" | "read" | "write";
274
- app: string;
275
- authId?: number | undefined;
276
- params?: Record<string, any> | undefined;
277
- }, {
278
- action: string;
279
- type: "create" | "update" | "search" | "delete" | "read" | "write";
280
- app: string;
281
- authId?: number | undefined;
282
- params?: Record<string, any> | undefined;
283
- }>;
284
- };
285
- readonly generate: z.ZodObject<{
286
- appKey: z.ZodString;
287
- token: z.ZodOptional<z.ZodString>;
288
- authId: z.ZodOptional<z.ZodNumber>;
289
- output: z.ZodOptional<z.ZodString>;
290
- debug: z.ZodDefault<z.ZodBoolean>;
291
- }, "strip", z.ZodTypeAny, {
292
- debug: boolean;
293
- appKey: string;
294
- token?: string | undefined;
295
- authId?: number | undefined;
296
- output?: string | undefined;
297
- }, {
298
- appKey: string;
299
- token?: string | undefined;
300
- debug?: boolean | undefined;
301
- authId?: number | undefined;
302
- output?: string | undefined;
303
- }>;
304
- readonly bundle: z.ZodObject<{
305
- input: z.ZodString;
306
- output: z.ZodOptional<z.ZodString>;
307
- string: z.ZodDefault<z.ZodBoolean>;
308
- minify: z.ZodDefault<z.ZodBoolean>;
309
- target: z.ZodDefault<z.ZodString>;
310
- cjs: z.ZodDefault<z.ZodBoolean>;
311
- }, "strip", z.ZodTypeAny, {
312
- string: boolean;
313
- input: string;
314
- target: string;
315
- cjs: boolean;
316
- minify: boolean;
317
- output?: string | undefined;
318
- }, {
319
- input: string;
320
- string?: boolean | undefined;
321
- output?: string | undefined;
322
- target?: string | undefined;
323
- cjs?: boolean | undefined;
324
- minify?: boolean | undefined;
325
- }>;
326
- };
327
- export type AppsListOptions = z.infer<typeof AppsListSchema>;
328
- export type AppsGetOptions = z.infer<typeof AppsGetSchema>;
329
- export type ActionsListOptions = z.infer<typeof ActionsListSchema>;
330
- export type ActionsGetOptions = z.infer<typeof ActionsGetSchema>;
331
- export type ActionsRunOptions = z.infer<typeof ActionsRunSchema>;
332
- export type AuthsListOptions = z.infer<typeof AuthsListSchema>;
333
- export type AuthsFindOptions = z.infer<typeof AuthsFindSchema>;
334
- export type FieldsListOptions = z.infer<typeof FieldsListSchema>;
335
- export type GenerateOptions = z.infer<typeof GenerateSchema>;
336
- export type BundleOptions = z.infer<typeof BundleSchema>;
337
- export declare function getSchemaDescription(schema: z.ZodSchema): string | undefined;
338
- export declare function getFieldDescriptions(schema: z.ZodObject<any>): Record<string, string>;