@zapier/zapier-sdk 0.18.1 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +17 -17
- package/dist/api/router.d.ts.map +1 -1
- package/dist/api/router.js +1 -7
- package/dist/api/router.test.js +1 -7
- package/dist/api/schemas.d.ts +0 -49
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -28
- package/dist/api/types.d.ts +2 -1
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +0 -10
- package/dist/index.cjs +38 -301
- package/dist/index.d.mts +114 -207
- package/dist/index.mjs +38 -301
- package/dist/plugins/findFirstAuthentication/index.test.js +2 -2
- package/dist/plugins/findUniqueAuthentication/index.test.js +2 -2
- package/dist/plugins/getAuthentication/index.d.ts +3 -3
- package/dist/plugins/getAuthentication/index.d.ts.map +1 -1
- package/dist/plugins/getAuthentication/index.js +3 -5
- package/dist/plugins/getAuthentication/index.test.js +4 -16
- package/dist/plugins/getAuthentication/schemas.d.ts +2 -4
- package/dist/plugins/getAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/getAuthentication/schemas.js +1 -1
- package/dist/plugins/listAuthentications/index.d.ts +4 -10
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/index.js +19 -31
- package/dist/plugins/listAuthentications/index.test.js +347 -127
- package/dist/plugins/listAuthentications/schemas.d.ts +7 -7
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +10 -16
- package/dist/schemas/Auth.d.ts +11 -11
- package/dist/schemas/Auth.d.ts.map +1 -1
- package/dist/schemas/Auth.js +2 -12
- package/dist/sdk.d.ts +4 -2
- package/dist/sdk.d.ts.map +1 -1
- package/dist/temporary-internal-core/index.d.ts +0 -2
- package/dist/temporary-internal-core/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/index.js +0 -2
- package/dist/temporary-internal-core/utils/transformations.d.ts +0 -14
- package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -1
- package/dist/temporary-internal-core/utils/transformations.js +0 -38
- package/dist/utils/domain-utils.d.ts +2 -15
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +0 -38
- package/dist/utils/function-utils.d.ts +1 -0
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/function-utils.js +15 -3
- package/package.json +2 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.d.ts +0 -94
- package/dist/temporary-internal-core/handlers/getAuthentication.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.js +0 -68
- package/dist/temporary-internal-core/handlers/getAuthentication.test.d.ts +0 -2
- package/dist/temporary-internal-core/handlers/getAuthentication.test.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.test.js +0 -248
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts +0 -150
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/authentications/index.js +0 -97
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { AuthenticationSchema, AuthenticationsResponseSchema, AuthenticationItem as AuthenticationItem$1, GetAuthenticationParam, GetAuthenticationResponse, GetAuthenticationParamSchema } from '@zapier/zapier-sdk-core/v0/schemas/authentications';
|
|
4
|
+
import * as zod_v4_core from 'zod/v4/core';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* SDK Event System
|
|
@@ -492,55 +494,6 @@ declare const ActionFieldSchema: z.ZodObject<{
|
|
|
492
494
|
format: z.ZodOptional<z.ZodString>;
|
|
493
495
|
inputFormat: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
496
|
}, z.core.$strip>;
|
|
495
|
-
declare const AuthenticationSchema: z.ZodObject<{
|
|
496
|
-
id: z.ZodNumber;
|
|
497
|
-
date: z.ZodString;
|
|
498
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
499
|
-
account_id: z.ZodNumber;
|
|
500
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
501
|
-
selected_api: z.ZodString;
|
|
502
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
503
|
-
is_invite_only: z.ZodBoolean;
|
|
504
|
-
is_private: z.ZodBoolean;
|
|
505
|
-
shared_with_all: z.ZodBoolean;
|
|
506
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
507
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
508
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
-
url: z.ZodOptional<z.ZodString>;
|
|
513
|
-
groups: z.ZodOptional<z.ZodString>;
|
|
514
|
-
members: z.ZodOptional<z.ZodString>;
|
|
515
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
516
|
-
}, z.core.$strip>;
|
|
517
|
-
declare const AuthenticationsResponseSchema: z.ZodObject<{
|
|
518
|
-
count: z.ZodNumber;
|
|
519
|
-
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
|
-
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
-
results: z.ZodArray<z.ZodObject<{
|
|
522
|
-
id: z.ZodNumber;
|
|
523
|
-
date: z.ZodString;
|
|
524
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
525
|
-
account_id: z.ZodNumber;
|
|
526
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
527
|
-
selected_api: z.ZodString;
|
|
528
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
529
|
-
is_invite_only: z.ZodBoolean;
|
|
530
|
-
is_private: z.ZodBoolean;
|
|
531
|
-
shared_with_all: z.ZodBoolean;
|
|
532
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
533
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
534
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
535
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
538
|
-
url: z.ZodOptional<z.ZodString>;
|
|
539
|
-
groups: z.ZodOptional<z.ZodString>;
|
|
540
|
-
members: z.ZodOptional<z.ZodString>;
|
|
541
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
542
|
-
}, z.core.$strip>>;
|
|
543
|
-
}, z.core.$strip>;
|
|
544
497
|
declare const UserProfileSchema: z.ZodObject<{
|
|
545
498
|
id: z.ZodNumber;
|
|
546
499
|
code: z.ZodString;
|
|
@@ -1058,137 +1011,6 @@ declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
1058
1011
|
}, z.core.$strip>;
|
|
1059
1012
|
type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
|
|
1060
1013
|
|
|
1061
|
-
/**
|
|
1062
|
-
* App and Service schemas
|
|
1063
|
-
*
|
|
1064
|
-
* Covers:
|
|
1065
|
-
* - App metadata
|
|
1066
|
-
* - Service definitions
|
|
1067
|
-
* - App listings and searches
|
|
1068
|
-
*/
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* Public API schema for listApps operation
|
|
1072
|
-
*
|
|
1073
|
-
* This is the user-facing schema that accepts app keys (slugs, implementation names, etc.)
|
|
1074
|
-
* The plugin resolves these to implementation IDs before calling the handler.
|
|
1075
|
-
*/
|
|
1076
|
-
declare const ListAppsOptionsSchema: z.ZodObject<{
|
|
1077
|
-
appKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1078
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1079
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1080
|
-
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1081
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1082
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1083
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1084
|
-
}, z.core.$strip>>;
|
|
1085
|
-
}, z.core.$strip>;
|
|
1086
|
-
type ListAppsOptions = z.infer<typeof ListAppsOptionsSchema>;
|
|
1087
|
-
/**
|
|
1088
|
-
* Normalized app item returned by listApps
|
|
1089
|
-
* This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id)
|
|
1090
|
-
*/
|
|
1091
|
-
declare const AppItemSchema$1: z.ZodObject<{
|
|
1092
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1093
|
-
id: z.ZodNumber;
|
|
1094
|
-
name: z.ZodString;
|
|
1095
|
-
slug: z.ZodString;
|
|
1096
|
-
}, z.core.$strip>>>;
|
|
1097
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
1098
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
1099
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
1101
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
1103
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
1104
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
-
}, z.core.$strip>>;
|
|
1106
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1107
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1108
|
-
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
1109
|
-
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
1110
|
-
banner: z.ZodOptional<z.ZodString>;
|
|
1111
|
-
image: z.ZodOptional<z.ZodString>;
|
|
1112
|
-
images: z.ZodOptional<z.ZodObject<{
|
|
1113
|
-
url_16x16: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
url_32x32: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
url_64x64: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
url_128x128: z.ZodOptional<z.ZodString>;
|
|
1117
|
-
}, z.core.$strip>>;
|
|
1118
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
1119
|
-
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
1120
|
-
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
1121
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
1122
|
-
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
1123
|
-
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
1124
|
-
popularity: z.ZodOptional<z.ZodNumber>;
|
|
1125
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
1126
|
-
slug: z.ZodString;
|
|
1127
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1129
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1130
|
-
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
1131
|
-
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
1132
|
-
has_searches: z.ZodOptional<z.ZodBoolean>;
|
|
1133
|
-
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1134
|
-
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
1135
|
-
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1136
|
-
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
1137
|
-
visibility: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
classification: z.ZodOptional<z.ZodString>;
|
|
1139
|
-
title: z.ZodString;
|
|
1140
|
-
key: z.ZodString;
|
|
1141
|
-
implementation_id: z.ZodString;
|
|
1142
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
}, z.core.$strip>;
|
|
1144
|
-
type AppItem$1 = z.infer<typeof AppItemSchema$1>;
|
|
1145
|
-
|
|
1146
|
-
/**
|
|
1147
|
-
* Authentication schemas
|
|
1148
|
-
*/
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* Public API schema for getAuthentication operation
|
|
1152
|
-
*
|
|
1153
|
-
* This is the user-facing schema that the SDK plugin accepts.
|
|
1154
|
-
*/
|
|
1155
|
-
declare const GetAuthenticationOptionsSchema: z.ZodObject<{
|
|
1156
|
-
authenticationId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1157
|
-
}, z.core.$strip>;
|
|
1158
|
-
type GetAuthenticationOptions = z.infer<typeof GetAuthenticationOptionsSchema>;
|
|
1159
|
-
/**
|
|
1160
|
-
* Response schema for getAuthentication (single item)
|
|
1161
|
-
*/
|
|
1162
|
-
declare const GetAuthenticationResponseSchema: z.ZodObject<{
|
|
1163
|
-
data: z.ZodLazy<z.ZodObject<{
|
|
1164
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1166
|
-
date: z.ZodString;
|
|
1167
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
1168
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1169
|
-
is_invite_only: z.ZodBoolean;
|
|
1170
|
-
is_private: z.ZodBoolean;
|
|
1171
|
-
shared_with_all: z.ZodBoolean;
|
|
1172
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1175
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1176
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1177
|
-
groups: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
members: z.ZodOptional<z.ZodString>;
|
|
1179
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1180
|
-
id: z.ZodString;
|
|
1181
|
-
account_id: z.ZodString;
|
|
1182
|
-
implementation_id: z.ZodOptional<z.ZodString>;
|
|
1183
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
1184
|
-
is_expired: z.ZodOptional<z.ZodString>;
|
|
1185
|
-
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
|
-
app_key: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
app_version: z.ZodOptional<z.ZodString>;
|
|
1188
|
-
}, z.core.$strip>>;
|
|
1189
|
-
}, z.core.$strip>;
|
|
1190
|
-
type GetAuthenticationResponse = z.infer<typeof GetAuthenticationResponseSchema>;
|
|
1191
|
-
|
|
1192
1014
|
declare const FindFirstAuthenticationSchema: z.ZodObject<{
|
|
1193
1015
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1194
1016
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
@@ -1539,6 +1361,91 @@ declare const GetAppSchema: z.ZodObject<{
|
|
|
1539
1361
|
}, z.core.$strip>;
|
|
1540
1362
|
type GetAppOptions = z.infer<typeof GetAppSchema>;
|
|
1541
1363
|
|
|
1364
|
+
/**
|
|
1365
|
+
* App and Service schemas
|
|
1366
|
+
*
|
|
1367
|
+
* Covers:
|
|
1368
|
+
* - App metadata
|
|
1369
|
+
* - Service definitions
|
|
1370
|
+
* - App listings and searches
|
|
1371
|
+
*/
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Public API schema for listApps operation
|
|
1375
|
+
*
|
|
1376
|
+
* This is the user-facing schema that accepts app keys (slugs, implementation names, etc.)
|
|
1377
|
+
* The plugin resolves these to implementation IDs before calling the handler.
|
|
1378
|
+
*/
|
|
1379
|
+
declare const ListAppsOptionsSchema: z.ZodObject<{
|
|
1380
|
+
appKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1381
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1383
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1384
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1386
|
+
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
type ListAppsOptions = z.infer<typeof ListAppsOptionsSchema>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Normalized app item returned by listApps
|
|
1392
|
+
* This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id)
|
|
1393
|
+
*/
|
|
1394
|
+
declare const AppItemSchema$1: z.ZodObject<{
|
|
1395
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1396
|
+
id: z.ZodNumber;
|
|
1397
|
+
name: z.ZodString;
|
|
1398
|
+
slug: z.ZodString;
|
|
1399
|
+
}, z.core.$strip>>>;
|
|
1400
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
1401
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
1403
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
1404
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
1405
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
1406
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
1407
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
1408
|
+
}, z.core.$strip>>;
|
|
1409
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1411
|
+
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
1412
|
+
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
1413
|
+
banner: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
images: z.ZodOptional<z.ZodObject<{
|
|
1416
|
+
url_16x16: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
url_32x32: z.ZodOptional<z.ZodString>;
|
|
1418
|
+
url_64x64: z.ZodOptional<z.ZodString>;
|
|
1419
|
+
url_128x128: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
}, z.core.$strip>>;
|
|
1421
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
1422
|
+
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
1423
|
+
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
1424
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
1425
|
+
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
1426
|
+
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
1427
|
+
popularity: z.ZodOptional<z.ZodNumber>;
|
|
1428
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
slug: z.ZodString;
|
|
1430
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1432
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
+
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
1435
|
+
has_searches: z.ZodOptional<z.ZodBoolean>;
|
|
1436
|
+
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
+
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
1438
|
+
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1439
|
+
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
1440
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
title: z.ZodString;
|
|
1443
|
+
key: z.ZodString;
|
|
1444
|
+
implementation_id: z.ZodString;
|
|
1445
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
}, z.core.$strip>;
|
|
1447
|
+
type AppItem$1 = z.infer<typeof AppItemSchema$1>;
|
|
1448
|
+
|
|
1542
1449
|
interface ListAppsPluginProvides {
|
|
1543
1450
|
listApps: (options?: ListAppsOptions) => Promise<{
|
|
1544
1451
|
data: AppItem$1[];
|
|
@@ -1609,15 +1516,15 @@ AppsPluginProvides>;
|
|
|
1609
1516
|
interface ZapierSdkApps {
|
|
1610
1517
|
}
|
|
1611
1518
|
|
|
1612
|
-
declare const
|
|
1519
|
+
declare const ListAuthenticationsQuerySchema: z.ZodObject<{
|
|
1520
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1522
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1613
1524
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1614
1525
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1615
1526
|
}>;
|
|
1616
1527
|
authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1617
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1618
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1619
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
1620
|
-
owner: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"me">]>>;
|
|
1621
1528
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1622
1529
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1623
1530
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1625,22 +1532,20 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
|
|
|
1625
1532
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1626
1533
|
}, z.core.$strip>>;
|
|
1627
1534
|
}, z.core.$strip>;
|
|
1628
|
-
type ListAuthenticationsOptions = z.infer<typeof
|
|
1535
|
+
type ListAuthenticationsOptions = z.infer<typeof ListAuthenticationsQuerySchema>;
|
|
1536
|
+
interface ListAuthenticationsPage {
|
|
1537
|
+
data: AuthenticationItem$1[];
|
|
1538
|
+
nextCursor?: string;
|
|
1539
|
+
}
|
|
1629
1540
|
|
|
1630
1541
|
interface ListAuthenticationsPluginProvides {
|
|
1631
|
-
listAuthentications: (options?: ListAuthenticationsOptions) => Promise<{
|
|
1632
|
-
|
|
1633
|
-
nextCursor?: string;
|
|
1634
|
-
}> & AsyncIterable<{
|
|
1635
|
-
data: AuthenticationItem[];
|
|
1636
|
-
nextCursor?: string;
|
|
1637
|
-
}> & {
|
|
1638
|
-
items(): AsyncIterable<AuthenticationItem>;
|
|
1542
|
+
listAuthentications: (options?: ListAuthenticationsOptions) => Promise<ListAuthenticationsPage> & AsyncIterable<ListAuthenticationsPage> & {
|
|
1543
|
+
items(): AsyncIterable<AuthenticationItem$1>;
|
|
1639
1544
|
};
|
|
1640
1545
|
context: {
|
|
1641
1546
|
meta: {
|
|
1642
1547
|
listAuthentications: {
|
|
1643
|
-
inputSchema: typeof
|
|
1548
|
+
inputSchema: typeof ListAuthenticationsQuerySchema;
|
|
1644
1549
|
};
|
|
1645
1550
|
};
|
|
1646
1551
|
};
|
|
@@ -1651,11 +1556,11 @@ declare const listAuthenticationsPlugin: Plugin<GetSdkType<ManifestPluginProvide
|
|
|
1651
1556
|
} & EventEmissionContext, ListAuthenticationsPluginProvides>;
|
|
1652
1557
|
|
|
1653
1558
|
interface GetAuthenticationPluginProvides {
|
|
1654
|
-
getAuthentication: (options:
|
|
1559
|
+
getAuthentication: (options: GetAuthenticationParam) => Promise<GetAuthenticationResponse>;
|
|
1655
1560
|
context: {
|
|
1656
1561
|
meta: {
|
|
1657
1562
|
getAuthentication: {
|
|
1658
|
-
inputSchema: typeof
|
|
1563
|
+
inputSchema: typeof GetAuthenticationParamSchema;
|
|
1659
1564
|
};
|
|
1660
1565
|
};
|
|
1661
1566
|
};
|
|
@@ -1999,8 +1904,6 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
1999
1904
|
}, z.core.$strip>;
|
|
2000
1905
|
|
|
2001
1906
|
declare const AuthenticationItemSchema: z.ZodObject<{
|
|
2002
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2003
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2004
1907
|
date: z.ZodString;
|
|
2005
1908
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2006
1909
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2010,23 +1913,23 @@ declare const AuthenticationItemSchema: z.ZodObject<{
|
|
|
2010
1913
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
2011
1914
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
2012
1915
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1916
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2013
1917
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2014
1918
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2015
|
-
|
|
1919
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1920
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2016
1921
|
members: z.ZodOptional<z.ZodString>;
|
|
2017
1922
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2018
1923
|
id: z.ZodString;
|
|
2019
1924
|
account_id: z.ZodString;
|
|
2020
1925
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
2021
1927
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
2022
1928
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2023
1929
|
app_key: z.ZodOptional<z.ZodString>;
|
|
2024
1930
|
app_version: z.ZodOptional<z.ZodString>;
|
|
2025
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
2026
1931
|
}, z.core.$strip>;
|
|
2027
1932
|
declare const AuthItemSchema: z.ZodObject<{
|
|
2028
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2029
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2030
1933
|
date: z.ZodString;
|
|
2031
1934
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2032
1935
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2036,19 +1939,21 @@ declare const AuthItemSchema: z.ZodObject<{
|
|
|
2036
1939
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
2037
1940
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
2038
1941
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1942
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2039
1943
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2040
1944
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2041
|
-
|
|
1945
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1946
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2042
1947
|
members: z.ZodOptional<z.ZodString>;
|
|
2043
1948
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2044
1949
|
id: z.ZodString;
|
|
2045
1950
|
account_id: z.ZodString;
|
|
2046
1951
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
1952
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
2047
1953
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
2048
1954
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2049
1955
|
app_key: z.ZodOptional<z.ZodString>;
|
|
2050
1956
|
app_version: z.ZodOptional<z.ZodString>;
|
|
2051
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
2052
1957
|
}, z.core.$strip>;
|
|
2053
1958
|
type AuthItem = z.infer<typeof AuthItemSchema>;
|
|
2054
1959
|
|
|
@@ -2449,13 +2354,15 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2449
2354
|
} & {
|
|
2450
2355
|
meta: {
|
|
2451
2356
|
listAuthentications: {
|
|
2452
|
-
inputSchema: typeof
|
|
2357
|
+
inputSchema: typeof ListAuthenticationsQuerySchema;
|
|
2453
2358
|
};
|
|
2454
2359
|
};
|
|
2455
2360
|
} & {
|
|
2456
2361
|
meta: {
|
|
2457
2362
|
getAuthentication: {
|
|
2458
|
-
inputSchema:
|
|
2363
|
+
inputSchema: zod.ZodObject<{
|
|
2364
|
+
authenticationId: zod.ZodString;
|
|
2365
|
+
}, zod_v4_core.$strip>;
|
|
2459
2366
|
};
|
|
2460
2367
|
};
|
|
2461
2368
|
} & {
|