syllable-sdk 0.1.0-alpha.158 → 0.1.0-alpha.161
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 +5 -0
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/permissions/README.md +81 -0
- package/docs/sdks/takeouts/README.md +1 -1
- package/docs/sdks/workflows/README.md +8 -8
- package/funcs/permissionsList.d.ts +15 -0
- package/funcs/permissionsList.d.ts.map +1 -0
- package/funcs/permissionsList.js +89 -0
- package/funcs/permissionsList.js.map +1 -0
- package/funcs/takeoutsTakeoutsGetFile.d.ts +1 -1
- package/funcs/takeoutsTakeoutsGetFile.d.ts.map +1 -1
- package/funcs/takeoutsTakeoutsGetFile.js +2 -2
- 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/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insightworkflowcondition.d.ts +7 -4
- package/models/components/insightworkflowcondition.d.ts.map +1 -1
- package/models/components/insightworkflowcondition.js +4 -6
- package/models/components/insightworkflowcondition.js.map +1 -1
- package/models/components/permissionresponse.d.ts +38 -0
- package/models/components/permissionresponse.d.ts.map +1 -0
- package/models/components/permissionresponse.js +62 -0
- package/models/components/permissionresponse.js.map +1 -0
- package/models/components/permissions.d.ts +199 -0
- package/models/components/permissions.d.ts.map +1 -0
- package/models/components/permissions.js +108 -0
- package/models/components/permissions.js.map +1 -0
- package/openapi.json +170 -43
- package/package.json +1 -1
- package/sdk/permissions.d.ts +12 -0
- package/sdk/permissions.d.ts.map +1 -0
- package/sdk/permissions.js +22 -0
- package/sdk/permissions.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/permissionsList.ts +112 -0
- package/src/funcs/takeoutsTakeoutsGetFile.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/insightworkflowcondition.ts +15 -10
- package/src/models/components/permissionresponse.ts +81 -0
- package/src/models/components/permissions.ts +88 -0
- package/src/sdk/permissions.ts +25 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/takeouts.ts +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
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.PermissionResponse$ = exports.PermissionResponse$outboundSchema = exports.PermissionResponse$inboundSchema = void 0;
|
|
30
|
+
exports.permissionResponseToJSON = permissionResponseToJSON;
|
|
31
|
+
exports.permissionResponseFromJSON = permissionResponseFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
+
const permissions_js_1 = require("./permissions.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.PermissionResponse$inboundSchema = z.object({
|
|
37
|
+
name: permissions_js_1.Permissions$inboundSchema,
|
|
38
|
+
description: z.string(),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.PermissionResponse$outboundSchema = z.object({
|
|
42
|
+
name: permissions_js_1.Permissions$outboundSchema,
|
|
43
|
+
description: z.string(),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
var PermissionResponse$;
|
|
50
|
+
(function (PermissionResponse$) {
|
|
51
|
+
/** @deprecated use `PermissionResponse$inboundSchema` instead. */
|
|
52
|
+
PermissionResponse$.inboundSchema = exports.PermissionResponse$inboundSchema;
|
|
53
|
+
/** @deprecated use `PermissionResponse$outboundSchema` instead. */
|
|
54
|
+
PermissionResponse$.outboundSchema = exports.PermissionResponse$outboundSchema;
|
|
55
|
+
})(PermissionResponse$ || (exports.PermissionResponse$ = PermissionResponse$ = {}));
|
|
56
|
+
function permissionResponseToJSON(permissionResponse) {
|
|
57
|
+
return JSON.stringify(exports.PermissionResponse$outboundSchema.parse(permissionResponse));
|
|
58
|
+
}
|
|
59
|
+
function permissionResponseFromJSON(jsonString) {
|
|
60
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PermissionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PermissionResponse' from JSON`);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=permissionresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissionresponse.js","sourceRoot":"","sources":["../../src/models/components/permissionresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,4DAMC;AAED,gEAQC;AA5ED,uCAAyB;AACzB,qDAAiD;AAGjD,qDAI0B;AAa1B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0CAAyB;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,2CAA0B;IAChC,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,199 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const Permissions: {
|
|
4
|
+
readonly AgentsRead: "agents_read";
|
|
5
|
+
readonly AgentsWrite: "agents_write";
|
|
6
|
+
readonly AgentsDelete: "agents_delete";
|
|
7
|
+
readonly ApiTokenRead: "api_token_read";
|
|
8
|
+
readonly ApiTokenWrite: "api_token_write";
|
|
9
|
+
readonly ApiTokenDelete: "api_token_delete";
|
|
10
|
+
readonly ChannelsRead: "channels_read";
|
|
11
|
+
readonly ChannelsWrite: "channels_write";
|
|
12
|
+
readonly ChannelsDelete: "channels_delete";
|
|
13
|
+
readonly Chat: "chat";
|
|
14
|
+
readonly ConversationsRead: "conversations_read";
|
|
15
|
+
readonly CustomMessagesRead: "custom_messages_read";
|
|
16
|
+
readonly CustomMessagesWrite: "custom_messages_write";
|
|
17
|
+
readonly CustomMessagesDelete: "custom_messages_delete";
|
|
18
|
+
readonly DataSourcesRead: "data_sources_read";
|
|
19
|
+
readonly DataSourcesWrite: "data_sources_write";
|
|
20
|
+
readonly DataSourcesDelete: "data_sources_delete";
|
|
21
|
+
readonly DirectoryRead: "directory_read";
|
|
22
|
+
readonly DirectoryWrite: "directory_write";
|
|
23
|
+
readonly DirectoryDelete: "directory_delete";
|
|
24
|
+
readonly EventsRead: "events_read";
|
|
25
|
+
readonly IncidentsRead: "incidents_read";
|
|
26
|
+
readonly InsightsRead: "insights_read";
|
|
27
|
+
readonly InsightsWrite: "insights_write";
|
|
28
|
+
readonly InsightsDelete: "insights_delete";
|
|
29
|
+
readonly IntegrationsRead: "integrations_read";
|
|
30
|
+
readonly IntegrationsWrite: "integrations_write";
|
|
31
|
+
readonly IntegrationsDelete: "integrations_delete";
|
|
32
|
+
readonly LanguageGroupsRead: "language_groups_read";
|
|
33
|
+
readonly LanguageGroupsWrite: "language_groups_write";
|
|
34
|
+
readonly LanguageGroupsDelete: "language_groups_delete";
|
|
35
|
+
readonly OrganizationsRead: "organizations_read";
|
|
36
|
+
readonly OrganizationsWrite: "organizations_write";
|
|
37
|
+
readonly OutboundRead: "outbound_read";
|
|
38
|
+
readonly OutboundWrite: "outbound_write";
|
|
39
|
+
readonly OutboundDelete: "outbound_delete";
|
|
40
|
+
readonly PermissionsRead: "permissions_read";
|
|
41
|
+
readonly PromptsRead: "prompts_read";
|
|
42
|
+
readonly PromptsWrite: "prompts_write";
|
|
43
|
+
readonly PromptsDelete: "prompts_delete";
|
|
44
|
+
readonly RecordingDownload: "recording_download";
|
|
45
|
+
readonly ReportsRead: "reports_read";
|
|
46
|
+
readonly ServicesRead: "services_read";
|
|
47
|
+
readonly ServicesWrite: "services_write";
|
|
48
|
+
readonly ServicesDelete: "services_delete";
|
|
49
|
+
readonly SessionLabelsRead: "session_labels_read";
|
|
50
|
+
readonly SessionLabelsWrite: "session_labels_write";
|
|
51
|
+
readonly SessionsRead: "sessions_read";
|
|
52
|
+
readonly ToolsRead: "tools_read";
|
|
53
|
+
readonly ToolsWrite: "tools_write";
|
|
54
|
+
readonly ToolsDelete: "tools_delete";
|
|
55
|
+
readonly UsersRead: "users_read";
|
|
56
|
+
readonly UsersWrite: "users_write";
|
|
57
|
+
readonly UsersDelete: "users_delete";
|
|
58
|
+
readonly SaIncidentsRead: "sa_incidents_read";
|
|
59
|
+
readonly SaIncidentsWrite: "sa_incidents_write";
|
|
60
|
+
readonly SaIncidentsDelete: "sa_incidents_delete";
|
|
61
|
+
readonly SaPermissionsRead: "sa_permissions_read";
|
|
62
|
+
readonly SuperAdminGlobal: "super_admin_global";
|
|
63
|
+
};
|
|
64
|
+
export type Permissions = ClosedEnum<typeof Permissions>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export declare const Permissions$inboundSchema: z.ZodNativeEnum<typeof Permissions>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const Permissions$outboundSchema: z.ZodNativeEnum<typeof Permissions>;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export declare namespace Permissions$ {
|
|
74
|
+
/** @deprecated use `Permissions$inboundSchema` instead. */
|
|
75
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
76
|
+
readonly AgentsRead: "agents_read";
|
|
77
|
+
readonly AgentsWrite: "agents_write";
|
|
78
|
+
readonly AgentsDelete: "agents_delete";
|
|
79
|
+
readonly ApiTokenRead: "api_token_read";
|
|
80
|
+
readonly ApiTokenWrite: "api_token_write";
|
|
81
|
+
readonly ApiTokenDelete: "api_token_delete";
|
|
82
|
+
readonly ChannelsRead: "channels_read";
|
|
83
|
+
readonly ChannelsWrite: "channels_write";
|
|
84
|
+
readonly ChannelsDelete: "channels_delete";
|
|
85
|
+
readonly Chat: "chat";
|
|
86
|
+
readonly ConversationsRead: "conversations_read";
|
|
87
|
+
readonly CustomMessagesRead: "custom_messages_read";
|
|
88
|
+
readonly CustomMessagesWrite: "custom_messages_write";
|
|
89
|
+
readonly CustomMessagesDelete: "custom_messages_delete";
|
|
90
|
+
readonly DataSourcesRead: "data_sources_read";
|
|
91
|
+
readonly DataSourcesWrite: "data_sources_write";
|
|
92
|
+
readonly DataSourcesDelete: "data_sources_delete";
|
|
93
|
+
readonly DirectoryRead: "directory_read";
|
|
94
|
+
readonly DirectoryWrite: "directory_write";
|
|
95
|
+
readonly DirectoryDelete: "directory_delete";
|
|
96
|
+
readonly EventsRead: "events_read";
|
|
97
|
+
readonly IncidentsRead: "incidents_read";
|
|
98
|
+
readonly InsightsRead: "insights_read";
|
|
99
|
+
readonly InsightsWrite: "insights_write";
|
|
100
|
+
readonly InsightsDelete: "insights_delete";
|
|
101
|
+
readonly IntegrationsRead: "integrations_read";
|
|
102
|
+
readonly IntegrationsWrite: "integrations_write";
|
|
103
|
+
readonly IntegrationsDelete: "integrations_delete";
|
|
104
|
+
readonly LanguageGroupsRead: "language_groups_read";
|
|
105
|
+
readonly LanguageGroupsWrite: "language_groups_write";
|
|
106
|
+
readonly LanguageGroupsDelete: "language_groups_delete";
|
|
107
|
+
readonly OrganizationsRead: "organizations_read";
|
|
108
|
+
readonly OrganizationsWrite: "organizations_write";
|
|
109
|
+
readonly OutboundRead: "outbound_read";
|
|
110
|
+
readonly OutboundWrite: "outbound_write";
|
|
111
|
+
readonly OutboundDelete: "outbound_delete";
|
|
112
|
+
readonly PermissionsRead: "permissions_read";
|
|
113
|
+
readonly PromptsRead: "prompts_read";
|
|
114
|
+
readonly PromptsWrite: "prompts_write";
|
|
115
|
+
readonly PromptsDelete: "prompts_delete";
|
|
116
|
+
readonly RecordingDownload: "recording_download";
|
|
117
|
+
readonly ReportsRead: "reports_read";
|
|
118
|
+
readonly ServicesRead: "services_read";
|
|
119
|
+
readonly ServicesWrite: "services_write";
|
|
120
|
+
readonly ServicesDelete: "services_delete";
|
|
121
|
+
readonly SessionLabelsRead: "session_labels_read";
|
|
122
|
+
readonly SessionLabelsWrite: "session_labels_write";
|
|
123
|
+
readonly SessionsRead: "sessions_read";
|
|
124
|
+
readonly ToolsRead: "tools_read";
|
|
125
|
+
readonly ToolsWrite: "tools_write";
|
|
126
|
+
readonly ToolsDelete: "tools_delete";
|
|
127
|
+
readonly UsersRead: "users_read";
|
|
128
|
+
readonly UsersWrite: "users_write";
|
|
129
|
+
readonly UsersDelete: "users_delete";
|
|
130
|
+
readonly SaIncidentsRead: "sa_incidents_read";
|
|
131
|
+
readonly SaIncidentsWrite: "sa_incidents_write";
|
|
132
|
+
readonly SaIncidentsDelete: "sa_incidents_delete";
|
|
133
|
+
readonly SaPermissionsRead: "sa_permissions_read";
|
|
134
|
+
readonly SuperAdminGlobal: "super_admin_global";
|
|
135
|
+
}>;
|
|
136
|
+
/** @deprecated use `Permissions$outboundSchema` instead. */
|
|
137
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
138
|
+
readonly AgentsRead: "agents_read";
|
|
139
|
+
readonly AgentsWrite: "agents_write";
|
|
140
|
+
readonly AgentsDelete: "agents_delete";
|
|
141
|
+
readonly ApiTokenRead: "api_token_read";
|
|
142
|
+
readonly ApiTokenWrite: "api_token_write";
|
|
143
|
+
readonly ApiTokenDelete: "api_token_delete";
|
|
144
|
+
readonly ChannelsRead: "channels_read";
|
|
145
|
+
readonly ChannelsWrite: "channels_write";
|
|
146
|
+
readonly ChannelsDelete: "channels_delete";
|
|
147
|
+
readonly Chat: "chat";
|
|
148
|
+
readonly ConversationsRead: "conversations_read";
|
|
149
|
+
readonly CustomMessagesRead: "custom_messages_read";
|
|
150
|
+
readonly CustomMessagesWrite: "custom_messages_write";
|
|
151
|
+
readonly CustomMessagesDelete: "custom_messages_delete";
|
|
152
|
+
readonly DataSourcesRead: "data_sources_read";
|
|
153
|
+
readonly DataSourcesWrite: "data_sources_write";
|
|
154
|
+
readonly DataSourcesDelete: "data_sources_delete";
|
|
155
|
+
readonly DirectoryRead: "directory_read";
|
|
156
|
+
readonly DirectoryWrite: "directory_write";
|
|
157
|
+
readonly DirectoryDelete: "directory_delete";
|
|
158
|
+
readonly EventsRead: "events_read";
|
|
159
|
+
readonly IncidentsRead: "incidents_read";
|
|
160
|
+
readonly InsightsRead: "insights_read";
|
|
161
|
+
readonly InsightsWrite: "insights_write";
|
|
162
|
+
readonly InsightsDelete: "insights_delete";
|
|
163
|
+
readonly IntegrationsRead: "integrations_read";
|
|
164
|
+
readonly IntegrationsWrite: "integrations_write";
|
|
165
|
+
readonly IntegrationsDelete: "integrations_delete";
|
|
166
|
+
readonly LanguageGroupsRead: "language_groups_read";
|
|
167
|
+
readonly LanguageGroupsWrite: "language_groups_write";
|
|
168
|
+
readonly LanguageGroupsDelete: "language_groups_delete";
|
|
169
|
+
readonly OrganizationsRead: "organizations_read";
|
|
170
|
+
readonly OrganizationsWrite: "organizations_write";
|
|
171
|
+
readonly OutboundRead: "outbound_read";
|
|
172
|
+
readonly OutboundWrite: "outbound_write";
|
|
173
|
+
readonly OutboundDelete: "outbound_delete";
|
|
174
|
+
readonly PermissionsRead: "permissions_read";
|
|
175
|
+
readonly PromptsRead: "prompts_read";
|
|
176
|
+
readonly PromptsWrite: "prompts_write";
|
|
177
|
+
readonly PromptsDelete: "prompts_delete";
|
|
178
|
+
readonly RecordingDownload: "recording_download";
|
|
179
|
+
readonly ReportsRead: "reports_read";
|
|
180
|
+
readonly ServicesRead: "services_read";
|
|
181
|
+
readonly ServicesWrite: "services_write";
|
|
182
|
+
readonly ServicesDelete: "services_delete";
|
|
183
|
+
readonly SessionLabelsRead: "session_labels_read";
|
|
184
|
+
readonly SessionLabelsWrite: "session_labels_write";
|
|
185
|
+
readonly SessionsRead: "sessions_read";
|
|
186
|
+
readonly ToolsRead: "tools_read";
|
|
187
|
+
readonly ToolsWrite: "tools_write";
|
|
188
|
+
readonly ToolsDelete: "tools_delete";
|
|
189
|
+
readonly UsersRead: "users_read";
|
|
190
|
+
readonly UsersWrite: "users_write";
|
|
191
|
+
readonly UsersDelete: "users_delete";
|
|
192
|
+
readonly SaIncidentsRead: "sa_incidents_read";
|
|
193
|
+
readonly SaIncidentsWrite: "sa_incidents_write";
|
|
194
|
+
readonly SaIncidentsDelete: "sa_incidents_delete";
|
|
195
|
+
readonly SaPermissionsRead: "sa_permissions_read";
|
|
196
|
+
readonly SuperAdminGlobal: "super_admin_global";
|
|
197
|
+
}>;
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/models/components/permissions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Dd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE5B;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA6B,CAAC;CAC1D"}
|
|
@@ -0,0 +1,108 @@
|
|
|
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.Permissions$ = exports.Permissions$outboundSchema = exports.Permissions$inboundSchema = exports.Permissions = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
exports.Permissions = {
|
|
32
|
+
AgentsRead: "agents_read",
|
|
33
|
+
AgentsWrite: "agents_write",
|
|
34
|
+
AgentsDelete: "agents_delete",
|
|
35
|
+
ApiTokenRead: "api_token_read",
|
|
36
|
+
ApiTokenWrite: "api_token_write",
|
|
37
|
+
ApiTokenDelete: "api_token_delete",
|
|
38
|
+
ChannelsRead: "channels_read",
|
|
39
|
+
ChannelsWrite: "channels_write",
|
|
40
|
+
ChannelsDelete: "channels_delete",
|
|
41
|
+
Chat: "chat",
|
|
42
|
+
ConversationsRead: "conversations_read",
|
|
43
|
+
CustomMessagesRead: "custom_messages_read",
|
|
44
|
+
CustomMessagesWrite: "custom_messages_write",
|
|
45
|
+
CustomMessagesDelete: "custom_messages_delete",
|
|
46
|
+
DataSourcesRead: "data_sources_read",
|
|
47
|
+
DataSourcesWrite: "data_sources_write",
|
|
48
|
+
DataSourcesDelete: "data_sources_delete",
|
|
49
|
+
DirectoryRead: "directory_read",
|
|
50
|
+
DirectoryWrite: "directory_write",
|
|
51
|
+
DirectoryDelete: "directory_delete",
|
|
52
|
+
EventsRead: "events_read",
|
|
53
|
+
IncidentsRead: "incidents_read",
|
|
54
|
+
InsightsRead: "insights_read",
|
|
55
|
+
InsightsWrite: "insights_write",
|
|
56
|
+
InsightsDelete: "insights_delete",
|
|
57
|
+
IntegrationsRead: "integrations_read",
|
|
58
|
+
IntegrationsWrite: "integrations_write",
|
|
59
|
+
IntegrationsDelete: "integrations_delete",
|
|
60
|
+
LanguageGroupsRead: "language_groups_read",
|
|
61
|
+
LanguageGroupsWrite: "language_groups_write",
|
|
62
|
+
LanguageGroupsDelete: "language_groups_delete",
|
|
63
|
+
OrganizationsRead: "organizations_read",
|
|
64
|
+
OrganizationsWrite: "organizations_write",
|
|
65
|
+
OutboundRead: "outbound_read",
|
|
66
|
+
OutboundWrite: "outbound_write",
|
|
67
|
+
OutboundDelete: "outbound_delete",
|
|
68
|
+
PermissionsRead: "permissions_read",
|
|
69
|
+
PromptsRead: "prompts_read",
|
|
70
|
+
PromptsWrite: "prompts_write",
|
|
71
|
+
PromptsDelete: "prompts_delete",
|
|
72
|
+
RecordingDownload: "recording_download",
|
|
73
|
+
ReportsRead: "reports_read",
|
|
74
|
+
ServicesRead: "services_read",
|
|
75
|
+
ServicesWrite: "services_write",
|
|
76
|
+
ServicesDelete: "services_delete",
|
|
77
|
+
SessionLabelsRead: "session_labels_read",
|
|
78
|
+
SessionLabelsWrite: "session_labels_write",
|
|
79
|
+
SessionsRead: "sessions_read",
|
|
80
|
+
ToolsRead: "tools_read",
|
|
81
|
+
ToolsWrite: "tools_write",
|
|
82
|
+
ToolsDelete: "tools_delete",
|
|
83
|
+
UsersRead: "users_read",
|
|
84
|
+
UsersWrite: "users_write",
|
|
85
|
+
UsersDelete: "users_delete",
|
|
86
|
+
SaIncidentsRead: "sa_incidents_read",
|
|
87
|
+
SaIncidentsWrite: "sa_incidents_write",
|
|
88
|
+
SaIncidentsDelete: "sa_incidents_delete",
|
|
89
|
+
SaPermissionsRead: "sa_permissions_read",
|
|
90
|
+
SuperAdminGlobal: "super_admin_global",
|
|
91
|
+
};
|
|
92
|
+
/** @internal */
|
|
93
|
+
exports.Permissions$inboundSchema = z
|
|
94
|
+
.nativeEnum(exports.Permissions);
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.Permissions$outboundSchema = exports.Permissions$inboundSchema;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
var Permissions$;
|
|
102
|
+
(function (Permissions$) {
|
|
103
|
+
/** @deprecated use `Permissions$inboundSchema` instead. */
|
|
104
|
+
Permissions$.inboundSchema = exports.Permissions$inboundSchema;
|
|
105
|
+
/** @deprecated use `Permissions$outboundSchema` instead. */
|
|
106
|
+
Permissions$.outboundSchema = exports.Permissions$outboundSchema;
|
|
107
|
+
})(Permissions$ || (exports.Permissions$ = Permissions$ = {}));
|
|
108
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/models/components/permissions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,oBAAoB;IACvC,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,oBAAoB,EAAE,wBAAwB;IAC9C,eAAe,EAAE,mBAAmB;IACpC,gBAAgB,EAAE,oBAAoB;IACtC,iBAAiB,EAAE,qBAAqB;IACxC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,UAAU,EAAE,aAAa;IACzB,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,oBAAoB,EAAE,wBAAwB;IAC9C,iBAAiB,EAAE,oBAAoB;IACvC,kBAAkB,EAAE,qBAAqB;IACzC,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,iBAAiB,EAAE,qBAAqB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,mBAAmB;IACpC,gBAAgB,EAAE,oBAAoB;IACtC,iBAAiB,EAAE,qBAAqB;IACxC,iBAAiB,EAAE,qBAAqB;IACxC,gBAAgB,EAAE,oBAAoB;CAC9B,CAAC;AAGX,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,UAAU,CAAC,mBAAW,CAAC,CAAC;AAE3B,gBAAgB;AACH,QAAA,0BAA0B,GACrC,iCAAyB,CAAC;AAE5B;;;GAGG;AACH,IAAiB,YAAY,CAK5B;AALD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAC3D,CAAC,EALgB,YAAY,4BAAZ,YAAY,QAK5B"}
|