@wix/auto_sdk_user-management_contributors 1.0.68 → 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.d.ts +4 -0
- 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.d.mts +4 -0
- 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 +26 -0
- package/build/internal/cjs/meta.d.ts +64 -0
- package/build/internal/es/index.typings.d.mts +26 -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
|
@@ -51,6 +51,11 @@ interface Assignment {
|
|
|
51
51
|
policy?: AssignedPolicy;
|
|
52
52
|
/** Unique ID for this specific assignment. */
|
|
53
53
|
assignmentId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The asset a user is assigned access to in an assignment, including any restrictions to their access. When empty, the role covers all assets, with no restrictions to specific sites or folders.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
restrictions?: Restriction;
|
|
54
59
|
/** Identity assigned to the asset in an assignment, referred to as subject. Supported subjects include user IDs, account IDs, and app IDs. */
|
|
55
60
|
subject?: Subject;
|
|
56
61
|
}
|
|
@@ -125,6 +130,11 @@ interface SiteRestriction {
|
|
|
125
130
|
id?: string;
|
|
126
131
|
/** Site name. */
|
|
127
132
|
value?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* A specific asset (referred to as a resource) inside the site, if relevant. For example, a specific dashboard page.
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
resource?: CompanionResource;
|
|
128
138
|
}
|
|
129
139
|
interface CompanionResource {
|
|
130
140
|
/** Asset ID (referred to here as resource ID). */
|
|
@@ -343,6 +353,16 @@ interface SiteInvite {
|
|
|
343
353
|
* @format GUID
|
|
344
354
|
*/
|
|
345
355
|
staffId?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* Brand domain.
|
|
358
|
+
* @internal
|
|
359
|
+
*/
|
|
360
|
+
brandDomain?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Optional field representing the purpose of the invite
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
365
|
+
invitePurpose?: string | null;
|
|
346
366
|
/** Invite expiration date */
|
|
347
367
|
expirationDate?: Date | null;
|
|
348
368
|
/**
|
|
@@ -653,6 +673,8 @@ interface SiteLocationAssignment {
|
|
|
653
673
|
interface QuerySiteContributorsRequest {
|
|
654
674
|
/** Filter object for narrowing search results. */
|
|
655
675
|
filter?: QuerySiteContributorsFilter;
|
|
676
|
+
/** @internal */
|
|
677
|
+
fieldSet?: FieldSetWithLiterals[];
|
|
656
678
|
}
|
|
657
679
|
interface QuerySiteContributorsFilter {
|
|
658
680
|
/**
|
|
@@ -742,8 +764,18 @@ interface DomainEventBodyOneOf {
|
|
|
742
764
|
}
|
|
743
765
|
interface EntityCreatedEvent {
|
|
744
766
|
entityAsJson?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
769
|
+
* @internal
|
|
770
|
+
*/
|
|
771
|
+
triggeredByUndelete?: boolean | null;
|
|
745
772
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
746
773
|
restoreInfo?: RestoreInfo;
|
|
774
|
+
/**
|
|
775
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
776
|
+
* @internal
|
|
777
|
+
*/
|
|
778
|
+
additionalMetadataAsJson?: string | null;
|
|
747
779
|
}
|
|
748
780
|
interface RestoreInfo {
|
|
749
781
|
deletedDate?: Date | null;
|
|
@@ -755,10 +787,42 @@ interface EntityUpdatedEvent {
|
|
|
755
787
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
756
788
|
*/
|
|
757
789
|
currentEntityAsJson?: string;
|
|
790
|
+
/**
|
|
791
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
792
|
+
* wont populate it / have any reference to it in the API.
|
|
793
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
794
|
+
* the developer should send only the new (current) entity.
|
|
795
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
796
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
797
|
+
* @internal
|
|
798
|
+
* @deprecated
|
|
799
|
+
*/
|
|
800
|
+
previousEntityAsJson?: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
803
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
804
|
+
* @internal
|
|
805
|
+
*/
|
|
806
|
+
modifiedFields?: Record<string, any>;
|
|
807
|
+
/**
|
|
808
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
809
|
+
* @internal
|
|
810
|
+
*/
|
|
811
|
+
additionalMetadataAsJson?: string | null;
|
|
758
812
|
}
|
|
759
813
|
interface EntityDeletedEvent {
|
|
814
|
+
/**
|
|
815
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
816
|
+
* @internal
|
|
817
|
+
*/
|
|
818
|
+
movedToTrash?: boolean | null;
|
|
760
819
|
/** Entity that was deleted. */
|
|
761
820
|
deletedEntityAsJson?: string | null;
|
|
821
|
+
/**
|
|
822
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
823
|
+
* @internal
|
|
824
|
+
*/
|
|
825
|
+
additionalMetadataAsJson?: string | null;
|
|
762
826
|
}
|
|
763
827
|
interface ActionEvent {
|
|
764
828
|
bodyAsJson?: string;
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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AQ,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,SAA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