syllable-sdk 0.1.0-alpha.163 → 0.1.0-alpha.169
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/README.md +13 -0
- package/docs/sdks/agents/README.md +16 -0
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/roles/README.md +445 -0
- package/docs/sdks/takeouts/README.md +1 -1
- package/docs/sdks/workflows/README.md +8 -8
- package/funcs/rolesCreate.d.ts +16 -0
- package/funcs/rolesCreate.d.ts.map +1 -0
- package/funcs/rolesCreate.js +102 -0
- package/funcs/rolesCreate.js.map +1 -0
- package/funcs/rolesDelete.d.ts +16 -0
- package/funcs/rolesDelete.d.ts.map +1 -0
- package/funcs/rolesDelete.js +112 -0
- package/funcs/rolesDelete.js.map +1 -0
- package/funcs/rolesGetById.d.ts +17 -0
- package/funcs/rolesGetById.d.ts.map +1 -0
- package/funcs/rolesGetById.js +108 -0
- package/funcs/rolesGetById.js.map +1 -0
- package/funcs/rolesList.d.ts +17 -0
- package/funcs/rolesList.d.ts.map +1 -0
- package/funcs/rolesList.js +114 -0
- package/funcs/rolesList.js.map +1 -0
- package/funcs/rolesUpdate.d.ts +16 -0
- package/funcs/rolesUpdate.d.ts.map +1 -0
- package/funcs/rolesUpdate.js +102 -0
- package/funcs/rolesUpdate.js.map +1 -0
- package/funcs/takeoutsTakeoutsGetFile.d.ts +1 -1
- package/funcs/takeoutsTakeoutsGetFile.d.ts.map +1 -1
- package/funcs/takeoutsTakeoutsGetFile.js +3 -1
- package/funcs/takeoutsTakeoutsGetFile.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentcreate.d.ts +8 -1
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +2 -0
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentproperties.d.ts +3 -0
- package/models/components/agentproperties.d.ts.map +1 -1
- package/models/components/agentproperties.js +1 -0
- package/models/components/agentproperties.js.map +1 -1
- package/models/components/agentresponse.d.ts +8 -1
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js +2 -0
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/agentupdate.d.ts +8 -1
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +2 -0
- package/models/components/agentupdate.js.map +1 -1
- package/models/components/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- package/models/components/listresponseroleresponse.d.ts +53 -0
- package/models/components/listresponseroleresponse.d.ts.map +1 -0
- package/models/components/listresponseroleresponse.js +81 -0
- package/models/components/listresponseroleresponse.js.map +1 -0
- package/models/components/permissionresponse.d.ts +4 -2
- package/models/components/permissionresponse.d.ts.map +1 -1
- package/models/components/permissionresponse.js +2 -3
- package/models/components/permissionresponse.js.map +1 -1
- package/models/components/rolecreaterequest.d.ts +45 -0
- package/models/components/rolecreaterequest.d.ts.map +1 -0
- package/models/components/rolecreaterequest.js +63 -0
- package/models/components/rolecreaterequest.js.map +1 -0
- package/models/components/roleproperties.d.ts +40 -0
- package/models/components/roleproperties.d.ts.map +1 -0
- package/models/components/roleproperties.js +55 -0
- package/models/components/roleproperties.js.map +1 -0
- package/models/components/roleresponse.d.ts +70 -0
- package/models/components/roleresponse.d.ts.map +1 -0
- package/models/components/roleresponse.js +88 -0
- package/models/components/roleresponse.js.map +1 -0
- package/models/components/roleupdaterequest.d.ts +55 -0
- package/models/components/roleupdaterequest.d.ts.map +1 -0
- package/models/components/roleupdaterequest.js +76 -0
- package/models/components/roleupdaterequest.js.map +1 -0
- package/models/components/tooldetailresponse.d.ts +1 -1
- package/models/components/toolresponse.d.ts +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/rolesdelete.d.ts +31 -0
- package/models/operations/rolesdelete.d.ts.map +1 -0
- package/models/operations/rolesdelete.js +70 -0
- package/models/operations/rolesdelete.js.map +1 -0
- package/models/operations/rolesgetbyid.d.ts +29 -0
- package/models/operations/rolesgetbyid.d.ts.map +1 -0
- package/models/operations/rolesgetbyid.js +68 -0
- package/models/operations/rolesgetbyid.js.map +1 -0
- package/models/operations/roleslist.d.ts +73 -0
- package/models/operations/roleslist.d.ts.map +1 -0
- package/models/operations/roleslist.js +99 -0
- package/models/operations/roleslist.js.map +1 -0
- package/openapi.json +829 -111
- package/package.json +1 -1
- package/sdk/roles.d.ts +41 -0
- package/sdk/roles.d.ts.map +1 -0
- package/sdk/roles.js +62 -0
- package/sdk/roles.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/takeouts.d.ts +1 -1
- package/sdk/takeouts.d.ts.map +1 -1
- package/src/funcs/rolesCreate.ts +135 -0
- package/src/funcs/rolesDelete.ts +147 -0
- package/src/funcs/rolesGetById.ts +142 -0
- package/src/funcs/rolesList.ts +148 -0
- package/src/funcs/rolesUpdate.ts +135 -0
- package/src/funcs/takeoutsTakeoutsGetFile.ts +5 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentcreate.ts +10 -1
- package/src/models/components/agentproperties.ts +1 -0
- package/src/models/components/agentresponse.ts +10 -1
- package/src/models/components/agentupdate.ts +10 -1
- package/src/models/components/index.ts +5 -1
- package/src/models/components/listresponseroleresponse.ts +116 -0
- package/src/models/components/permissionresponse.ts +6 -8
- package/src/models/components/rolecreaterequest.ts +86 -0
- package/src/models/components/roleproperties.ts +41 -0
- package/src/models/components/roleresponse.ts +134 -0
- package/src/models/components/roleupdaterequest.ts +109 -0
- package/src/models/components/tooldetailresponse.ts +1 -1
- package/src/models/components/toolresponse.ts +1 -1
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/rolesdelete.ts +79 -0
- package/src/models/operations/rolesgetbyid.ts +75 -0
- package/src/models/operations/roleslist.ts +149 -0
- package/src/sdk/roles.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/takeouts.ts +1 -1
- package/models/components/permissions.d.ts +0 -199
- package/models/components/permissions.d.ts.map +0 -1
- package/models/components/permissions.js +0 -108
- package/models/components/permissions.js.map +0 -1
- package/src/models/components/permissions.ts +0 -88
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { RoleResponse, RoleResponse$Outbound } from "./roleresponse.js";
|
|
5
|
+
export type ListResponseRoleResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* List of items returned from the query
|
|
8
|
+
*/
|
|
9
|
+
items: Array<RoleResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* The page number of the results (0-based)
|
|
12
|
+
*/
|
|
13
|
+
page: number;
|
|
14
|
+
/**
|
|
15
|
+
* The number of items returned per page
|
|
16
|
+
*/
|
|
17
|
+
pageSize: number;
|
|
18
|
+
/**
|
|
19
|
+
* The total number of pages of results given the indicated page size
|
|
20
|
+
*/
|
|
21
|
+
totalPages?: number | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The total number of items returned from the query
|
|
24
|
+
*/
|
|
25
|
+
totalCount?: number | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const ListResponseRoleResponse$inboundSchema: z.ZodType<ListResponseRoleResponse, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type ListResponseRoleResponse$Outbound = {
|
|
31
|
+
items: Array<RoleResponse$Outbound>;
|
|
32
|
+
page: number;
|
|
33
|
+
page_size: number;
|
|
34
|
+
total_pages?: number | null | undefined;
|
|
35
|
+
total_count?: number | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const ListResponseRoleResponse$outboundSchema: z.ZodType<ListResponseRoleResponse$Outbound, z.ZodTypeDef, ListResponseRoleResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace ListResponseRoleResponse$ {
|
|
44
|
+
/** @deprecated use `ListResponseRoleResponse$inboundSchema` instead. */
|
|
45
|
+
const inboundSchema: z.ZodType<ListResponseRoleResponse, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @deprecated use `ListResponseRoleResponse$outboundSchema` instead. */
|
|
47
|
+
const outboundSchema: z.ZodType<ListResponseRoleResponse$Outbound, z.ZodTypeDef, ListResponseRoleResponse>;
|
|
48
|
+
/** @deprecated use `ListResponseRoleResponse$Outbound` instead. */
|
|
49
|
+
type Outbound = ListResponseRoleResponse$Outbound;
|
|
50
|
+
}
|
|
51
|
+
export declare function listResponseRoleResponseToJSON(listResponseRoleResponse: ListResponseRoleResponse): string;
|
|
52
|
+
export declare function listResponseRoleResponseFromJSON(jsonString: string): SafeParseResult<ListResponseRoleResponse, SDKValidationError>;
|
|
53
|
+
//# sourceMappingURL=listresponseroleresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listresponseroleresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/listresponseroleresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC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
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ListResponseRoleResponse$ = exports.ListResponseRoleResponse$outboundSchema = exports.ListResponseRoleResponse$inboundSchema = void 0;
|
|
30
|
+
exports.listResponseRoleResponseToJSON = listResponseRoleResponseToJSON;
|
|
31
|
+
exports.listResponseRoleResponseFromJSON = listResponseRoleResponseFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
const roleresponse_js_1 = require("./roleresponse.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.ListResponseRoleResponse$inboundSchema = z.object({
|
|
38
|
+
items: z.array(roleresponse_js_1.RoleResponse$inboundSchema),
|
|
39
|
+
page: z.number().int(),
|
|
40
|
+
page_size: z.number().int(),
|
|
41
|
+
total_pages: z.nullable(z.number().int()).optional(),
|
|
42
|
+
total_count: z.nullable(z.number().int()).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return (0, primitives_js_1.remap)(v, {
|
|
45
|
+
"page_size": "pageSize",
|
|
46
|
+
"total_pages": "totalPages",
|
|
47
|
+
"total_count": "totalCount",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.ListResponseRoleResponse$outboundSchema = z.object({
|
|
52
|
+
items: z.array(roleresponse_js_1.RoleResponse$outboundSchema),
|
|
53
|
+
page: z.number().int(),
|
|
54
|
+
pageSize: z.number().int(),
|
|
55
|
+
totalPages: z.nullable(z.number().int()).optional(),
|
|
56
|
+
totalCount: z.nullable(z.number().int()).optional(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return (0, primitives_js_1.remap)(v, {
|
|
59
|
+
pageSize: "page_size",
|
|
60
|
+
totalPages: "total_pages",
|
|
61
|
+
totalCount: "total_count",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
var ListResponseRoleResponse$;
|
|
69
|
+
(function (ListResponseRoleResponse$) {
|
|
70
|
+
/** @deprecated use `ListResponseRoleResponse$inboundSchema` instead. */
|
|
71
|
+
ListResponseRoleResponse$.inboundSchema = exports.ListResponseRoleResponse$inboundSchema;
|
|
72
|
+
/** @deprecated use `ListResponseRoleResponse$outboundSchema` instead. */
|
|
73
|
+
ListResponseRoleResponse$.outboundSchema = exports.ListResponseRoleResponse$outboundSchema;
|
|
74
|
+
})(ListResponseRoleResponse$ || (exports.ListResponseRoleResponse$ = ListResponseRoleResponse$ = {}));
|
|
75
|
+
function listResponseRoleResponseToJSON(listResponseRoleResponse) {
|
|
76
|
+
return JSON.stringify(exports.ListResponseRoleResponse$outboundSchema.parse(listResponseRoleResponse));
|
|
77
|
+
}
|
|
78
|
+
function listResponseRoleResponseFromJSON(jsonString) {
|
|
79
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResponseRoleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResponseRoleResponse' from JSON`);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=listresponseroleresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listresponseroleresponse.js","sourceRoot":"","sources":["../../src/models/components/listresponseroleresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGH,wEAMC;AAED,4EAQC;AA/GD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAK2B;AAyB3B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,4CAA0B,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAA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AU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { Permissions } from "./permissions.js";
|
|
5
4
|
/**
|
|
6
5
|
* Information about a permission.
|
|
7
6
|
*/
|
|
8
7
|
export type PermissionResponse = {
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Name of the permission
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
10
12
|
/**
|
|
11
13
|
* Description of the permission
|
|
12
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/permissionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"permissionresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/permissionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -31,15 +31,14 @@ exports.permissionResponseToJSON = permissionResponseToJSON;
|
|
|
31
31
|
exports.permissionResponseFromJSON = permissionResponseFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
33
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
-
const permissions_js_1 = require("./permissions.js");
|
|
35
34
|
/** @internal */
|
|
36
35
|
exports.PermissionResponse$inboundSchema = z.object({
|
|
37
|
-
name:
|
|
36
|
+
name: z.string(),
|
|
38
37
|
description: z.string(),
|
|
39
38
|
});
|
|
40
39
|
/** @internal */
|
|
41
40
|
exports.PermissionResponse$outboundSchema = z.object({
|
|
42
|
-
name:
|
|
41
|
+
name: z.string(),
|
|
43
42
|
description: z.string(),
|
|
44
43
|
});
|
|
45
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionresponse.js","sourceRoot":"","sources":["../../src/models/components/permissionresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"permissionresponse.js","sourceRoot":"","sources":["../../src/models/components/permissionresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DH,4DAMC;AAED,gEAQC;AA1ED,uCAAyB;AACzB,qDAAiD;AAkBjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Request model to create a role.
|
|
6
|
+
*/
|
|
7
|
+
export type RoleCreateRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the role.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The description of the role.
|
|
14
|
+
*/
|
|
15
|
+
description?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The permissions associated with the role. Available permissions can be found by calling `GET /permissions`.
|
|
18
|
+
*/
|
|
19
|
+
permissions: Array<string>;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const RoleCreateRequest$inboundSchema: z.ZodType<RoleCreateRequest, z.ZodTypeDef, unknown>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type RoleCreateRequest$Outbound = {
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string | null | undefined;
|
|
27
|
+
permissions: Array<string>;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const RoleCreateRequest$outboundSchema: z.ZodType<RoleCreateRequest$Outbound, z.ZodTypeDef, RoleCreateRequest>;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export declare namespace RoleCreateRequest$ {
|
|
36
|
+
/** @deprecated use `RoleCreateRequest$inboundSchema` instead. */
|
|
37
|
+
const inboundSchema: z.ZodType<RoleCreateRequest, z.ZodTypeDef, unknown>;
|
|
38
|
+
/** @deprecated use `RoleCreateRequest$outboundSchema` instead. */
|
|
39
|
+
const outboundSchema: z.ZodType<RoleCreateRequest$Outbound, z.ZodTypeDef, RoleCreateRequest>;
|
|
40
|
+
/** @deprecated use `RoleCreateRequest$Outbound` instead. */
|
|
41
|
+
type Outbound = RoleCreateRequest$Outbound;
|
|
42
|
+
}
|
|
43
|
+
export declare function roleCreateRequestToJSON(roleCreateRequest: RoleCreateRequest): string;
|
|
44
|
+
export declare function roleCreateRequestFromJSON(jsonString: string): SafeParseResult<RoleCreateRequest, SDKValidationError>;
|
|
45
|
+
//# sourceMappingURL=rolecreaterequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolecreaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/rolecreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAKjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RoleCreateRequest$ = exports.RoleCreateRequest$outboundSchema = exports.RoleCreateRequest$inboundSchema = void 0;
|
|
30
|
+
exports.roleCreateRequestToJSON = roleCreateRequestToJSON;
|
|
31
|
+
exports.roleCreateRequestFromJSON = roleCreateRequestFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
+
/** @internal */
|
|
35
|
+
exports.RoleCreateRequest$inboundSchema = z.object({
|
|
36
|
+
name: z.string(),
|
|
37
|
+
description: z.nullable(z.string()).optional(),
|
|
38
|
+
permissions: z.array(z.string()),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.RoleCreateRequest$outboundSchema = z.object({
|
|
42
|
+
name: z.string(),
|
|
43
|
+
description: z.nullable(z.string()).optional(),
|
|
44
|
+
permissions: z.array(z.string()),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
var RoleCreateRequest$;
|
|
51
|
+
(function (RoleCreateRequest$) {
|
|
52
|
+
/** @deprecated use `RoleCreateRequest$inboundSchema` instead. */
|
|
53
|
+
RoleCreateRequest$.inboundSchema = exports.RoleCreateRequest$inboundSchema;
|
|
54
|
+
/** @deprecated use `RoleCreateRequest$outboundSchema` instead. */
|
|
55
|
+
RoleCreateRequest$.outboundSchema = exports.RoleCreateRequest$outboundSchema;
|
|
56
|
+
})(RoleCreateRequest$ || (exports.RoleCreateRequest$ = RoleCreateRequest$ = {}));
|
|
57
|
+
function roleCreateRequestToJSON(roleCreateRequest) {
|
|
58
|
+
return JSON.stringify(exports.RoleCreateRequest$outboundSchema.parse(roleCreateRequest));
|
|
59
|
+
}
|
|
60
|
+
function roleCreateRequestFromJSON(jsonString) {
|
|
61
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RoleCreateRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RoleCreateRequest' from JSON`);
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=rolecreaterequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/rolecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,0DAMC;AAED,8DAQC;AAjFD,uCAAyB;AACzB,qDAAiD;AAsBjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Names of role fields supported for filtering/sorting on list endpoint.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RoleProperties: {
|
|
7
|
+
readonly Name: "name";
|
|
8
|
+
readonly Description: "description";
|
|
9
|
+
readonly UpdatedAt: "updated_at";
|
|
10
|
+
readonly LastUpdatedBy: "last_updated_by";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Names of role fields supported for filtering/sorting on list endpoint.
|
|
14
|
+
*/
|
|
15
|
+
export type RoleProperties = ClosedEnum<typeof RoleProperties>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const RoleProperties$inboundSchema: z.ZodNativeEnum<typeof RoleProperties>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const RoleProperties$outboundSchema: z.ZodNativeEnum<typeof RoleProperties>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace RoleProperties$ {
|
|
25
|
+
/** @deprecated use `RoleProperties$inboundSchema` instead. */
|
|
26
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
27
|
+
readonly Name: "name";
|
|
28
|
+
readonly Description: "description";
|
|
29
|
+
readonly UpdatedAt: "updated_at";
|
|
30
|
+
readonly LastUpdatedBy: "last_updated_by";
|
|
31
|
+
}>;
|
|
32
|
+
/** @deprecated use `RoleProperties$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
34
|
+
readonly Name: "name";
|
|
35
|
+
readonly Description: "description";
|
|
36
|
+
readonly UpdatedAt: "updated_at";
|
|
37
|
+
readonly LastUpdatedBy: "last_updated_by";
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=roleproperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/roleproperties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,cAAc,CACS,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,cAAc,CACS,CAAC;AAEjC;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa;;;;;MAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc;;;;;MAAgC,CAAC;CAC7D"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RoleProperties$ = exports.RoleProperties$outboundSchema = exports.RoleProperties$inboundSchema = exports.RoleProperties = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* Names of role fields supported for filtering/sorting on list endpoint.
|
|
33
|
+
*/
|
|
34
|
+
exports.RoleProperties = {
|
|
35
|
+
Name: "name",
|
|
36
|
+
Description: "description",
|
|
37
|
+
UpdatedAt: "updated_at",
|
|
38
|
+
LastUpdatedBy: "last_updated_by",
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.RoleProperties$inboundSchema = z.nativeEnum(exports.RoleProperties);
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.RoleProperties$outboundSchema = exports.RoleProperties$inboundSchema;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
var RoleProperties$;
|
|
49
|
+
(function (RoleProperties$) {
|
|
50
|
+
/** @deprecated use `RoleProperties$inboundSchema` instead. */
|
|
51
|
+
RoleProperties$.inboundSchema = exports.RoleProperties$inboundSchema;
|
|
52
|
+
/** @deprecated use `RoleProperties$outboundSchema` instead. */
|
|
53
|
+
RoleProperties$.outboundSchema = exports.RoleProperties$outboundSchema;
|
|
54
|
+
})(RoleProperties$ || (exports.RoleProperties$ = RoleProperties$ = {}));
|
|
55
|
+
//# sourceMappingURL=roleproperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleproperties.js","sourceRoot":"","sources":["../../src/models/components/roleproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAMX,gBAAgB;AACH,QAAA,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AAEjC,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,oCAA4B,CAAC;AAEjC;;;GAGG;AACH,IAAiB,eAAe,CAK/B;AALD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAC9D,CAAC,EALgB,eAAe,+BAAf,eAAe,QAK/B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Information about a role.
|
|
6
|
+
*/
|
|
7
|
+
export type RoleResponse = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the role.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The description of the role.
|
|
14
|
+
*/
|
|
15
|
+
description?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The permissions associated with the role. Available permissions can be found by calling `GET /permissions`.
|
|
18
|
+
*/
|
|
19
|
+
permissions: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The internal ID of the role.
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Comments for the most recent edit to the role.
|
|
26
|
+
*/
|
|
27
|
+
lastUpdatedComments?: string | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this is a built-in system role that cannot be updated or deleted
|
|
30
|
+
*/
|
|
31
|
+
isSystemRole: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The timestamp of the most recent update to the role
|
|
34
|
+
*/
|
|
35
|
+
lastUpdated: Date;
|
|
36
|
+
/**
|
|
37
|
+
* The email of the user who last updated the role
|
|
38
|
+
*/
|
|
39
|
+
lastUpdatedBy: string;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const RoleResponse$inboundSchema: z.ZodType<RoleResponse, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type RoleResponse$Outbound = {
|
|
45
|
+
name: string;
|
|
46
|
+
description?: string | null | undefined;
|
|
47
|
+
permissions: Array<string>;
|
|
48
|
+
id: number;
|
|
49
|
+
last_updated_comments?: string | null | undefined;
|
|
50
|
+
is_system_role: boolean;
|
|
51
|
+
last_updated: string;
|
|
52
|
+
last_updated_by: string;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const RoleResponse$outboundSchema: z.ZodType<RoleResponse$Outbound, z.ZodTypeDef, RoleResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace RoleResponse$ {
|
|
61
|
+
/** @deprecated use `RoleResponse$inboundSchema` instead. */
|
|
62
|
+
const inboundSchema: z.ZodType<RoleResponse, z.ZodTypeDef, unknown>;
|
|
63
|
+
/** @deprecated use `RoleResponse$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodType<RoleResponse$Outbound, z.ZodTypeDef, RoleResponse>;
|
|
65
|
+
/** @deprecated use `RoleResponse$Outbound` instead. */
|
|
66
|
+
type Outbound = RoleResponse$Outbound;
|
|
67
|
+
}
|
|
68
|
+
export declare function roleResponseToJSON(roleResponse: RoleResponse): string;
|
|
69
|
+
export declare function roleResponseFromJSON(jsonString: string): SafeParseResult<RoleResponse, SDKValidationError>;
|
|
70
|
+
//# sourceMappingURL=roleresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/roleresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG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
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RoleResponse$ = exports.RoleResponse$outboundSchema = exports.RoleResponse$inboundSchema = void 0;
|
|
30
|
+
exports.roleResponseToJSON = roleResponseToJSON;
|
|
31
|
+
exports.roleResponseFromJSON = roleResponseFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.RoleResponse$inboundSchema = z.object({
|
|
37
|
+
name: z.string(),
|
|
38
|
+
description: z.nullable(z.string()).optional(),
|
|
39
|
+
permissions: z.array(z.string()),
|
|
40
|
+
id: z.number().int(),
|
|
41
|
+
last_updated_comments: z.nullable(z.string()).optional(),
|
|
42
|
+
is_system_role: z.boolean(),
|
|
43
|
+
last_updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
44
|
+
last_updated_by: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return (0, primitives_js_1.remap)(v, {
|
|
47
|
+
"last_updated_comments": "lastUpdatedComments",
|
|
48
|
+
"is_system_role": "isSystemRole",
|
|
49
|
+
"last_updated": "lastUpdated",
|
|
50
|
+
"last_updated_by": "lastUpdatedBy",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.RoleResponse$outboundSchema = z.object({
|
|
55
|
+
name: z.string(),
|
|
56
|
+
description: z.nullable(z.string()).optional(),
|
|
57
|
+
permissions: z.array(z.string()),
|
|
58
|
+
id: z.number().int(),
|
|
59
|
+
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
60
|
+
isSystemRole: z.boolean(),
|
|
61
|
+
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
62
|
+
lastUpdatedBy: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return (0, primitives_js_1.remap)(v, {
|
|
65
|
+
lastUpdatedComments: "last_updated_comments",
|
|
66
|
+
isSystemRole: "is_system_role",
|
|
67
|
+
lastUpdated: "last_updated",
|
|
68
|
+
lastUpdatedBy: "last_updated_by",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
var RoleResponse$;
|
|
76
|
+
(function (RoleResponse$) {
|
|
77
|
+
/** @deprecated use `RoleResponse$inboundSchema` instead. */
|
|
78
|
+
RoleResponse$.inboundSchema = exports.RoleResponse$inboundSchema;
|
|
79
|
+
/** @deprecated use `RoleResponse$outboundSchema` instead. */
|
|
80
|
+
RoleResponse$.outboundSchema = exports.RoleResponse$outboundSchema;
|
|
81
|
+
})(RoleResponse$ || (exports.RoleResponse$ = RoleResponse$ = {}));
|
|
82
|
+
function roleResponseToJSON(roleResponse) {
|
|
83
|
+
return JSON.stringify(exports.RoleResponse$outboundSchema.parse(roleResponse));
|
|
84
|
+
}
|
|
85
|
+
function roleResponseFromJSON(jsonString) {
|
|
86
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RoleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RoleResponse' from JSON`);
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=roleresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleresponse.js","sourceRoot":"","sources":["../../src/models/components/roleresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHH,gDAEC;AAED,oDAQC;AAjID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA0CjD,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,YAAY,E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