@appsemble/utils 0.20.44 → 0.21.0
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 +3 -3
- package/api/components/schemas/ActionDefinition.js +1 -0
- package/api/components/schemas/ObjectRemapperDefinition.js +6 -504
- package/api/components/schemas/RequestActionDefinition.js +1 -1
- package/api/components/schemas/ScimPatchOp.d.ts +2 -0
- package/api/components/schemas/ScimPatchOp.js +47 -0
- package/api/components/schemas/ScimSecret.d.ts +2 -0
- package/api/components/schemas/ScimSecret.js +16 -0
- package/api/components/schemas/ScimUser.d.ts +2 -0
- package/api/components/schemas/ScimUser.js +60 -0
- package/api/components/schemas/TeamMembersActionDefinition.d.ts +1 -0
- package/api/components/schemas/TeamMembersActionDefinition.js +18 -0
- package/api/components/schemas/index.d.ts +4 -0
- package/api/components/schemas/index.js +4 -0
- package/api/components/securitySchemes/index.d.ts +1 -0
- package/api/components/securitySchemes/index.js +1 -0
- package/api/components/securitySchemes/scim.d.ts +2 -0
- package/api/components/securitySchemes/scim.js +6 -0
- package/api/index.d.ts +18 -1
- package/api/index.js +8 -1
- package/api/index.test.js +1 -1
- package/api/paths/appScimEndpoints.d.ts +2 -0
- package/api/paths/appScimEndpoints.js +260 -0
- package/api/paths/appScimSecrets.d.ts +2 -0
- package/api/paths/appScimSecrets.js +45 -0
- package/api/paths/apps.js +18 -1
- package/api/paths/index.js +4 -0
- package/appMessages.test.js +1 -1
- package/iterApp.test.js +44 -48
- package/jsonschema.test.js +8 -8
- package/package.json +3 -3
- package/reference-schemas/remappers/arrays.d.ts +2 -0
- package/reference-schemas/remappers/arrays.js +334 -0
- package/reference-schemas/remappers/conditionals.d.ts +2 -0
- package/reference-schemas/remappers/conditionals.js +93 -0
- package/reference-schemas/remappers/data.d.ts +2 -0
- package/reference-schemas/remappers/data.js +321 -0
- package/reference-schemas/remappers/dates.d.ts +2 -0
- package/reference-schemas/remappers/dates.js +38 -0
- package/reference-schemas/remappers/history.d.ts +2 -0
- package/reference-schemas/remappers/history.js +246 -0
- package/reference-schemas/remappers/index.d.ts +9 -0
- package/reference-schemas/remappers/index.js +10 -0
- package/reference-schemas/remappers/objects.d.ts +2 -0
- package/reference-schemas/remappers/objects.js +157 -0
- package/reference-schemas/remappers/randoms.d.ts +2 -0
- package/reference-schemas/remappers/randoms.js +35 -0
- package/reference-schemas/remappers/strings.d.ts +2 -0
- package/reference-schemas/remappers/strings.js +81 -0
- package/reference-schemas/remappers/unsorted.d.ts +2 -0
- package/reference-schemas/remappers/unsorted.js +71 -0
- package/remap.js +1 -1
- package/remap.test.js +20 -16
- package/serverActions.js +5 -0
- package/vitest.config.d.ts +2 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const ScimUser = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
additionalProperties: true,
|
|
4
|
+
description: 'The definition of a user according to the SCIM documentation.',
|
|
5
|
+
required: ['emails', 'schemas', 'userName'],
|
|
6
|
+
properties: {
|
|
7
|
+
schemas: {
|
|
8
|
+
type: 'array',
|
|
9
|
+
items: { type: 'string' },
|
|
10
|
+
},
|
|
11
|
+
userName: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'A unique identifier for the user (generally maps to the Azure AD user principal name)',
|
|
14
|
+
},
|
|
15
|
+
active: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
},
|
|
18
|
+
meta: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
description: 'Read-only metadata maintained by the service provider',
|
|
22
|
+
properties: {
|
|
23
|
+
resourceType: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
created: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
},
|
|
29
|
+
lastModified: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
location: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
emails: {
|
|
38
|
+
type: 'array',
|
|
39
|
+
minLength: 1,
|
|
40
|
+
items: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
description: "A user's email. By default, one of these should be of type 'work' and have 'primary' set to true. Value contains actual address",
|
|
44
|
+
required: ['primary', 'type', 'value'],
|
|
45
|
+
properties: {
|
|
46
|
+
primary: {
|
|
47
|
+
type: 'boolean',
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
},
|
|
52
|
+
value: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=ScimUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TeamMembersActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const TeamMembersActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'id'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['team.members'],
|
|
10
|
+
description: "Get a list of a team's members",
|
|
11
|
+
},
|
|
12
|
+
id: {
|
|
13
|
+
description: 'The ID of a specific team to get the members from',
|
|
14
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=TeamMembersActionDefinition.js.map
|
|
@@ -89,6 +89,9 @@ export * from './SecurityDefaultDefinition.js';
|
|
|
89
89
|
export * from './SecurityDefinition.js';
|
|
90
90
|
export * from './SecurityRoleDefinition.js';
|
|
91
91
|
export * from './ShareActionDefinition.js';
|
|
92
|
+
export * from './ScimPatchOp.js';
|
|
93
|
+
export * from './ScimSecret.js';
|
|
94
|
+
export * from './ScimUser.js';
|
|
92
95
|
export * from './SSLSecret.js';
|
|
93
96
|
export * from './SSOConfiguration.js';
|
|
94
97
|
export * from './StaticActionDefinition.js';
|
|
@@ -103,6 +106,7 @@ export * from './TabsPageDefinition.js';
|
|
|
103
106
|
export * from './TeamInviteActionDefinition.js';
|
|
104
107
|
export * from './TeamJoinActionDefinition.js';
|
|
105
108
|
export * from './TeamListActionDefinition.js';
|
|
109
|
+
export * from './TeamMembersActionDefinition.js';
|
|
106
110
|
export * from './TeamsDefinition.js';
|
|
107
111
|
export * from './Theme.js';
|
|
108
112
|
export * from './ThrowActionDefinition.js';
|
|
@@ -89,6 +89,9 @@ export * from './SecurityDefaultDefinition.js';
|
|
|
89
89
|
export * from './SecurityDefinition.js';
|
|
90
90
|
export * from './SecurityRoleDefinition.js';
|
|
91
91
|
export * from './ShareActionDefinition.js';
|
|
92
|
+
export * from './ScimPatchOp.js';
|
|
93
|
+
export * from './ScimSecret.js';
|
|
94
|
+
export * from './ScimUser.js';
|
|
92
95
|
export * from './SSLSecret.js';
|
|
93
96
|
export * from './SSOConfiguration.js';
|
|
94
97
|
export * from './StaticActionDefinition.js';
|
|
@@ -103,6 +106,7 @@ export * from './TabsPageDefinition.js';
|
|
|
103
106
|
export * from './TeamInviteActionDefinition.js';
|
|
104
107
|
export * from './TeamJoinActionDefinition.js';
|
|
105
108
|
export * from './TeamListActionDefinition.js';
|
|
109
|
+
export * from './TeamMembersActionDefinition.js';
|
|
106
110
|
export * from './TeamsDefinition.js';
|
|
107
111
|
export * from './Theme.js';
|
|
108
112
|
export * from './ThrowActionDefinition.js';
|
package/api/index.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import { type OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
export * as schemas from './components/schemas/index.js';
|
|
3
3
|
interface APIParams {
|
|
4
|
+
/**
|
|
5
|
+
* The port on which the server runs.
|
|
6
|
+
*/
|
|
4
7
|
port?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The host on which the server is exposed.
|
|
10
|
+
*/
|
|
5
11
|
host?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the API is served using SSL.
|
|
14
|
+
*/
|
|
15
|
+
ssl?: boolean;
|
|
6
16
|
}
|
|
7
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Get the OpenAPI document for the Appsemble REST API.
|
|
19
|
+
*
|
|
20
|
+
* @param version The Appsemble version
|
|
21
|
+
* @param argv The parsed command line arguments.
|
|
22
|
+
* @returns The OpenAPI document for Appsemble.
|
|
23
|
+
*/
|
|
24
|
+
export declare function api(version: string, { port, ssl, host }?: APIParams): OpenAPIV3.Document;
|
package/api/index.js
CHANGED
|
@@ -2,7 +2,14 @@ import { components } from './components/index.js';
|
|
|
2
2
|
import { paths } from './paths/index.js';
|
|
3
3
|
import { tags } from './tags/index.js';
|
|
4
4
|
export * as schemas from './components/schemas/index.js';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Get the OpenAPI document for the Appsemble REST API.
|
|
7
|
+
*
|
|
8
|
+
* @param version The Appsemble version
|
|
9
|
+
* @param argv The parsed command line arguments.
|
|
10
|
+
* @returns The OpenAPI document for Appsemble.
|
|
11
|
+
*/
|
|
12
|
+
export function api(version, { port = 9999, ssl, host = `${ssl ? 'https' : 'http'}://localhost:${port}` } = {}) {
|
|
6
13
|
return {
|
|
7
14
|
openapi: '3.0.2',
|
|
8
15
|
components,
|
package/api/index.test.js
CHANGED
|
@@ -89,7 +89,7 @@ describe('schemas', () => {
|
|
|
89
89
|
expect(schema).not.toHaveProperty('uniqueItems');
|
|
90
90
|
if (schema.required && !schema.additionalProperties) {
|
|
91
91
|
for (const name of schema.required) {
|
|
92
|
-
// eslint-disable-next-line
|
|
92
|
+
// eslint-disable-next-line vitest/no-conditional-expect
|
|
93
93
|
expect(schema.properties).toHaveProperty(name);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
export const paths = {
|
|
2
|
+
'/api/apps/{appId}/scim/Schemas': {
|
|
3
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
4
|
+
get: {
|
|
5
|
+
tags: ['scim'],
|
|
6
|
+
security: [{ scim: [] }],
|
|
7
|
+
operationId: 'getSCIMSchemas',
|
|
8
|
+
responses: {
|
|
9
|
+
200: {
|
|
10
|
+
description: 'The SCIM Schema',
|
|
11
|
+
content: {
|
|
12
|
+
'application/scim+json': {
|
|
13
|
+
schema: {
|
|
14
|
+
$ref: '#/components/schemas/ScimUser',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
'/api/apps/{appId}/scim/Schemas/{schemaId}': {
|
|
23
|
+
parameters: [
|
|
24
|
+
{ $ref: '#/components/parameters/appId' },
|
|
25
|
+
{ name: 'schemaId', in: 'path', schema: { type: 'string' } },
|
|
26
|
+
],
|
|
27
|
+
get: {
|
|
28
|
+
tags: ['scim'],
|
|
29
|
+
security: [{ scim: [] }],
|
|
30
|
+
operationId: 'getSCIMSchema',
|
|
31
|
+
responses: {
|
|
32
|
+
200: {
|
|
33
|
+
description: 'The SCIM Schema',
|
|
34
|
+
content: {
|
|
35
|
+
'application/scim+json': {
|
|
36
|
+
schema: {
|
|
37
|
+
$ref: '#/components/schemas/ScimUser',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
'/api/apps/{appId}/scim/ResourceTypes': {
|
|
46
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
47
|
+
get: {
|
|
48
|
+
tags: ['scim'],
|
|
49
|
+
security: [{ scim: [] }],
|
|
50
|
+
operationId: 'getSCIMResourceTypes',
|
|
51
|
+
responses: {
|
|
52
|
+
200: {
|
|
53
|
+
description: 'SCIM user',
|
|
54
|
+
content: {
|
|
55
|
+
'application/scim+json': {
|
|
56
|
+
schema: {
|
|
57
|
+
// XXX
|
|
58
|
+
// $ref: '#/components/schemas/ScimUser',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
'/api/apps/{appId}/scim/ResourceTypes/{resourceTypeId}': {
|
|
67
|
+
parameters: [
|
|
68
|
+
{ $ref: '#/components/parameters/appId' },
|
|
69
|
+
{ name: 'resourceTypeId', in: 'path', schema: { type: 'string' } },
|
|
70
|
+
],
|
|
71
|
+
get: {
|
|
72
|
+
tags: ['scim'],
|
|
73
|
+
security: [{ scim: [] }],
|
|
74
|
+
operationId: 'getSCIMResourceType',
|
|
75
|
+
responses: {
|
|
76
|
+
200: {
|
|
77
|
+
description: 'SCIM user',
|
|
78
|
+
content: {
|
|
79
|
+
'application/scim+json': {
|
|
80
|
+
schema: {
|
|
81
|
+
// XXX
|
|
82
|
+
// $ref: '#/components/schemas/ScimUser',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
'/api/apps/{appId}/scim/ServiceProviderConfig': {
|
|
91
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
92
|
+
get: {
|
|
93
|
+
tags: ['scim'],
|
|
94
|
+
security: [{ scim: [] }],
|
|
95
|
+
operationId: 'getSCIMServiceProviderConfig',
|
|
96
|
+
responses: {
|
|
97
|
+
200: {
|
|
98
|
+
description: 'SCIM user',
|
|
99
|
+
content: {
|
|
100
|
+
'application/scim+json': {
|
|
101
|
+
schema: {
|
|
102
|
+
// XXX
|
|
103
|
+
// $ref: '#/components/schemas/ScimUser',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
'/api/apps/{appId}/scim/Users': {
|
|
112
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
113
|
+
post: {
|
|
114
|
+
tags: ['scim'],
|
|
115
|
+
security: [{ scim: [] }],
|
|
116
|
+
operationId: 'createSCIMUser',
|
|
117
|
+
requestBody: {
|
|
118
|
+
content: {
|
|
119
|
+
'application/json': {
|
|
120
|
+
schema: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
additionalProperties: true,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
'application/scim+json': {
|
|
126
|
+
schema: {
|
|
127
|
+
type: 'object',
|
|
128
|
+
additionalProperties: true,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
responses: {
|
|
134
|
+
201: {
|
|
135
|
+
description: 'Integrated SCIM user schema',
|
|
136
|
+
content: {
|
|
137
|
+
'application/scim+json': {
|
|
138
|
+
schema: {
|
|
139
|
+
$ref: '#/components/schemas/ScimUser',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
get: {
|
|
147
|
+
tags: ['scim'],
|
|
148
|
+
security: [{ scim: [] }],
|
|
149
|
+
operationId: 'getSCIMUsers',
|
|
150
|
+
parameters: [
|
|
151
|
+
{ name: 'count', in: 'query', schema: { type: 'number' } },
|
|
152
|
+
{ name: 'startIndex', in: 'query', schema: { type: 'number' } },
|
|
153
|
+
],
|
|
154
|
+
responses: {
|
|
155
|
+
200: {
|
|
156
|
+
description: 'SCIM user',
|
|
157
|
+
content: {
|
|
158
|
+
'application/scim+json': {
|
|
159
|
+
schema: {
|
|
160
|
+
$ref: '#/components/schemas/ScimUser',
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
'/api/apps/{appId}/scim/Users/{userId}': {
|
|
169
|
+
parameters: [
|
|
170
|
+
{ $ref: '#/components/parameters/appId' },
|
|
171
|
+
{
|
|
172
|
+
name: 'userId',
|
|
173
|
+
in: 'path',
|
|
174
|
+
description: 'The ID of the member to perform the operation on',
|
|
175
|
+
required: true,
|
|
176
|
+
schema: { $ref: '#/components/schemas/User/properties/id' },
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
get: {
|
|
180
|
+
tags: ['scim'],
|
|
181
|
+
security: [{ scim: [] }],
|
|
182
|
+
operationId: 'getSCIMUser',
|
|
183
|
+
responses: {
|
|
184
|
+
200: {
|
|
185
|
+
description: 'SCIM user',
|
|
186
|
+
content: {
|
|
187
|
+
'application/scim+json': {
|
|
188
|
+
schema: {
|
|
189
|
+
$ref: '#/components/schemas/ScimUser',
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
delete: {
|
|
197
|
+
tags: ['scim'],
|
|
198
|
+
security: [{ scim: [] }],
|
|
199
|
+
operationId: 'deleteSCIMUser',
|
|
200
|
+
responses: {
|
|
201
|
+
204: {
|
|
202
|
+
description: 'SCIM user',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
put: {
|
|
207
|
+
tags: ['scim'],
|
|
208
|
+
security: [{ scim: [] }],
|
|
209
|
+
operationId: 'updateSCIMUser',
|
|
210
|
+
requestBody: {
|
|
211
|
+
content: {
|
|
212
|
+
'application/json': {
|
|
213
|
+
schema: {
|
|
214
|
+
type: 'object',
|
|
215
|
+
additionalProperties: true,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
'application/scim+json': {
|
|
219
|
+
schema: {
|
|
220
|
+
type: 'object',
|
|
221
|
+
additionalProperties: true,
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
responses: {
|
|
227
|
+
200: {
|
|
228
|
+
description: 'SCIM user',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
patch: {
|
|
233
|
+
tags: ['scim'],
|
|
234
|
+
security: [{ scim: [] }],
|
|
235
|
+
operationId: 'patchSCIMUser',
|
|
236
|
+
requestBody: {
|
|
237
|
+
content: {
|
|
238
|
+
'application/json': {
|
|
239
|
+
schema: {
|
|
240
|
+
type: 'object',
|
|
241
|
+
additionalProperties: true,
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
'application/scim+json': {
|
|
245
|
+
schema: {
|
|
246
|
+
type: 'object',
|
|
247
|
+
additionalProperties: true,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
description: 'SCIM user',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
//# sourceMappingURL=appScimEndpoints.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const paths = {
|
|
2
|
+
'/api/apps/{appId}/secrets/scim': {
|
|
3
|
+
parameters: [{ $ref: '#/components/parameters/appId' }],
|
|
4
|
+
get: {
|
|
5
|
+
tags: ['secret'],
|
|
6
|
+
operationId: 'getAppScimSecret',
|
|
7
|
+
description: 'Get app SCIM secret configuration',
|
|
8
|
+
security: [{ studio: [] }],
|
|
9
|
+
responses: {
|
|
10
|
+
200: {
|
|
11
|
+
description: 'The app SCIM configuration',
|
|
12
|
+
content: {
|
|
13
|
+
'application/json': {
|
|
14
|
+
schema: { $ref: '#/components/schemas/ScimSecret' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
patch: {
|
|
21
|
+
tags: ['secret'],
|
|
22
|
+
operationId: 'updateAppScimSecret',
|
|
23
|
+
description: 'Update app SCIM secret configuration',
|
|
24
|
+
requestBody: {
|
|
25
|
+
content: {
|
|
26
|
+
'application/json': {
|
|
27
|
+
schema: { $ref: '#/components/schemas/ScimSecret' },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
security: [{ studio: [] }],
|
|
32
|
+
responses: {
|
|
33
|
+
200: {
|
|
34
|
+
description: 'The app SCIM configuration',
|
|
35
|
+
content: {
|
|
36
|
+
'application/json': {
|
|
37
|
+
schema: { $ref: '#/components/schemas/ScimSecret' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=appScimSecrets.js.map
|
package/api/paths/apps.js
CHANGED
|
@@ -1167,7 +1167,7 @@ This will return a 404 if the user has not uploaded one.`,
|
|
|
1167
1167
|
},
|
|
1168
1168
|
},
|
|
1169
1169
|
},
|
|
1170
|
-
security: [{ studio: [] }],
|
|
1170
|
+
security: [{ studio: [] }, { app: ['teams:read'] }],
|
|
1171
1171
|
},
|
|
1172
1172
|
post: {
|
|
1173
1173
|
tags: ['app'],
|
|
@@ -1221,6 +1221,23 @@ This will return a 404 if the user has not uploaded one.`,
|
|
|
1221
1221
|
schema: { $ref: '#/components/schemas/User/properties/id' },
|
|
1222
1222
|
},
|
|
1223
1223
|
],
|
|
1224
|
+
get: {
|
|
1225
|
+
tags: ['app'],
|
|
1226
|
+
description: 'Get a certain team member from a team',
|
|
1227
|
+
operationId: 'getTeamMember',
|
|
1228
|
+
responses: {
|
|
1229
|
+
200: {
|
|
1230
|
+
description: 'The specified team member',
|
|
1231
|
+
content: {
|
|
1232
|
+
'application/json': {
|
|
1233
|
+
schema: {
|
|
1234
|
+
$ref: '#/components/schemas/Member',
|
|
1235
|
+
},
|
|
1236
|
+
},
|
|
1237
|
+
},
|
|
1238
|
+
},
|
|
1239
|
+
},
|
|
1240
|
+
},
|
|
1224
1241
|
put: {
|
|
1225
1242
|
tags: ['app'],
|
|
1226
1243
|
description: 'Update the role of a team member.',
|
package/api/paths/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import { paths as translations } from './appMessages.js';
|
|
|
3
3
|
import { paths as appOAuth2Secrets } from './appOAuth2Secrets.js';
|
|
4
4
|
import { paths as apps } from './apps.js';
|
|
5
5
|
import { paths as appSamlSecrets } from './appSamlSecrets.js';
|
|
6
|
+
import { paths as scimEndpoints } from './appScimEndpoints.js';
|
|
7
|
+
import { paths as appScimSecrets } from './appScimSecrets.js';
|
|
6
8
|
import { paths as appsembleMessages } from './appsembleMessages.js';
|
|
7
9
|
import { paths as appServiceSecrets } from './appServiceSecrets.js';
|
|
8
10
|
import { paths as appSSLSecrets } from './appSSLSecrets.js';
|
|
@@ -24,6 +26,8 @@ export const paths = {
|
|
|
24
26
|
...appOAuth2Secrets,
|
|
25
27
|
...apps,
|
|
26
28
|
...appSamlSecrets,
|
|
29
|
+
...appScimSecrets,
|
|
30
|
+
...scimEndpoints,
|
|
27
31
|
...appsembleMessages,
|
|
28
32
|
...appSSLSecrets,
|
|
29
33
|
...assets,
|
package/appMessages.test.js
CHANGED
|
@@ -396,7 +396,7 @@ describe('extractAppMessages', () => {
|
|
|
396
396
|
expect(result).toMatchObject({ app: { 'pages.tabs': 'Tabs', 'pages.tabs.tabs.0': 'Tab' } });
|
|
397
397
|
});
|
|
398
398
|
it('should append any messages returned by onBlock', () => {
|
|
399
|
-
const onBlock =
|
|
399
|
+
const onBlock = vi.fn().mockReturnValue({ foo: 'bar' });
|
|
400
400
|
const result = extractAppMessages({
|
|
401
401
|
defaultPage: '',
|
|
402
402
|
pages: [{ name: 'Page', blocks: [{ type: '', version: '' }] }],
|