@zapier/zapier-sdk 0.18.0 → 0.18.2
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 +5 -5
- 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/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 +59 -247
- package/dist/index.d.mts +100 -191
- package/dist/index.mjs +59 -247
- package/dist/plugins/eventEmission/transport.d.ts +8 -18
- package/dist/plugins/eventEmission/transport.d.ts.map +1 -1
- package/dist/plugins/eventEmission/transport.js +47 -44
- package/dist/plugins/eventEmission/transport.test.js +36 -25
- 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.map +1 -1
- 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 +3 -1
- 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 +1 -1
- package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -1
- 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, 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[];
|
|
@@ -1651,11 +1558,11 @@ declare const listAuthenticationsPlugin: Plugin<GetSdkType<ManifestPluginProvide
|
|
|
1651
1558
|
} & EventEmissionContext, ListAuthenticationsPluginProvides>;
|
|
1652
1559
|
|
|
1653
1560
|
interface GetAuthenticationPluginProvides {
|
|
1654
|
-
getAuthentication: (options:
|
|
1561
|
+
getAuthentication: (options: GetAuthenticationParam) => Promise<GetAuthenticationResponse>;
|
|
1655
1562
|
context: {
|
|
1656
1563
|
meta: {
|
|
1657
1564
|
getAuthentication: {
|
|
1658
|
-
inputSchema: typeof
|
|
1565
|
+
inputSchema: typeof GetAuthenticationParamSchema;
|
|
1659
1566
|
};
|
|
1660
1567
|
};
|
|
1661
1568
|
};
|
|
@@ -1999,8 +1906,6 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
1999
1906
|
}, z.core.$strip>;
|
|
2000
1907
|
|
|
2001
1908
|
declare const AuthenticationItemSchema: z.ZodObject<{
|
|
2002
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2003
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2004
1909
|
date: z.ZodString;
|
|
2005
1910
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2006
1911
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2010,23 +1915,23 @@ declare const AuthenticationItemSchema: z.ZodObject<{
|
|
|
2010
1915
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
2011
1916
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
2012
1917
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1918
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2013
1919
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2014
1920
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2015
|
-
|
|
1921
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2016
1923
|
members: z.ZodOptional<z.ZodString>;
|
|
2017
1924
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2018
1925
|
id: z.ZodString;
|
|
2019
1926
|
account_id: z.ZodString;
|
|
2020
1927
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
1928
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
2021
1929
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
2022
1930
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2023
1931
|
app_key: z.ZodOptional<z.ZodString>;
|
|
2024
1932
|
app_version: z.ZodOptional<z.ZodString>;
|
|
2025
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
2026
1933
|
}, z.core.$strip>;
|
|
2027
1934
|
declare const AuthItemSchema: z.ZodObject<{
|
|
2028
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2029
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2030
1935
|
date: z.ZodString;
|
|
2031
1936
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2032
1937
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2036,19 +1941,21 @@ declare const AuthItemSchema: z.ZodObject<{
|
|
|
2036
1941
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
2037
1942
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
2038
1943
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1944
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2039
1945
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2040
1946
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2041
|
-
|
|
1947
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1948
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2042
1949
|
members: z.ZodOptional<z.ZodString>;
|
|
2043
1950
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2044
1951
|
id: z.ZodString;
|
|
2045
1952
|
account_id: z.ZodString;
|
|
2046
1953
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
2047
1955
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
2048
1956
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2049
1957
|
app_key: z.ZodOptional<z.ZodString>;
|
|
2050
1958
|
app_version: z.ZodOptional<z.ZodString>;
|
|
2051
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
2052
1959
|
}, z.core.$strip>;
|
|
2053
1960
|
type AuthItem = z.infer<typeof AuthItemSchema>;
|
|
2054
1961
|
|
|
@@ -2455,7 +2362,9 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2455
2362
|
} & {
|
|
2456
2363
|
meta: {
|
|
2457
2364
|
getAuthentication: {
|
|
2458
|
-
inputSchema:
|
|
2365
|
+
inputSchema: zod.ZodObject<{
|
|
2366
|
+
authenticationId: zod.ZodString;
|
|
2367
|
+
}, zod_v4_core.$strip>;
|
|
2459
2368
|
};
|
|
2460
2369
|
};
|
|
2461
2370
|
} & {
|