@zapier/zapier-sdk-core 0.6.0 → 0.7.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.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1184ce7: Adds new endpoints for client crendentials.
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
@@ -49,6 +49,10 @@ var tags = [
49
49
  name: "Authentications",
50
50
  description: "Authentication-related routes"
51
51
  },
52
+ {
53
+ name: "Client Credentials",
54
+ description: "Client credentials management routes"
55
+ },
52
56
  {
53
57
  name: "Documentation",
54
58
  description: "Documentation-related routes"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/config/metadata.ts"],"sourcesContent":["/**\n * OpenAPI specification metadata\n *\n * This file contains all the base metadata for the OpenAPI specification\n * that was previously stored in openapi-base.yaml.\n *\n * Note on 'as const' usage:\n * - We use 'as const' on literal values that should be treated as enums\n * (e.g., \"apiKey\", \"header\", \"3.1.0\") to get precise literal types\n * - We avoid 'as const' on top-level configuration objects to prevent\n * deep readonly types that can cause compatibility issues with libraries\n * expecting mutable types (like zod-to-openapi)\n * - If you encounter readonly type errors, check whether the consuming\n * library expects mutable types and remove 'as const' accordingly\n */\n\nexport const apiInfo = {\n title: \"Zapier SDK API\",\n version: \"1.0.0\",\n contact: {\n email: \"engineering@zapier.com\",\n },\n description: \"The Zapier SDK API serves as a backend for the Zapier SDK.\",\n};\n\nexport const servers: Array<{ url: string; description: string }> = [];\n\nexport const tags = [\n {\n name: \"Actions\",\n description: \"Action-related routes\",\n },\n {\n name: \"Apps\",\n description: \"App-related routes\",\n },\n {\n name: \"Authentications\",\n description: \"Authentication-related routes\",\n },\n {\n name: \"Documentation\",\n description: \"Documentation-related routes\",\n },\n];\n\n/**\n * Security schemes for OpenAPI specification\n *\n * Note: 'as const' is used on enum-like literal values (\"apiKey\", \"header\")\n * to ensure TypeScript treats them as literal types rather than generic strings.\n * This provides better type safety when the OpenAPI generator validates these values.\n */\nexport const securitySchemes = {\n userJwt: {\n type: \"apiKey\" as const,\n in: \"header\" as const,\n name: \"Authorization\",\n description:\n \"Format should be `JWT <your-jwt>` (you must ensure that the JWT prefix \" +\n \"is included in your requests).\\\\n\\\\n\" +\n \"Example: `Authorization: JWT your.jwt.value.here`\",\n },\n} as const;\n\n/**\n * Complete OpenAPI metadata for document generation\n */\nexport const openApiMetadata = {\n openapi: \"3.1.0\" as const,\n info: apiInfo,\n servers,\n tags,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AACf;AAEO,IAAM,UAAuD,CAAC;AAE9D,IAAM,OAAO;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AASO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aACE;AAAA,EAGJ;AACF;AAKO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,MAAM;AAAA,EACN;AAAA,EACA;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/config/metadata.ts"],"sourcesContent":["/**\n * OpenAPI specification metadata\n *\n * This file contains all the base metadata for the OpenAPI specification\n * that was previously stored in openapi-base.yaml.\n *\n * Note on 'as const' usage:\n * - We use 'as const' on literal values that should be treated as enums\n * (e.g., \"apiKey\", \"header\", \"3.1.0\") to get precise literal types\n * - We avoid 'as const' on top-level configuration objects to prevent\n * deep readonly types that can cause compatibility issues with libraries\n * expecting mutable types (like zod-to-openapi)\n * - If you encounter readonly type errors, check whether the consuming\n * library expects mutable types and remove 'as const' accordingly\n */\n\nexport const apiInfo = {\n title: \"Zapier SDK API\",\n version: \"1.0.0\",\n contact: {\n email: \"engineering@zapier.com\",\n },\n description: \"The Zapier SDK API serves as a backend for the Zapier SDK.\",\n};\n\nexport const servers: Array<{ url: string; description: string }> = [];\n\nexport const tags = [\n {\n name: \"Actions\",\n description: \"Action-related routes\",\n },\n {\n name: \"Apps\",\n description: \"App-related routes\",\n },\n {\n name: \"Authentications\",\n description: \"Authentication-related routes\",\n },\n {\n name: \"Client Credentials\",\n description: \"Client credentials management routes\",\n },\n {\n name: \"Documentation\",\n description: \"Documentation-related routes\",\n },\n];\n\n/**\n * Security schemes for OpenAPI specification\n *\n * Note: 'as const' is used on enum-like literal values (\"apiKey\", \"header\")\n * to ensure TypeScript treats them as literal types rather than generic strings.\n * This provides better type safety when the OpenAPI generator validates these values.\n */\nexport const securitySchemes = {\n userJwt: {\n type: \"apiKey\" as const,\n in: \"header\" as const,\n name: \"Authorization\",\n description:\n \"Format should be `JWT <your-jwt>` (you must ensure that the JWT prefix \" +\n \"is included in your requests).\\\\n\\\\n\" +\n \"Example: `Authorization: JWT your.jwt.value.here`\",\n },\n} as const;\n\n/**\n * Complete OpenAPI metadata for document generation\n */\nexport const openApiMetadata = {\n openapi: \"3.1.0\" as const,\n info: apiInfo,\n servers,\n tags,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AACf;AAEO,IAAM,UAAuD,CAAC;AAE9D,IAAM,OAAO;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AASO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aACE;AAAA,EAGJ;AACF;AAKO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,MAAM;AAAA,EACN;AAAA,EACA;AACF;","names":[]}
@@ -21,6 +21,10 @@ var tags = [
21
21
  name: "Authentications",
22
22
  description: "Authentication-related routes"
23
23
  },
24
+ {
25
+ name: "Client Credentials",
26
+ description: "Client credentials management routes"
27
+ },
24
28
  {
25
29
  name: "Documentation",
26
30
  description: "Documentation-related routes"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/config/metadata.ts"],"sourcesContent":["/**\n * OpenAPI specification metadata\n *\n * This file contains all the base metadata for the OpenAPI specification\n * that was previously stored in openapi-base.yaml.\n *\n * Note on 'as const' usage:\n * - We use 'as const' on literal values that should be treated as enums\n * (e.g., \"apiKey\", \"header\", \"3.1.0\") to get precise literal types\n * - We avoid 'as const' on top-level configuration objects to prevent\n * deep readonly types that can cause compatibility issues with libraries\n * expecting mutable types (like zod-to-openapi)\n * - If you encounter readonly type errors, check whether the consuming\n * library expects mutable types and remove 'as const' accordingly\n */\n\nexport const apiInfo = {\n title: \"Zapier SDK API\",\n version: \"1.0.0\",\n contact: {\n email: \"engineering@zapier.com\",\n },\n description: \"The Zapier SDK API serves as a backend for the Zapier SDK.\",\n};\n\nexport const servers: Array<{ url: string; description: string }> = [];\n\nexport const tags = [\n {\n name: \"Actions\",\n description: \"Action-related routes\",\n },\n {\n name: \"Apps\",\n description: \"App-related routes\",\n },\n {\n name: \"Authentications\",\n description: \"Authentication-related routes\",\n },\n {\n name: \"Documentation\",\n description: \"Documentation-related routes\",\n },\n];\n\n/**\n * Security schemes for OpenAPI specification\n *\n * Note: 'as const' is used on enum-like literal values (\"apiKey\", \"header\")\n * to ensure TypeScript treats them as literal types rather than generic strings.\n * This provides better type safety when the OpenAPI generator validates these values.\n */\nexport const securitySchemes = {\n userJwt: {\n type: \"apiKey\" as const,\n in: \"header\" as const,\n name: \"Authorization\",\n description:\n \"Format should be `JWT <your-jwt>` (you must ensure that the JWT prefix \" +\n \"is included in your requests).\\\\n\\\\n\" +\n \"Example: `Authorization: JWT your.jwt.value.here`\",\n },\n} as const;\n\n/**\n * Complete OpenAPI metadata for document generation\n */\nexport const openApiMetadata = {\n openapi: \"3.1.0\" as const,\n info: apiInfo,\n servers,\n tags,\n};\n"],"mappings":";AAgBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AACf;AAEO,IAAM,UAAuD,CAAC;AAE9D,IAAM,OAAO;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AASO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aACE;AAAA,EAGJ;AACF;AAKO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,MAAM;AAAA,EACN;AAAA,EACA;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/config/metadata.ts"],"sourcesContent":["/**\n * OpenAPI specification metadata\n *\n * This file contains all the base metadata for the OpenAPI specification\n * that was previously stored in openapi-base.yaml.\n *\n * Note on 'as const' usage:\n * - We use 'as const' on literal values that should be treated as enums\n * (e.g., \"apiKey\", \"header\", \"3.1.0\") to get precise literal types\n * - We avoid 'as const' on top-level configuration objects to prevent\n * deep readonly types that can cause compatibility issues with libraries\n * expecting mutable types (like zod-to-openapi)\n * - If you encounter readonly type errors, check whether the consuming\n * library expects mutable types and remove 'as const' accordingly\n */\n\nexport const apiInfo = {\n title: \"Zapier SDK API\",\n version: \"1.0.0\",\n contact: {\n email: \"engineering@zapier.com\",\n },\n description: \"The Zapier SDK API serves as a backend for the Zapier SDK.\",\n};\n\nexport const servers: Array<{ url: string; description: string }> = [];\n\nexport const tags = [\n {\n name: \"Actions\",\n description: \"Action-related routes\",\n },\n {\n name: \"Apps\",\n description: \"App-related routes\",\n },\n {\n name: \"Authentications\",\n description: \"Authentication-related routes\",\n },\n {\n name: \"Client Credentials\",\n description: \"Client credentials management routes\",\n },\n {\n name: \"Documentation\",\n description: \"Documentation-related routes\",\n },\n];\n\n/**\n * Security schemes for OpenAPI specification\n *\n * Note: 'as const' is used on enum-like literal values (\"apiKey\", \"header\")\n * to ensure TypeScript treats them as literal types rather than generic strings.\n * This provides better type safety when the OpenAPI generator validates these values.\n */\nexport const securitySchemes = {\n userJwt: {\n type: \"apiKey\" as const,\n in: \"header\" as const,\n name: \"Authorization\",\n description:\n \"Format should be `JWT <your-jwt>` (you must ensure that the JWT prefix \" +\n \"is included in your requests).\\\\n\\\\n\" +\n \"Example: `Authorization: JWT your.jwt.value.here`\",\n },\n} as const;\n\n/**\n * Complete OpenAPI metadata for document generation\n */\nexport const openApiMetadata = {\n openapi: \"3.1.0\" as const,\n info: apiInfo,\n servers,\n tags,\n};\n"],"mappings":";AAgBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AACf;AAEO,IAAM,UAAuD,CAAC;AAE9D,IAAM,OAAO;AAAA,EAClB;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,EACf;AACF;AASO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,IACP,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aACE;AAAA,EAGJ;AACF;AAKO,IAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,MAAM;AAAA,EACN;AAAA,EACA;AACF;","names":[]}
@@ -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;
@@ -153,14 +153,14 @@ type ImplementationsWithActionsResponse = z.infer<typeof ImplementationsWithActi
153
153
  declare const ListActionsQuerySchema: z.ZodObject<{
154
154
  appKey: z.ZodString;
155
155
  actionType: z.ZodOptional<z.ZodEnum<{
156
+ filter: "filter";
156
157
  read: "read";
157
158
  read_bulk: "read_bulk";
158
- write: "write";
159
+ run: "run";
159
160
  search: "search";
160
- search_or_write: "search_or_write";
161
161
  search_and_write: "search_and_write";
162
- filter: "filter";
163
- run: "run";
162
+ search_or_write: "search_or_write";
163
+ write: "write";
164
164
  }>>;
165
165
  }, z.core.$strip>;
166
166
  /**
@@ -176,14 +176,14 @@ declare const ListActionsResponseSchema: z.ZodObject<{
176
176
  app_key: z.ZodString;
177
177
  app_version: z.ZodOptional<z.ZodString>;
178
178
  action_type: z.ZodEnum<{
179
+ filter: "filter";
179
180
  read: "read";
180
181
  read_bulk: "read_bulk";
181
- write: "write";
182
+ run: "run";
182
183
  search: "search";
183
- search_or_write: "search_or_write";
184
184
  search_and_write: "search_and_write";
185
- filter: "filter";
186
- run: "run";
185
+ search_or_write: "search_or_write";
186
+ write: "write";
187
187
  }>;
188
188
  title: z.ZodString;
189
189
  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;
@@ -153,14 +153,14 @@ type ImplementationsWithActionsResponse = z.infer<typeof ImplementationsWithActi
153
153
  declare const ListActionsQuerySchema: z.ZodObject<{
154
154
  appKey: z.ZodString;
155
155
  actionType: z.ZodOptional<z.ZodEnum<{
156
+ filter: "filter";
156
157
  read: "read";
157
158
  read_bulk: "read_bulk";
158
- write: "write";
159
+ run: "run";
159
160
  search: "search";
160
- search_or_write: "search_or_write";
161
161
  search_and_write: "search_and_write";
162
- filter: "filter";
163
- run: "run";
162
+ search_or_write: "search_or_write";
163
+ write: "write";
164
164
  }>>;
165
165
  }, z.core.$strip>;
166
166
  /**
@@ -176,14 +176,14 @@ declare const ListActionsResponseSchema: z.ZodObject<{
176
176
  app_key: z.ZodString;
177
177
  app_version: z.ZodOptional<z.ZodString>;
178
178
  action_type: z.ZodEnum<{
179
+ filter: "filter";
179
180
  read: "read";
180
181
  read_bulk: "read_bulk";
181
- write: "write";
182
+ run: "run";
182
183
  search: "search";
183
- search_or_write: "search_or_write";
184
184
  search_and_write: "search_and_write";
185
- filter: "filter";
186
- run: "run";
185
+ search_or_write: "search_or_write";
186
+ write: "write";
187
187
  }>;
188
188
  title: z.ZodString;
189
189
  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>;
@@ -72,9 +72,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
72
72
  */
73
73
  declare const ListAppsResponseSchema: z.ZodObject<{
74
74
  data: z.ZodArray<z.ZodObject<{
75
+ description: z.ZodOptional<z.ZodString>;
76
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
77
+ auth_type: z.ZodOptional<z.ZodString>;
78
+ actions: z.ZodOptional<z.ZodObject<{
79
+ read: z.ZodOptional<z.ZodNumber>;
80
+ read_bulk: z.ZodOptional<z.ZodNumber>;
81
+ write: z.ZodOptional<z.ZodNumber>;
82
+ search: z.ZodOptional<z.ZodNumber>;
83
+ search_or_write: z.ZodOptional<z.ZodNumber>;
84
+ search_and_write: z.ZodOptional<z.ZodNumber>;
85
+ filter: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strip>>;
87
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
88
+ is_beta: z.ZodOptional<z.ZodBoolean>;
89
+ is_premium: z.ZodOptional<z.ZodBoolean>;
75
90
  slug: z.ZodString;
76
91
  age_in_days: z.ZodOptional<z.ZodNumber>;
77
- auth_type: z.ZodOptional<z.ZodString>;
78
92
  banner: z.ZodOptional<z.ZodString>;
79
93
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
94
  id: z.ZodNumber;
@@ -94,26 +108,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
94
108
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
95
109
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
96
110
  has_writes: z.ZodOptional<z.ZodBoolean>;
97
- is_beta: z.ZodOptional<z.ZodBoolean>;
98
111
  is_built_in: z.ZodOptional<z.ZodBoolean>;
99
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
100
112
  is_featured: z.ZodOptional<z.ZodBoolean>;
101
- is_hidden: z.ZodOptional<z.ZodBoolean>;
102
113
  is_invite: z.ZodOptional<z.ZodBoolean>;
103
- is_premium: z.ZodOptional<z.ZodBoolean>;
104
114
  is_public: z.ZodOptional<z.ZodBoolean>;
105
115
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
106
116
  visibility: z.ZodOptional<z.ZodString>;
107
- actions: z.ZodOptional<z.ZodObject<{
108
- read: z.ZodOptional<z.ZodNumber>;
109
- read_bulk: z.ZodOptional<z.ZodNumber>;
110
- write: z.ZodOptional<z.ZodNumber>;
111
- search: z.ZodOptional<z.ZodNumber>;
112
- search_or_write: z.ZodOptional<z.ZodNumber>;
113
- search_and_write: z.ZodOptional<z.ZodNumber>;
114
- filter: z.ZodOptional<z.ZodNumber>;
115
- }, z.core.$strip>>;
116
- description: z.ZodOptional<z.ZodString>;
117
117
  primary_color: z.ZodOptional<z.ZodString>;
118
118
  secondary_color: z.ZodOptional<z.ZodString>;
119
119
  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>;
@@ -72,9 +72,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
72
72
  */
73
73
  declare const ListAppsResponseSchema: z.ZodObject<{
74
74
  data: z.ZodArray<z.ZodObject<{
75
+ description: z.ZodOptional<z.ZodString>;
76
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
77
+ auth_type: z.ZodOptional<z.ZodString>;
78
+ actions: z.ZodOptional<z.ZodObject<{
79
+ read: z.ZodOptional<z.ZodNumber>;
80
+ read_bulk: z.ZodOptional<z.ZodNumber>;
81
+ write: z.ZodOptional<z.ZodNumber>;
82
+ search: z.ZodOptional<z.ZodNumber>;
83
+ search_or_write: z.ZodOptional<z.ZodNumber>;
84
+ search_and_write: z.ZodOptional<z.ZodNumber>;
85
+ filter: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strip>>;
87
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
88
+ is_beta: z.ZodOptional<z.ZodBoolean>;
89
+ is_premium: z.ZodOptional<z.ZodBoolean>;
75
90
  slug: z.ZodString;
76
91
  age_in_days: z.ZodOptional<z.ZodNumber>;
77
- auth_type: z.ZodOptional<z.ZodString>;
78
92
  banner: z.ZodOptional<z.ZodString>;
79
93
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
94
  id: z.ZodNumber;
@@ -94,26 +108,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
94
108
  has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
95
109
  has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
96
110
  has_writes: z.ZodOptional<z.ZodBoolean>;
97
- is_beta: z.ZodOptional<z.ZodBoolean>;
98
111
  is_built_in: z.ZodOptional<z.ZodBoolean>;
99
- is_deprecated: z.ZodOptional<z.ZodBoolean>;
100
112
  is_featured: z.ZodOptional<z.ZodBoolean>;
101
- is_hidden: z.ZodOptional<z.ZodBoolean>;
102
113
  is_invite: z.ZodOptional<z.ZodBoolean>;
103
- is_premium: z.ZodOptional<z.ZodBoolean>;
104
114
  is_public: z.ZodOptional<z.ZodBoolean>;
105
115
  is_upcoming: z.ZodOptional<z.ZodBoolean>;
106
116
  visibility: z.ZodOptional<z.ZodString>;
107
- actions: z.ZodOptional<z.ZodObject<{
108
- read: z.ZodOptional<z.ZodNumber>;
109
- read_bulk: z.ZodOptional<z.ZodNumber>;
110
- write: z.ZodOptional<z.ZodNumber>;
111
- search: z.ZodOptional<z.ZodNumber>;
112
- search_or_write: z.ZodOptional<z.ZodNumber>;
113
- search_and_write: z.ZodOptional<z.ZodNumber>;
114
- filter: z.ZodOptional<z.ZodNumber>;
115
- }, z.core.$strip>>;
116
- description: z.ZodOptional<z.ZodString>;
117
117
  primary_color: z.ZodOptional<z.ZodString>;
118
118
  secondary_color: z.ZodOptional<z.ZodString>;
119
119
  classification: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/v0/schemas/client-credentials.ts
21
+ var client_credentials_exports = {};
22
+ __export(client_credentials_exports, {
23
+ ClientCredentialsCreatedItemSchema: () => ClientCredentialsCreatedItemSchema,
24
+ ClientCredentialsItemSchema: () => ClientCredentialsItemSchema,
25
+ ClientCredentialsScopeSchema: () => ClientCredentialsScopeSchema,
26
+ CreateClientCredentialsRequestSchema: () => CreateClientCredentialsRequestSchema,
27
+ CreateClientCredentialsResponseSchema: () => CreateClientCredentialsResponseSchema,
28
+ DeleteClientCredentialsParamSchema: () => DeleteClientCredentialsParamSchema,
29
+ IdentityClientCredentialsCreatedItemSchema: () => IdentityClientCredentialsCreatedItemSchema,
30
+ IdentityClientCredentialsItemSchema: () => IdentityClientCredentialsItemSchema,
31
+ IdentityClientCredentialsListResponseSchema: () => IdentityClientCredentialsListResponseSchema,
32
+ ListClientCredentialsQuerySchema: () => ListClientCredentialsQuerySchema,
33
+ ListClientCredentialsResponseSchema: () => ListClientCredentialsResponseSchema
34
+ });
35
+ module.exports = __toCommonJS(client_credentials_exports);
36
+ var import_zod = require("zod");
37
+ var ClientCredentialsScopeSchema = import_zod.z.enum(["credentials", "external"]);
38
+ var IdentityClientCredentialsBaseSchema = import_zod.z.object({
39
+ client_id: import_zod.z.string(),
40
+ name: import_zod.z.string()
41
+ });
42
+ var IdentityClientCredentialsItemSchema = IdentityClientCredentialsBaseSchema.extend({
43
+ allowed_scopes: import_zod.z.array(import_zod.z.string()).nullable().optional(),
44
+ created: import_zod.z.string().datetime().nullable().optional(),
45
+ updated: import_zod.z.string().datetime().optional()
46
+ });
47
+ var IdentityClientCredentialsCreatedItemSchema = IdentityClientCredentialsBaseSchema.extend({
48
+ client_secret: import_zod.z.string()
49
+ });
50
+ var IdentityClientCredentialsListResponseSchema = import_zod.z.object({
51
+ count: import_zod.z.number(),
52
+ next: import_zod.z.string().nullable().optional(),
53
+ previous: import_zod.z.string().nullable().optional(),
54
+ results: import_zod.z.array(IdentityClientCredentialsItemSchema)
55
+ });
56
+ var ClientCredentialsBaseSchema = import_zod.z.object({
57
+ client_id: import_zod.z.string().describe("The public identifier (Client ID) of the OAuth application"),
58
+ name: import_zod.z.string().describe("Human-readable name of the OAuth application")
59
+ });
60
+ var ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({
61
+ allowed_scopes: import_zod.z.array(ClientCredentialsScopeSchema).describe(
62
+ "List of OAuth scopes that this application is allowed to request"
63
+ ),
64
+ created_at: import_zod.z.string().datetime().nullable().optional().describe("When the application was created (ISO 8601)"),
65
+ updated_at: import_zod.z.string().datetime().optional().describe("When the application was last updated (ISO 8601)")
66
+ });
67
+ var ClientCredentialsCreatedItemSchema = ClientCredentialsBaseSchema.extend({
68
+ client_secret: import_zod.z.string().describe("The client secret (only shown once on creation)")
69
+ });
70
+ var ListClientCredentialsQuerySchema = import_zod.z.object({
71
+ pageSize: import_zod.z.coerce.number().int().min(1).max(100).optional().describe("Number of items per page (default: 100, max: 100)"),
72
+ offset: import_zod.z.coerce.number().int().min(0).optional().describe("Pagination offset")
73
+ }).describe("Query parameters for listing client credentials");
74
+ var ListClientCredentialsResponseSchema = import_zod.z.object({
75
+ data: import_zod.z.array(ClientCredentialsItemSchema).describe("Array of client credentials"),
76
+ links: import_zod.z.object({
77
+ next: import_zod.z.string().nullable().optional().describe("URL for the next page of results (if available)")
78
+ }).describe("Pagination links"),
79
+ meta: import_zod.z.object({
80
+ count: import_zod.z.number().describe("Total number of items"),
81
+ limit: import_zod.z.number().describe("Number of items per page"),
82
+ offset: import_zod.z.number().describe("Offset of the current page")
83
+ }).describe("Pagination metadata")
84
+ }).describe("Response for listing client credentials");
85
+ var CreateClientCredentialsRequestSchema = import_zod.z.object({
86
+ name: import_zod.z.string().min(1).max(255).describe("Human-readable name for the client credentials"),
87
+ allowed_scopes: import_zod.z.array(ClientCredentialsScopeSchema).min(1).describe(
88
+ "List of OAuth scopes that this application will be allowed to request"
89
+ )
90
+ }).describe("Request body for creating client credentials");
91
+ var CreateClientCredentialsResponseSchema = import_zod.z.object({
92
+ data: ClientCredentialsCreatedItemSchema.describe(
93
+ "The created client credentials (includes client_secret)"
94
+ )
95
+ }).describe("Response for creating client credentials");
96
+ var DeleteClientCredentialsParamSchema = import_zod.z.object({
97
+ clientId: import_zod.z.string().describe("The client ID of the credentials to delete")
98
+ });
99
+ // Annotate the CommonJS export names for ESM import in node:
100
+ 0 && (module.exports = {
101
+ ClientCredentialsCreatedItemSchema,
102
+ ClientCredentialsItemSchema,
103
+ ClientCredentialsScopeSchema,
104
+ CreateClientCredentialsRequestSchema,
105
+ CreateClientCredentialsResponseSchema,
106
+ DeleteClientCredentialsParamSchema,
107
+ IdentityClientCredentialsCreatedItemSchema,
108
+ IdentityClientCredentialsItemSchema,
109
+ IdentityClientCredentialsListResponseSchema,
110
+ ListClientCredentialsQuerySchema,
111
+ ListClientCredentialsResponseSchema
112
+ });
113
+ //# sourceMappingURL=client-credentials.cjs.map