@zapier/zapier-sdk 0.12.0 → 0.13.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/CHANGELOG.md +12 -0
- package/README.md +336 -128
- package/dist/api/schemas.d.ts +10 -865
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -6
- package/dist/index.cjs +108 -58
- package/dist/index.d.mts +88 -434
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +108 -58
- package/dist/plugins/apps/index.d.ts +2 -2
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +21 -0
- package/dist/plugins/apps/schemas.d.ts +51 -0
- package/dist/plugins/apps/schemas.d.ts.map +1 -0
- package/dist/plugins/apps/schemas.js +13 -0
- package/dist/plugins/findFirstAuthentication/schemas.js +1 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +1 -1
- package/dist/plugins/getApp/schemas.js +1 -1
- package/dist/plugins/getAuthentication/index.test.js +1 -1
- package/dist/plugins/listActions/index.d.ts +1 -0
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.d.ts +3 -0
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.js +2 -1
- package/dist/plugins/listApps/index.d.ts +1 -0
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.d.ts +3 -0
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.js +1 -0
- package/dist/plugins/listAuthentications/index.d.ts +1 -0
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +2 -1
- package/dist/plugins/listInputFieldChoices/index.d.ts +1 -0
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +1 -0
- package/dist/plugins/listInputFields/index.d.ts +1 -0
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +3 -0
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.js +1 -0
- package/dist/plugins/registry/index.d.ts.map +1 -1
- package/dist/plugins/registry/index.js +12 -1
- package/dist/plugins/runAction/index.d.ts +1 -0
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.d.ts +3 -0
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.js +1 -0
- package/dist/schemas/Action.d.ts +4 -206
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +3 -2
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +1 -0
- package/dist/schemas/Auth.d.ts +10 -10
- package/dist/schemas/Auth.js +1 -1
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +4 -1
- package/dist/types/sdk.d.ts +1 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/domain-utils.d.ts +2 -2
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +19 -8
- package/dist/utils/schema-utils.d.ts +1 -0
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/schemas.ts +0 -6
- package/src/index.ts +1 -0
- package/src/plugins/apps/index.ts +28 -7
- package/src/plugins/apps/{types.ts → schemas.ts} +27 -9
- package/src/plugins/findFirstAuthentication/schemas.ts +1 -1
- package/src/plugins/findUniqueAuthentication/schemas.ts +1 -1
- package/src/plugins/getApp/schemas.ts +1 -1
- package/src/plugins/getAuthentication/index.test.ts +1 -1
- package/src/plugins/listActions/index.ts +1 -0
- package/src/plugins/listActions/schemas.ts +2 -1
- package/src/plugins/listApps/index.ts +4 -1
- package/src/plugins/listApps/schemas.ts +1 -0
- package/src/plugins/listAuthentications/index.ts +1 -0
- package/src/plugins/listAuthentications/schemas.ts +2 -1
- package/src/plugins/listInputFieldChoices/index.ts +1 -0
- package/src/plugins/listInputFieldChoices/schemas.ts +1 -0
- package/src/plugins/listInputFields/index.ts +1 -0
- package/src/plugins/listInputFields/schemas.ts +1 -0
- package/src/plugins/registry/index.ts +12 -1
- package/src/plugins/runAction/index.ts +4 -1
- package/src/plugins/runAction/schemas.ts +1 -0
- package/src/schemas/Action.ts +3 -2
- package/src/schemas/App.ts +1 -0
- package/src/schemas/Auth.ts +1 -1
- package/src/types/properties.ts +4 -1
- package/src/types/sdk.ts +1 -1
- package/src/utils/domain-utils.ts +22 -9
- package/src/utils/schema-utils.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/plugins/apps/types.d.ts +0 -30
- package/dist/plugins/apps/types.d.ts.map +0 -1
- package/dist/plugins/apps/types.js +0 -2
|
@@ -13,12 +13,14 @@ export declare const ListAuthenticationsSchema: z.ZodObject<{
|
|
|
13
13
|
owner: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"me">]>>;
|
|
14
14
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
15
15
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
search?: string | undefined;
|
|
18
19
|
title?: string | undefined;
|
|
19
20
|
appKey?: string | undefined;
|
|
20
21
|
pageSize?: number | undefined;
|
|
21
22
|
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
22
24
|
accountId?: string | undefined;
|
|
23
25
|
owner?: string | undefined;
|
|
24
26
|
authenticationIds?: string[] | undefined;
|
|
@@ -28,6 +30,7 @@ export declare const ListAuthenticationsSchema: z.ZodObject<{
|
|
|
28
30
|
appKey?: string | undefined;
|
|
29
31
|
pageSize?: number | undefined;
|
|
30
32
|
maxItems?: number | undefined;
|
|
33
|
+
cursor?: string | undefined;
|
|
31
34
|
accountId?: string | undefined;
|
|
32
35
|
owner?: string | undefined;
|
|
33
36
|
authenticationIds?: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listAuthentications/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listAuthentications/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC+B,CAAC;AAGtE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAGF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,wBAAwB,GAChC,yBAAyB,GACzB,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,8BAA8B;IAC7C,mBAAmB,EAAE,oBAAoB,CACvC,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;CACH"}
|
|
@@ -3,7 +3,7 @@ import { AppKeyPropertySchema } from "../../types/properties";
|
|
|
3
3
|
// Pure Zod schema - no resolver metadata!
|
|
4
4
|
export const ListAuthenticationsSchema = z
|
|
5
5
|
.object({
|
|
6
|
-
appKey: AppKeyPropertySchema.optional().describe("App key of authentications to list (e.g., 'SlackCLIAPI')"),
|
|
6
|
+
appKey: AppKeyPropertySchema.optional().describe("App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github')"),
|
|
7
7
|
authenticationIds: z
|
|
8
8
|
.array(z.string())
|
|
9
9
|
.optional()
|
|
@@ -31,5 +31,6 @@ export const ListAuthenticationsSchema = z
|
|
|
31
31
|
.min(1)
|
|
32
32
|
.optional()
|
|
33
33
|
.describe("Maximum total items to return across all pages"),
|
|
34
|
+
cursor: z.string().optional().describe("Cursor to start from"),
|
|
34
35
|
})
|
|
35
36
|
.describe("List available authentications with optional filtering");
|
|
@@ -6,6 +6,7 @@ import type { GetActionPluginProvides } from "../getAction";
|
|
|
6
6
|
export interface ListInputFieldChoicesPluginProvides {
|
|
7
7
|
listInputFieldChoices: (options: ListInputFieldChoicesOptions) => Promise<{
|
|
8
8
|
data: InputFieldChoiceItem[];
|
|
9
|
+
nextCursor?: string;
|
|
9
10
|
}> & AsyncIterable<{
|
|
10
11
|
data: InputFieldChoiceItem[];
|
|
11
12
|
nextCursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/index.ts"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AE;QACP,IAAI,EAAE;YACJ,qBAAqB,EAAE;gBACrB,WAAW,EAAE,OAAO,2BAA2B,CAAC;aACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,UAAU,CAAC,uBAAuB,CAAC,EAAE,4BAA4B;AACjE;IAAE,GAAG,EAAE,SAAS,CAAA;CAAE,EAAE,0BAA0B;AAC9C,mCAAmC,CAkHpC,CAAC"}
|
|
@@ -30,6 +30,7 @@ export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
|
30
30
|
page: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
33
34
|
}, "strip", z.ZodTypeAny, {
|
|
34
35
|
appKey: string;
|
|
35
36
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -40,6 +41,7 @@ export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
|
40
41
|
inputs?: Record<string, unknown> | undefined;
|
|
41
42
|
pageSize?: number | undefined;
|
|
42
43
|
maxItems?: number | undefined;
|
|
44
|
+
cursor?: string | undefined;
|
|
43
45
|
}, {
|
|
44
46
|
appKey: string;
|
|
45
47
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -50,6 +52,7 @@ export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
|
50
52
|
inputs?: Record<string, unknown> | undefined;
|
|
51
53
|
pageSize?: number | undefined;
|
|
52
54
|
maxItems?: number | undefined;
|
|
55
|
+
cursor?: string | undefined;
|
|
53
56
|
}>;
|
|
54
57
|
export type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
|
|
55
58
|
export type ListInputFieldChoicesError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EA0BrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EA0BrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCmC,CAAC;AAG5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CACnC,CAAC;AAGF,MAAM,MAAM,0BAA0B,GAClC,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB,EAAE,oBAAoB,CACzC,4BAA4B,EAC5B,oBAAoB,CACrB,CAAC;CACH"}
|
|
@@ -60,5 +60,6 @@ export const ListInputFieldChoicesSchema = z
|
|
|
60
60
|
.min(1)
|
|
61
61
|
.optional()
|
|
62
62
|
.describe("Maximum total items to return across all pages"),
|
|
63
|
+
cursor: z.string().optional().describe("Cursor to start from"),
|
|
63
64
|
})
|
|
64
65
|
.describe("Get the available choices for a dynamic dropdown input field");
|
|
@@ -7,6 +7,7 @@ import type { GetVersionedImplementationId } from "../manifest/schemas";
|
|
|
7
7
|
export interface ListInputFieldsPluginProvides {
|
|
8
8
|
listInputFields: (options?: ListInputFieldsOptions) => Promise<{
|
|
9
9
|
data: RootFieldItem[];
|
|
10
|
+
nextCursor?: string;
|
|
10
11
|
}> & AsyncIterable<{
|
|
11
12
|
data: RootFieldItem[];
|
|
12
13
|
nextCursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAE5B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,o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O,MAAM,qBAAqB,EAAE,MAAM,CACxC,UAAU,CAAC,oBAAoB,CAAC,EAAE,yBAAyB;AAC3D;IACE,GAAG,EAAE,SAAS,CAAC;IACf,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,EAAE,2DAA2D;AAC9D,6BAA6B,CAmF9B,CAAC"}
|
|
@@ -12,6 +12,7 @@ export declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
12
12
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
appKey: string;
|
|
17
18
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -20,6 +21,7 @@ export declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
20
21
|
inputs?: Record<string, unknown> | undefined;
|
|
21
22
|
pageSize?: number | undefined;
|
|
22
23
|
maxItems?: number | undefined;
|
|
24
|
+
cursor?: string | undefined;
|
|
23
25
|
}, {
|
|
24
26
|
appKey: string;
|
|
25
27
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -28,6 +30,7 @@ export declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
28
30
|
inputs?: Record<string, unknown> | undefined;
|
|
29
31
|
pageSize?: number | undefined;
|
|
30
32
|
maxItems?: number | undefined;
|
|
33
|
+
cursor?: string | undefined;
|
|
31
34
|
}>;
|
|
32
35
|
export type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
|
|
33
36
|
export type ListInputFieldsError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBgC,CAAC;AAGnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAG3E,MAAM,MAAM,oBAAoB,GAC5B,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,oBAAoB,CACnC,sBAAsB,EACtB,aAAa,EAAE,CAChB,CAAC;CACH"}
|
|
@@ -18,5 +18,6 @@ export const ListInputFieldsSchema = z
|
|
|
18
18
|
.min(1)
|
|
19
19
|
.optional()
|
|
20
20
|
.describe("Maximum total items to return across all pages"),
|
|
21
|
+
cursor: z.string().optional().describe("Cursor to start from"),
|
|
21
22
|
})
|
|
22
23
|
.describe("Get the input fields required for a specific action");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,6BAA6B;CAAG;AAEjD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK;QAC/C,SAAS,EAAE,qBAAqB,EAAE,CAAC;QACnC,UAAU,EAAE;YACV,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,EAAE,CAAC;SACrB,EAAE,CAAC;KACL,CAAC;CACH;AAGD,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,EAAE,EAAE,wBAAwB;AAC5B,EAAE,EAAE,sBAAsB;AAC1B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,6BAA6B;CAAG;AAEjD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK;QAC/C,SAAS,EAAE,qBAAqB,EAAE,CAAC;QACnC,UAAU,EAAE;YACV,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,EAAE,CAAC;SACrB,EAAE,CAAC;KACL,CAAC;CACH;AAGD,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,EAAE,EAAE,wBAAwB;AAC5B,EAAE,EAAE,sBAAsB;AAC1B,sBAAsB,CA0IvB,CAAC"}
|
|
@@ -27,7 +27,18 @@ export const registryPlugin = ({ sdk, context }) => {
|
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
const functions = metaKeys
|
|
30
|
-
.filter((key) =>
|
|
30
|
+
.filter((key) => {
|
|
31
|
+
const property = sdk[key];
|
|
32
|
+
if (typeof property === "function") {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
const [rootKey] = key.split(".");
|
|
36
|
+
const rootProperty = sdk[rootKey];
|
|
37
|
+
if (typeof rootProperty === "object" && rootProperty !== null) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
})
|
|
31
42
|
.map((key) => {
|
|
32
43
|
const meta = context.meta[key];
|
|
33
44
|
return {
|
|
@@ -7,6 +7,7 @@ import type { GetVersionedImplementationId } from "../manifest/schemas";
|
|
|
7
7
|
export interface RunActionPluginProvides {
|
|
8
8
|
runAction: (options?: RunActionOptions) => Promise<{
|
|
9
9
|
data: any[];
|
|
10
|
+
nextCursor?: string;
|
|
10
11
|
}> & AsyncIterable<{
|
|
11
12
|
data: any[];
|
|
12
13
|
nextCursor?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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C;KAC7B,CAAC;IACJ,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,SAAS,EAAE;gBACT,WAAW,EAAE,OAAO,eAAe,CAAC;aACrC,CAAC;SACH,CAAC;KACH,CAAC;CACH;AA4ED,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,UAAU,CAAC,uBAAuB,GAAG,oBAAoB,CAAC,EAAE,uCAAuC;AACnG;IACE,GAAG,EAAE,SAAS,CAAC;IACf,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,EAAE,0BAA0B;AAC7B,uBAAuB,CAmFxB,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
11
11
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
appKey: string;
|
|
16
17
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -19,6 +20,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
19
20
|
inputs?: Record<string, unknown> | undefined;
|
|
20
21
|
pageSize?: number | undefined;
|
|
21
22
|
maxItems?: number | undefined;
|
|
23
|
+
cursor?: string | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
appKey: string;
|
|
24
26
|
actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
@@ -27,6 +29,7 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
27
29
|
inputs?: Record<string, unknown> | undefined;
|
|
28
30
|
pageSize?: number | undefined;
|
|
29
31
|
maxItems?: number | undefined;
|
|
32
|
+
cursor?: string | undefined;
|
|
30
33
|
}>;
|
|
31
34
|
export type RunActionOptions = z.infer<typeof RunActionSchema>;
|
|
32
35
|
export interface RunActionPage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB0B,CAAC;AAGvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG/D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;CAC5D"}
|
package/dist/schemas/Action.d.ts
CHANGED
|
@@ -4,133 +4,13 @@ export declare const ActionItemSchema: z.ZodObject<Omit<{
|
|
|
4
4
|
type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
|
|
5
5
|
key: z.ZodString;
|
|
6
6
|
name: z.ZodString;
|
|
7
|
-
noun: z.ZodOptional<z.ZodString>;
|
|
8
7
|
description: z.ZodString;
|
|
9
|
-
description_html: z.ZodOptional<z.ZodString>;
|
|
10
8
|
is_important: z.ZodOptional<z.ZodBoolean>;
|
|
11
9
|
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
-
key: z.ZodString;
|
|
14
|
-
alters_custom_fields: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
-
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
-
key: z.ZodOptional<z.ZodString>;
|
|
18
|
-
label: z.ZodOptional<z.ZodString>;
|
|
19
|
-
sample: z.ZodOptional<z.ZodString>;
|
|
20
|
-
value: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
value?: string | undefined;
|
|
23
|
-
key?: string | undefined;
|
|
24
|
-
label?: string | undefined;
|
|
25
|
-
sample?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
value?: string | undefined;
|
|
28
|
-
key?: string | undefined;
|
|
29
|
-
label?: string | undefined;
|
|
30
|
-
sample?: string | undefined;
|
|
31
|
-
}>, "many">>;
|
|
32
|
-
computed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
-
custom_field: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
default: z.ZodOptional<z.ZodString>;
|
|
35
|
-
depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
-
format: z.ZodOptional<z.ZodLiteral<"SELECT">>;
|
|
37
|
-
from_search: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
from_write: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
help_text: z.ZodOptional<z.ZodString>;
|
|
40
|
-
help_text_html: z.ZodOptional<z.ZodString>;
|
|
41
|
-
input_format: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
label: z.ZodOptional<z.ZodString>;
|
|
43
|
-
language: z.ZodOptional<z.ZodString>;
|
|
44
|
-
parent_key: z.ZodOptional<z.ZodString>;
|
|
45
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
46
|
-
prefill: z.ZodOptional<z.ZodString>;
|
|
47
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
searchfill: z.ZodOptional<z.ZodString>;
|
|
49
|
-
send_in_json: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
regex: z.ZodOptional<z.ZodString>;
|
|
51
|
-
type: z.ZodOptional<z.ZodEnum<["integer", "string", "text", "datetime", "boolean", "file", "decimal", "copy", "password", "dict", "code", "filter", "json"]>>;
|
|
52
|
-
list: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
key: string;
|
|
55
|
-
default?: string | undefined;
|
|
56
|
-
type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
|
|
57
|
-
label?: string | undefined;
|
|
58
|
-
alters_custom_fields?: boolean | null | undefined;
|
|
59
|
-
capabilities?: string[] | undefined;
|
|
60
|
-
choices?: {
|
|
61
|
-
value?: string | undefined;
|
|
62
|
-
key?: string | undefined;
|
|
63
|
-
label?: string | undefined;
|
|
64
|
-
sample?: string | undefined;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
computed?: boolean | null | undefined;
|
|
67
|
-
custom_field?: boolean | undefined;
|
|
68
|
-
depends_on?: string[] | undefined;
|
|
69
|
-
format?: "SELECT" | undefined;
|
|
70
|
-
from_search?: boolean | undefined;
|
|
71
|
-
from_write?: boolean | undefined;
|
|
72
|
-
help_text?: string | undefined;
|
|
73
|
-
help_text_html?: string | undefined;
|
|
74
|
-
input_format?: string[] | undefined;
|
|
75
|
-
language?: string | undefined;
|
|
76
|
-
parent_key?: string | undefined;
|
|
77
|
-
placeholder?: string | undefined;
|
|
78
|
-
prefill?: string | undefined;
|
|
79
|
-
required?: boolean | undefined;
|
|
80
|
-
searchfill?: string | undefined;
|
|
81
|
-
send_in_json?: boolean | undefined;
|
|
82
|
-
regex?: string | undefined;
|
|
83
|
-
list?: boolean | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
key: string;
|
|
86
|
-
default?: string | undefined;
|
|
87
|
-
type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
|
|
88
|
-
label?: string | undefined;
|
|
89
|
-
alters_custom_fields?: boolean | null | undefined;
|
|
90
|
-
capabilities?: string[] | undefined;
|
|
91
|
-
choices?: {
|
|
92
|
-
value?: string | undefined;
|
|
93
|
-
key?: string | undefined;
|
|
94
|
-
label?: string | undefined;
|
|
95
|
-
sample?: string | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
computed?: boolean | null | undefined;
|
|
98
|
-
custom_field?: boolean | undefined;
|
|
99
|
-
depends_on?: string[] | undefined;
|
|
100
|
-
format?: "SELECT" | undefined;
|
|
101
|
-
from_search?: boolean | undefined;
|
|
102
|
-
from_write?: boolean | undefined;
|
|
103
|
-
help_text?: string | undefined;
|
|
104
|
-
help_text_html?: string | undefined;
|
|
105
|
-
input_format?: string[] | undefined;
|
|
106
|
-
language?: string | undefined;
|
|
107
|
-
parent_key?: string | undefined;
|
|
108
|
-
placeholder?: string | undefined;
|
|
109
|
-
prefill?: string | undefined;
|
|
110
|
-
required?: boolean | undefined;
|
|
111
|
-
searchfill?: string | undefined;
|
|
112
|
-
send_in_json?: boolean | undefined;
|
|
113
|
-
regex?: string | undefined;
|
|
114
|
-
list?: boolean | undefined;
|
|
115
|
-
}>, "many">>;
|
|
116
|
-
meta: z.ZodOptional<z.ZodString>;
|
|
117
10
|
selected_api: z.ZodOptional<z.ZodString>;
|
|
118
|
-
|
|
119
|
-
action_url: z.ZodOptional<z.ZodString>;
|
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
action_url?: string | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
action_url?: string | undefined;
|
|
124
|
-
}>>;
|
|
125
|
-
permissions: z.ZodOptional<z.ZodObject<{
|
|
126
|
-
can_use: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
can_use?: boolean | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
can_use?: boolean | undefined;
|
|
131
|
-
}>>;
|
|
132
|
-
}, "type" | "name"> & {
|
|
11
|
+
}, "type" | "name" | "selected_api"> & {
|
|
133
12
|
app_key: z.ZodString;
|
|
13
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
134
14
|
action_type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
|
|
135
15
|
title: z.ZodString;
|
|
136
16
|
type: z.ZodLiteral<"action">;
|
|
@@ -142,50 +22,9 @@ export declare const ActionItemSchema: z.ZodObject<Omit<{
|
|
|
142
22
|
app_key: string;
|
|
143
23
|
action_type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
144
24
|
id?: string | undefined;
|
|
145
|
-
noun?: string | undefined;
|
|
146
|
-
description_html?: string | undefined;
|
|
147
25
|
is_important?: boolean | undefined;
|
|
148
26
|
is_hidden?: boolean | undefined;
|
|
149
|
-
|
|
150
|
-
key: string;
|
|
151
|
-
default?: string | undefined;
|
|
152
|
-
type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
|
|
153
|
-
label?: string | undefined;
|
|
154
|
-
alters_custom_fields?: boolean | null | undefined;
|
|
155
|
-
capabilities?: string[] | undefined;
|
|
156
|
-
choices?: {
|
|
157
|
-
value?: string | undefined;
|
|
158
|
-
key?: string | undefined;
|
|
159
|
-
label?: string | undefined;
|
|
160
|
-
sample?: string | undefined;
|
|
161
|
-
}[] | undefined;
|
|
162
|
-
computed?: boolean | null | undefined;
|
|
163
|
-
custom_field?: boolean | undefined;
|
|
164
|
-
depends_on?: string[] | undefined;
|
|
165
|
-
format?: "SELECT" | undefined;
|
|
166
|
-
from_search?: boolean | undefined;
|
|
167
|
-
from_write?: boolean | undefined;
|
|
168
|
-
help_text?: string | undefined;
|
|
169
|
-
help_text_html?: string | undefined;
|
|
170
|
-
input_format?: string[] | undefined;
|
|
171
|
-
language?: string | undefined;
|
|
172
|
-
parent_key?: string | undefined;
|
|
173
|
-
placeholder?: string | undefined;
|
|
174
|
-
prefill?: string | undefined;
|
|
175
|
-
required?: boolean | undefined;
|
|
176
|
-
searchfill?: string | undefined;
|
|
177
|
-
send_in_json?: boolean | undefined;
|
|
178
|
-
regex?: string | undefined;
|
|
179
|
-
list?: boolean | undefined;
|
|
180
|
-
}[] | undefined;
|
|
181
|
-
meta?: string | undefined;
|
|
182
|
-
selected_api?: string | undefined;
|
|
183
|
-
links?: {
|
|
184
|
-
action_url?: string | undefined;
|
|
185
|
-
} | undefined;
|
|
186
|
-
permissions?: {
|
|
187
|
-
can_use?: boolean | undefined;
|
|
188
|
-
} | undefined;
|
|
27
|
+
app_version?: string | undefined;
|
|
189
28
|
}, {
|
|
190
29
|
type: "action";
|
|
191
30
|
key: string;
|
|
@@ -194,50 +33,9 @@ export declare const ActionItemSchema: z.ZodObject<Omit<{
|
|
|
194
33
|
app_key: string;
|
|
195
34
|
action_type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
|
|
196
35
|
id?: string | undefined;
|
|
197
|
-
noun?: string | undefined;
|
|
198
|
-
description_html?: string | undefined;
|
|
199
36
|
is_important?: boolean | undefined;
|
|
200
37
|
is_hidden?: boolean | undefined;
|
|
201
|
-
|
|
202
|
-
key: string;
|
|
203
|
-
default?: string | undefined;
|
|
204
|
-
type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
|
|
205
|
-
label?: string | undefined;
|
|
206
|
-
alters_custom_fields?: boolean | null | undefined;
|
|
207
|
-
capabilities?: string[] | undefined;
|
|
208
|
-
choices?: {
|
|
209
|
-
value?: string | undefined;
|
|
210
|
-
key?: string | undefined;
|
|
211
|
-
label?: string | undefined;
|
|
212
|
-
sample?: string | undefined;
|
|
213
|
-
}[] | undefined;
|
|
214
|
-
computed?: boolean | null | undefined;
|
|
215
|
-
custom_field?: boolean | undefined;
|
|
216
|
-
depends_on?: string[] | undefined;
|
|
217
|
-
format?: "SELECT" | undefined;
|
|
218
|
-
from_search?: boolean | undefined;
|
|
219
|
-
from_write?: boolean | undefined;
|
|
220
|
-
help_text?: string | undefined;
|
|
221
|
-
help_text_html?: string | undefined;
|
|
222
|
-
input_format?: string[] | undefined;
|
|
223
|
-
language?: string | undefined;
|
|
224
|
-
parent_key?: string | undefined;
|
|
225
|
-
placeholder?: string | undefined;
|
|
226
|
-
prefill?: string | undefined;
|
|
227
|
-
required?: boolean | undefined;
|
|
228
|
-
searchfill?: string | undefined;
|
|
229
|
-
send_in_json?: boolean | undefined;
|
|
230
|
-
regex?: string | undefined;
|
|
231
|
-
list?: boolean | undefined;
|
|
232
|
-
}[] | undefined;
|
|
233
|
-
meta?: string | undefined;
|
|
234
|
-
selected_api?: string | undefined;
|
|
235
|
-
links?: {
|
|
236
|
-
action_url?: string | undefined;
|
|
237
|
-
} | undefined;
|
|
238
|
-
permissions?: {
|
|
239
|
-
can_use?: boolean | undefined;
|
|
240
|
-
} | undefined;
|
|
38
|
+
app_version?: string | undefined;
|
|
241
39
|
}>;
|
|
242
40
|
export type ActionItem = z.infer<typeof ActionItemSchema>;
|
|
243
41
|
//# sourceMappingURL=Action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/schemas/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/schemas/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC5B,CAAC;AAMF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/schemas/Action.js
CHANGED
|
@@ -4,8 +4,9 @@ import { ActionSchema } from "../api/schemas";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
// Action Item Schema (extends API schema with computed fields and formatting)
|
|
6
6
|
// ============================================================================
|
|
7
|
-
export const ActionItemSchema = withFormatter(ActionSchema.omit({ type: true, name: true }).extend({
|
|
8
|
-
app_key: z.string(), //
|
|
7
|
+
export const ActionItemSchema = withFormatter(ActionSchema.omit({ type: true, name: true, selected_api: true }).extend({
|
|
8
|
+
app_key: z.string(), // App key without version (extracted from selected_api)
|
|
9
|
+
app_version: z.string().optional(), // Version extracted from selected_api
|
|
9
10
|
action_type: ActionSchema.shape.type, // Mapped from original 'type' field
|
|
10
11
|
title: z.string(), // Mapped from original 'name' field
|
|
11
12
|
type: z.literal("action"), // Fixed type identifier
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/schemas/App.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/schemas/App.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/schemas/App.js
CHANGED
package/dist/schemas/Auth.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
25
25
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
26
26
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
app_key: z.ZodOptional<z.ZodString>;
|
|
28
|
-
|
|
28
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
29
29
|
user_id: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
id: number;
|
|
@@ -36,7 +36,6 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
36
36
|
shared_with_all: boolean;
|
|
37
37
|
url?: string | undefined;
|
|
38
38
|
label?: string | null | undefined;
|
|
39
|
-
permissions?: Record<string, boolean> | undefined;
|
|
40
39
|
lastchanged?: string | undefined;
|
|
41
40
|
destination_selected_api?: string | null | undefined;
|
|
42
41
|
is_stale?: string | undefined;
|
|
@@ -46,12 +45,13 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
46
45
|
title?: string | null | undefined;
|
|
47
46
|
groups?: string | undefined;
|
|
48
47
|
members?: string | undefined;
|
|
48
|
+
permissions?: Record<string, boolean> | undefined;
|
|
49
49
|
user_id?: number | undefined;
|
|
50
|
-
version?: string | undefined;
|
|
51
50
|
implementation_id?: string | undefined;
|
|
52
51
|
is_expired?: string | undefined;
|
|
53
52
|
expired_at?: string | null | undefined;
|
|
54
53
|
app_key?: string | undefined;
|
|
54
|
+
app_version?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
id: number;
|
|
57
57
|
date: string;
|
|
@@ -61,7 +61,6 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
61
61
|
shared_with_all: boolean;
|
|
62
62
|
url?: string | undefined;
|
|
63
63
|
label?: string | null | undefined;
|
|
64
|
-
permissions?: Record<string, boolean> | undefined;
|
|
65
64
|
lastchanged?: string | undefined;
|
|
66
65
|
destination_selected_api?: string | null | undefined;
|
|
67
66
|
is_stale?: string | undefined;
|
|
@@ -71,12 +70,13 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
71
70
|
title?: string | null | undefined;
|
|
72
71
|
groups?: string | undefined;
|
|
73
72
|
members?: string | undefined;
|
|
73
|
+
permissions?: Record<string, boolean> | undefined;
|
|
74
74
|
user_id?: number | undefined;
|
|
75
|
-
version?: string | undefined;
|
|
76
75
|
implementation_id?: string | undefined;
|
|
77
76
|
is_expired?: string | undefined;
|
|
78
77
|
expired_at?: string | null | undefined;
|
|
79
78
|
app_key?: string | undefined;
|
|
79
|
+
app_version?: string | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
82
82
|
id: z.ZodNumber;
|
|
@@ -104,7 +104,7 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
104
104
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
105
105
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
106
|
app_key: z.ZodOptional<z.ZodString>;
|
|
107
|
-
|
|
107
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
108
108
|
user_id: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
110
|
id: number;
|
|
@@ -115,7 +115,6 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
115
115
|
shared_with_all: boolean;
|
|
116
116
|
url?: string | undefined;
|
|
117
117
|
label?: string | null | undefined;
|
|
118
|
-
permissions?: Record<string, boolean> | undefined;
|
|
119
118
|
lastchanged?: string | undefined;
|
|
120
119
|
destination_selected_api?: string | null | undefined;
|
|
121
120
|
is_stale?: string | undefined;
|
|
@@ -125,12 +124,13 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
125
124
|
title?: string | null | undefined;
|
|
126
125
|
groups?: string | undefined;
|
|
127
126
|
members?: string | undefined;
|
|
127
|
+
permissions?: Record<string, boolean> | undefined;
|
|
128
128
|
user_id?: number | undefined;
|
|
129
|
-
version?: string | undefined;
|
|
130
129
|
implementation_id?: string | undefined;
|
|
131
130
|
is_expired?: string | undefined;
|
|
132
131
|
expired_at?: string | null | undefined;
|
|
133
132
|
app_key?: string | undefined;
|
|
133
|
+
app_version?: string | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
id: number;
|
|
136
136
|
date: string;
|
|
@@ -140,7 +140,6 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
140
140
|
shared_with_all: boolean;
|
|
141
141
|
url?: string | undefined;
|
|
142
142
|
label?: string | null | undefined;
|
|
143
|
-
permissions?: Record<string, boolean> | undefined;
|
|
144
143
|
lastchanged?: string | undefined;
|
|
145
144
|
destination_selected_api?: string | null | undefined;
|
|
146
145
|
is_stale?: string | undefined;
|
|
@@ -150,12 +149,13 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
150
149
|
title?: string | null | undefined;
|
|
151
150
|
groups?: string | undefined;
|
|
152
151
|
members?: string | undefined;
|
|
152
|
+
permissions?: Record<string, boolean> | undefined;
|
|
153
153
|
user_id?: number | undefined;
|
|
154
|
-
version?: string | undefined;
|
|
155
154
|
implementation_id?: string | undefined;
|
|
156
155
|
is_expired?: string | undefined;
|
|
157
156
|
expired_at?: string | null | undefined;
|
|
158
157
|
app_key?: string | undefined;
|
|
158
|
+
app_version?: string | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
export type AuthItem = z.infer<typeof AuthItemSchema>;
|
|
161
161
|
//# sourceMappingURL=Auth.d.ts.map
|
package/dist/schemas/Auth.js
CHANGED
|
@@ -9,7 +9,7 @@ export const AuthenticationItemSchema = withFormatter(AuthenticationSchema.omit(
|
|
|
9
9
|
is_expired: z.string().optional(), // Mapped from is_stale
|
|
10
10
|
expired_at: z.string().nullable().optional(), // Mapped from marked_stale_at
|
|
11
11
|
app_key: z.string().optional(), // App key from implementations endpoint
|
|
12
|
-
|
|
12
|
+
app_version: z.string().optional(), // Version extracted from implementation_id
|
|
13
13
|
user_id: z.number().optional(),
|
|
14
14
|
}), {
|
|
15
15
|
format: (item) => {
|