@wix/auto_sdk_app-management_app-permissions 1.0.40 → 1.0.42
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/build/cjs/schemas.d.ts +55 -0
- package/build/cjs/schemas.js +157 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +55 -0
- package/build/es/schemas.mjs +115 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +55 -0
- package/build/internal/cjs/schemas.js +157 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +55 -0
- package/build/internal/es/schemas.mjs +115 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateAppPermissionRequest: z.ZodObject<{
|
|
4
|
+
appPermission: z.ZodObject<{
|
|
5
|
+
appId: z.ZodString;
|
|
6
|
+
permission: z.ZodObject<{
|
|
7
|
+
permissionId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const CreateAppPermissionResponse: z.ZodObject<{
|
|
14
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ListAppPermissionsRequest: z.ZodObject<{
|
|
22
|
+
appId: z.ZodString;
|
|
23
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
consistent: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const ListAppPermissionsResponse: z.ZodObject<{
|
|
32
|
+
appPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
38
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const DeleteAppPermissionRequest: z.ZodObject<{
|
|
50
|
+
appId: z.ZodString;
|
|
51
|
+
permissionId: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const DeleteAppPermissionResponse: z.ZodObject<{}, z.core.$strip>;
|
|
54
|
+
|
|
55
|
+
export { CreateAppPermissionRequest, CreateAppPermissionResponse, DeleteAppPermissionRequest, DeleteAppPermissionResponse, ListAppPermissionsRequest, ListAppPermissionsResponse };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
CreateAppPermissionRequest: () => CreateAppPermissionRequest,
|
|
34
|
+
CreateAppPermissionResponse: () => CreateAppPermissionResponse,
|
|
35
|
+
DeleteAppPermissionRequest: () => DeleteAppPermissionRequest,
|
|
36
|
+
DeleteAppPermissionResponse: () => DeleteAppPermissionResponse,
|
|
37
|
+
ListAppPermissionsRequest: () => ListAppPermissionsRequest,
|
|
38
|
+
ListAppPermissionsResponse: () => ListAppPermissionsResponse
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
+
|
|
42
|
+
// src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts
|
|
43
|
+
var z = __toESM(require("zod"));
|
|
44
|
+
var CreateAppPermissionRequest = z.object({
|
|
45
|
+
appPermission: z.object({
|
|
46
|
+
appId: z.string().describe(
|
|
47
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
48
|
+
).regex(
|
|
49
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
50
|
+
"Must be a valid GUID"
|
|
51
|
+
),
|
|
52
|
+
permission: z.object({
|
|
53
|
+
permissionId: z.string().describe(
|
|
54
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
55
|
+
).min(1).max(164)
|
|
56
|
+
}).describe(
|
|
57
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
58
|
+
),
|
|
59
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
60
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
61
|
+
}).describe("Permission to add to the specified app.")
|
|
62
|
+
});
|
|
63
|
+
var CreateAppPermissionResponse = z.object({
|
|
64
|
+
appId: z.string().describe(
|
|
65
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
66
|
+
).regex(
|
|
67
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
68
|
+
"Must be a valid GUID"
|
|
69
|
+
).optional(),
|
|
70
|
+
permission: z.object({
|
|
71
|
+
permissionId: z.string().describe(
|
|
72
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
73
|
+
).min(1).max(164).optional()
|
|
74
|
+
}).describe(
|
|
75
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
76
|
+
).optional(),
|
|
77
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
78
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
79
|
+
});
|
|
80
|
+
var ListAppPermissionsRequest = z.object({
|
|
81
|
+
appId: z.string().describe(
|
|
82
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
83
|
+
).regex(
|
|
84
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
85
|
+
"Must be a valid GUID"
|
|
86
|
+
),
|
|
87
|
+
options: z.object({
|
|
88
|
+
consistent: z.boolean().describe(
|
|
89
|
+
"Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\n\nDefault: `false`."
|
|
90
|
+
).optional(),
|
|
91
|
+
paging: z.object({
|
|
92
|
+
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
93
|
+
cursor: z.string().describe(
|
|
94
|
+
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
95
|
+
).max(16e3).optional().nullable()
|
|
96
|
+
}).describe("Paging configuration.").optional()
|
|
97
|
+
}).optional()
|
|
98
|
+
});
|
|
99
|
+
var ListAppPermissionsResponse = z.object({
|
|
100
|
+
appPermissions: z.array(
|
|
101
|
+
z.object({
|
|
102
|
+
appId: z.string().describe(
|
|
103
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
104
|
+
).regex(
|
|
105
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
106
|
+
"Must be a valid GUID"
|
|
107
|
+
).optional(),
|
|
108
|
+
permission: z.object({
|
|
109
|
+
permissionId: z.string().describe(
|
|
110
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
111
|
+
).min(1).max(164).optional()
|
|
112
|
+
}).describe(
|
|
113
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
114
|
+
).optional(),
|
|
115
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
116
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
117
|
+
})
|
|
118
|
+
).optional(),
|
|
119
|
+
pagingMetadata: z.object({
|
|
120
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
121
|
+
cursors: z.object({
|
|
122
|
+
next: z.string().describe(
|
|
123
|
+
"Cursor string pointing to the next page in the list of results."
|
|
124
|
+
).max(16e3).optional().nullable(),
|
|
125
|
+
prev: z.string().describe(
|
|
126
|
+
"Cursor pointing to the previous page in the list of results."
|
|
127
|
+
).max(16e3).optional().nullable()
|
|
128
|
+
}).describe(
|
|
129
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
130
|
+
).optional(),
|
|
131
|
+
hasNext: z.boolean().describe(
|
|
132
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
133
|
+
).optional().nullable()
|
|
134
|
+
}).describe("Paging metadata.").optional()
|
|
135
|
+
});
|
|
136
|
+
var DeleteAppPermissionRequest = z.object({
|
|
137
|
+
appId: z.string().describe(
|
|
138
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
139
|
+
).regex(
|
|
140
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
141
|
+
"Must be a valid GUID"
|
|
142
|
+
),
|
|
143
|
+
permissionId: z.string().describe(
|
|
144
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
145
|
+
).min(1).max(164)
|
|
146
|
+
});
|
|
147
|
+
var DeleteAppPermissionResponse = z.object({});
|
|
148
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
149
|
+
0 && (module.exports = {
|
|
150
|
+
CreateAppPermissionRequest,
|
|
151
|
+
CreateAppPermissionResponse,
|
|
152
|
+
DeleteAppPermissionRequest,
|
|
153
|
+
DeleteAppPermissionResponse,
|
|
154
|
+
ListAppPermissionsRequest,
|
|
155
|
+
ListAppPermissionsResponse
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts"],"sourcesContent":["export * from './src/devcenter-apps-v1-app-permission-app-permissions.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateAppPermissionRequest = z.object({\n appPermission: z\n .object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n ),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Permission to add to the specified app.'),\n});\nexport const CreateAppPermissionResponse = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n});\nexport const ListAppPermissionsRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n consistent: z\n .boolean()\n .describe(\n 'Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\\n\\nDefault: `false`.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Paging configuration.')\n .optional(),\n })\n .optional(),\n});\nexport const ListAppPermissionsResponse = z.object({\n appPermissions: z\n .array(\n z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const DeleteAppPermissionRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n});\nexport const DeleteAppPermissionResponse = z.object({});\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateAppPermissionRequest: z.ZodObject<{
|
|
4
|
+
appPermission: z.ZodObject<{
|
|
5
|
+
appId: z.ZodString;
|
|
6
|
+
permission: z.ZodObject<{
|
|
7
|
+
permissionId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const CreateAppPermissionResponse: z.ZodObject<{
|
|
14
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ListAppPermissionsRequest: z.ZodObject<{
|
|
22
|
+
appId: z.ZodString;
|
|
23
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
consistent: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const ListAppPermissionsResponse: z.ZodObject<{
|
|
32
|
+
appPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
38
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const DeleteAppPermissionRequest: z.ZodObject<{
|
|
50
|
+
appId: z.ZodString;
|
|
51
|
+
permissionId: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const DeleteAppPermissionResponse: z.ZodObject<{}, z.core.$strip>;
|
|
54
|
+
|
|
55
|
+
export { CreateAppPermissionRequest, CreateAppPermissionResponse, DeleteAppPermissionRequest, DeleteAppPermissionResponse, ListAppPermissionsRequest, ListAppPermissionsResponse };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var CreateAppPermissionRequest = z.object({
|
|
4
|
+
appPermission: z.object({
|
|
5
|
+
appId: z.string().describe(
|
|
6
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
7
|
+
).regex(
|
|
8
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
9
|
+
"Must be a valid GUID"
|
|
10
|
+
),
|
|
11
|
+
permission: z.object({
|
|
12
|
+
permissionId: z.string().describe(
|
|
13
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
14
|
+
).min(1).max(164)
|
|
15
|
+
}).describe(
|
|
16
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
17
|
+
),
|
|
18
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
19
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
20
|
+
}).describe("Permission to add to the specified app.")
|
|
21
|
+
});
|
|
22
|
+
var CreateAppPermissionResponse = z.object({
|
|
23
|
+
appId: z.string().describe(
|
|
24
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
25
|
+
).regex(
|
|
26
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
27
|
+
"Must be a valid GUID"
|
|
28
|
+
).optional(),
|
|
29
|
+
permission: z.object({
|
|
30
|
+
permissionId: z.string().describe(
|
|
31
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
32
|
+
).min(1).max(164).optional()
|
|
33
|
+
}).describe(
|
|
34
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
35
|
+
).optional(),
|
|
36
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
37
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
38
|
+
});
|
|
39
|
+
var ListAppPermissionsRequest = z.object({
|
|
40
|
+
appId: z.string().describe(
|
|
41
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
42
|
+
).regex(
|
|
43
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
44
|
+
"Must be a valid GUID"
|
|
45
|
+
),
|
|
46
|
+
options: z.object({
|
|
47
|
+
consistent: z.boolean().describe(
|
|
48
|
+
"Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\n\nDefault: `false`."
|
|
49
|
+
).optional(),
|
|
50
|
+
paging: z.object({
|
|
51
|
+
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
52
|
+
cursor: z.string().describe(
|
|
53
|
+
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
54
|
+
).max(16e3).optional().nullable()
|
|
55
|
+
}).describe("Paging configuration.").optional()
|
|
56
|
+
}).optional()
|
|
57
|
+
});
|
|
58
|
+
var ListAppPermissionsResponse = z.object({
|
|
59
|
+
appPermissions: z.array(
|
|
60
|
+
z.object({
|
|
61
|
+
appId: z.string().describe(
|
|
62
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
63
|
+
).regex(
|
|
64
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
65
|
+
"Must be a valid GUID"
|
|
66
|
+
).optional(),
|
|
67
|
+
permission: z.object({
|
|
68
|
+
permissionId: z.string().describe(
|
|
69
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
70
|
+
).min(1).max(164).optional()
|
|
71
|
+
}).describe(
|
|
72
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
73
|
+
).optional(),
|
|
74
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
75
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
76
|
+
})
|
|
77
|
+
).optional(),
|
|
78
|
+
pagingMetadata: z.object({
|
|
79
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
80
|
+
cursors: z.object({
|
|
81
|
+
next: z.string().describe(
|
|
82
|
+
"Cursor string pointing to the next page in the list of results."
|
|
83
|
+
).max(16e3).optional().nullable(),
|
|
84
|
+
prev: z.string().describe(
|
|
85
|
+
"Cursor pointing to the previous page in the list of results."
|
|
86
|
+
).max(16e3).optional().nullable()
|
|
87
|
+
}).describe(
|
|
88
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
89
|
+
).optional(),
|
|
90
|
+
hasNext: z.boolean().describe(
|
|
91
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
92
|
+
).optional().nullable()
|
|
93
|
+
}).describe("Paging metadata.").optional()
|
|
94
|
+
});
|
|
95
|
+
var DeleteAppPermissionRequest = z.object({
|
|
96
|
+
appId: z.string().describe(
|
|
97
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
98
|
+
).regex(
|
|
99
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
100
|
+
"Must be a valid GUID"
|
|
101
|
+
),
|
|
102
|
+
permissionId: z.string().describe(
|
|
103
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
104
|
+
).min(1).max(164)
|
|
105
|
+
});
|
|
106
|
+
var DeleteAppPermissionResponse = z.object({});
|
|
107
|
+
export {
|
|
108
|
+
CreateAppPermissionRequest,
|
|
109
|
+
CreateAppPermissionResponse,
|
|
110
|
+
DeleteAppPermissionRequest,
|
|
111
|
+
DeleteAppPermissionResponse,
|
|
112
|
+
ListAppPermissionsRequest,
|
|
113
|
+
ListAppPermissionsResponse
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateAppPermissionRequest = z.object({\n appPermission: z\n .object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n ),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Permission to add to the specified app.'),\n});\nexport const CreateAppPermissionResponse = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n});\nexport const ListAppPermissionsRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n consistent: z\n .boolean()\n .describe(\n 'Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\\n\\nDefault: `false`.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Paging configuration.')\n .optional(),\n })\n .optional(),\n});\nexport const ListAppPermissionsResponse = z.object({\n appPermissions: z\n .array(\n z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const DeleteAppPermissionRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n});\nexport const DeleteAppPermissionResponse = z.object({});\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateAppPermissionRequest: z.ZodObject<{
|
|
4
|
+
appPermission: z.ZodObject<{
|
|
5
|
+
appId: z.ZodString;
|
|
6
|
+
permission: z.ZodObject<{
|
|
7
|
+
permissionId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const CreateAppPermissionResponse: z.ZodObject<{
|
|
14
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ListAppPermissionsRequest: z.ZodObject<{
|
|
22
|
+
appId: z.ZodString;
|
|
23
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
consistent: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const ListAppPermissionsResponse: z.ZodObject<{
|
|
32
|
+
appPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
38
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const DeleteAppPermissionRequest: z.ZodObject<{
|
|
50
|
+
appId: z.ZodString;
|
|
51
|
+
permissionId: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const DeleteAppPermissionResponse: z.ZodObject<{}, z.core.$strip>;
|
|
54
|
+
|
|
55
|
+
export { CreateAppPermissionRequest, CreateAppPermissionResponse, DeleteAppPermissionRequest, DeleteAppPermissionResponse, ListAppPermissionsRequest, ListAppPermissionsResponse };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
CreateAppPermissionRequest: () => CreateAppPermissionRequest,
|
|
34
|
+
CreateAppPermissionResponse: () => CreateAppPermissionResponse,
|
|
35
|
+
DeleteAppPermissionRequest: () => DeleteAppPermissionRequest,
|
|
36
|
+
DeleteAppPermissionResponse: () => DeleteAppPermissionResponse,
|
|
37
|
+
ListAppPermissionsRequest: () => ListAppPermissionsRequest,
|
|
38
|
+
ListAppPermissionsResponse: () => ListAppPermissionsResponse
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
+
|
|
42
|
+
// src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts
|
|
43
|
+
var z = __toESM(require("zod"));
|
|
44
|
+
var CreateAppPermissionRequest = z.object({
|
|
45
|
+
appPermission: z.object({
|
|
46
|
+
appId: z.string().describe(
|
|
47
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
48
|
+
).regex(
|
|
49
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
50
|
+
"Must be a valid GUID"
|
|
51
|
+
),
|
|
52
|
+
permission: z.object({
|
|
53
|
+
permissionId: z.string().describe(
|
|
54
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
55
|
+
).min(1).max(164)
|
|
56
|
+
}).describe(
|
|
57
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
58
|
+
),
|
|
59
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
60
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
61
|
+
}).describe("Permission to add to the specified app.")
|
|
62
|
+
});
|
|
63
|
+
var CreateAppPermissionResponse = z.object({
|
|
64
|
+
appId: z.string().describe(
|
|
65
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
66
|
+
).regex(
|
|
67
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
68
|
+
"Must be a valid GUID"
|
|
69
|
+
).optional(),
|
|
70
|
+
permission: z.object({
|
|
71
|
+
permissionId: z.string().describe(
|
|
72
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
73
|
+
).min(1).max(164).optional()
|
|
74
|
+
}).describe(
|
|
75
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
76
|
+
).optional(),
|
|
77
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
78
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
79
|
+
});
|
|
80
|
+
var ListAppPermissionsRequest = z.object({
|
|
81
|
+
appId: z.string().describe(
|
|
82
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
83
|
+
).regex(
|
|
84
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
85
|
+
"Must be a valid GUID"
|
|
86
|
+
),
|
|
87
|
+
options: z.object({
|
|
88
|
+
consistent: z.boolean().describe(
|
|
89
|
+
"Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\n\nDefault: `false`."
|
|
90
|
+
).optional(),
|
|
91
|
+
paging: z.object({
|
|
92
|
+
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
93
|
+
cursor: z.string().describe(
|
|
94
|
+
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
95
|
+
).max(16e3).optional().nullable()
|
|
96
|
+
}).describe("Paging configuration.").optional()
|
|
97
|
+
}).optional()
|
|
98
|
+
});
|
|
99
|
+
var ListAppPermissionsResponse = z.object({
|
|
100
|
+
appPermissions: z.array(
|
|
101
|
+
z.object({
|
|
102
|
+
appId: z.string().describe(
|
|
103
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
104
|
+
).regex(
|
|
105
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
106
|
+
"Must be a valid GUID"
|
|
107
|
+
).optional(),
|
|
108
|
+
permission: z.object({
|
|
109
|
+
permissionId: z.string().describe(
|
|
110
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
111
|
+
).min(1).max(164).optional()
|
|
112
|
+
}).describe(
|
|
113
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
114
|
+
).optional(),
|
|
115
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
116
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
117
|
+
})
|
|
118
|
+
).optional(),
|
|
119
|
+
pagingMetadata: z.object({
|
|
120
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
121
|
+
cursors: z.object({
|
|
122
|
+
next: z.string().describe(
|
|
123
|
+
"Cursor string pointing to the next page in the list of results."
|
|
124
|
+
).max(16e3).optional().nullable(),
|
|
125
|
+
prev: z.string().describe(
|
|
126
|
+
"Cursor pointing to the previous page in the list of results."
|
|
127
|
+
).max(16e3).optional().nullable()
|
|
128
|
+
}).describe(
|
|
129
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
130
|
+
).optional(),
|
|
131
|
+
hasNext: z.boolean().describe(
|
|
132
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
133
|
+
).optional().nullable()
|
|
134
|
+
}).describe("Paging metadata.").optional()
|
|
135
|
+
});
|
|
136
|
+
var DeleteAppPermissionRequest = z.object({
|
|
137
|
+
appId: z.string().describe(
|
|
138
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
139
|
+
).regex(
|
|
140
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
141
|
+
"Must be a valid GUID"
|
|
142
|
+
),
|
|
143
|
+
permissionId: z.string().describe(
|
|
144
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
145
|
+
).min(1).max(164)
|
|
146
|
+
});
|
|
147
|
+
var DeleteAppPermissionResponse = z.object({});
|
|
148
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
149
|
+
0 && (module.exports = {
|
|
150
|
+
CreateAppPermissionRequest,
|
|
151
|
+
CreateAppPermissionResponse,
|
|
152
|
+
DeleteAppPermissionRequest,
|
|
153
|
+
DeleteAppPermissionResponse,
|
|
154
|
+
ListAppPermissionsRequest,
|
|
155
|
+
ListAppPermissionsResponse
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts"],"sourcesContent":["export * from './src/devcenter-apps-v1-app-permission-app-permissions.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateAppPermissionRequest = z.object({\n appPermission: z\n .object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n ),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Permission to add to the specified app.'),\n});\nexport const CreateAppPermissionResponse = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n});\nexport const ListAppPermissionsRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n consistent: z\n .boolean()\n .describe(\n 'Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\\n\\nDefault: `false`.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Paging configuration.')\n .optional(),\n })\n .optional(),\n});\nexport const ListAppPermissionsResponse = z.object({\n appPermissions: z\n .array(\n z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const DeleteAppPermissionRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n});\nexport const DeleteAppPermissionResponse = z.object({});\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateAppPermissionRequest: z.ZodObject<{
|
|
4
|
+
appPermission: z.ZodObject<{
|
|
5
|
+
appId: z.ZodString;
|
|
6
|
+
permission: z.ZodObject<{
|
|
7
|
+
permissionId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const CreateAppPermissionResponse: z.ZodObject<{
|
|
14
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const ListAppPermissionsRequest: z.ZodObject<{
|
|
22
|
+
appId: z.ZodString;
|
|
23
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
consistent: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const ListAppPermissionsResponse: z.ZodObject<{
|
|
32
|
+
appPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
permissionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
38
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const DeleteAppPermissionRequest: z.ZodObject<{
|
|
50
|
+
appId: z.ZodString;
|
|
51
|
+
permissionId: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const DeleteAppPermissionResponse: z.ZodObject<{}, z.core.$strip>;
|
|
54
|
+
|
|
55
|
+
export { CreateAppPermissionRequest, CreateAppPermissionResponse, DeleteAppPermissionRequest, DeleteAppPermissionResponse, ListAppPermissionsRequest, ListAppPermissionsResponse };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var CreateAppPermissionRequest = z.object({
|
|
4
|
+
appPermission: z.object({
|
|
5
|
+
appId: z.string().describe(
|
|
6
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
7
|
+
).regex(
|
|
8
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
9
|
+
"Must be a valid GUID"
|
|
10
|
+
),
|
|
11
|
+
permission: z.object({
|
|
12
|
+
permissionId: z.string().describe(
|
|
13
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
14
|
+
).min(1).max(164)
|
|
15
|
+
}).describe(
|
|
16
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
17
|
+
),
|
|
18
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
19
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
20
|
+
}).describe("Permission to add to the specified app.")
|
|
21
|
+
});
|
|
22
|
+
var CreateAppPermissionResponse = z.object({
|
|
23
|
+
appId: z.string().describe(
|
|
24
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
25
|
+
).regex(
|
|
26
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
27
|
+
"Must be a valid GUID"
|
|
28
|
+
).optional(),
|
|
29
|
+
permission: z.object({
|
|
30
|
+
permissionId: z.string().describe(
|
|
31
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
32
|
+
).min(1).max(164).optional()
|
|
33
|
+
}).describe(
|
|
34
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
35
|
+
).optional(),
|
|
36
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
37
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
38
|
+
});
|
|
39
|
+
var ListAppPermissionsRequest = z.object({
|
|
40
|
+
appId: z.string().describe(
|
|
41
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
42
|
+
).regex(
|
|
43
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
44
|
+
"Must be a valid GUID"
|
|
45
|
+
),
|
|
46
|
+
options: z.object({
|
|
47
|
+
consistent: z.boolean().describe(
|
|
48
|
+
"Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\n\nDefault: `false`."
|
|
49
|
+
).optional(),
|
|
50
|
+
paging: z.object({
|
|
51
|
+
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
52
|
+
cursor: z.string().describe(
|
|
53
|
+
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
54
|
+
).max(16e3).optional().nullable()
|
|
55
|
+
}).describe("Paging configuration.").optional()
|
|
56
|
+
}).optional()
|
|
57
|
+
});
|
|
58
|
+
var ListAppPermissionsResponse = z.object({
|
|
59
|
+
appPermissions: z.array(
|
|
60
|
+
z.object({
|
|
61
|
+
appId: z.string().describe(
|
|
62
|
+
"App ID.\n\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home)."
|
|
63
|
+
).regex(
|
|
64
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
65
|
+
"Must be a valid GUID"
|
|
66
|
+
).optional(),
|
|
67
|
+
permission: z.object({
|
|
68
|
+
permissionId: z.string().describe(
|
|
69
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
70
|
+
).min(1).max(164).optional()
|
|
71
|
+
}).describe(
|
|
72
|
+
"Permission the app requests when installed on a site.\n\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions)."
|
|
73
|
+
).optional(),
|
|
74
|
+
_createdDate: z.date().describe("When the permission was created.").optional().nullable(),
|
|
75
|
+
_updatedDate: z.date().describe("When the permission was last updated.").optional().nullable()
|
|
76
|
+
})
|
|
77
|
+
).optional(),
|
|
78
|
+
pagingMetadata: z.object({
|
|
79
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
80
|
+
cursors: z.object({
|
|
81
|
+
next: z.string().describe(
|
|
82
|
+
"Cursor string pointing to the next page in the list of results."
|
|
83
|
+
).max(16e3).optional().nullable(),
|
|
84
|
+
prev: z.string().describe(
|
|
85
|
+
"Cursor pointing to the previous page in the list of results."
|
|
86
|
+
).max(16e3).optional().nullable()
|
|
87
|
+
}).describe(
|
|
88
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
89
|
+
).optional(),
|
|
90
|
+
hasNext: z.boolean().describe(
|
|
91
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
92
|
+
).optional().nullable()
|
|
93
|
+
}).describe("Paging metadata.").optional()
|
|
94
|
+
});
|
|
95
|
+
var DeleteAppPermissionRequest = z.object({
|
|
96
|
+
appId: z.string().describe(
|
|
97
|
+
"App ID.\n\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard."
|
|
98
|
+
).regex(
|
|
99
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
100
|
+
"Must be a valid GUID"
|
|
101
|
+
),
|
|
102
|
+
permissionId: z.string().describe(
|
|
103
|
+
"Permission ID.\n\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions)."
|
|
104
|
+
).min(1).max(164)
|
|
105
|
+
});
|
|
106
|
+
var DeleteAppPermissionResponse = z.object({});
|
|
107
|
+
export {
|
|
108
|
+
CreateAppPermissionRequest,
|
|
109
|
+
CreateAppPermissionResponse,
|
|
110
|
+
DeleteAppPermissionRequest,
|
|
111
|
+
DeleteAppPermissionResponse,
|
|
112
|
+
ListAppPermissionsRequest,
|
|
113
|
+
ListAppPermissionsResponse
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateAppPermissionRequest = z.object({\n appPermission: z\n .object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n ),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Permission to add to the specified app.'),\n});\nexport const CreateAppPermissionResponse = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n});\nexport const ListAppPermissionsRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n consistent: z\n .boolean()\n .describe(\n 'Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.\\n\\nDefault: `false`.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Paging configuration.')\n .optional(),\n })\n .optional(),\n});\nexport const ListAppPermissionsResponse = z.object({\n appPermissions: z\n .array(\n z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n permission: z\n .object({\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164)\n .optional(),\n })\n .describe(\n 'Permission the app requests when installed on a site.\\n\\nLearn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('When the permission was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('When the permission was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const DeleteAppPermissionRequest = z.object({\n appId: z\n .string()\n .describe(\n \"App ID.\\n\\nYou can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n permissionId: z\n .string()\n .describe(\n \"Permission ID.\\n\\nTo find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).\"\n )\n .min(1)\n .max(164),\n});\nexport const DeleteAppPermissionResponse = z.object({});\n"],"mappings":"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","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_app-management_app-permissions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.10",
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.devcenter.apps.v1.app_permission"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "3e4d6f10e3f3f4b57087861e8c23bce7d431ee296fcb7f30173aa558"
|
|
54
61
|
}
|