@wix/auto_sdk_user-management_contributors 1.0.69 → 1.0.70
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/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +22 -0
- package/build/internal/cjs/meta.d.ts +64 -0
- package/build/internal/es/index.typings.d.mts +22 -0
- package/build/internal/es/meta.d.mts +64 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -49
- package/build/cjs/schemas.js +0 -127
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -49
- package/build/es/schemas.mjs +0 -83
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -738
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -653
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -593
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -49
- package/build/internal/cjs/schemas.js +0 -127
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -698
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -614
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -551
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -49
- package/build/internal/es/schemas.mjs +0 -83
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_user-management_contributors",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
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"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
40
|
-
"zod": "^4.3.6"
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.identity.v1.contributor"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "621c0c1ecd2b6bc5073c46a571f77b4e3c7f2ed20e19b91b26b0a532"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ChangeRoleRequest: z.ZodObject<{
|
|
4
|
-
accountId: z.ZodString;
|
|
5
|
-
options: z.ZodObject<{
|
|
6
|
-
newRoles: z.ZodArray<z.ZodObject<{
|
|
7
|
-
roleId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
assignmentId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
declare const ChangeRoleResponse: z.ZodObject<{
|
|
13
|
-
newAssignedRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
roleId: z.ZodOptional<z.ZodString>;
|
|
15
|
-
assignmentId: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
declare const ChangeContributorLocationRequest: z.ZodObject<{
|
|
19
|
-
accountId: z.ZodString;
|
|
20
|
-
options: z.ZodObject<{
|
|
21
|
-
newLocations: z.ZodArray<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
declare const ChangeContributorLocationResponse: z.ZodObject<{
|
|
25
|
-
newAssignedLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
-
locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
assignmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
}, z.core.$strip>>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
declare const QuerySiteContributorsRequest: z.ZodObject<{
|
|
31
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
policyIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
declare const QuerySiteContributorsResponse: z.ZodObject<{
|
|
39
|
-
contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
-
accountId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
accountOwnerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip>>>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
declare const RemoveContributorRequest: z.ZodObject<{
|
|
45
|
-
accountId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
declare const RemoveContributorResponse: z.ZodObject<{}, z.core.$strip>;
|
|
48
|
-
|
|
49
|
-
export { ChangeContributorLocationRequest, ChangeContributorLocationResponse, ChangeRoleRequest, ChangeRoleResponse, QuerySiteContributorsRequest, QuerySiteContributorsResponse, RemoveContributorRequest, RemoveContributorResponse };
|
package/build/cjs/schemas.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
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
|
-
ChangeContributorLocationRequest: () => ChangeContributorLocationRequest,
|
|
34
|
-
ChangeContributorLocationResponse: () => ChangeContributorLocationResponse,
|
|
35
|
-
ChangeRoleRequest: () => ChangeRoleRequest,
|
|
36
|
-
ChangeRoleResponse: () => ChangeRoleResponse,
|
|
37
|
-
QuerySiteContributorsRequest: () => QuerySiteContributorsRequest,
|
|
38
|
-
QuerySiteContributorsResponse: () => QuerySiteContributorsResponse,
|
|
39
|
-
RemoveContributorRequest: () => RemoveContributorRequest,
|
|
40
|
-
RemoveContributorResponse: () => RemoveContributorResponse
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
43
|
-
|
|
44
|
-
// src/identity-v1-contributor-contributors.schemas.ts
|
|
45
|
-
var z = __toESM(require("zod"));
|
|
46
|
-
var ChangeRoleRequest = z.object({
|
|
47
|
-
accountId: z.string().describe("Contributor's account ID.").regex(
|
|
48
|
-
/^[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}$/,
|
|
49
|
-
"Must be a valid GUID"
|
|
50
|
-
),
|
|
51
|
-
options: z.object({
|
|
52
|
-
newRoles: z.array(
|
|
53
|
-
z.object({
|
|
54
|
-
roleId: z.string().describe(
|
|
55
|
-
"Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
|
|
56
|
-
).optional(),
|
|
57
|
-
assignmentId: z.string().describe(
|
|
58
|
-
"Assignment ID mapping the role to the contributor on the site."
|
|
59
|
-
).optional()
|
|
60
|
-
})
|
|
61
|
-
)
|
|
62
|
-
}).describe("Filter options. The `newRoles` field **must** be passed.")
|
|
63
|
-
});
|
|
64
|
-
var ChangeRoleResponse = z.object({
|
|
65
|
-
newAssignedRoles: z.array(
|
|
66
|
-
z.object({
|
|
67
|
-
roleId: z.string().describe(
|
|
68
|
-
"Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
|
|
69
|
-
).optional(),
|
|
70
|
-
assignmentId: z.string().describe(
|
|
71
|
-
"Assignment ID mapping the role to the contributor on the site."
|
|
72
|
-
).optional()
|
|
73
|
-
})
|
|
74
|
-
).optional()
|
|
75
|
-
});
|
|
76
|
-
var ChangeContributorLocationRequest = z.object({
|
|
77
|
-
accountId: z.string().describe("Contributor's account ID.").regex(
|
|
78
|
-
/^[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}$/,
|
|
79
|
-
"Must be a valid GUID"
|
|
80
|
-
),
|
|
81
|
-
options: z.object({ newLocations: z.array(z.string()).max(20) })
|
|
82
|
-
});
|
|
83
|
-
var ChangeContributorLocationResponse = z.object({
|
|
84
|
-
newAssignedLocations: z.array(
|
|
85
|
-
z.object({
|
|
86
|
-
locationIds: z.array(z.string()).max(100).optional(),
|
|
87
|
-
assignmentIds: z.array(z.string()).max(999).optional()
|
|
88
|
-
})
|
|
89
|
-
).max(20).optional()
|
|
90
|
-
});
|
|
91
|
-
var QuerySiteContributorsRequest = z.object({
|
|
92
|
-
options: z.object({
|
|
93
|
-
filter: z.object({
|
|
94
|
-
policyIds: z.array(z.string()).max(20).optional(),
|
|
95
|
-
locationIds: z.array(z.string()).max(20).optional()
|
|
96
|
-
}).describe("Filter object for narrowing search results.").optional()
|
|
97
|
-
}).describe("Filter options.").optional()
|
|
98
|
-
});
|
|
99
|
-
var QuerySiteContributorsResponse = z.object({
|
|
100
|
-
contributors: z.array(
|
|
101
|
-
z.object({
|
|
102
|
-
accountId: z.string().describe("Contributor's account ID.").optional().nullable(),
|
|
103
|
-
accountOwnerId: z.string().describe(
|
|
104
|
-
"User ID of the owner of the account that the contributor belongs to."
|
|
105
|
-
).optional().nullable()
|
|
106
|
-
})
|
|
107
|
-
).optional()
|
|
108
|
-
});
|
|
109
|
-
var RemoveContributorRequest = z.object({
|
|
110
|
-
accountId: z.string().describe("Contributor's account ID to remove from the site.").regex(
|
|
111
|
-
/^[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}$/,
|
|
112
|
-
"Must be a valid GUID"
|
|
113
|
-
)
|
|
114
|
-
});
|
|
115
|
-
var RemoveContributorResponse = z.object({});
|
|
116
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
117
|
-
0 && (module.exports = {
|
|
118
|
-
ChangeContributorLocationRequest,
|
|
119
|
-
ChangeContributorLocationResponse,
|
|
120
|
-
ChangeRoleRequest,
|
|
121
|
-
ChangeRoleResponse,
|
|
122
|
-
QuerySiteContributorsRequest,
|
|
123
|
-
QuerySiteContributorsResponse,
|
|
124
|
-
RemoveContributorRequest,
|
|
125
|
-
RemoveContributorResponse
|
|
126
|
-
});
|
|
127
|
-
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/identity-v1-contributor-contributors.schemas.ts"],"sourcesContent":["export * from './src/identity-v1-contributor-contributors.schemas.js';\n","import * as z from 'zod';\n\nexport const ChangeRoleRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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 newRoles: z.array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n ),\n })\n .describe('Filter options. The `newRoles` field **must** be passed.'),\n});\nexport const ChangeRoleResponse = z.object({\n newAssignedRoles: z\n .array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const ChangeContributorLocationRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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.object({ newLocations: z.array(z.string()).max(20) }),\n});\nexport const ChangeContributorLocationResponse = z.object({\n newAssignedLocations: z\n .array(\n z.object({\n locationIds: z.array(z.string()).max(100).optional(),\n assignmentIds: z.array(z.string()).max(999).optional(),\n })\n )\n .max(20)\n .optional(),\n});\nexport const QuerySiteContributorsRequest = z.object({\n options: z\n .object({\n filter: z\n .object({\n policyIds: z.array(z.string()).max(20).optional(),\n locationIds: z.array(z.string()).max(20).optional(),\n })\n .describe('Filter object for narrowing search results.')\n .optional(),\n })\n .describe('Filter options.')\n .optional(),\n});\nexport const QuerySiteContributorsResponse = z.object({\n contributors: z\n .array(\n z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\n .optional()\n .nullable(),\n accountOwnerId: z\n .string()\n .describe(\n 'User ID of the owner of the account that the contributor belongs to.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const RemoveContributorRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID to remove from the site.\")\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});\nexport const RemoveContributorResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,oBAAsB,SAAO;AAAA,EACxC,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,UAAY;AAAA,MACR,SAAO;AAAA,QACP,QACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,cACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC;AAAA,IACH;AAAA,EACF,CAAC,EACA,SAAS,0DAA0D;AACxE,CAAC;AACM,IAAM,qBAAuB,SAAO;AAAA,EACzC,kBACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO,EAAE,cAAgB,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC;AACjE,CAAC;AACM,IAAM,oCAAsC,SAAO;AAAA,EACxD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,MACnD,eAAiB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvD,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,SACG,SAAO;AAAA,IACN,QACG,SAAO;AAAA,MACN,WAAa,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,MAChD,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACpD,CAAC,EACA,SAAS,6CAA6C,EACtD,SAAS;AAAA,EACd,CAAC,EACA,SAAS,iBAAiB,EAC1B,SAAS;AACd,CAAC;AACM,IAAM,gCAAkC,SAAO;AAAA,EACpD,cACG;AAAA,IACG,SAAO;AAAA,MACP,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS,EACT,SAAS;AAAA,MACZ,gBACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,WACG,SAAO,EACP,SAAS,mDAAmD,EAC5D;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ChangeRoleRequest: z.ZodObject<{
|
|
4
|
-
accountId: z.ZodString;
|
|
5
|
-
options: z.ZodObject<{
|
|
6
|
-
newRoles: z.ZodArray<z.ZodObject<{
|
|
7
|
-
roleId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
assignmentId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
declare const ChangeRoleResponse: z.ZodObject<{
|
|
13
|
-
newAssignedRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
roleId: z.ZodOptional<z.ZodString>;
|
|
15
|
-
assignmentId: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
declare const ChangeContributorLocationRequest: z.ZodObject<{
|
|
19
|
-
accountId: z.ZodString;
|
|
20
|
-
options: z.ZodObject<{
|
|
21
|
-
newLocations: z.ZodArray<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
declare const ChangeContributorLocationResponse: z.ZodObject<{
|
|
25
|
-
newAssignedLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
-
locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
assignmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
}, z.core.$strip>>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
declare const QuerySiteContributorsRequest: z.ZodObject<{
|
|
31
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
policyIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
locationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
declare const QuerySiteContributorsResponse: z.ZodObject<{
|
|
39
|
-
contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
-
accountId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
accountOwnerId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip>>>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
declare const RemoveContributorRequest: z.ZodObject<{
|
|
45
|
-
accountId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
declare const RemoveContributorResponse: z.ZodObject<{}, z.core.$strip>;
|
|
48
|
-
|
|
49
|
-
export { ChangeContributorLocationRequest, ChangeContributorLocationResponse, ChangeRoleRequest, ChangeRoleResponse, QuerySiteContributorsRequest, QuerySiteContributorsResponse, RemoveContributorRequest, RemoveContributorResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// src/identity-v1-contributor-contributors.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var ChangeRoleRequest = z.object({
|
|
4
|
-
accountId: z.string().describe("Contributor's account ID.").regex(
|
|
5
|
-
/^[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}$/,
|
|
6
|
-
"Must be a valid GUID"
|
|
7
|
-
),
|
|
8
|
-
options: z.object({
|
|
9
|
-
newRoles: z.array(
|
|
10
|
-
z.object({
|
|
11
|
-
roleId: z.string().describe(
|
|
12
|
-
"Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
|
|
13
|
-
).optional(),
|
|
14
|
-
assignmentId: z.string().describe(
|
|
15
|
-
"Assignment ID mapping the role to the contributor on the site."
|
|
16
|
-
).optional()
|
|
17
|
-
})
|
|
18
|
-
)
|
|
19
|
-
}).describe("Filter options. The `newRoles` field **must** be passed.")
|
|
20
|
-
});
|
|
21
|
-
var ChangeRoleResponse = z.object({
|
|
22
|
-
newAssignedRoles: z.array(
|
|
23
|
-
z.object({
|
|
24
|
-
roleId: z.string().describe(
|
|
25
|
-
"Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles."
|
|
26
|
-
).optional(),
|
|
27
|
-
assignmentId: z.string().describe(
|
|
28
|
-
"Assignment ID mapping the role to the contributor on the site."
|
|
29
|
-
).optional()
|
|
30
|
-
})
|
|
31
|
-
).optional()
|
|
32
|
-
});
|
|
33
|
-
var ChangeContributorLocationRequest = z.object({
|
|
34
|
-
accountId: z.string().describe("Contributor's account ID.").regex(
|
|
35
|
-
/^[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}$/,
|
|
36
|
-
"Must be a valid GUID"
|
|
37
|
-
),
|
|
38
|
-
options: z.object({ newLocations: z.array(z.string()).max(20) })
|
|
39
|
-
});
|
|
40
|
-
var ChangeContributorLocationResponse = z.object({
|
|
41
|
-
newAssignedLocations: z.array(
|
|
42
|
-
z.object({
|
|
43
|
-
locationIds: z.array(z.string()).max(100).optional(),
|
|
44
|
-
assignmentIds: z.array(z.string()).max(999).optional()
|
|
45
|
-
})
|
|
46
|
-
).max(20).optional()
|
|
47
|
-
});
|
|
48
|
-
var QuerySiteContributorsRequest = z.object({
|
|
49
|
-
options: z.object({
|
|
50
|
-
filter: z.object({
|
|
51
|
-
policyIds: z.array(z.string()).max(20).optional(),
|
|
52
|
-
locationIds: z.array(z.string()).max(20).optional()
|
|
53
|
-
}).describe("Filter object for narrowing search results.").optional()
|
|
54
|
-
}).describe("Filter options.").optional()
|
|
55
|
-
});
|
|
56
|
-
var QuerySiteContributorsResponse = z.object({
|
|
57
|
-
contributors: z.array(
|
|
58
|
-
z.object({
|
|
59
|
-
accountId: z.string().describe("Contributor's account ID.").optional().nullable(),
|
|
60
|
-
accountOwnerId: z.string().describe(
|
|
61
|
-
"User ID of the owner of the account that the contributor belongs to."
|
|
62
|
-
).optional().nullable()
|
|
63
|
-
})
|
|
64
|
-
).optional()
|
|
65
|
-
});
|
|
66
|
-
var RemoveContributorRequest = z.object({
|
|
67
|
-
accountId: z.string().describe("Contributor's account ID to remove from the site.").regex(
|
|
68
|
-
/^[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}$/,
|
|
69
|
-
"Must be a valid GUID"
|
|
70
|
-
)
|
|
71
|
-
});
|
|
72
|
-
var RemoveContributorResponse = z.object({});
|
|
73
|
-
export {
|
|
74
|
-
ChangeContributorLocationRequest,
|
|
75
|
-
ChangeContributorLocationResponse,
|
|
76
|
-
ChangeRoleRequest,
|
|
77
|
-
ChangeRoleResponse,
|
|
78
|
-
QuerySiteContributorsRequest,
|
|
79
|
-
QuerySiteContributorsResponse,
|
|
80
|
-
RemoveContributorRequest,
|
|
81
|
-
RemoveContributorResponse
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=schemas.mjs.map
|
package/build/es/schemas.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/identity-v1-contributor-contributors.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ChangeRoleRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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 newRoles: z.array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n ),\n })\n .describe('Filter options. The `newRoles` field **must** be passed.'),\n});\nexport const ChangeRoleResponse = z.object({\n newAssignedRoles: z\n .array(\n z.object({\n roleId: z\n .string()\n .describe(\n 'Role ID. Sometimes referred to as policy ID. See [Roles and Permissions](https://support.wix.com/en/article/roles-permissions-overview) for a list of available roles.'\n )\n .optional(),\n assignmentId: z\n .string()\n .describe(\n 'Assignment ID mapping the role to the contributor on the site.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const ChangeContributorLocationRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\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.object({ newLocations: z.array(z.string()).max(20) }),\n});\nexport const ChangeContributorLocationResponse = z.object({\n newAssignedLocations: z\n .array(\n z.object({\n locationIds: z.array(z.string()).max(100).optional(),\n assignmentIds: z.array(z.string()).max(999).optional(),\n })\n )\n .max(20)\n .optional(),\n});\nexport const QuerySiteContributorsRequest = z.object({\n options: z\n .object({\n filter: z\n .object({\n policyIds: z.array(z.string()).max(20).optional(),\n locationIds: z.array(z.string()).max(20).optional(),\n })\n .describe('Filter object for narrowing search results.')\n .optional(),\n })\n .describe('Filter options.')\n .optional(),\n});\nexport const QuerySiteContributorsResponse = z.object({\n contributors: z\n .array(\n z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID.\")\n .optional()\n .nullable(),\n accountOwnerId: z\n .string()\n .describe(\n 'User ID of the owner of the account that the contributor belongs to.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const RemoveContributorRequest = z.object({\n accountId: z\n .string()\n .describe(\"Contributor's account ID to remove from the site.\")\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});\nexport const RemoveContributorResponse = z.object({});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,oBAAsB,SAAO;AAAA,EACxC,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,UAAY;AAAA,MACR,SAAO;AAAA,QACP,QACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,cACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,MACd,CAAC;AAAA,IACH;AAAA,EACF,CAAC,EACA,SAAS,0DAA0D;AACxE,CAAC;AACM,IAAM,qBAAuB,SAAO;AAAA,EACzC,kBACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO,EAAE,cAAgB,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC;AACjE,CAAC;AACM,IAAM,oCAAsC,SAAO;AAAA,EACxD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,MACnD,eAAiB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvD,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,SACG,SAAO;AAAA,IACN,QACG,SAAO;AAAA,MACN,WAAa,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,MAChD,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,IACpD,CAAC,EACA,SAAS,6CAA6C,EACtD,SAAS;AAAA,EACd,CAAC,EACA,SAAS,iBAAiB,EAC1B,SAAS;AACd,CAAC;AACM,IAAM,gCAAkC,SAAO;AAAA,EACpD,cACG;AAAA,IACG,SAAO;AAAA,MACP,WACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS,EACT,SAAS;AAAA,MACZ,gBACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,2BAA6B,SAAO;AAAA,EAC/C,WACG,SAAO,EACP,SAAS,mDAAmD,EAC5D;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;","names":[]}
|