@activepieces/pieces-framework 0.25.5 → 0.26.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.
Files changed (91) hide show
  1. package/package.json +3 -3
  2. package/src/lib/action/action.d.ts +12 -12
  3. package/src/lib/action/action.js +9 -8
  4. package/src/lib/action/action.js.map +1 -1
  5. package/src/lib/index.d.ts +1 -0
  6. package/src/lib/index.js +1 -0
  7. package/src/lib/index.js.map +1 -1
  8. package/src/lib/piece-metadata.d.ts +4360 -3892
  9. package/src/lib/piece-metadata.js +48 -66
  10. package/src/lib/piece-metadata.js.map +1 -1
  11. package/src/lib/property/authentication/basic-auth-prop.d.ts +21 -20
  12. package/src/lib/property/authentication/basic-auth-prop.js +11 -18
  13. package/src/lib/property/authentication/basic-auth-prop.js.map +1 -1
  14. package/src/lib/property/authentication/common.d.ts +5 -4
  15. package/src/lib/property/authentication/common.js +4 -4
  16. package/src/lib/property/authentication/common.js.map +1 -1
  17. package/src/lib/property/authentication/custom-auth-prop.d.ts +47 -40
  18. package/src/lib/property/authentication/custom-auth-prop.js +3 -9
  19. package/src/lib/property/authentication/custom-auth-prop.js.map +1 -1
  20. package/src/lib/property/authentication/index.d.ts +110 -96
  21. package/src/lib/property/authentication/index.js +2 -2
  22. package/src/lib/property/authentication/index.js.map +1 -1
  23. package/src/lib/property/authentication/oauth2-prop.d.ts +167 -150
  24. package/src/lib/property/authentication/oauth2-prop.js +19 -23
  25. package/src/lib/property/authentication/oauth2-prop.js.map +1 -1
  26. package/src/lib/property/authentication/secret-text-property.d.ts +8 -6
  27. package/src/lib/property/authentication/secret-text-property.js +4 -7
  28. package/src/lib/property/authentication/secret-text-property.js.map +1 -1
  29. package/src/lib/property/index.d.ts +779 -671
  30. package/src/lib/property/index.js +4 -4
  31. package/src/lib/property/index.js.map +1 -1
  32. package/src/lib/property/input/array-property.d.ts +153 -131
  33. package/src/lib/property/input/array-property.js +3 -9
  34. package/src/lib/property/input/array-property.js.map +1 -1
  35. package/src/lib/property/input/checkbox-property.d.ts +8 -6
  36. package/src/lib/property/input/checkbox-property.js +2 -5
  37. package/src/lib/property/input/checkbox-property.js.map +1 -1
  38. package/src/lib/property/input/color-property.d.ts +8 -6
  39. package/src/lib/property/input/color-property.js +2 -5
  40. package/src/lib/property/input/color-property.js.map +1 -1
  41. package/src/lib/property/input/common.d.ts +10 -6
  42. package/src/lib/property/input/common.js +8 -8
  43. package/src/lib/property/input/common.js.map +1 -1
  44. package/src/lib/property/input/custom-property.d.ts +9 -6
  45. package/src/lib/property/input/custom-property.js +3 -9
  46. package/src/lib/property/input/custom-property.js.map +1 -1
  47. package/src/lib/property/input/date-time-property.d.ts +8 -6
  48. package/src/lib/property/input/date-time-property.js +2 -5
  49. package/src/lib/property/input/date-time-property.js.map +1 -1
  50. package/src/lib/property/input/dropdown/common.d.ts +13 -12
  51. package/src/lib/property/input/dropdown/common.js +8 -8
  52. package/src/lib/property/input/dropdown/common.js.map +1 -1
  53. package/src/lib/property/input/dropdown/dropdown-prop.d.ts +17 -12
  54. package/src/lib/property/input/dropdown/dropdown-prop.js +3 -15
  55. package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -1
  56. package/src/lib/property/input/dropdown/static-dropdown.d.ts +31 -28
  57. package/src/lib/property/input/dropdown/static-dropdown.js +3 -15
  58. package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -1
  59. package/src/lib/property/input/dynamic-prop.d.ts +247 -215
  60. package/src/lib/property/input/dynamic-prop.js +4 -10
  61. package/src/lib/property/input/dynamic-prop.js.map +1 -1
  62. package/src/lib/property/input/file-property.d.ts +8 -6
  63. package/src/lib/property/input/file-property.js +2 -5
  64. package/src/lib/property/input/file-property.js.map +1 -1
  65. package/src/lib/property/input/index.d.ts +191 -161
  66. package/src/lib/property/input/index.js +2 -2
  67. package/src/lib/property/input/index.js.map +1 -1
  68. package/src/lib/property/input/json-property.d.ts +8 -6
  69. package/src/lib/property/input/json-property.js +2 -5
  70. package/src/lib/property/input/json-property.js.map +1 -1
  71. package/src/lib/property/input/markdown-property.d.ts +8 -6
  72. package/src/lib/property/input/markdown-property.js +2 -5
  73. package/src/lib/property/input/markdown-property.js.map +1 -1
  74. package/src/lib/property/input/number-property.d.ts +8 -6
  75. package/src/lib/property/input/number-property.js +2 -5
  76. package/src/lib/property/input/number-property.js.map +1 -1
  77. package/src/lib/property/input/object-property.d.ts +8 -6
  78. package/src/lib/property/input/object-property.js +2 -5
  79. package/src/lib/property/input/object-property.js.map +1 -1
  80. package/src/lib/property/input/text-property.d.ts +15 -12
  81. package/src/lib/property/input/text-property.js +3 -9
  82. package/src/lib/property/input/text-property.js.map +1 -1
  83. package/src/lib/property/util.d.ts +4 -2
  84. package/src/lib/property/util.js +38 -54
  85. package/src/lib/property/util.js.map +1 -1
  86. package/src/lib/test/index.d.ts +5 -0
  87. package/src/lib/test/index.js +73 -0
  88. package/src/lib/test/index.js.map +1 -0
  89. package/src/lib/trigger/trigger.d.ts +9 -9
  90. package/src/lib/trigger/trigger.js +7 -7
  91. package/src/lib/trigger/trigger.js.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE, OAuth2GrantType } from '@activepieces/shared';
2
+ import { z } from 'zod';
2
3
  import { ShortTextProperty } from '../input/text-property';
3
4
  import { SecretTextProperty } from './secret-text-property';
4
5
  import { BasePieceAuthSchema } from './common';
@@ -10,94 +11,103 @@ export declare enum OAuth2AuthorizationMethod {
10
11
  HEADER = "HEADER",
11
12
  BODY = "BODY"
12
13
  }
13
- declare const OAuthProp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
14
- [x: string]: import("@sinclair/typebox").TSchema;
15
- [x: number]: import("@sinclair/typebox").TSchema;
16
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
17
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
18
- }>, import("@sinclair/typebox").TObject<{
19
- [x: string]: import("@sinclair/typebox").TSchema;
20
- [x: number]: import("@sinclair/typebox").TSchema;
21
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
22
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
23
- }>, import("@sinclair/typebox").TObject<{
24
- [x: string]: import("@sinclair/typebox").TSchema;
25
- [x: number]: import("@sinclair/typebox").TSchema;
26
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
27
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
28
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
29
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
30
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
32
- label: import("@sinclair/typebox").TString;
33
- value: import("@sinclair/typebox").TUnknown;
34
- }>>;
35
- }>, import("@sinclair/typebox").TSchema]>;
36
- }>]>;
14
+ declare const OAuthProp: z.ZodUnion<readonly [z.ZodObject<{
15
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
16
+ required: z.ZodBoolean;
17
+ defaultValue: z.ZodOptional<z.ZodAny>;
18
+ displayName: z.ZodString;
19
+ description: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
22
+ required: z.ZodBoolean;
23
+ defaultValue: z.ZodOptional<z.ZodAny>;
24
+ displayName: z.ZodString;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
28
+ required: z.ZodBoolean;
29
+ defaultValue: z.ZodOptional<z.ZodAny>;
30
+ options: z.ZodObject<{
31
+ disabled: z.ZodOptional<z.ZodBoolean>;
32
+ placeholder: z.ZodOptional<z.ZodString>;
33
+ options: z.ZodArray<z.ZodObject<{
34
+ label: z.ZodString;
35
+ value: z.ZodUnknown;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
38
+ displayName: z.ZodString;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>]>;
37
41
  type OAuthProp = ShortTextProperty<boolean> | SecretTextProperty<boolean> | StaticDropdownProperty<any, boolean>;
38
- export declare const OAuth2Props: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
39
- [x: string]: import("@sinclair/typebox").TSchema;
40
- [x: number]: import("@sinclair/typebox").TSchema;
41
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
42
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
43
- }>, import("@sinclair/typebox").TObject<{
44
- [x: string]: import("@sinclair/typebox").TSchema;
45
- [x: number]: import("@sinclair/typebox").TSchema;
46
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
47
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
48
- }>, import("@sinclair/typebox").TObject<{
49
- [x: string]: import("@sinclair/typebox").TSchema;
50
- [x: number]: import("@sinclair/typebox").TSchema;
51
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
52
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
53
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
54
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
55
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
56
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
57
- label: import("@sinclair/typebox").TString;
58
- value: import("@sinclair/typebox").TUnknown;
59
- }>>;
60
- }>, import("@sinclair/typebox").TSchema]>;
61
- }>]>>;
42
+ export declare const OAuth2Props: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
43
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
44
+ required: z.ZodBoolean;
45
+ defaultValue: z.ZodOptional<z.ZodAny>;
46
+ displayName: z.ZodString;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
50
+ required: z.ZodBoolean;
51
+ defaultValue: z.ZodOptional<z.ZodAny>;
52
+ displayName: z.ZodString;
53
+ description: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
56
+ required: z.ZodBoolean;
57
+ defaultValue: z.ZodOptional<z.ZodAny>;
58
+ options: z.ZodObject<{
59
+ disabled: z.ZodOptional<z.ZodBoolean>;
60
+ placeholder: z.ZodOptional<z.ZodString>;
61
+ options: z.ZodArray<z.ZodObject<{
62
+ label: z.ZodString;
63
+ value: z.ZodUnknown;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>;
66
+ displayName: z.ZodString;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>]>>;
62
69
  export type OAuth2Props = {
63
70
  [key: string]: OAuthProp;
64
71
  };
65
72
  type OAuthPropsValue<T extends OAuth2Props> = StaticPropsValue<T>;
66
- declare const OAuth2ExtraProps: import("@sinclair/typebox").TObject<{
67
- props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
68
- [x: string]: import("@sinclair/typebox").TSchema;
69
- [x: number]: import("@sinclair/typebox").TSchema;
70
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
71
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
72
- }>, import("@sinclair/typebox").TObject<{
73
- [x: string]: import("@sinclair/typebox").TSchema;
74
- [x: number]: import("@sinclair/typebox").TSchema;
75
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
76
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
77
- }>, import("@sinclair/typebox").TObject<{
78
- [x: string]: import("@sinclair/typebox").TSchema;
79
- [x: number]: import("@sinclair/typebox").TSchema;
80
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
81
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
82
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
83
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
84
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
85
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
86
- label: import("@sinclair/typebox").TString;
87
- value: import("@sinclair/typebox").TUnknown;
88
- }>>;
89
- }>, import("@sinclair/typebox").TSchema]>;
90
- }>]>>>;
91
- authUrl: import("@sinclair/typebox").TString;
92
- tokenUrl: import("@sinclair/typebox").TString;
93
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
94
- prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"none">, import("@sinclair/typebox").TLiteral<"consent">, import("@sinclair/typebox").TLiteral<"login">, import("@sinclair/typebox").TLiteral<"omit">]>>;
95
- pkce: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
96
- pkceMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"plain">, import("@sinclair/typebox").TLiteral<"S256">]>>;
97
- authorizationMethod: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof OAuth2AuthorizationMethod>>;
98
- grantType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>, import("@sinclair/typebox").TLiteral<"both_client_credentials_and_authorization_code">]>>;
99
- extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
100
- }>;
73
+ declare const OAuth2ExtraProps: z.ZodObject<{
74
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
75
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
76
+ required: z.ZodBoolean;
77
+ defaultValue: z.ZodOptional<z.ZodAny>;
78
+ displayName: z.ZodString;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
82
+ required: z.ZodBoolean;
83
+ defaultValue: z.ZodOptional<z.ZodAny>;
84
+ displayName: z.ZodString;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
88
+ required: z.ZodBoolean;
89
+ defaultValue: z.ZodOptional<z.ZodAny>;
90
+ options: z.ZodObject<{
91
+ disabled: z.ZodOptional<z.ZodBoolean>;
92
+ placeholder: z.ZodOptional<z.ZodString>;
93
+ options: z.ZodArray<z.ZodObject<{
94
+ label: z.ZodString;
95
+ value: z.ZodUnknown;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
+ displayName: z.ZodString;
99
+ description: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>]>>>;
101
+ authUrl: z.ZodString;
102
+ tokenUrl: z.ZodString;
103
+ scope: z.ZodArray<z.ZodString>;
104
+ prompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"consent">, z.ZodLiteral<"login">, z.ZodLiteral<"omit">]>>;
105
+ pkce: z.ZodOptional<z.ZodBoolean>;
106
+ pkceMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"plain">, z.ZodLiteral<"S256">]>>;
107
+ authorizationMethod: z.ZodOptional<z.ZodEnum<typeof OAuth2AuthorizationMethod>>;
108
+ grantType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof OAuth2GrantType>, z.ZodLiteral<"both_client_credentials_and_authorization_code">]>>;
109
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
110
+ }, z.core.$strip>;
101
111
  type OAuth2ExtraProps = {
102
112
  props?: OAuth2Props;
103
113
  authUrl: string;
@@ -110,77 +120,84 @@ type OAuth2ExtraProps = {
110
120
  grantType?: OAuth2GrantType | typeof BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE;
111
121
  extra?: Record<string, string>;
112
122
  };
113
- export declare const OAuth2PropertyValue: import("@sinclair/typebox").TObject<{
114
- access_token: import("@sinclair/typebox").TString;
115
- props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
116
- [x: string]: import("@sinclair/typebox").TSchema;
117
- [x: number]: import("@sinclair/typebox").TSchema;
118
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
119
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
120
- }>, import("@sinclair/typebox").TObject<{
121
- [x: string]: import("@sinclair/typebox").TSchema;
122
- [x: number]: import("@sinclair/typebox").TSchema;
123
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
124
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
125
- }>, import("@sinclair/typebox").TObject<{
126
- [x: string]: import("@sinclair/typebox").TSchema;
127
- [x: number]: import("@sinclair/typebox").TSchema;
128
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
129
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
130
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
131
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
132
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
133
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
134
- label: import("@sinclair/typebox").TString;
135
- value: import("@sinclair/typebox").TUnknown;
136
- }>>;
137
- }>, import("@sinclair/typebox").TSchema]>;
138
- }>]>>>;
139
- data: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
140
- }>;
123
+ export declare const OAuth2PropertyValue: z.ZodObject<{
124
+ access_token: z.ZodString;
125
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
126
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
127
+ required: z.ZodBoolean;
128
+ defaultValue: z.ZodOptional<z.ZodAny>;
129
+ displayName: z.ZodString;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
133
+ required: z.ZodBoolean;
134
+ defaultValue: z.ZodOptional<z.ZodAny>;
135
+ displayName: z.ZodString;
136
+ description: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
139
+ required: z.ZodBoolean;
140
+ defaultValue: z.ZodOptional<z.ZodAny>;
141
+ options: z.ZodObject<{
142
+ disabled: z.ZodOptional<z.ZodBoolean>;
143
+ placeholder: z.ZodOptional<z.ZodString>;
144
+ options: z.ZodArray<z.ZodObject<{
145
+ label: z.ZodString;
146
+ value: z.ZodUnknown;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>;
149
+ displayName: z.ZodString;
150
+ description: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strip>]>>>;
152
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
153
+ }, z.core.$strip>;
141
154
  export type OAuth2PropertyValue<T extends OAuth2Props = any> = {
142
155
  access_token: string;
143
156
  props?: OAuthPropsValue<T>;
144
157
  data: Record<string, any>;
145
158
  };
146
- export declare const OAuth2Property: import("@sinclair/typebox").TObject<{
147
- [x: string]: import("@sinclair/typebox").TSchema;
148
- [x: number]: import("@sinclair/typebox").TSchema;
149
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
150
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
151
- scope: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TSchema]>;
152
- props: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
153
- [x: string]: import("@sinclair/typebox").TSchema;
154
- [x: number]: import("@sinclair/typebox").TSchema;
155
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
156
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
157
- }>, import("@sinclair/typebox").TObject<{
158
- [x: string]: import("@sinclair/typebox").TSchema;
159
- [x: number]: import("@sinclair/typebox").TSchema;
160
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
161
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
162
- }>, import("@sinclair/typebox").TObject<{
163
- [x: string]: import("@sinclair/typebox").TSchema;
164
- [x: number]: import("@sinclair/typebox").TSchema;
165
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
166
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
167
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
168
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
169
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
170
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
171
- label: import("@sinclair/typebox").TString;
172
- value: import("@sinclair/typebox").TUnknown;
173
- }>>;
174
- }>, import("@sinclair/typebox").TSchema]>;
175
- }>]>>, import("@sinclair/typebox").TSchema]>;
176
- prompt: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"none">, import("@sinclair/typebox").TLiteral<"consent">, import("@sinclair/typebox").TLiteral<"login">, import("@sinclair/typebox").TLiteral<"omit">]>, import("@sinclair/typebox").TSchema]>;
177
- authUrl: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
178
- tokenUrl: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
179
- pkce: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TSchema]>;
180
- pkceMethod: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"plain">, import("@sinclair/typebox").TLiteral<"S256">]>, import("@sinclair/typebox").TSchema]>;
181
- authorizationMethod: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TEnum<typeof OAuth2AuthorizationMethod>, import("@sinclair/typebox").TSchema]>;
182
- grantType: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>, import("@sinclair/typebox").TLiteral<"both_client_credentials_and_authorization_code">]>, import("@sinclair/typebox").TSchema]>;
183
- extra: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>, import("@sinclair/typebox").TSchema]>;
184
- }>;
159
+ export declare const OAuth2Property: z.ZodObject<{
160
+ type: z.ZodLiteral<PropertyType.OAUTH2>;
161
+ required: z.ZodBoolean;
162
+ defaultValue: z.ZodOptional<z.ZodAny>;
163
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
164
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
165
+ required: z.ZodBoolean;
166
+ defaultValue: z.ZodOptional<z.ZodAny>;
167
+ displayName: z.ZodString;
168
+ description: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
171
+ required: z.ZodBoolean;
172
+ defaultValue: z.ZodOptional<z.ZodAny>;
173
+ displayName: z.ZodString;
174
+ description: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
177
+ required: z.ZodBoolean;
178
+ defaultValue: z.ZodOptional<z.ZodAny>;
179
+ options: z.ZodObject<{
180
+ disabled: z.ZodOptional<z.ZodBoolean>;
181
+ placeholder: z.ZodOptional<z.ZodString>;
182
+ options: z.ZodArray<z.ZodObject<{
183
+ label: z.ZodString;
184
+ value: z.ZodUnknown;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>;
187
+ displayName: z.ZodString;
188
+ description: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strip>]>>>;
190
+ authUrl: z.ZodString;
191
+ tokenUrl: z.ZodString;
192
+ scope: z.ZodArray<z.ZodString>;
193
+ prompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"consent">, z.ZodLiteral<"login">, z.ZodLiteral<"omit">]>>;
194
+ pkce: z.ZodOptional<z.ZodBoolean>;
195
+ pkceMethod: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"plain">, z.ZodLiteral<"S256">]>>;
196
+ authorizationMethod: z.ZodOptional<z.ZodEnum<typeof OAuth2AuthorizationMethod>>;
197
+ grantType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<typeof OAuth2GrantType>, z.ZodLiteral<"both_client_credentials_and_authorization_code">]>>;
198
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
199
+ displayName: z.ZodString;
200
+ description: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>;
185
202
  export type OAuth2Property<T extends OAuth2Props> = BasePieceAuthSchema<OAuth2PropertyValue<T>> & OAuth2ExtraProps & TPropertyValue<OAuth2PropertyValue<T>, PropertyType.OAUTH2, true>;
186
203
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OAuth2Property = exports.OAuth2PropertyValue = exports.OAuth2Props = exports.OAuth2AuthorizationMethod = void 0;
4
4
  const shared_1 = require("@activepieces/shared");
5
- const typebox_1 = require("@sinclair/typebox");
5
+ const zod_1 = require("zod");
6
6
  const text_property_1 = require("../input/text-property");
7
7
  const secret_text_property_1 = require("./secret-text-property");
8
8
  const common_1 = require("./common");
@@ -14,32 +14,28 @@ var OAuth2AuthorizationMethod;
14
14
  OAuth2AuthorizationMethod["HEADER"] = "HEADER";
15
15
  OAuth2AuthorizationMethod["BODY"] = "BODY";
16
16
  })(OAuth2AuthorizationMethod || (exports.OAuth2AuthorizationMethod = OAuth2AuthorizationMethod = {}));
17
- const OAuthProp = typebox_1.Type.Union([
17
+ const OAuthProp = zod_1.z.union([
18
18
  text_property_1.ShortTextProperty,
19
19
  secret_text_property_1.SecretTextProperty,
20
20
  static_dropdown_1.StaticDropdownProperty,
21
21
  ]);
22
- exports.OAuth2Props = typebox_1.Type.Record(typebox_1.Type.String(), OAuthProp);
23
- const OAuth2ExtraProps = typebox_1.Type.Object({
24
- props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), OAuthProp)),
25
- authUrl: typebox_1.Type.String(),
26
- tokenUrl: typebox_1.Type.String(),
27
- scope: typebox_1.Type.Array(typebox_1.Type.String()),
28
- prompt: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal('none'), typebox_1.Type.Literal('consent'), typebox_1.Type.Literal('login'), typebox_1.Type.Literal('omit')])),
29
- pkce: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
30
- pkceMethod: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal('plain'), typebox_1.Type.Literal('S256')])),
31
- authorizationMethod: typebox_1.Type.Optional(typebox_1.Type.Enum(OAuth2AuthorizationMethod)),
32
- grantType: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Enum(shared_1.OAuth2GrantType), typebox_1.Type.Literal(shared_1.BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE)])),
33
- extra: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.String())),
22
+ exports.OAuth2Props = zod_1.z.record(zod_1.z.string(), OAuthProp);
23
+ const OAuth2ExtraProps = zod_1.z.object({
24
+ props: zod_1.z.record(zod_1.z.string(), OAuthProp).optional(),
25
+ authUrl: zod_1.z.string(),
26
+ tokenUrl: zod_1.z.string(),
27
+ scope: zod_1.z.array(zod_1.z.string()),
28
+ prompt: zod_1.z.union([zod_1.z.literal('none'), zod_1.z.literal('consent'), zod_1.z.literal('login'), zod_1.z.literal('omit')]).optional(),
29
+ pkce: zod_1.z.boolean().optional(),
30
+ pkceMethod: zod_1.z.union([zod_1.z.literal('plain'), zod_1.z.literal('S256')]).optional(),
31
+ authorizationMethod: zod_1.z.nativeEnum(OAuth2AuthorizationMethod).optional(),
32
+ grantType: zod_1.z.union([zod_1.z.nativeEnum(shared_1.OAuth2GrantType), zod_1.z.literal(shared_1.BOTH_CLIENT_CREDENTIALS_AND_AUTHORIZATION_CODE)]).optional(),
33
+ extra: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
34
34
  });
35
- exports.OAuth2PropertyValue = typebox_1.Type.Object({
36
- access_token: typebox_1.Type.String(),
37
- props: typebox_1.Type.Optional(exports.OAuth2Props),
38
- data: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())
35
+ exports.OAuth2PropertyValue = zod_1.z.object({
36
+ access_token: zod_1.z.string(),
37
+ props: exports.OAuth2Props.optional(),
38
+ data: zod_1.z.record(zod_1.z.string(), zod_1.z.any())
39
39
  });
40
- exports.OAuth2Property = typebox_1.Type.Composite([
41
- common_1.BasePieceAuthSchema,
42
- OAuth2ExtraProps,
43
- (0, common_2.TPropertyValue)(exports.OAuth2PropertyValue, property_type_1.PropertyType.OAUTH2)
44
- ]);
40
+ exports.OAuth2Property = zod_1.z.object(Object.assign(Object.assign(Object.assign({}, common_1.BasePieceAuthSchema.shape), OAuth2ExtraProps.shape), (0, common_2.TPropertyValue)(exports.OAuth2PropertyValue, property_type_1.PropertyType.OAUTH2).shape));
45
41
  //# sourceMappingURL=oauth2-prop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"o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E,OAAC,CAAC,OAAO,CAAC,uDAA8C,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzH,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAA;AAeW,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC;CACpC,CAAC,CAAA;AAUW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,+CACjC,4BAAmB,CAAC,KAAK,GACzB,gBAAgB,CAAC,KAAK,GACtB,IAAA,uBAAc,EAAC,2BAAmB,EAAE,4BAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EACjE,CAAA"}
@@ -1,10 +1,12 @@
1
+ import { z } from "zod";
1
2
  import { BasePieceAuthSchema } from "./common";
2
3
  import { TPropertyValue } from "../input/common";
3
4
  import { PropertyType } from "../input/property-type";
4
- export declare const SecretTextProperty: import("@sinclair/typebox").TObject<{
5
- [x: string]: import("@sinclair/typebox").TSchema;
6
- [x: number]: import("@sinclair/typebox").TSchema;
7
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
8
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
9
- }>;
5
+ export declare const SecretTextProperty: z.ZodObject<{
6
+ type: z.ZodLiteral<PropertyType.SECRET_TEXT>;
7
+ required: z.ZodBoolean;
8
+ defaultValue: z.ZodOptional<z.ZodAny>;
9
+ displayName: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
10
12
  export type SecretTextProperty<R extends boolean> = BasePieceAuthSchema<string> & TPropertyValue<string, PropertyType.SECRET_TEXT, R>;
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SecretTextProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const common_2 = require("../input/common");
7
7
  const property_type_1 = require("../input/property-type");
8
- exports.SecretTextProperty = typebox_1.Type.Composite([
9
- common_1.BasePieceAuthSchema,
10
- (0, common_2.TPropertyValue)(typebox_1.Type.Object({
11
- auth: typebox_1.Type.String()
12
- }), property_type_1.PropertyType.SECRET_TEXT)
13
- ]);
8
+ exports.SecretTextProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePieceAuthSchema.shape), (0, common_2.TPropertyValue)(zod_1.z.object({
9
+ auth: zod_1.z.string()
10
+ }), property_type_1.PropertyType.SECRET_TEXT).shape));
14
11
  //# sourceMappingURL=secret-text-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"secret-text-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/secret-text-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA+C;AAC/C,4CAAiD;AACjD,0DAAsD;AAEzC,QAAA,kBAAkB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,4BAAmB;IACnB,IAAA,uBAAc,EAAC,cAAI,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;KACtB,CAAC,EAAE,4BAAY,CAAC,WAAW,CAAC;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"secret-text-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/authentication/secret-text-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA+C;AAC/C,4CAAiD;AACjD,0DAAsD;AAEzC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,iCACnC,4BAAmB,CAAC,KAAK,GACzB,IAAA,uBAAc,EAAC,OAAC,CAAC,MAAM,CAAC;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,EAAE,4BAAY,CAAC,WAAW,CAAC,CAAC,KAAK,EACrC,CAAA"}