@zapier/zapier-sdk-core 0.3.0 → 0.5.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 +14 -0
- package/dist/index.cjs +162 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +124 -0
- package/dist/index.js.map +1 -0
- package/dist/v0/common/responses.cjs +139 -0
- package/dist/v0/common/responses.cjs.map +1 -0
- package/dist/v0/common/responses.d.cts +157 -0
- package/dist/v0/common/responses.d.ts +157 -0
- package/dist/v0/common/responses.js +112 -0
- package/dist/v0/common/responses.js.map +1 -0
- package/dist/v0/config/metadata.cjs +79 -0
- package/dist/v0/config/metadata.cjs.map +1 -0
- package/dist/v0/config/metadata.d.cts +70 -0
- package/dist/v0/config/metadata.d.ts +70 -0
- package/dist/v0/config/metadata.js +50 -0
- package/dist/v0/config/metadata.js.map +1 -0
- package/dist/v0/schemas/actions.cjs +90 -0
- package/dist/v0/schemas/actions.cjs.map +1 -0
- package/dist/v0/schemas/actions.d.cts +151 -0
- package/dist/v0/schemas/actions.d.ts +151 -0
- package/dist/v0/schemas/actions.js +61 -0
- package/dist/v0/schemas/actions.js.map +1 -0
- package/dist/v0/schemas/apps.cjs +130 -0
- package/dist/v0/schemas/apps.cjs.map +1 -0
- package/dist/v0/schemas/apps.d.cts +139 -0
- package/dist/v0/schemas/apps.d.ts +139 -0
- package/dist/v0/schemas/apps.js +103 -0
- package/dist/v0/schemas/apps.js.map +1 -0
- package/dist/v0/schemas/authentications.cjs +87 -0
- package/dist/v0/schemas/authentications.cjs.map +1 -0
- package/dist/v0/schemas/authentications.d.cts +112 -0
- package/dist/v0/schemas/authentications.d.ts +112 -0
- package/dist/v0/schemas/authentications.js +59 -0
- package/dist/v0/schemas/authentications.js.map +1 -0
- package/dist/v0/schemas/errors.cjs +77 -0
- package/dist/v0/schemas/errors.cjs.map +1 -0
- package/dist/v0/schemas/errors.d.cts +64 -0
- package/dist/v0/schemas/errors.d.ts +64 -0
- package/dist/v0/schemas/errors.js +49 -0
- package/dist/v0/schemas/errors.js.map +1 -0
- package/dist/v0/schemas/implementations.cjs +93 -0
- package/dist/v0/schemas/implementations.cjs.map +1 -0
- package/dist/v0/schemas/implementations.d.cts +121 -0
- package/dist/v0/schemas/implementations.d.ts +121 -0
- package/dist/v0/schemas/implementations.js +67 -0
- package/dist/v0/schemas/implementations.js.map +1 -0
- package/openapi.yaml +392 -2
- package/package.json +16 -1
package/openapi.yaml
CHANGED
|
@@ -11,6 +11,10 @@ info:
|
|
|
11
11
|
description: The Zapier SDK API serves as a backend for the Zapier SDK.
|
|
12
12
|
servers: []
|
|
13
13
|
tags:
|
|
14
|
+
- name: Actions
|
|
15
|
+
description: Action-related routes
|
|
16
|
+
- name: Apps
|
|
17
|
+
description: App-related routes
|
|
14
18
|
- name: Authentications
|
|
15
19
|
description: Authentication-related routes
|
|
16
20
|
- name: Documentation
|
|
@@ -282,6 +286,66 @@ components:
|
|
|
282
286
|
$ref: "#/components/schemas/AuthenticationItem"
|
|
283
287
|
required:
|
|
284
288
|
- data
|
|
289
|
+
ListActionsResponse:
|
|
290
|
+
type: object
|
|
291
|
+
properties:
|
|
292
|
+
data:
|
|
293
|
+
type: array
|
|
294
|
+
items:
|
|
295
|
+
type: object
|
|
296
|
+
properties:
|
|
297
|
+
id:
|
|
298
|
+
type: string
|
|
299
|
+
description: Unique identifier for the action
|
|
300
|
+
key:
|
|
301
|
+
type: string
|
|
302
|
+
description: Unique key identifier for the action
|
|
303
|
+
description:
|
|
304
|
+
type: string
|
|
305
|
+
description: Description of what the action does
|
|
306
|
+
is_important:
|
|
307
|
+
type: boolean
|
|
308
|
+
description: Whether this action is marked as important
|
|
309
|
+
is_hidden:
|
|
310
|
+
type: boolean
|
|
311
|
+
description: Whether this action is hidden from listings
|
|
312
|
+
app_key:
|
|
313
|
+
type: string
|
|
314
|
+
description: App key extracted from implementation ID (without version)
|
|
315
|
+
app_version:
|
|
316
|
+
type: string
|
|
317
|
+
description: App version extracted from implementation ID
|
|
318
|
+
action_type:
|
|
319
|
+
type: string
|
|
320
|
+
enum:
|
|
321
|
+
- filter
|
|
322
|
+
- read
|
|
323
|
+
- read_bulk
|
|
324
|
+
- run
|
|
325
|
+
- search
|
|
326
|
+
- search_and_write
|
|
327
|
+
- search_or_write
|
|
328
|
+
- write
|
|
329
|
+
description: The type of action
|
|
330
|
+
title:
|
|
331
|
+
type: string
|
|
332
|
+
description: Display name of the action (mapped from name)
|
|
333
|
+
type:
|
|
334
|
+
type: string
|
|
335
|
+
enum:
|
|
336
|
+
- action
|
|
337
|
+
description: Type identifier for this item
|
|
338
|
+
required:
|
|
339
|
+
- key
|
|
340
|
+
- description
|
|
341
|
+
- app_key
|
|
342
|
+
- action_type
|
|
343
|
+
- title
|
|
344
|
+
- type
|
|
345
|
+
description: Normalized action item returned by list actions endpoint
|
|
346
|
+
description: Array of action items
|
|
347
|
+
required:
|
|
348
|
+
- data
|
|
285
349
|
ListAuthenticationsResponse:
|
|
286
350
|
type: object
|
|
287
351
|
properties:
|
|
@@ -505,8 +569,7 @@ paths:
|
|
|
505
569
|
- userJwt: []
|
|
506
570
|
parameters:
|
|
507
571
|
- schema:
|
|
508
|
-
type:
|
|
509
|
-
exclusiveMinimum: 0
|
|
572
|
+
type: string
|
|
510
573
|
description: Authentication ID to retrieve
|
|
511
574
|
required: true
|
|
512
575
|
description: Authentication ID to retrieve
|
|
@@ -541,6 +604,333 @@ paths:
|
|
|
541
604
|
headers: *a6
|
|
542
605
|
content:
|
|
543
606
|
application/json: *a7
|
|
607
|
+
/api/v0/actions:
|
|
608
|
+
get:
|
|
609
|
+
summary: List actions
|
|
610
|
+
description: Returns a list of actions for a specific app with optional filtering by action type.
|
|
611
|
+
tags:
|
|
612
|
+
- Actions
|
|
613
|
+
operationId: v0_list_actions
|
|
614
|
+
security:
|
|
615
|
+
- userJwt: []
|
|
616
|
+
parameters:
|
|
617
|
+
- schema:
|
|
618
|
+
type: string
|
|
619
|
+
description: App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')
|
|
620
|
+
required: true
|
|
621
|
+
description: App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')
|
|
622
|
+
name: appKey
|
|
623
|
+
in: query
|
|
624
|
+
- schema:
|
|
625
|
+
type: string
|
|
626
|
+
enum:
|
|
627
|
+
- filter
|
|
628
|
+
- read
|
|
629
|
+
- read_bulk
|
|
630
|
+
- run
|
|
631
|
+
- search
|
|
632
|
+
- search_and_write
|
|
633
|
+
- search_or_write
|
|
634
|
+
- write
|
|
635
|
+
description: Filter actions by type (e.g., 'read', 'write', 'search')
|
|
636
|
+
required: false
|
|
637
|
+
description: Filter actions by type (e.g., 'read', 'write', 'search')
|
|
638
|
+
name: actionType
|
|
639
|
+
in: query
|
|
640
|
+
responses:
|
|
641
|
+
"200":
|
|
642
|
+
description: Successfully retrieved actions list
|
|
643
|
+
content:
|
|
644
|
+
application/json:
|
|
645
|
+
schema:
|
|
646
|
+
$ref: "#/components/schemas/ListActionsResponse"
|
|
647
|
+
"400":
|
|
648
|
+
description: Bad Request
|
|
649
|
+
content:
|
|
650
|
+
application/json: *a1
|
|
651
|
+
"401":
|
|
652
|
+
description: Unauthorized
|
|
653
|
+
content:
|
|
654
|
+
application/json: *a2
|
|
655
|
+
"429":
|
|
656
|
+
description: Too Many Requests
|
|
657
|
+
headers: *a3
|
|
658
|
+
content:
|
|
659
|
+
application/json: *a4
|
|
660
|
+
"500":
|
|
661
|
+
description: Server Error
|
|
662
|
+
content:
|
|
663
|
+
application/json: *a5
|
|
664
|
+
"503":
|
|
665
|
+
description: Service Unavailable
|
|
666
|
+
headers: *a6
|
|
667
|
+
content:
|
|
668
|
+
application/json: *a7
|
|
669
|
+
/api/v0/apps:
|
|
670
|
+
get:
|
|
671
|
+
summary: List apps
|
|
672
|
+
description: Returns a paginated list of apps with optional filtering by app keys or search term.
|
|
673
|
+
tags:
|
|
674
|
+
- Apps
|
|
675
|
+
operationId: v0_list_apps
|
|
676
|
+
security:
|
|
677
|
+
- userJwt: []
|
|
678
|
+
parameters:
|
|
679
|
+
- schema:
|
|
680
|
+
type: string
|
|
681
|
+
description: Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')
|
|
682
|
+
required: false
|
|
683
|
+
description: Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')
|
|
684
|
+
name: appKeys
|
|
685
|
+
in: query
|
|
686
|
+
- schema:
|
|
687
|
+
type: string
|
|
688
|
+
description: Search term to filter apps by name
|
|
689
|
+
required: false
|
|
690
|
+
description: Search term to filter apps by name
|
|
691
|
+
name: search
|
|
692
|
+
in: query
|
|
693
|
+
- schema:
|
|
694
|
+
type: integer
|
|
695
|
+
minimum: 1
|
|
696
|
+
maximum: 100
|
|
697
|
+
default: 20
|
|
698
|
+
description: Number of apps per page (1-100)
|
|
699
|
+
required: false
|
|
700
|
+
description: Number of apps per page (1-100)
|
|
701
|
+
name: pageSize
|
|
702
|
+
in: query
|
|
703
|
+
- schema:
|
|
704
|
+
type: string
|
|
705
|
+
description: Pagination offset from previous response
|
|
706
|
+
required: false
|
|
707
|
+
description: Pagination offset from previous response
|
|
708
|
+
name: offset
|
|
709
|
+
in: query
|
|
710
|
+
responses:
|
|
711
|
+
"200":
|
|
712
|
+
description: Successfully retrieved apps list
|
|
713
|
+
content:
|
|
714
|
+
application/json:
|
|
715
|
+
schema:
|
|
716
|
+
type: object
|
|
717
|
+
properties:
|
|
718
|
+
data:
|
|
719
|
+
type: array
|
|
720
|
+
items:
|
|
721
|
+
type: object
|
|
722
|
+
properties:
|
|
723
|
+
slug:
|
|
724
|
+
type: string
|
|
725
|
+
description: URL-friendly slug identifier
|
|
726
|
+
age_in_days:
|
|
727
|
+
type: number
|
|
728
|
+
description: Number of days since the implementation was created
|
|
729
|
+
auth_type:
|
|
730
|
+
type: string
|
|
731
|
+
description: Authentication type (e.g., oauth2, api_key)
|
|
732
|
+
banner:
|
|
733
|
+
type: string
|
|
734
|
+
description: Banner message or status indicator
|
|
735
|
+
categories:
|
|
736
|
+
type: array
|
|
737
|
+
items:
|
|
738
|
+
type: object
|
|
739
|
+
properties:
|
|
740
|
+
id:
|
|
741
|
+
type: number
|
|
742
|
+
description: Unique identifier for the category
|
|
743
|
+
name:
|
|
744
|
+
type: string
|
|
745
|
+
description: Display name of the category
|
|
746
|
+
slug:
|
|
747
|
+
type: string
|
|
748
|
+
description: URL-friendly slug for the category
|
|
749
|
+
required:
|
|
750
|
+
- id
|
|
751
|
+
- name
|
|
752
|
+
- slug
|
|
753
|
+
description: Categories the implementation belongs to
|
|
754
|
+
images:
|
|
755
|
+
type: object
|
|
756
|
+
properties:
|
|
757
|
+
url_16x16:
|
|
758
|
+
type: string
|
|
759
|
+
description: 16x16 pixel icon URL
|
|
760
|
+
url_32x32:
|
|
761
|
+
type: string
|
|
762
|
+
description: 32x32 pixel icon URL
|
|
763
|
+
url_64x64:
|
|
764
|
+
type: string
|
|
765
|
+
description: 64x64 pixel icon URL
|
|
766
|
+
url_128x128:
|
|
767
|
+
type: string
|
|
768
|
+
description: 128x128 pixel icon URL
|
|
769
|
+
description: Icon images at various sizes
|
|
770
|
+
popularity:
|
|
771
|
+
type: number
|
|
772
|
+
description: Popularity score for ranking apps
|
|
773
|
+
has_filters:
|
|
774
|
+
type: boolean
|
|
775
|
+
description: Whether the app has filter actions
|
|
776
|
+
has_reads:
|
|
777
|
+
type: boolean
|
|
778
|
+
description: Whether the app has read actions
|
|
779
|
+
has_searches:
|
|
780
|
+
type: boolean
|
|
781
|
+
description: Whether the app has search actions
|
|
782
|
+
has_searches_or_writes:
|
|
783
|
+
type: boolean
|
|
784
|
+
description: Whether the app has search or write actions
|
|
785
|
+
has_upfront_fields:
|
|
786
|
+
type: boolean
|
|
787
|
+
description: Whether the app has upfront input fields
|
|
788
|
+
has_writes:
|
|
789
|
+
type: boolean
|
|
790
|
+
description: Whether the app has write actions
|
|
791
|
+
is_beta:
|
|
792
|
+
type: boolean
|
|
793
|
+
description: Whether the app is in beta
|
|
794
|
+
is_built_in:
|
|
795
|
+
type: boolean
|
|
796
|
+
description: Whether the app is a built-in Zapier app
|
|
797
|
+
is_deprecated:
|
|
798
|
+
type: boolean
|
|
799
|
+
description: Whether the app is deprecated
|
|
800
|
+
is_featured:
|
|
801
|
+
type: boolean
|
|
802
|
+
description: Whether the app is featured
|
|
803
|
+
is_hidden:
|
|
804
|
+
type: boolean
|
|
805
|
+
description: Whether the app is hidden from listings
|
|
806
|
+
is_invite:
|
|
807
|
+
type: boolean
|
|
808
|
+
description: Whether the app is invite-only
|
|
809
|
+
is_premium:
|
|
810
|
+
type: boolean
|
|
811
|
+
description: Whether the app requires a premium plan
|
|
812
|
+
is_public:
|
|
813
|
+
type: boolean
|
|
814
|
+
description: Whether the app is publicly available
|
|
815
|
+
is_upcoming:
|
|
816
|
+
type: boolean
|
|
817
|
+
description: Whether the app is upcoming/not yet released
|
|
818
|
+
version:
|
|
819
|
+
type: string
|
|
820
|
+
description: App version
|
|
821
|
+
visibility:
|
|
822
|
+
type: string
|
|
823
|
+
description: Visibility status (e.g., public, private)
|
|
824
|
+
actions:
|
|
825
|
+
type: object
|
|
826
|
+
properties:
|
|
827
|
+
read:
|
|
828
|
+
type: number
|
|
829
|
+
description: Number of read actions
|
|
830
|
+
read_bulk:
|
|
831
|
+
type: number
|
|
832
|
+
description: Number of bulk read actions
|
|
833
|
+
write:
|
|
834
|
+
type: number
|
|
835
|
+
description: Number of write actions
|
|
836
|
+
search:
|
|
837
|
+
type: number
|
|
838
|
+
description: Number of search actions
|
|
839
|
+
search_or_write:
|
|
840
|
+
type: number
|
|
841
|
+
description: Number of search-or-write actions
|
|
842
|
+
search_and_write:
|
|
843
|
+
type: number
|
|
844
|
+
description: Number of search-and-write actions
|
|
845
|
+
filter:
|
|
846
|
+
type: number
|
|
847
|
+
description: Number of filter actions
|
|
848
|
+
description: Count of available actions by type
|
|
849
|
+
description:
|
|
850
|
+
type: string
|
|
851
|
+
description: Description of the app
|
|
852
|
+
primary_color:
|
|
853
|
+
type: string
|
|
854
|
+
description: Primary brand color (hex)
|
|
855
|
+
secondary_color:
|
|
856
|
+
type: string
|
|
857
|
+
description: Secondary brand color (hex)
|
|
858
|
+
classification:
|
|
859
|
+
type: string
|
|
860
|
+
description: App classification category
|
|
861
|
+
api_docs_url:
|
|
862
|
+
type: string
|
|
863
|
+
description: URL to API documentation
|
|
864
|
+
image:
|
|
865
|
+
type: string
|
|
866
|
+
description: Default image URL for the app
|
|
867
|
+
title:
|
|
868
|
+
type: string
|
|
869
|
+
description: Display name of the app
|
|
870
|
+
key:
|
|
871
|
+
type: string
|
|
872
|
+
description: App key (versionless implementation name)
|
|
873
|
+
implementation_id:
|
|
874
|
+
type: string
|
|
875
|
+
description: Full implementation ID including version
|
|
876
|
+
required:
|
|
877
|
+
- slug
|
|
878
|
+
- title
|
|
879
|
+
- key
|
|
880
|
+
- implementation_id
|
|
881
|
+
description: Array of app items
|
|
882
|
+
links:
|
|
883
|
+
type: object
|
|
884
|
+
properties:
|
|
885
|
+
next:
|
|
886
|
+
type:
|
|
887
|
+
- string
|
|
888
|
+
- "null"
|
|
889
|
+
description: Fully qualified URL for the next page of results (if available)
|
|
890
|
+
description: Pagination links for navigating through results
|
|
891
|
+
meta:
|
|
892
|
+
type: object
|
|
893
|
+
properties:
|
|
894
|
+
count:
|
|
895
|
+
type: number
|
|
896
|
+
description: Number of items in current page
|
|
897
|
+
limit:
|
|
898
|
+
type: number
|
|
899
|
+
description: Number of items per page
|
|
900
|
+
offset:
|
|
901
|
+
type: number
|
|
902
|
+
description: Offset of the current page
|
|
903
|
+
required:
|
|
904
|
+
- count
|
|
905
|
+
- limit
|
|
906
|
+
- offset
|
|
907
|
+
description: Metadata for the paginated result set
|
|
908
|
+
required:
|
|
909
|
+
- data
|
|
910
|
+
- links
|
|
911
|
+
- meta
|
|
912
|
+
"400":
|
|
913
|
+
description: Bad Request
|
|
914
|
+
content:
|
|
915
|
+
application/json: *a1
|
|
916
|
+
"401":
|
|
917
|
+
description: Unauthorized
|
|
918
|
+
content:
|
|
919
|
+
application/json: *a2
|
|
920
|
+
"429":
|
|
921
|
+
description: Too Many Requests
|
|
922
|
+
headers: *a3
|
|
923
|
+
content:
|
|
924
|
+
application/json: *a4
|
|
925
|
+
"500":
|
|
926
|
+
description: Server Error
|
|
927
|
+
content:
|
|
928
|
+
application/json: *a5
|
|
929
|
+
"503":
|
|
930
|
+
description: Service Unavailable
|
|
931
|
+
headers: *a6
|
|
932
|
+
content:
|
|
933
|
+
application/json: *a7
|
|
544
934
|
/api/v0/authentications:
|
|
545
935
|
get:
|
|
546
936
|
summary: List authentications
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Core schemas and TypeScript types for the Zapier SDK API",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Zapier, Inc.",
|
|
@@ -31,11 +31,26 @@
|
|
|
31
31
|
"import": "./dist/v0/schemas/authentications.js",
|
|
32
32
|
"require": "./dist/v0/schemas/authentications.cjs"
|
|
33
33
|
},
|
|
34
|
+
"./v0/schemas/apps": {
|
|
35
|
+
"types": "./dist/v0/schemas/apps.d.ts",
|
|
36
|
+
"import": "./dist/v0/schemas/apps.js",
|
|
37
|
+
"require": "./dist/v0/schemas/apps.cjs"
|
|
38
|
+
},
|
|
39
|
+
"./v0/schemas/implementations": {
|
|
40
|
+
"types": "./dist/v0/schemas/implementations.d.ts",
|
|
41
|
+
"import": "./dist/v0/schemas/implementations.js",
|
|
42
|
+
"require": "./dist/v0/schemas/implementations.cjs"
|
|
43
|
+
},
|
|
34
44
|
"./v0/schemas/errors": {
|
|
35
45
|
"types": "./dist/v0/schemas/errors.d.ts",
|
|
36
46
|
"import": "./dist/v0/schemas/errors.js",
|
|
37
47
|
"require": "./dist/v0/schemas/errors.cjs"
|
|
38
48
|
},
|
|
49
|
+
"./v0/schemas/actions": {
|
|
50
|
+
"types": "./dist/v0/schemas/actions.d.ts",
|
|
51
|
+
"import": "./dist/v0/schemas/actions.js",
|
|
52
|
+
"require": "./dist/v0/schemas/actions.cjs"
|
|
53
|
+
},
|
|
39
54
|
"./v0/common/responses": {
|
|
40
55
|
"types": "./dist/v0/common/responses.d.ts",
|
|
41
56
|
"import": "./dist/v0/common/responses.js",
|