@zapier/zapier-sdk-core 0.9.2 → 0.10.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk-core
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 55b8587: Allow optional `policy` passthrough on create-client-credentials request. sdkapi forwards the field to Identity, which owns validation.
8
+
3
9
  ## 0.9.2
4
10
 
5
11
  ### Patch Changes
@@ -4,14 +4,14 @@ import { z } from 'zod';
4
4
  * Action type enum matching the internal Zapier API
5
5
  */
6
6
  declare const ActionTypeSchema: z.ZodEnum<{
7
+ filter: "filter";
7
8
  read: "read";
8
9
  read_bulk: "read_bulk";
9
- write: "write";
10
+ run: "run";
10
11
  search: "search";
11
- search_or_write: "search_or_write";
12
12
  search_and_write: "search_and_write";
13
- filter: "filter";
14
- run: "run";
13
+ search_or_write: "search_or_write";
14
+ write: "write";
15
15
  }>;
16
16
  type ActionType = z.infer<typeof ActionTypeSchema>;
17
17
  /**
@@ -20,14 +20,14 @@ type ActionType = z.infer<typeof ActionTypeSchema>;
20
20
  declare const ActionSchema: z.ZodObject<{
21
21
  id: z.ZodOptional<z.ZodString>;
22
22
  type: z.ZodEnum<{
23
+ filter: "filter";
23
24
  read: "read";
24
25
  read_bulk: "read_bulk";
25
- write: "write";
26
+ run: "run";
26
27
  search: "search";
27
- search_or_write: "search_or_write";
28
28
  search_and_write: "search_and_write";
29
- filter: "filter";
30
- run: "run";
29
+ search_or_write: "search_or_write";
30
+ write: "write";
31
31
  }>;
32
32
  key: z.ZodString;
33
33
  name: z.ZodString;
@@ -59,14 +59,14 @@ declare const ActionItemSchema: z.ZodObject<{
59
59
  app_key: z.ZodString;
60
60
  app_version: z.ZodOptional<z.ZodString>;
61
61
  action_type: z.ZodEnum<{
62
+ filter: "filter";
62
63
  read: "read";
63
64
  read_bulk: "read_bulk";
64
- write: "write";
65
+ run: "run";
65
66
  search: "search";
66
- search_or_write: "search_or_write";
67
67
  search_and_write: "search_and_write";
68
- filter: "filter";
69
- run: "run";
68
+ search_or_write: "search_or_write";
69
+ write: "write";
70
70
  }>;
71
71
  title: z.ZodString;
72
72
  type: z.ZodLiteral<"action">;
@@ -82,14 +82,14 @@ declare const ImplementationWithActionsSchema: z.ZodObject<{
82
82
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
83
  id: z.ZodOptional<z.ZodString>;
84
84
  type: z.ZodEnum<{
85
+ filter: "filter";
85
86
  read: "read";
86
87
  read_bulk: "read_bulk";
87
- write: "write";
88
+ run: "run";
88
89
  search: "search";
89
- search_or_write: "search_or_write";
90
90
  search_and_write: "search_and_write";
91
- filter: "filter";
92
- run: "run";
91
+ search_or_write: "search_or_write";
92
+ write: "write";
93
93
  }>;
94
94
  key: z.ZodString;
95
95
  name: z.ZodString;
@@ -121,14 +121,14 @@ declare const ImplementationsWithActionsResponseSchema: z.ZodObject<{
121
121
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
122
  id: z.ZodOptional<z.ZodString>;
123
123
  type: z.ZodEnum<{
124
+ filter: "filter";
124
125
  read: "read";
125
126
  read_bulk: "read_bulk";
126
- write: "write";
127
+ run: "run";
127
128
  search: "search";
128
- search_or_write: "search_or_write";
129
129
  search_and_write: "search_and_write";
130
- filter: "filter";
131
- run: "run";
130
+ search_or_write: "search_or_write";
131
+ write: "write";
132
132
  }>;
133
133
  key: z.ZodString;
134
134
  name: z.ZodString;
@@ -154,24 +154,24 @@ declare const ListActionsQuerySchema: z.ZodObject<{
154
154
  appKey: z.ZodOptional<z.ZodString>;
155
155
  app_key: z.ZodOptional<z.ZodString>;
156
156
  actionType: z.ZodOptional<z.ZodEnum<{
157
+ filter: "filter";
157
158
  read: "read";
158
159
  read_bulk: "read_bulk";
159
- write: "write";
160
+ run: "run";
160
161
  search: "search";
161
- search_or_write: "search_or_write";
162
162
  search_and_write: "search_and_write";
163
- filter: "filter";
164
- run: "run";
163
+ search_or_write: "search_or_write";
164
+ write: "write";
165
165
  }>>;
166
166
  action_type: z.ZodOptional<z.ZodEnum<{
167
+ filter: "filter";
167
168
  read: "read";
168
169
  read_bulk: "read_bulk";
169
- write: "write";
170
+ run: "run";
170
171
  search: "search";
171
- search_or_write: "search_or_write";
172
172
  search_and_write: "search_and_write";
173
- filter: "filter";
174
- run: "run";
173
+ search_or_write: "search_or_write";
174
+ write: "write";
175
175
  }>>;
176
176
  }, z.core.$strip>;
177
177
  /**
@@ -187,14 +187,14 @@ declare const ListActionsResponseSchema: z.ZodObject<{
187
187
  app_key: z.ZodString;
188
188
  app_version: z.ZodOptional<z.ZodString>;
189
189
  action_type: z.ZodEnum<{
190
+ filter: "filter";
190
191
  read: "read";
191
192
  read_bulk: "read_bulk";
192
- write: "write";
193
+ run: "run";
193
194
  search: "search";
194
- search_or_write: "search_or_write";
195
195
  search_and_write: "search_and_write";
196
- filter: "filter";
197
- run: "run";
196
+ search_or_write: "search_or_write";
197
+ write: "write";
198
198
  }>;
199
199
  title: z.ZodString;
200
200
  type: z.ZodLiteral<"action">;
@@ -4,14 +4,14 @@ import { z } from 'zod';
4
4
  * Action type enum matching the internal Zapier API
5
5
  */
6
6
  declare const ActionTypeSchema: z.ZodEnum<{
7
+ filter: "filter";
7
8
  read: "read";
8
9
  read_bulk: "read_bulk";
9
- write: "write";
10
+ run: "run";
10
11
  search: "search";
11
- search_or_write: "search_or_write";
12
12
  search_and_write: "search_and_write";
13
- filter: "filter";
14
- run: "run";
13
+ search_or_write: "search_or_write";
14
+ write: "write";
15
15
  }>;
16
16
  type ActionType = z.infer<typeof ActionTypeSchema>;
17
17
  /**
@@ -20,14 +20,14 @@ type ActionType = z.infer<typeof ActionTypeSchema>;
20
20
  declare const ActionSchema: z.ZodObject<{
21
21
  id: z.ZodOptional<z.ZodString>;
22
22
  type: z.ZodEnum<{
23
+ filter: "filter";
23
24
  read: "read";
24
25
  read_bulk: "read_bulk";
25
- write: "write";
26
+ run: "run";
26
27
  search: "search";
27
- search_or_write: "search_or_write";
28
28
  search_and_write: "search_and_write";
29
- filter: "filter";
30
- run: "run";
29
+ search_or_write: "search_or_write";
30
+ write: "write";
31
31
  }>;
32
32
  key: z.ZodString;
33
33
  name: z.ZodString;
@@ -59,14 +59,14 @@ declare const ActionItemSchema: z.ZodObject<{
59
59
  app_key: z.ZodString;
60
60
  app_version: z.ZodOptional<z.ZodString>;
61
61
  action_type: z.ZodEnum<{
62
+ filter: "filter";
62
63
  read: "read";
63
64
  read_bulk: "read_bulk";
64
- write: "write";
65
+ run: "run";
65
66
  search: "search";
66
- search_or_write: "search_or_write";
67
67
  search_and_write: "search_and_write";
68
- filter: "filter";
69
- run: "run";
68
+ search_or_write: "search_or_write";
69
+ write: "write";
70
70
  }>;
71
71
  title: z.ZodString;
72
72
  type: z.ZodLiteral<"action">;
@@ -82,14 +82,14 @@ declare const ImplementationWithActionsSchema: z.ZodObject<{
82
82
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
83
  id: z.ZodOptional<z.ZodString>;
84
84
  type: z.ZodEnum<{
85
+ filter: "filter";
85
86
  read: "read";
86
87
  read_bulk: "read_bulk";
87
- write: "write";
88
+ run: "run";
88
89
  search: "search";
89
- search_or_write: "search_or_write";
90
90
  search_and_write: "search_and_write";
91
- filter: "filter";
92
- run: "run";
91
+ search_or_write: "search_or_write";
92
+ write: "write";
93
93
  }>;
94
94
  key: z.ZodString;
95
95
  name: z.ZodString;
@@ -121,14 +121,14 @@ declare const ImplementationsWithActionsResponseSchema: z.ZodObject<{
121
121
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
122
  id: z.ZodOptional<z.ZodString>;
123
123
  type: z.ZodEnum<{
124
+ filter: "filter";
124
125
  read: "read";
125
126
  read_bulk: "read_bulk";
126
- write: "write";
127
+ run: "run";
127
128
  search: "search";
128
- search_or_write: "search_or_write";
129
129
  search_and_write: "search_and_write";
130
- filter: "filter";
131
- run: "run";
130
+ search_or_write: "search_or_write";
131
+ write: "write";
132
132
  }>;
133
133
  key: z.ZodString;
134
134
  name: z.ZodString;
@@ -154,24 +154,24 @@ declare const ListActionsQuerySchema: z.ZodObject<{
154
154
  appKey: z.ZodOptional<z.ZodString>;
155
155
  app_key: z.ZodOptional<z.ZodString>;
156
156
  actionType: z.ZodOptional<z.ZodEnum<{
157
+ filter: "filter";
157
158
  read: "read";
158
159
  read_bulk: "read_bulk";
159
- write: "write";
160
+ run: "run";
160
161
  search: "search";
161
- search_or_write: "search_or_write";
162
162
  search_and_write: "search_and_write";
163
- filter: "filter";
164
- run: "run";
163
+ search_or_write: "search_or_write";
164
+ write: "write";
165
165
  }>>;
166
166
  action_type: z.ZodOptional<z.ZodEnum<{
167
+ filter: "filter";
167
168
  read: "read";
168
169
  read_bulk: "read_bulk";
169
- write: "write";
170
+ run: "run";
170
171
  search: "search";
171
- search_or_write: "search_or_write";
172
172
  search_and_write: "search_and_write";
173
- filter: "filter";
174
- run: "run";
173
+ search_or_write: "search_or_write";
174
+ write: "write";
175
175
  }>>;
176
176
  }, z.core.$strip>;
177
177
  /**
@@ -187,14 +187,14 @@ declare const ListActionsResponseSchema: z.ZodObject<{
187
187
  app_key: z.ZodString;
188
188
  app_version: z.ZodOptional<z.ZodString>;
189
189
  action_type: z.ZodEnum<{
190
+ filter: "filter";
190
191
  read: "read";
191
192
  read_bulk: "read_bulk";
192
- write: "write";
193
+ run: "run";
193
194
  search: "search";
194
- search_or_write: "search_or_write";
195
195
  search_and_write: "search_and_write";
196
- filter: "filter";
197
- run: "run";
196
+ search_or_write: "search_or_write";
197
+ write: "write";
198
198
  }>;
199
199
  title: z.ZodString;
200
200
  type: z.ZodLiteral<"action">;
@@ -5,9 +5,23 @@ import { z } from 'zod';
5
5
  * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).
6
6
  */
7
7
  declare const AppItemSchema: z.ZodObject<{
8
+ description: z.ZodOptional<z.ZodString>;
9
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
10
+ auth_type: z.ZodOptional<z.ZodString>;
11
+ actions: z.ZodOptional<z.ZodObject<{
12
+ read: z.ZodOptional<z.ZodNumber>;
13
+ read_bulk: z.ZodOptional<z.ZodNumber>;
14
+ write: z.ZodOptional<z.ZodNumber>;
15
+ search: z.ZodOptional<z.ZodNumber>;
16
+ search_or_write: z.ZodOptional<z.ZodNumber>;
17
+ search_and_write: z.ZodOptional<z.ZodNumber>;
18
+ filter: z.ZodOptional<z.ZodNumber>;
19
+ }, z.core.$strip>>;
20
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
21
+ is_beta: z.ZodOptional<z.ZodBoolean>;
22
+ is_premium: z.ZodOptional<z.ZodBoolean>;
8
23
  slug: z.ZodString;
9
24
  age_in_days: z.ZodOptional<z.ZodNumber>;
10
- auth_type: z.ZodOptional<z.ZodString>;
11
25
  banner: z.ZodOptional<z.ZodString>;
12
26
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
27
  id: z.ZodNumber;
@@ -27,26 +41,12 @@ declare const AppItemSchema: z.ZodObject<{
27
41
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
28
42
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
29
43
  has_writes: z.ZodOptional<z.ZodBoolean>;
30
- is_beta: z.ZodOptional<z.ZodBoolean>;
31
44
  is_built_in: z.ZodOptional<z.ZodBoolean>;
32
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
33
45
  is_featured: z.ZodOptional<z.ZodBoolean>;
34
- is_hidden: z.ZodOptional<z.ZodBoolean>;
35
46
  is_invite: z.ZodOptional<z.ZodBoolean>;
36
- is_premium: z.ZodOptional<z.ZodBoolean>;
37
47
  is_public: z.ZodOptional<z.ZodBoolean>;
38
48
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
39
49
  visibility: z.ZodOptional<z.ZodString>;
40
- actions: z.ZodOptional<z.ZodObject<{
41
- read: z.ZodOptional<z.ZodNumber>;
42
- read_bulk: z.ZodOptional<z.ZodNumber>;
43
- write: z.ZodOptional<z.ZodNumber>;
44
- search: z.ZodOptional<z.ZodNumber>;
45
- search_or_write: z.ZodOptional<z.ZodNumber>;
46
- search_and_write: z.ZodOptional<z.ZodNumber>;
47
- filter: z.ZodOptional<z.ZodNumber>;
48
- }, z.core.$strip>>;
49
- description: z.ZodOptional<z.ZodString>;
50
50
  primary_color: z.ZodOptional<z.ZodString>;
51
51
  secondary_color: z.ZodOptional<z.ZodString>;
52
52
  classification: z.ZodOptional<z.ZodString>;
@@ -74,9 +74,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
74
74
  */
75
75
  declare const ListAppsResponseSchema: z.ZodObject<{
76
76
  data: z.ZodArray<z.ZodObject<{
77
+ description: z.ZodOptional<z.ZodString>;
78
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
79
+ auth_type: z.ZodOptional<z.ZodString>;
80
+ actions: z.ZodOptional<z.ZodObject<{
81
+ read: z.ZodOptional<z.ZodNumber>;
82
+ read_bulk: z.ZodOptional<z.ZodNumber>;
83
+ write: z.ZodOptional<z.ZodNumber>;
84
+ search: z.ZodOptional<z.ZodNumber>;
85
+ search_or_write: z.ZodOptional<z.ZodNumber>;
86
+ search_and_write: z.ZodOptional<z.ZodNumber>;
87
+ filter: z.ZodOptional<z.ZodNumber>;
88
+ }, z.core.$strip>>;
89
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
90
+ is_beta: z.ZodOptional<z.ZodBoolean>;
91
+ is_premium: z.ZodOptional<z.ZodBoolean>;
77
92
  slug: z.ZodString;
78
93
  age_in_days: z.ZodOptional<z.ZodNumber>;
79
- auth_type: z.ZodOptional<z.ZodString>;
80
94
  banner: z.ZodOptional<z.ZodString>;
81
95
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
96
  id: z.ZodNumber;
@@ -96,26 +110,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
96
110
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
97
111
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
98
112
  has_writes: z.ZodOptional<z.ZodBoolean>;
99
- is_beta: z.ZodOptional<z.ZodBoolean>;
100
113
  is_built_in: z.ZodOptional<z.ZodBoolean>;
101
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
102
114
  is_featured: z.ZodOptional<z.ZodBoolean>;
103
- is_hidden: z.ZodOptional<z.ZodBoolean>;
104
115
  is_invite: z.ZodOptional<z.ZodBoolean>;
105
- is_premium: z.ZodOptional<z.ZodBoolean>;
106
116
  is_public: z.ZodOptional<z.ZodBoolean>;
107
117
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
108
118
  visibility: z.ZodOptional<z.ZodString>;
109
- actions: z.ZodOptional<z.ZodObject<{
110
- read: z.ZodOptional<z.ZodNumber>;
111
- read_bulk: z.ZodOptional<z.ZodNumber>;
112
- write: z.ZodOptional<z.ZodNumber>;
113
- search: z.ZodOptional<z.ZodNumber>;
114
- search_or_write: z.ZodOptional<z.ZodNumber>;
115
- search_and_write: z.ZodOptional<z.ZodNumber>;
116
- filter: z.ZodOptional<z.ZodNumber>;
117
- }, z.core.$strip>>;
118
- description: z.ZodOptional<z.ZodString>;
119
119
  primary_color: z.ZodOptional<z.ZodString>;
120
120
  secondary_color: z.ZodOptional<z.ZodString>;
121
121
  classification: z.ZodOptional<z.ZodString>;
@@ -5,9 +5,23 @@ import { z } from 'zod';
5
5
  * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).
6
6
  */
7
7
  declare const AppItemSchema: z.ZodObject<{
8
+ description: z.ZodOptional<z.ZodString>;
9
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
10
+ auth_type: z.ZodOptional<z.ZodString>;
11
+ actions: z.ZodOptional<z.ZodObject<{
12
+ read: z.ZodOptional<z.ZodNumber>;
13
+ read_bulk: z.ZodOptional<z.ZodNumber>;
14
+ write: z.ZodOptional<z.ZodNumber>;
15
+ search: z.ZodOptional<z.ZodNumber>;
16
+ search_or_write: z.ZodOptional<z.ZodNumber>;
17
+ search_and_write: z.ZodOptional<z.ZodNumber>;
18
+ filter: z.ZodOptional<z.ZodNumber>;
19
+ }, z.core.$strip>>;
20
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
21
+ is_beta: z.ZodOptional<z.ZodBoolean>;
22
+ is_premium: z.ZodOptional<z.ZodBoolean>;
8
23
  slug: z.ZodString;
9
24
  age_in_days: z.ZodOptional<z.ZodNumber>;
10
- auth_type: z.ZodOptional<z.ZodString>;
11
25
  banner: z.ZodOptional<z.ZodString>;
12
26
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
27
  id: z.ZodNumber;
@@ -27,26 +41,12 @@ declare const AppItemSchema: z.ZodObject<{
27
41
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
28
42
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
29
43
  has_writes: z.ZodOptional<z.ZodBoolean>;
30
- is_beta: z.ZodOptional<z.ZodBoolean>;
31
44
  is_built_in: z.ZodOptional<z.ZodBoolean>;
32
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
33
45
  is_featured: z.ZodOptional<z.ZodBoolean>;
34
- is_hidden: z.ZodOptional<z.ZodBoolean>;
35
46
  is_invite: z.ZodOptional<z.ZodBoolean>;
36
- is_premium: z.ZodOptional<z.ZodBoolean>;
37
47
  is_public: z.ZodOptional<z.ZodBoolean>;
38
48
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
39
49
  visibility: z.ZodOptional<z.ZodString>;
40
- actions: z.ZodOptional<z.ZodObject<{
41
- read: z.ZodOptional<z.ZodNumber>;
42
- read_bulk: z.ZodOptional<z.ZodNumber>;
43
- write: z.ZodOptional<z.ZodNumber>;
44
- search: z.ZodOptional<z.ZodNumber>;
45
- search_or_write: z.ZodOptional<z.ZodNumber>;
46
- search_and_write: z.ZodOptional<z.ZodNumber>;
47
- filter: z.ZodOptional<z.ZodNumber>;
48
- }, z.core.$strip>>;
49
- description: z.ZodOptional<z.ZodString>;
50
50
  primary_color: z.ZodOptional<z.ZodString>;
51
51
  secondary_color: z.ZodOptional<z.ZodString>;
52
52
  classification: z.ZodOptional<z.ZodString>;
@@ -74,9 +74,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
74
74
  */
75
75
  declare const ListAppsResponseSchema: z.ZodObject<{
76
76
  data: z.ZodArray<z.ZodObject<{
77
+ description: z.ZodOptional<z.ZodString>;
78
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
79
+ auth_type: z.ZodOptional<z.ZodString>;
80
+ actions: z.ZodOptional<z.ZodObject<{
81
+ read: z.ZodOptional<z.ZodNumber>;
82
+ read_bulk: z.ZodOptional<z.ZodNumber>;
83
+ write: z.ZodOptional<z.ZodNumber>;
84
+ search: z.ZodOptional<z.ZodNumber>;
85
+ search_or_write: z.ZodOptional<z.ZodNumber>;
86
+ search_and_write: z.ZodOptional<z.ZodNumber>;
87
+ filter: z.ZodOptional<z.ZodNumber>;
88
+ }, z.core.$strip>>;
89
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
90
+ is_beta: z.ZodOptional<z.ZodBoolean>;
91
+ is_premium: z.ZodOptional<z.ZodBoolean>;
77
92
  slug: z.ZodString;
78
93
  age_in_days: z.ZodOptional<z.ZodNumber>;
79
- auth_type: z.ZodOptional<z.ZodString>;
80
94
  banner: z.ZodOptional<z.ZodString>;
81
95
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
96
  id: z.ZodNumber;
@@ -96,26 +110,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
96
110
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
97
111
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
98
112
  has_writes: z.ZodOptional<z.ZodBoolean>;
99
- is_beta: z.ZodOptional<z.ZodBoolean>;
100
113
  is_built_in: z.ZodOptional<z.ZodBoolean>;
101
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
102
114
  is_featured: z.ZodOptional<z.ZodBoolean>;
103
- is_hidden: z.ZodOptional<z.ZodBoolean>;
104
115
  is_invite: z.ZodOptional<z.ZodBoolean>;
105
- is_premium: z.ZodOptional<z.ZodBoolean>;
106
116
  is_public: z.ZodOptional<z.ZodBoolean>;
107
117
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
108
118
  visibility: z.ZodOptional<z.ZodString>;
109
- actions: z.ZodOptional<z.ZodObject<{
110
- read: z.ZodOptional<z.ZodNumber>;
111
- read_bulk: z.ZodOptional<z.ZodNumber>;
112
- write: z.ZodOptional<z.ZodNumber>;
113
- search: z.ZodOptional<z.ZodNumber>;
114
- search_or_write: z.ZodOptional<z.ZodNumber>;
115
- search_and_write: z.ZodOptional<z.ZodNumber>;
116
- filter: z.ZodOptional<z.ZodNumber>;
117
- }, z.core.$strip>>;
118
- description: z.ZodOptional<z.ZodString>;
119
119
  primary_color: z.ZodOptional<z.ZodString>;
120
120
  secondary_color: z.ZodOptional<z.ZodString>;
121
121
  classification: z.ZodOptional<z.ZodString>;
@@ -90,7 +90,9 @@ var CreateClientCredentialsRequestSchema = import_zod.z.object({
90
90
  name: import_zod.z.string().min(1).max(255).describe("Human-readable name for the client credentials"),
91
91
  allowed_scopes: import_zod.z.array(ClientCredentialsScopeSchema).min(1).describe(
92
92
  "List of OAuth scopes that this application will be allowed to request"
93
- )
93
+ ),
94
+ // Policy validation is performed by Identity — sdkapi passes it through as-is.
95
+ policy: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().describe("Policy document to attach to the credentials")
94
96
  }).describe("Request body for creating client credentials");
95
97
  var CreateClientCredentialsResponseSchema = import_zod.z.object({
96
98
  data: ClientCredentialsCreatedItemSchema.describe(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,+BAA+B,aAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,aAAE,OAAO;AAAA,EACnD,WAAW,aAAE,OAAO;AAAA,EACpB,MAAM,aAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,aAAE,MAAM,aAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;AAAA,EACxD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAAA,EACnD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAC1C,CAAC;AAMI,IAAM,6CACX,oCAAoC,OAA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AA2B,EACjC,SAAS,6BAA6B;AAAA,EACzC,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,iDAAiD;AAAA,EAC/D,CAAC,EACA,SAAS,kBAAkB;AAAA,EAC9B,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,qBAAqB;AACnC,CAAC,EACA,SAAS,yCAAyC;AAY9C,IAAM,uCAAuC,aACjD,OAAO;AAAA,EACN,MAAM,aACH,OAAO,EACP,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,gDAAgD;AAAA,EAC5D,gBAAgB,aACb,MAAM,4BAA4B,EAClC,IAAI,CAAC,EACL;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,wCAAwC,aAClD,OAAO;AAAA,EACN,MAAM,mCAAmC;AAAA,IACvC;AAAA,EACF;AACF,CAAC,EACA,SAAS,0CAA0C;AAY/C,IAAM,qCAAqC,aAAE,OAAO;AAAA,EACzD,UAAU,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n // Policy validation is performed by Identity — sdkapi passes it through as-is.\n policy: z\n .record(z.string(), z.unknown())\n .optional()\n .describe(\"Policy document to attach to the credentials\"),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,+BAA+B,aAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,aAAE,OAAO;AAAA,EACnD,WAAW,aAAE,OAAO;AAAA,EACpB,MAAM,aAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,aAAE,MAAM,aAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;AAAA,EACxD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAAA,EACnD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAC1C,CAAC;AAMI,IAAM,6CACX,oCAAoC,OAAO;AAAA,EACzC,eAAe,aAAE,OAAO;AAC1B,CAAC;AAKI,IAAM,8CAA8C,aAAE,OAAO;AAAA,EAClE,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AAS,EACT,SAAS,EACT,SAAS,iDAAiD;AAAA,EAC/D,CAAC,EACA,SAAS,kBAAkB;AAAA,EAC9B,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,qBAAqB;AACnC,CAAC,EACA,SAAS,yCAAyC;AAY9C,IAAM,uCAAuC,aACjD,OAAO;AAAA,EACN,MAAM,aACH,OAAO,EACP,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,gDAAgD;AAAA,EAC5D,gBAAgB,aACb,MAAM,4BAA4B,EAClC,IAAI,CAAC,EACL;AAAA,IACC;AAAA,EACF;AAAA;AAAA,EAEF,QAAQ,aACL,OAAO,aAAE,OAAO,GAAG,aAAE,QAAQ,CAAC,EAC9B,SAAS,EACT,SAAS,8CAA8C;AAC5D,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,wCAAwC,aAClD,OAAO;AAAA,EACN,MAAM,mCAAmC;AAAA,IACvC;AAAA,EACF;AACF,CAAC,EACA,SAAS,0CAA0C;AAY/C,IAAM,qCAAqC,aAAE,OAAO;AAAA,EACzD,UAAU,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
@@ -112,6 +112,7 @@ declare const CreateClientCredentialsRequestSchema: z.ZodObject<{
112
112
  credentials: "credentials";
113
113
  external: "external";
114
114
  }>>;
115
+ policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
116
  }, z.core.$strip>;
116
117
  /**
117
118
  * Response schema for createClientCredentials
@@ -112,6 +112,7 @@ declare const CreateClientCredentialsRequestSchema: z.ZodObject<{
112
112
  credentials: "credentials";
113
113
  external: "external";
114
114
  }>>;
115
+ policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
116
  }, z.core.$strip>;
116
117
  /**
117
118
  * Response schema for createClientCredentials
@@ -56,7 +56,9 @@ var CreateClientCredentialsRequestSchema = z.object({
56
56
  name: z.string().min(1).max(255).describe("Human-readable name for the client credentials"),
57
57
  allowed_scopes: z.array(ClientCredentialsScopeSchema).min(1).describe(
58
58
  "List of OAuth scopes that this application will be allowed to request"
59
- )
59
+ ),
60
+ // Policy validation is performed by Identity — sdkapi passes it through as-is.
61
+ policy: z.record(z.string(), z.unknown()).optional().describe("Policy document to attach to the credentials")
60
62
  }).describe("Request body for creating client credentials");
61
63
  var CreateClientCredentialsResponseSchema = z.object({
62
64
  data: ClientCredentialsCreatedItemSchema.describe(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport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C;AAAA,EACF;AACF,CAAC,EACA,SAAS,0CAA0C;AAY/C,IAAM,qCAAqC,EAAE,OAAO;AAAA,EACzD,UAAU,EAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n // Policy validation is performed by Identity — sdkapi passes it through as-is.\n policy: z\n .record(z.string(), z.unknown())\n .optional()\n .describe(\"Policy document to attach to the credentials\"),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,+BAA+B,EAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,EAAE,OAAO;AAAA,EACnD,WAAW,EAAE,O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U,EAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
@@ -43,8 +43,8 @@ declare const ConnectionSchema: z.ZodObject<{
43
43
  * - app_version: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "1.0.0")
44
44
  */
45
45
  declare const ConnectionItemSchema: z.ZodObject<{
46
- date: z.ZodString;
47
46
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ date: z.ZodString;
48
48
  is_invite_only: z.ZodBoolean;
49
49
  lastchanged: z.ZodOptional<z.ZodString>;
50
50
  destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -137,8 +137,8 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
137
137
  */
138
138
  declare const ListConnectionsResponseSchema: z.ZodObject<{
139
139
  data: z.ZodArray<z.ZodObject<{
140
- date: z.ZodString;
141
140
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ date: z.ZodString;
142
142
  is_invite_only: z.ZodBoolean;
143
143
  lastchanged: z.ZodOptional<z.ZodString>;
144
144
  destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43,8 +43,8 @@ declare const ConnectionSchema: z.ZodObject<{
43
43
  * - app_version: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "1.0.0")
44
44
  */
45
45
  declare const ConnectionItemSchema: z.ZodObject<{
46
- date: z.ZodString;
47
46
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ date: z.ZodString;
48
48
  is_invite_only: z.ZodBoolean;
49
49
  lastchanged: z.ZodOptional<z.ZodString>;
50
50
  destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -137,8 +137,8 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
137
137
  */
138
138
  declare const ListConnectionsResponseSchema: z.ZodObject<{
139
139
  data: z.ZodArray<z.ZodObject<{
140
- date: z.ZodString;
141
140
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ date: z.ZodString;
142
142
  is_invite_only: z.ZodBoolean;
143
143
  lastchanged: z.ZodOptional<z.ZodString>;
144
144
  destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package/openapi.yaml CHANGED
@@ -241,6 +241,10 @@ components:
241
241
  - external
242
242
  minItems: 1
243
243
  description: List of OAuth scopes that this application will be allowed to request
244
+ policy:
245
+ type: object
246
+ additionalProperties: {}
247
+ description: Policy document to attach to the credentials
244
248
  required:
245
249
  - name
246
250
  - allowed_scopes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-core",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "Core schemas and TypeScript types for the Zapier SDK API",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Zapier, Inc.",