@zapier/zapier-sdk-core 0.7.2 → 0.9.1

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/openapi.yaml CHANGED
@@ -16,9 +16,11 @@ tags:
16
16
  - name: Apps
17
17
  description: App-related routes
18
18
  - name: Authentications
19
- description: Authentication-related routes
19
+ description: Authentication-related routes (deprecated, use Connections)
20
20
  - name: Client Credentials
21
21
  description: Client credentials management routes
22
+ - name: Connections
23
+ description: Connection-related routes
22
24
  - name: Deduplication
23
25
  description: Deduplication-related routes
24
26
  - name: Documentation
@@ -316,6 +318,15 @@ components:
316
318
  additionalProperties:
317
319
  type: boolean
318
320
  description: Permissions for the authentication
321
+ public_id:
322
+ type: string
323
+ description: Public UUID for the authentication
324
+ account_public_id:
325
+ type: string
326
+ description: Public UUID for the associated account
327
+ customuser_public_id:
328
+ type: string
329
+ description: Public UUID for the associated custom user
319
330
  implementation_id:
320
331
  type: string
321
332
  description: Implementation ID (was selected_api)
@@ -378,6 +389,150 @@ components:
378
389
  $ref: "#/components/schemas/AuthenticationItem"
379
390
  required:
380
391
  - data
392
+ ConnectionItem:
393
+ type: object
394
+ properties:
395
+ id:
396
+ type: string
397
+ description: Unique identifier for the connection
398
+ date:
399
+ type: string
400
+ description: Date created
401
+ lastchanged:
402
+ type: string
403
+ description: Date last changed
404
+ account_id:
405
+ type: string
406
+ description: Account ID associated with this connection
407
+ destination_selected_api:
408
+ type:
409
+ - string
410
+ - "null"
411
+ description: Destination API key (if applicable)
412
+ is_invite_only:
413
+ type: boolean
414
+ description: Whether the connection is invite-only
415
+ is_private:
416
+ type: boolean
417
+ description: Whether the connection is private
418
+ shared_with_all:
419
+ type: boolean
420
+ description: Whether the connection is shared with all users
421
+ is_stale:
422
+ type: string
423
+ description: Stale status string
424
+ is_shared:
425
+ type: string
426
+ description: Shared status string
427
+ marked_stale_at:
428
+ type:
429
+ - string
430
+ - "null"
431
+ description: Date when marked stale
432
+ label:
433
+ type:
434
+ - string
435
+ - "null"
436
+ description: User label for the connection
437
+ identifier:
438
+ type:
439
+ - string
440
+ - "null"
441
+ description: Identifier
442
+ title:
443
+ type:
444
+ - string
445
+ - "null"
446
+ description: Title of the connection
447
+ url:
448
+ type: string
449
+ description: URL to the connection resource
450
+ groups:
451
+ type: array
452
+ items:
453
+ type: object
454
+ additionalProperties: {}
455
+ description: Groups associated with the connection
456
+ description: Array of groups associated with the connection
457
+ members:
458
+ type: string
459
+ description: Members associated with the connection
460
+ permissions:
461
+ type: object
462
+ additionalProperties:
463
+ type: boolean
464
+ description: Permissions for the connection
465
+ public_id:
466
+ type: string
467
+ description: Public UUID for the connection
468
+ account_public_id:
469
+ type: string
470
+ description: Public UUID for the associated account
471
+ customuser_public_id:
472
+ type: string
473
+ description: Public UUID for the associated custom user
474
+ implementation_id:
475
+ type: string
476
+ description: Implementation ID (was selected_api)
477
+ profile_id:
478
+ type: string
479
+ description: Profile ID (was customuser_id)
480
+ is_expired:
481
+ type: string
482
+ description: Whether the connection is expired (mapped from is_stale)
483
+ expired_at:
484
+ type:
485
+ - string
486
+ - "null"
487
+ description: Date when connection expired (mapped from marked_stale_at)
488
+ app_key:
489
+ type: string
490
+ description: App Key extracted from implementation_id
491
+ app_version:
492
+ type: string
493
+ description: App Version extracted from implementation_id
494
+ required:
495
+ - id
496
+ - date
497
+ - account_id
498
+ - is_invite_only
499
+ - is_private
500
+ - shared_with_all
501
+ description: Normalized connection item returned by getConnection handler
502
+ example:
503
+ id: "12345"
504
+ date: 2023-01-15T10:30:00Z
505
+ lastchanged: 2023-06-20T14:45:00Z
506
+ account_id: "98765"
507
+ destination_selected_api: null
508
+ is_invite_only: false
509
+ is_private: true
510
+ shared_with_all: false
511
+ is_stale: "false"
512
+ is_shared: "false"
513
+ marked_stale_at: null
514
+ label: My Slack Account
515
+ identifier: user@example.com
516
+ title: Slack - Personal Workspace
517
+ url: /api/v0/connections/12345
518
+ groups: []
519
+ members: ""
520
+ permissions:
521
+ can_view: true
522
+ can_delete: true
523
+ implementation_id: SlackCLIAPI@1.0.0
524
+ profile_id: "54321"
525
+ is_expired: "false"
526
+ expired_at: null
527
+ app_key: SlackCLIAPI
528
+ app_version: 1.0.0
529
+ GetConnectionResponse:
530
+ type: object
531
+ properties:
532
+ data:
533
+ $ref: "#/components/schemas/ConnectionItem"
534
+ required:
535
+ - data
381
536
  ListActionsResponse:
382
537
  type: object
383
538
  properties:
@@ -714,6 +869,15 @@ components:
714
869
  additionalProperties:
715
870
  type: boolean
716
871
  description: Permissions for the authentication
872
+ public_id:
873
+ type: string
874
+ description: Public UUID for the authentication
875
+ account_public_id:
876
+ type: string
877
+ description: Public UUID for the associated account
878
+ customuser_public_id:
879
+ type: string
880
+ description: Public UUID for the associated custom user
717
881
  implementation_id:
718
882
  type: string
719
883
  description: Implementation ID (was selected_api)
@@ -841,6 +1005,152 @@ components:
841
1005
  - links
842
1006
  - meta
843
1007
  description: Response for listing client credentials
1008
+ ListConnectionsResponse:
1009
+ type: object
1010
+ properties:
1011
+ data:
1012
+ type: array
1013
+ items:
1014
+ type: object
1015
+ properties:
1016
+ id:
1017
+ type: string
1018
+ description: Unique identifier for the connection
1019
+ date:
1020
+ type: string
1021
+ description: Date created
1022
+ lastchanged:
1023
+ type: string
1024
+ description: Date last changed
1025
+ account_id:
1026
+ type: string
1027
+ description: Account ID associated with this connection
1028
+ destination_selected_api:
1029
+ type:
1030
+ - string
1031
+ - "null"
1032
+ description: Destination API key (if applicable)
1033
+ is_invite_only:
1034
+ type: boolean
1035
+ description: Whether the connection is invite-only
1036
+ is_private:
1037
+ type: boolean
1038
+ description: Whether the connection is private
1039
+ shared_with_all:
1040
+ type: boolean
1041
+ description: Whether the connection is shared with all users
1042
+ is_stale:
1043
+ type: string
1044
+ description: Stale status string
1045
+ is_shared:
1046
+ type: string
1047
+ description: Shared status string
1048
+ marked_stale_at:
1049
+ type:
1050
+ - string
1051
+ - "null"
1052
+ description: Date when marked stale
1053
+ label:
1054
+ type:
1055
+ - string
1056
+ - "null"
1057
+ description: User label for the connection
1058
+ identifier:
1059
+ type:
1060
+ - string
1061
+ - "null"
1062
+ description: Identifier
1063
+ title:
1064
+ type:
1065
+ - string
1066
+ - "null"
1067
+ description: Title of the connection
1068
+ url:
1069
+ type: string
1070
+ description: URL to the connection resource
1071
+ groups:
1072
+ type: array
1073
+ items:
1074
+ type: object
1075
+ additionalProperties: {}
1076
+ description: Groups associated with the connection
1077
+ description: Array of groups associated with the connection
1078
+ members:
1079
+ type: string
1080
+ description: Members associated with the connection
1081
+ permissions:
1082
+ type: object
1083
+ additionalProperties:
1084
+ type: boolean
1085
+ description: Permissions for the connection
1086
+ public_id:
1087
+ type: string
1088
+ description: Public UUID for the connection
1089
+ account_public_id:
1090
+ type: string
1091
+ description: Public UUID for the associated account
1092
+ customuser_public_id:
1093
+ type: string
1094
+ description: Public UUID for the associated custom user
1095
+ implementation_id:
1096
+ type: string
1097
+ description: Implementation ID (was selected_api)
1098
+ profile_id:
1099
+ type: string
1100
+ description: Profile ID (was customuser_id)
1101
+ is_expired:
1102
+ type: string
1103
+ description: Whether the connection is expired (mapped from is_stale)
1104
+ expired_at:
1105
+ type:
1106
+ - string
1107
+ - "null"
1108
+ description: Date when connection expired (mapped from marked_stale_at)
1109
+ app_key:
1110
+ type: string
1111
+ description: App Key extracted from implementation_id
1112
+ app_version:
1113
+ type: string
1114
+ description: App Version extracted from implementation_id
1115
+ required:
1116
+ - id
1117
+ - date
1118
+ - account_id
1119
+ - is_invite_only
1120
+ - is_private
1121
+ - shared_with_all
1122
+ description: Array of connection items
1123
+ links:
1124
+ type: object
1125
+ properties:
1126
+ next:
1127
+ type:
1128
+ - string
1129
+ - "null"
1130
+ description: Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/connections?offset=100&page_size=50
1131
+ description: Pagination links for navigating through results
1132
+ meta:
1133
+ type: object
1134
+ properties:
1135
+ count:
1136
+ type: number
1137
+ description: Total number of items
1138
+ limit:
1139
+ type: number
1140
+ description: Number of items per page
1141
+ offset:
1142
+ type: number
1143
+ description: Offset of the current page
1144
+ required:
1145
+ - count
1146
+ - limit
1147
+ - offset
1148
+ description: Metadata for the paginated result set
1149
+ required:
1150
+ - data
1151
+ - links
1152
+ - meta
1153
+ description: Response schema for listing connections
844
1154
  parameters: {}
845
1155
  securitySchemes:
846
1156
  userJwt:
@@ -1135,7 +1445,8 @@ paths:
1135
1445
  /api/v0/authentications/{authenticationId}:
1136
1446
  get:
1137
1447
  summary: Get an authentication
1138
- description: Returns a single authentication by ID.
1448
+ description: "Returns a single authentication by ID. Deprecated: Use /api/v0/connections/{connectionId} instead."
1449
+ deprecated: true
1139
1450
  tags:
1140
1451
  - Authentications
1141
1452
  operationId: v0_get_authentication
@@ -1178,6 +1489,52 @@ paths:
1178
1489
  headers: *a6
1179
1490
  content:
1180
1491
  application/json: *a7
1492
+ /api/v0/connections/{connectionId}:
1493
+ get:
1494
+ summary: Get a connection
1495
+ description: Returns a single connection by ID.
1496
+ tags:
1497
+ - Connections
1498
+ operationId: v0_get_connection
1499
+ security:
1500
+ - userJwt: []
1501
+ parameters:
1502
+ - schema:
1503
+ type: string
1504
+ description: Connection ID to retrieve
1505
+ required: true
1506
+ description: Connection ID to retrieve
1507
+ name: connectionId
1508
+ in: path
1509
+ responses:
1510
+ "200":
1511
+ description: Success
1512
+ content:
1513
+ application/json:
1514
+ schema:
1515
+ $ref: "#/components/schemas/GetConnectionResponse"
1516
+ "400":
1517
+ description: Bad Request
1518
+ content:
1519
+ application/json: *a1
1520
+ "401":
1521
+ description: Unauthorized
1522
+ content:
1523
+ application/json: *a2
1524
+ "429":
1525
+ description: Too Many Requests
1526
+ headers: *a3
1527
+ content:
1528
+ application/json: *a4
1529
+ "500":
1530
+ description: Server Error
1531
+ content:
1532
+ application/json: *a5
1533
+ "503":
1534
+ description: Service Unavailable
1535
+ headers: *a6
1536
+ content:
1537
+ application/json: *a7
1181
1538
  /api/v0/actions:
1182
1539
  get:
1183
1540
  summary: List actions
@@ -1185,8 +1542,7 @@ paths:
1185
1542
  tags:
1186
1543
  - Actions
1187
1544
  operationId: v0_list_actions
1188
- security:
1189
- - userJwt: []
1545
+ security: []
1190
1546
  parameters:
1191
1547
  - schema:
1192
1548
  type: string
@@ -1247,8 +1603,7 @@ paths:
1247
1603
  tags:
1248
1604
  - Apps
1249
1605
  operationId: v0_list_apps
1250
- security:
1251
- - userJwt: []
1606
+ security: []
1252
1607
  parameters:
1253
1608
  - schema:
1254
1609
  type: string
@@ -1311,7 +1666,8 @@ paths:
1311
1666
  /api/v0/authentications:
1312
1667
  get:
1313
1668
  summary: List authentications
1314
- description: Returns a paginated list of authentications with optional filtering by app, search term, owner, etc.
1669
+ description: "Returns a paginated list of authentications with optional filtering by app, search term, owner, etc. Deprecated: Use /api/v0/connections instead."
1670
+ deprecated: true
1315
1671
  tags:
1316
1672
  - Authentications
1317
1673
  operationId: v0_list_authentications
@@ -1411,4 +1767,107 @@ paths:
1411
1767
  headers: *a6
1412
1768
  content:
1413
1769
  application/json: *a7
1770
+ /api/v0/connections:
1771
+ get:
1772
+ summary: List connections
1773
+ description: Returns a paginated list of connections with optional filtering by app, search term, owner, etc.
1774
+ tags:
1775
+ - Connections
1776
+ operationId: v0_list_connections
1777
+ security:
1778
+ - userJwt: []
1779
+ parameters:
1780
+ - schema:
1781
+ type: string
1782
+ description: Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')
1783
+ required: false
1784
+ description: Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')
1785
+ name: app_key
1786
+ in: query
1787
+ - schema:
1788
+ type: string
1789
+ description: Comma-separated list of connection IDs to filter by
1790
+ required: false
1791
+ description: Comma-separated list of connection IDs to filter by
1792
+ name: connection_ids
1793
+ in: query
1794
+ - schema:
1795
+ type: string
1796
+ description: Search term to filter connections by title
1797
+ required: false
1798
+ description: Search term to filter connections by title
1799
+ name: search
1800
+ in: query
1801
+ - schema:
1802
+ type: string
1803
+ description: Filter connections by exact title match (searches first, then filters locally)
1804
+ required: false
1805
+ description: Filter connections by exact title match (searches first, then filters locally)
1806
+ name: title
1807
+ in: query
1808
+ - schema:
1809
+ type: string
1810
+ description: Filter connections by account ID
1811
+ required: false
1812
+ description: Filter connections by account ID
1813
+ name: account_id
1814
+ in: query
1815
+ - schema:
1816
+ type: string
1817
+ description: Filter by owner, 'me' for your own connections or a specific user ID
1818
+ required: false
1819
+ description: Filter by owner, 'me' for your own connections or a specific user ID
1820
+ name: owner
1821
+ in: query
1822
+ - schema:
1823
+ type: boolean
1824
+ description: Filter by expired status (true = expired only, false = non-expired only)
1825
+ required: false
1826
+ description: Filter by expired status (true = expired only, false = non-expired only)
1827
+ name: is_expired
1828
+ in: query
1829
+ - schema:
1830
+ type: number
1831
+ minimum: 1
1832
+ description: Number of connections per page
1833
+ required: false
1834
+ description: Number of connections per page
1835
+ name: page_size
1836
+ in: query
1837
+ - schema:
1838
+ type: string
1839
+ description: Pagination offset from previous response
1840
+ required: false
1841
+ description: Pagination offset from previous response
1842
+ name: offset
1843
+ in: query
1844
+ responses:
1845
+ "200":
1846
+ description: Successfully retrieved connections list
1847
+ content:
1848
+ application/json:
1849
+ schema:
1850
+ $ref: "#/components/schemas/ListConnectionsResponse"
1851
+ "400":
1852
+ description: Bad Request
1853
+ content:
1854
+ application/json: *a1
1855
+ "401":
1856
+ description: Unauthorized
1857
+ content:
1858
+ application/json: *a2
1859
+ "429":
1860
+ description: Too Many Requests
1861
+ headers: *a3
1862
+ content:
1863
+ application/json: *a4
1864
+ "500":
1865
+ description: Server Error
1866
+ content:
1867
+ application/json: *a5
1868
+ "503":
1869
+ description: Service Unavailable
1870
+ headers: *a6
1871
+ content:
1872
+ application/json: *a7
1414
1873
  webhooks: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-core",
3
- "version": "0.7.2",
3
+ "version": "0.9.1",
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.",
@@ -31,6 +31,11 @@
31
31
  "import": "./dist/v0/schemas/authentications.js",
32
32
  "require": "./dist/v0/schemas/authentications.cjs"
33
33
  },
34
+ "./v0/schemas/connections": {
35
+ "types": "./dist/v0/schemas/connections.d.ts",
36
+ "import": "./dist/v0/schemas/connections.js",
37
+ "require": "./dist/v0/schemas/connections.cjs"
38
+ },
34
39
  "./v0/schemas/apps": {
35
40
  "types": "./dist/v0/schemas/apps.d.ts",
36
41
  "import": "./dist/v0/schemas/apps.js",
@@ -78,7 +83,7 @@
78
83
  "LICENSE"
79
84
  ],
80
85
  "dependencies": {
81
- "zod": "^4.0.0"
86
+ "zod": "4.3.6"
82
87
  },
83
88
  "devDependencies": {
84
89
  "@asteasolutions/zod-to-openapi": "^8.1.0",