@sanity/cli 7.11.0 → 7.12.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.
@@ -2728,6 +2728,254 @@
2728
2728
  "validate.js"
2729
2729
  ]
2730
2730
  },
2731
+ "hooks:attempt": {
2732
+ "aliases": [],
2733
+ "args": {
2734
+ "attemptId": {
2735
+ "description": "The delivery attempt ID to get details for",
2736
+ "name": "attemptId",
2737
+ "required": true
2738
+ }
2739
+ },
2740
+ "description": "Print details of a given webhook delivery attempt",
2741
+ "examples": [
2742
+ {
2743
+ "command": "<%= config.bin %> <%= command.id %> abc123",
2744
+ "description": "Print details of webhook delivery attempt with ID abc123"
2745
+ },
2746
+ {
2747
+ "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
2748
+ "description": "Get attempt details for a specific project"
2749
+ }
2750
+ ],
2751
+ "flags": {
2752
+ "project-id": {
2753
+ "char": "p",
2754
+ "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
2755
+ "helpGroup": "OVERRIDE",
2756
+ "name": "project-id",
2757
+ "hasDynamicHelp": false,
2758
+ "helpValue": "<id>",
2759
+ "multiple": false,
2760
+ "type": "option"
2761
+ }
2762
+ },
2763
+ "hasDynamicHelp": false,
2764
+ "hiddenAliases": [
2765
+ "hook:attempt"
2766
+ ],
2767
+ "id": "hooks:attempt",
2768
+ "pluginAlias": "@sanity/cli",
2769
+ "pluginName": "@sanity/cli",
2770
+ "pluginType": "core",
2771
+ "strict": true,
2772
+ "isESM": true,
2773
+ "relativePath": [
2774
+ "dist",
2775
+ "commands",
2776
+ "hooks",
2777
+ "attempt.js"
2778
+ ]
2779
+ },
2780
+ "hooks:create": {
2781
+ "aliases": [],
2782
+ "args": {},
2783
+ "description": "Create a new webhook for the project",
2784
+ "examples": [
2785
+ {
2786
+ "command": "<%= config.bin %> <%= command.id %>",
2787
+ "description": "Create a new webhook for the project"
2788
+ },
2789
+ {
2790
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2791
+ "description": "Create a webhook for a specific project"
2792
+ }
2793
+ ],
2794
+ "flags": {
2795
+ "project-id": {
2796
+ "char": "p",
2797
+ "description": "Project ID to create webhook for (overrides CLI configuration)",
2798
+ "helpGroup": "OVERRIDE",
2799
+ "name": "project-id",
2800
+ "hasDynamicHelp": false,
2801
+ "helpValue": "<id>",
2802
+ "multiple": false,
2803
+ "type": "option"
2804
+ }
2805
+ },
2806
+ "hasDynamicHelp": false,
2807
+ "hiddenAliases": [
2808
+ "hook:create"
2809
+ ],
2810
+ "id": "hooks:create",
2811
+ "pluginAlias": "@sanity/cli",
2812
+ "pluginName": "@sanity/cli",
2813
+ "pluginType": "core",
2814
+ "strict": true,
2815
+ "isESM": true,
2816
+ "relativePath": [
2817
+ "dist",
2818
+ "commands",
2819
+ "hooks",
2820
+ "create.js"
2821
+ ]
2822
+ },
2823
+ "hooks:delete": {
2824
+ "aliases": [],
2825
+ "args": {
2826
+ "name": {
2827
+ "description": "Name of webhook to delete (will prompt if not provided)",
2828
+ "name": "name",
2829
+ "required": false
2830
+ }
2831
+ },
2832
+ "description": "Delete a webhook from the project",
2833
+ "examples": [
2834
+ {
2835
+ "command": "<%= config.bin %> <%= command.id %>",
2836
+ "description": "Interactively select and delete a webhook"
2837
+ },
2838
+ {
2839
+ "command": "<%= config.bin %> <%= command.id %> my-hook",
2840
+ "description": "Delete a specific webhook by name"
2841
+ },
2842
+ {
2843
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2844
+ "description": "Delete a webhook from a specific project"
2845
+ }
2846
+ ],
2847
+ "flags": {
2848
+ "project-id": {
2849
+ "char": "p",
2850
+ "description": "Project ID to delete webhook from (overrides CLI configuration)",
2851
+ "helpGroup": "OVERRIDE",
2852
+ "name": "project-id",
2853
+ "hasDynamicHelp": false,
2854
+ "helpValue": "<id>",
2855
+ "multiple": false,
2856
+ "type": "option"
2857
+ }
2858
+ },
2859
+ "hasDynamicHelp": false,
2860
+ "hiddenAliases": [
2861
+ "hook:delete"
2862
+ ],
2863
+ "id": "hooks:delete",
2864
+ "pluginAlias": "@sanity/cli",
2865
+ "pluginName": "@sanity/cli",
2866
+ "pluginType": "core",
2867
+ "strict": true,
2868
+ "isESM": true,
2869
+ "relativePath": [
2870
+ "dist",
2871
+ "commands",
2872
+ "hooks",
2873
+ "delete.js"
2874
+ ]
2875
+ },
2876
+ "hooks:list": {
2877
+ "aliases": [],
2878
+ "args": {},
2879
+ "description": "List webhooks for the project",
2880
+ "examples": [
2881
+ {
2882
+ "command": "<%= config.bin %> <%= command.id %>",
2883
+ "description": "List webhooks for the project"
2884
+ },
2885
+ {
2886
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2887
+ "description": "List webhooks for a specific project"
2888
+ }
2889
+ ],
2890
+ "flags": {
2891
+ "project-id": {
2892
+ "char": "p",
2893
+ "description": "Project ID to list webhooks for (overrides CLI configuration)",
2894
+ "helpGroup": "OVERRIDE",
2895
+ "name": "project-id",
2896
+ "hasDynamicHelp": false,
2897
+ "helpValue": "<id>",
2898
+ "multiple": false,
2899
+ "type": "option"
2900
+ }
2901
+ },
2902
+ "hasDynamicHelp": false,
2903
+ "hiddenAliases": [
2904
+ "hook:list"
2905
+ ],
2906
+ "id": "hooks:list",
2907
+ "pluginAlias": "@sanity/cli",
2908
+ "pluginName": "@sanity/cli",
2909
+ "pluginType": "core",
2910
+ "strict": true,
2911
+ "isESM": true,
2912
+ "relativePath": [
2913
+ "dist",
2914
+ "commands",
2915
+ "hooks",
2916
+ "list.js"
2917
+ ]
2918
+ },
2919
+ "hooks:logs": {
2920
+ "aliases": [],
2921
+ "args": {
2922
+ "name": {
2923
+ "description": "Name of the webhook to show logs for",
2924
+ "name": "name",
2925
+ "required": false
2926
+ }
2927
+ },
2928
+ "description": "Show log entries for project webhooks",
2929
+ "examples": [
2930
+ {
2931
+ "command": "<%= config.bin %> <%= command.id %>",
2932
+ "description": "Show log entries for project webhooks"
2933
+ },
2934
+ {
2935
+ "command": "<%= config.bin %> <%= command.id %> [NAME]",
2936
+ "description": "Show log entries for a specific webhook by name"
2937
+ },
2938
+ {
2939
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2940
+ "description": "Show log entries for a specific project"
2941
+ }
2942
+ ],
2943
+ "flags": {
2944
+ "project-id": {
2945
+ "char": "p",
2946
+ "description": "Project ID to view webhook logs for (overrides CLI configuration)",
2947
+ "helpGroup": "OVERRIDE",
2948
+ "name": "project-id",
2949
+ "hasDynamicHelp": false,
2950
+ "helpValue": "<id>",
2951
+ "multiple": false,
2952
+ "type": "option"
2953
+ },
2954
+ "detailed": {
2955
+ "description": "Include detailed payload and attempts",
2956
+ "name": "detailed",
2957
+ "required": false,
2958
+ "allowNo": false,
2959
+ "type": "boolean"
2960
+ }
2961
+ },
2962
+ "hasDynamicHelp": false,
2963
+ "hiddenAliases": [
2964
+ "hook:logs"
2965
+ ],
2966
+ "id": "hooks:logs",
2967
+ "pluginAlias": "@sanity/cli",
2968
+ "pluginName": "@sanity/cli",
2969
+ "pluginType": "core",
2970
+ "strict": true,
2971
+ "isESM": true,
2972
+ "relativePath": [
2973
+ "dist",
2974
+ "commands",
2975
+ "hooks",
2976
+ "logs.js"
2977
+ ]
2978
+ },
2731
2979
  "graphql:deploy": {
2732
2980
  "aliases": [],
2733
2981
  "args": {},
@@ -2980,254 +3228,6 @@
2980
3228
  "undeploy.js"
2981
3229
  ]
2982
3230
  },
2983
- "hooks:attempt": {
2984
- "aliases": [],
2985
- "args": {
2986
- "attemptId": {
2987
- "description": "The delivery attempt ID to get details for",
2988
- "name": "attemptId",
2989
- "required": true
2990
- }
2991
- },
2992
- "description": "Print details of a given webhook delivery attempt",
2993
- "examples": [
2994
- {
2995
- "command": "<%= config.bin %> <%= command.id %> abc123",
2996
- "description": "Print details of webhook delivery attempt with ID abc123"
2997
- },
2998
- {
2999
- "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
3000
- "description": "Get attempt details for a specific project"
3001
- }
3002
- ],
3003
- "flags": {
3004
- "project-id": {
3005
- "char": "p",
3006
- "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
3007
- "helpGroup": "OVERRIDE",
3008
- "name": "project-id",
3009
- "hasDynamicHelp": false,
3010
- "helpValue": "<id>",
3011
- "multiple": false,
3012
- "type": "option"
3013
- }
3014
- },
3015
- "hasDynamicHelp": false,
3016
- "hiddenAliases": [
3017
- "hook:attempt"
3018
- ],
3019
- "id": "hooks:attempt",
3020
- "pluginAlias": "@sanity/cli",
3021
- "pluginName": "@sanity/cli",
3022
- "pluginType": "core",
3023
- "strict": true,
3024
- "isESM": true,
3025
- "relativePath": [
3026
- "dist",
3027
- "commands",
3028
- "hooks",
3029
- "attempt.js"
3030
- ]
3031
- },
3032
- "hooks:create": {
3033
- "aliases": [],
3034
- "args": {},
3035
- "description": "Create a new webhook for the project",
3036
- "examples": [
3037
- {
3038
- "command": "<%= config.bin %> <%= command.id %>",
3039
- "description": "Create a new webhook for the project"
3040
- },
3041
- {
3042
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3043
- "description": "Create a webhook for a specific project"
3044
- }
3045
- ],
3046
- "flags": {
3047
- "project-id": {
3048
- "char": "p",
3049
- "description": "Project ID to create webhook for (overrides CLI configuration)",
3050
- "helpGroup": "OVERRIDE",
3051
- "name": "project-id",
3052
- "hasDynamicHelp": false,
3053
- "helpValue": "<id>",
3054
- "multiple": false,
3055
- "type": "option"
3056
- }
3057
- },
3058
- "hasDynamicHelp": false,
3059
- "hiddenAliases": [
3060
- "hook:create"
3061
- ],
3062
- "id": "hooks:create",
3063
- "pluginAlias": "@sanity/cli",
3064
- "pluginName": "@sanity/cli",
3065
- "pluginType": "core",
3066
- "strict": true,
3067
- "isESM": true,
3068
- "relativePath": [
3069
- "dist",
3070
- "commands",
3071
- "hooks",
3072
- "create.js"
3073
- ]
3074
- },
3075
- "hooks:delete": {
3076
- "aliases": [],
3077
- "args": {
3078
- "name": {
3079
- "description": "Name of webhook to delete (will prompt if not provided)",
3080
- "name": "name",
3081
- "required": false
3082
- }
3083
- },
3084
- "description": "Delete a webhook from the project",
3085
- "examples": [
3086
- {
3087
- "command": "<%= config.bin %> <%= command.id %>",
3088
- "description": "Interactively select and delete a webhook"
3089
- },
3090
- {
3091
- "command": "<%= config.bin %> <%= command.id %> my-hook",
3092
- "description": "Delete a specific webhook by name"
3093
- },
3094
- {
3095
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3096
- "description": "Delete a webhook from a specific project"
3097
- }
3098
- ],
3099
- "flags": {
3100
- "project-id": {
3101
- "char": "p",
3102
- "description": "Project ID to delete webhook from (overrides CLI configuration)",
3103
- "helpGroup": "OVERRIDE",
3104
- "name": "project-id",
3105
- "hasDynamicHelp": false,
3106
- "helpValue": "<id>",
3107
- "multiple": false,
3108
- "type": "option"
3109
- }
3110
- },
3111
- "hasDynamicHelp": false,
3112
- "hiddenAliases": [
3113
- "hook:delete"
3114
- ],
3115
- "id": "hooks:delete",
3116
- "pluginAlias": "@sanity/cli",
3117
- "pluginName": "@sanity/cli",
3118
- "pluginType": "core",
3119
- "strict": true,
3120
- "isESM": true,
3121
- "relativePath": [
3122
- "dist",
3123
- "commands",
3124
- "hooks",
3125
- "delete.js"
3126
- ]
3127
- },
3128
- "hooks:list": {
3129
- "aliases": [],
3130
- "args": {},
3131
- "description": "List webhooks for the project",
3132
- "examples": [
3133
- {
3134
- "command": "<%= config.bin %> <%= command.id %>",
3135
- "description": "List webhooks for the project"
3136
- },
3137
- {
3138
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3139
- "description": "List webhooks for a specific project"
3140
- }
3141
- ],
3142
- "flags": {
3143
- "project-id": {
3144
- "char": "p",
3145
- "description": "Project ID to list webhooks for (overrides CLI configuration)",
3146
- "helpGroup": "OVERRIDE",
3147
- "name": "project-id",
3148
- "hasDynamicHelp": false,
3149
- "helpValue": "<id>",
3150
- "multiple": false,
3151
- "type": "option"
3152
- }
3153
- },
3154
- "hasDynamicHelp": false,
3155
- "hiddenAliases": [
3156
- "hook:list"
3157
- ],
3158
- "id": "hooks:list",
3159
- "pluginAlias": "@sanity/cli",
3160
- "pluginName": "@sanity/cli",
3161
- "pluginType": "core",
3162
- "strict": true,
3163
- "isESM": true,
3164
- "relativePath": [
3165
- "dist",
3166
- "commands",
3167
- "hooks",
3168
- "list.js"
3169
- ]
3170
- },
3171
- "hooks:logs": {
3172
- "aliases": [],
3173
- "args": {
3174
- "name": {
3175
- "description": "Name of the webhook to show logs for",
3176
- "name": "name",
3177
- "required": false
3178
- }
3179
- },
3180
- "description": "Show log entries for project webhooks",
3181
- "examples": [
3182
- {
3183
- "command": "<%= config.bin %> <%= command.id %>",
3184
- "description": "Show log entries for project webhooks"
3185
- },
3186
- {
3187
- "command": "<%= config.bin %> <%= command.id %> [NAME]",
3188
- "description": "Show log entries for a specific webhook by name"
3189
- },
3190
- {
3191
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3192
- "description": "Show log entries for a specific project"
3193
- }
3194
- ],
3195
- "flags": {
3196
- "project-id": {
3197
- "char": "p",
3198
- "description": "Project ID to view webhook logs for (overrides CLI configuration)",
3199
- "helpGroup": "OVERRIDE",
3200
- "name": "project-id",
3201
- "hasDynamicHelp": false,
3202
- "helpValue": "<id>",
3203
- "multiple": false,
3204
- "type": "option"
3205
- },
3206
- "detailed": {
3207
- "description": "Include detailed payload and attempts",
3208
- "name": "detailed",
3209
- "required": false,
3210
- "allowNo": false,
3211
- "type": "boolean"
3212
- }
3213
- },
3214
- "hasDynamicHelp": false,
3215
- "hiddenAliases": [
3216
- "hook:logs"
3217
- ],
3218
- "id": "hooks:logs",
3219
- "pluginAlias": "@sanity/cli",
3220
- "pluginName": "@sanity/cli",
3221
- "pluginType": "core",
3222
- "strict": true,
3223
- "isESM": true,
3224
- "relativePath": [
3225
- "dist",
3226
- "commands",
3227
- "hooks",
3228
- "logs.js"
3229
- ]
3230
- },
3231
3231
  "manifest:extract": {
3232
3232
  "aliases": [],
3233
3233
  "args": {},
@@ -5649,5 +5649,5 @@
5649
5649
  ]
5650
5650
  }
5651
5651
  },
5652
- "version": "7.11.0"
5652
+ "version": "7.12.0"
5653
5653
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "7.11.0",
3
+ "version": "7.12.0",
4
4
  "description": "Sanity CLI tool for managing Sanity projects and organizations",
5
5
  "keywords": [
6
6
  "cli",
@@ -119,8 +119,8 @@
119
119
  "yaml": "^2.9.0",
120
120
  "zod": "^4.4.3",
121
121
  "@sanity/cli-build": "^4.1.1",
122
- "@sanity/cli-core": "^2.5.1",
123
- "@sanity/workbench-cli": "^1.6.0"
122
+ "@sanity/workbench-cli": "^1.7.0",
123
+ "@sanity/cli-core": "^2.5.1"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@eslint/compat": "^2.1.0",