@xemahq/app-platform-internal-api-client 0.3.0 → 0.3.1
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/LICENSE +2 -1
- package/dist/endpoints/app-clients/app-clients.js +4 -4
- package/dist/endpoints/app-releases/app-releases.js +7 -11
- package/dist/endpoints/apps/apps.js +7 -7
- package/dist/endpoints/audience-policies/audience-policies.js +4 -4
- package/dist/endpoints/describe-objects/describe-objects.js +1 -1
- package/dist/endpoints/org-erasure/org-erasure.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -1
- package/dist/models/appReleaseState.d.ts +1 -1
- package/dist/models/audienceKind.d.ts +1 -1
- package/dist/models/audienceUpstreamType.d.ts +1 -1
- package/dist/models/createAppDto.d.ts +3 -3
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/objectLifecycle.d.ts +1 -1
- package/dist/models/prepareAppReleaseDto.d.ts +3 -3
- package/dist/models/resourceManagedBy.d.ts +1 -1
- package/dist/models/spaceKind.d.ts +1 -1
- package/dist/models/xemaObjectKind.d.ts +1 -1
- package/package.json +3 -3
- package/dist/endpoints/delegated-sessions/delegated-sessions.d.ts +0 -13
- package/dist/endpoints/delegated-sessions/delegated-sessions.js +0 -20
- package/dist/models/mintForInviteRequestDto.d.ts +0 -19
- package/dist/models/mintForInviteRequestDto.js +0 -9
- package/dist/models/mintForInviteResponseDto.d.ts +0 -13
- package/dist/models/mintForInviteResponseDto.js +0 -9
- package/dist/models/mintForInviteResponseDtoDataEnvelope.d.ts +0 -11
- package/dist/models/mintForInviteResponseDtoDataEnvelope.js +0 -2
package/LICENSE
CHANGED
|
@@ -9,7 +9,7 @@ Parameters
|
|
|
9
9
|
|
|
10
10
|
Licensor: Neuralchowder Inc.
|
|
11
11
|
|
|
12
|
-
Licensed Work: Xema. The Licensed Work is (c) 2026 Neuralchowder Inc
|
|
12
|
+
Licensed Work: Xema. The Licensed Work is (c) 2026 Neuralchowder Inc.
|
|
13
13
|
|
|
14
14
|
The Licensed Work includes, without limitation, Xema Core, Xema Runtime,
|
|
15
15
|
Xema Kernel, Xema control plane, Xema application runtime, Xema biome
|
|
@@ -116,6 +116,7 @@ the interpretation of, the Additional Use Grant set out above.
|
|
|
116
116
|
and effect. The Licensor reserves all rights not expressly granted
|
|
117
117
|
by this License.
|
|
118
118
|
|
|
119
|
+
|
|
119
120
|
Change Date: Four years from the date the specific version of the Licensed
|
|
120
121
|
Work is first publicly released by Licensor.
|
|
121
122
|
|
|
@@ -14,7 +14,7 @@ const appClientsControllerCreate = async (appId, createAppClientDto, options) =>
|
|
|
14
14
|
...options,
|
|
15
15
|
method: 'POST',
|
|
16
16
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
-
body: JSON.stringify(createAppClientDto)
|
|
17
|
+
body: JSON.stringify(createAppClientDto)
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.appClientsControllerCreate = appClientsControllerCreate;
|
|
@@ -28,7 +28,7 @@ exports.getAppClientsControllerListUrl = getAppClientsControllerListUrl;
|
|
|
28
28
|
const appClientsControllerList = async (appId, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerListUrl)(appId), {
|
|
30
30
|
...options,
|
|
31
|
-
method: 'GET'
|
|
31
|
+
method: 'GET'
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
exports.appClientsControllerList = appClientsControllerList;
|
|
@@ -42,7 +42,7 @@ exports.getAppClientsControllerGetByIdUrl = getAppClientsControllerGetByIdUrl;
|
|
|
42
42
|
const appClientsControllerGetById = async (id, options) => {
|
|
43
43
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerGetByIdUrl)(id), {
|
|
44
44
|
...options,
|
|
45
|
-
method: 'GET'
|
|
45
|
+
method: 'GET'
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
exports.appClientsControllerGetById = appClientsControllerGetById;
|
|
@@ -56,7 +56,7 @@ exports.getAppClientsControllerRevokeUrl = getAppClientsControllerRevokeUrl;
|
|
|
56
56
|
const appClientsControllerRevoke = async (id, options) => {
|
|
57
57
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppClientsControllerRevokeUrl)(id), {
|
|
58
58
|
...options,
|
|
59
|
-
method: 'POST'
|
|
59
|
+
method: 'POST'
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
exports.appClientsControllerRevoke = appClientsControllerRevoke;
|
|
@@ -14,7 +14,7 @@ const appReleasesControllerPrepare = async (appId, prepareAppReleaseDto, options
|
|
|
14
14
|
...options,
|
|
15
15
|
method: 'POST',
|
|
16
16
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
-
body: JSON.stringify(prepareAppReleaseDto)
|
|
17
|
+
body: JSON.stringify(prepareAppReleaseDto)
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.appReleasesControllerPrepare = appReleasesControllerPrepare;
|
|
@@ -30,7 +30,7 @@ const appReleasesControllerActivate = async (appId, releaseId, releaseOrgDto, op
|
|
|
30
30
|
...options,
|
|
31
31
|
method: 'POST',
|
|
32
32
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
33
|
-
body: JSON.stringify(releaseOrgDto)
|
|
33
|
+
body: JSON.stringify(releaseOrgDto)
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
exports.appReleasesControllerActivate = appReleasesControllerActivate;
|
|
@@ -46,7 +46,7 @@ const appReleasesControllerRollback = async (appId, releaseId, releaseOrgDto, op
|
|
|
46
46
|
...options,
|
|
47
47
|
method: 'POST',
|
|
48
48
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
49
|
-
body: JSON.stringify(releaseOrgDto)
|
|
49
|
+
body: JSON.stringify(releaseOrgDto)
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
exports.appReleasesControllerRollback = appReleasesControllerRollback;
|
|
@@ -70,9 +70,7 @@ const getAppReleasesControllerGetActiveUrl = (appId, params) => {
|
|
|
70
70
|
normalizedParams.append(key, value.toString());
|
|
71
71
|
});
|
|
72
72
|
const stringifiedParams = normalizedParams.toString();
|
|
73
|
-
return stringifiedParams.length > 0
|
|
74
|
-
? `/releases/apps/${appId}/active?${stringifiedParams}`
|
|
75
|
-
: `/releases/apps/${appId}/active`;
|
|
73
|
+
return stringifiedParams.length > 0 ? `/releases/apps/${appId}/active?${stringifiedParams}` : `/releases/apps/${appId}/active`;
|
|
76
74
|
};
|
|
77
75
|
exports.getAppReleasesControllerGetActiveUrl = getAppReleasesControllerGetActiveUrl;
|
|
78
76
|
/**
|
|
@@ -81,7 +79,7 @@ exports.getAppReleasesControllerGetActiveUrl = getAppReleasesControllerGetActive
|
|
|
81
79
|
const appReleasesControllerGetActive = async (appId, params, options) => {
|
|
82
80
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerGetActiveUrl)(appId, params), {
|
|
83
81
|
...options,
|
|
84
|
-
method: 'GET'
|
|
82
|
+
method: 'GET'
|
|
85
83
|
});
|
|
86
84
|
};
|
|
87
85
|
exports.appReleasesControllerGetActive = appReleasesControllerGetActive;
|
|
@@ -105,9 +103,7 @@ const getAppReleasesControllerListHistoryUrl = (appId, params) => {
|
|
|
105
103
|
normalizedParams.append(key, value.toString());
|
|
106
104
|
});
|
|
107
105
|
const stringifiedParams = normalizedParams.toString();
|
|
108
|
-
return stringifiedParams.length > 0
|
|
109
|
-
? `/releases/apps/${appId}/history?${stringifiedParams}`
|
|
110
|
-
: `/releases/apps/${appId}/history`;
|
|
106
|
+
return stringifiedParams.length > 0 ? `/releases/apps/${appId}/history?${stringifiedParams}` : `/releases/apps/${appId}/history`;
|
|
111
107
|
};
|
|
112
108
|
exports.getAppReleasesControllerListHistoryUrl = getAppReleasesControllerListHistoryUrl;
|
|
113
109
|
/**
|
|
@@ -116,7 +112,7 @@ exports.getAppReleasesControllerListHistoryUrl = getAppReleasesControllerListHis
|
|
|
116
112
|
const appReleasesControllerListHistory = async (appId, params, options) => {
|
|
117
113
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerListHistoryUrl)(appId, params), {
|
|
118
114
|
...options,
|
|
119
|
-
method: 'GET'
|
|
115
|
+
method: 'GET'
|
|
120
116
|
});
|
|
121
117
|
};
|
|
122
118
|
exports.appReleasesControllerListHistory = appReleasesControllerListHistory;
|
|
@@ -14,7 +14,7 @@ const appsControllerCreate = async (createAppDto, options) => {
|
|
|
14
14
|
...options,
|
|
15
15
|
method: 'POST',
|
|
16
16
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
-
body: JSON.stringify(createAppDto)
|
|
17
|
+
body: JSON.stringify(createAppDto)
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.appsControllerCreate = appsControllerCreate;
|
|
@@ -47,7 +47,7 @@ exports.getAppsControllerListUrl = getAppsControllerListUrl;
|
|
|
47
47
|
const appsControllerList = async (params, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerListUrl)(params), {
|
|
49
49
|
...options,
|
|
50
|
-
method: 'GET'
|
|
50
|
+
method: 'GET'
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
exports.appsControllerList = appsControllerList;
|
|
@@ -61,7 +61,7 @@ exports.getAppsControllerGetByIdUrl = getAppsControllerGetByIdUrl;
|
|
|
61
61
|
const appsControllerGetById = async (id, options) => {
|
|
62
62
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerGetByIdUrl)(id), {
|
|
63
63
|
...options,
|
|
64
|
-
method: 'GET'
|
|
64
|
+
method: 'GET'
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
exports.appsControllerGetById = appsControllerGetById;
|
|
@@ -77,7 +77,7 @@ const appsControllerUpdate = async (id, updateAppDto, options) => {
|
|
|
77
77
|
...options,
|
|
78
78
|
method: 'PATCH',
|
|
79
79
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
80
|
-
body: JSON.stringify(updateAppDto)
|
|
80
|
+
body: JSON.stringify(updateAppDto)
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
exports.appsControllerUpdate = appsControllerUpdate;
|
|
@@ -91,7 +91,7 @@ exports.getAppsControllerDeleteUrl = getAppsControllerDeleteUrl;
|
|
|
91
91
|
const appsControllerDelete = async (id, options) => {
|
|
92
92
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerDeleteUrl)(id), {
|
|
93
93
|
...options,
|
|
94
|
-
method: 'DELETE'
|
|
94
|
+
method: 'DELETE'
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
97
|
exports.appsControllerDelete = appsControllerDelete;
|
|
@@ -105,7 +105,7 @@ exports.getAppsControllerArchiveUrl = getAppsControllerArchiveUrl;
|
|
|
105
105
|
const appsControllerArchive = async (id, options) => {
|
|
106
106
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerArchiveUrl)(id), {
|
|
107
107
|
...options,
|
|
108
|
-
method: 'POST'
|
|
108
|
+
method: 'POST'
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
exports.appsControllerArchive = appsControllerArchive;
|
|
@@ -119,7 +119,7 @@ exports.getAppsControllerRefreshLockfileUrl = getAppsControllerRefreshLockfileUr
|
|
|
119
119
|
const appsControllerRefreshLockfile = async (id, options) => {
|
|
120
120
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerRefreshLockfileUrl)(id), {
|
|
121
121
|
...options,
|
|
122
|
-
method: 'POST'
|
|
122
|
+
method: 'POST'
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
exports.appsControllerRefreshLockfile = appsControllerRefreshLockfile;
|
|
@@ -14,7 +14,7 @@ const audiencePoliciesControllerCreate = async (appId, createAudiencePolicyDto,
|
|
|
14
14
|
...options,
|
|
15
15
|
method: 'POST',
|
|
16
16
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
-
body: JSON.stringify(createAudiencePolicyDto)
|
|
17
|
+
body: JSON.stringify(createAudiencePolicyDto)
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.audiencePoliciesControllerCreate = audiencePoliciesControllerCreate;
|
|
@@ -28,7 +28,7 @@ exports.getAudiencePoliciesControllerListUrl = getAudiencePoliciesControllerList
|
|
|
28
28
|
const audiencePoliciesControllerList = async (appId, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerListUrl)(appId), {
|
|
30
30
|
...options,
|
|
31
|
-
method: 'GET'
|
|
31
|
+
method: 'GET'
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
exports.audiencePoliciesControllerList = audiencePoliciesControllerList;
|
|
@@ -44,7 +44,7 @@ const audiencePoliciesControllerUpdate = async (id, updateAudiencePolicyDto, opt
|
|
|
44
44
|
...options,
|
|
45
45
|
method: 'PATCH',
|
|
46
46
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
47
|
-
body: JSON.stringify(updateAudiencePolicyDto)
|
|
47
|
+
body: JSON.stringify(updateAudiencePolicyDto)
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
exports.audiencePoliciesControllerUpdate = audiencePoliciesControllerUpdate;
|
|
@@ -58,7 +58,7 @@ exports.getAudiencePoliciesControllerDeleteUrl = getAudiencePoliciesControllerDe
|
|
|
58
58
|
const audiencePoliciesControllerDelete = async (id, options) => {
|
|
59
59
|
return (0, custom_fetch_1.customFetch)((0, exports.getAudiencePoliciesControllerDeleteUrl)(id), {
|
|
60
60
|
...options,
|
|
61
|
-
method: 'DELETE'
|
|
61
|
+
method: 'DELETE'
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
exports.audiencePoliciesControllerDelete = audiencePoliciesControllerDelete;
|
|
@@ -13,7 +13,7 @@ exports.getDescribeObjectsControllerDescribeUrl = getDescribeObjectsControllerDe
|
|
|
13
13
|
const describeObjectsControllerDescribe = async (options) => {
|
|
14
14
|
return (0, custom_fetch_1.customFetch)((0, exports.getDescribeObjectsControllerDescribeUrl)(), {
|
|
15
15
|
...options,
|
|
16
|
-
method: 'GET'
|
|
16
|
+
method: 'GET'
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
exports.describeObjectsControllerDescribe = describeObjectsControllerDescribe;
|
|
@@ -19,7 +19,7 @@ exports.getOrgErasureControllerEraseUrl = getOrgErasureControllerEraseUrl;
|
|
|
19
19
|
const orgErasureControllerErase = async (orgId, options) => {
|
|
20
20
|
return (0, custom_fetch_1.customFetch)((0, exports.getOrgErasureControllerEraseUrl)(orgId), {
|
|
21
21
|
...options,
|
|
22
|
-
method: 'POST'
|
|
22
|
+
method: 'POST'
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
exports.orgErasureControllerErase = orgErasureControllerErase;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig
|
|
1
|
+
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
|
|
2
2
|
export * from './models';
|
|
3
3
|
export * from './endpoints/app-clients/app-clients';
|
|
4
4
|
export * from './endpoints/app-releases/app-releases';
|
|
5
5
|
export * from './endpoints/apps/apps';
|
|
6
6
|
export * from './endpoints/audience-policies/audience-policies';
|
|
7
|
-
export * from './endpoints/delegated-sessions/delegated-sessions';
|
|
8
7
|
export * from './endpoints/describe-objects/describe-objects';
|
|
9
8
|
export * from './endpoints/org-erasure/org-erasure';
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,5 @@ __exportStar(require("./endpoints/app-clients/app-clients"), exports);
|
|
|
26
26
|
__exportStar(require("./endpoints/app-releases/app-releases"), exports);
|
|
27
27
|
__exportStar(require("./endpoints/apps/apps"), exports);
|
|
28
28
|
__exportStar(require("./endpoints/audience-policies/audience-policies"), exports);
|
|
29
|
-
__exportStar(require("./endpoints/delegated-sessions/delegated-sessions"), exports);
|
|
30
29
|
__exportStar(require("./endpoints/describe-objects/describe-objects"), exports);
|
|
31
30
|
__exportStar(require("./endpoints/org-erasure/org-erasure"), exports);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* App Runtime API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.2
|
|
7
7
|
*/
|
|
8
|
-
export type AppReleaseState =
|
|
8
|
+
export type AppReleaseState = typeof AppReleaseState[keyof typeof AppReleaseState];
|
|
9
9
|
export declare const AppReleaseState: {
|
|
10
10
|
readonly preparing: "preparing";
|
|
11
11
|
readonly prepared: "prepared";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* App Runtime API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.2
|
|
7
7
|
*/
|
|
8
|
-
export type AudienceKind =
|
|
8
|
+
export type AudienceKind = typeof AudienceKind[keyof typeof AudienceKind];
|
|
9
9
|
export declare const AudienceKind: {
|
|
10
10
|
readonly 'internal-org': "internal-org";
|
|
11
11
|
readonly 'external-subject': "external-subject";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* App Runtime API extract (generated for client codegen).
|
|
6
6
|
* OpenAPI spec version: 0.1.2
|
|
7
7
|
*/
|
|
8
|
-
export type AudienceUpstreamType =
|
|
8
|
+
export type AudienceUpstreamType = typeof AudienceUpstreamType[keyof typeof AudienceUpstreamType];
|
|
9
9
|
export declare const AudienceUpstreamType: {
|
|
10
10
|
readonly oidc: "oidc";
|
|
11
11
|
readonly 'magic-link': "magic-link";
|
|
@@ -15,9 +15,9 @@ export interface CreateAppDto {
|
|
|
15
15
|
slug: string;
|
|
16
16
|
orgId: string;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
* Project id. Null or absent for org-scoped portals.
|
|
19
|
+
* @nullable
|
|
20
|
+
*/
|
|
21
21
|
projectId?: CreateAppDtoProjectId;
|
|
22
22
|
displayName: string;
|
|
23
23
|
/** Default ExecutionEnvironment slug (e.g. `public-session`). */
|
package/dist/models/index.d.ts
CHANGED
|
@@ -51,9 +51,6 @@ export * from './errorDetailsDto';
|
|
|
51
51
|
export * from './errorDetailsDtoDetails';
|
|
52
52
|
export * from './errorPayloadDto';
|
|
53
53
|
export * from './errorResponseDto';
|
|
54
|
-
export * from './mintForInviteRequestDto';
|
|
55
|
-
export * from './mintForInviteResponseDto';
|
|
56
|
-
export * from './mintForInviteResponseDtoDataEnvelope';
|
|
57
54
|
export * from './objectLifecycle';
|
|
58
55
|
export * from './prepareAppReleaseDto';
|
|
59
56
|
export * from './prepareAppReleaseDtoAudienceSnapshot';
|
package/dist/models/index.js
CHANGED
|
@@ -68,9 +68,6 @@ __exportStar(require("./errorDetailsDto"), exports);
|
|
|
68
68
|
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
69
69
|
__exportStar(require("./errorPayloadDto"), exports);
|
|
70
70
|
__exportStar(require("./errorResponseDto"), exports);
|
|
71
|
-
__exportStar(require("./mintForInviteRequestDto"), exports);
|
|
72
|
-
__exportStar(require("./mintForInviteResponseDto"), exports);
|
|
73
|
-
__exportStar(require("./mintForInviteResponseDtoDataEnvelope"), exports);
|
|
74
71
|
__exportStar(require("./objectLifecycle"), exports);
|
|
75
72
|
__exportStar(require("./prepareAppReleaseDto"), exports);
|
|
76
73
|
__exportStar(require("./prepareAppReleaseDtoAudienceSnapshot"), exports);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* draft | published | archived.
|
|
10
10
|
*/
|
|
11
|
-
export type ObjectLifecycle =
|
|
11
|
+
export type ObjectLifecycle = typeof ObjectLifecycle[keyof typeof ObjectLifecycle];
|
|
12
12
|
export declare const ObjectLifecycle: {
|
|
13
13
|
readonly draft: "draft";
|
|
14
14
|
readonly published: "published";
|
|
@@ -16,9 +16,9 @@ export interface PrepareAppReleaseDto {
|
|
|
16
16
|
preparationKey: string;
|
|
17
17
|
sourceRevisionId: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
* Lowercase SHA-256 content address of the immutable source revision.
|
|
20
|
+
* @pattern ^[a-f0-9]{64}$
|
|
21
|
+
*/
|
|
22
22
|
sourceContentHash: string;
|
|
23
23
|
definition: PrepareAppReleaseDtoDefinition;
|
|
24
24
|
lockfile: AppLockfileDto;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Provisioning ownership marker. `iac` = managed by the declarative control plane (Terraform / xema.yaml); `seeder` = a distribution default; `ui` = hand-managed (or adopted from iac/seeder via a UI edit); `system` = platform-shipped; null = unmanaged/legacy. Lets a console badge an IaC-owned resource and surface an "export as code" affordance.
|
|
10
10
|
*/
|
|
11
|
-
export type ResourceManagedBy =
|
|
11
|
+
export type ResourceManagedBy = typeof ResourceManagedBy[keyof typeof ResourceManagedBy];
|
|
12
12
|
export declare const ResourceManagedBy: {
|
|
13
13
|
readonly ui: "ui";
|
|
14
14
|
readonly iac: "iac";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Ownership tier (system | org | project | app | session | biome | user).
|
|
10
10
|
*/
|
|
11
|
-
export type SpaceKind =
|
|
11
|
+
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
12
12
|
export declare const SpaceKind: {
|
|
13
13
|
readonly system: "system";
|
|
14
14
|
readonly org: "org";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Closed kind enum this object belongs to.
|
|
10
10
|
*/
|
|
11
|
-
export type XemaObjectKind =
|
|
11
|
+
export type XemaObjectKind = typeof XemaObjectKind[keyof typeof XemaObjectKind];
|
|
12
12
|
export declare const XemaObjectKind: {
|
|
13
13
|
readonly biome: "biome";
|
|
14
14
|
readonly app: "app";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/app-platform-internal-api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "app-platform-api",
|
|
20
20
|
"biome": "app-platform",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.3.0",
|
|
23
23
|
"source": "openapi.internal.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bugs": "https://github.com/xema-dev/xema-community/issues",
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/xema-dev/xema-
|
|
31
|
+
"url": "git+https://github.com/xema-dev/xema-base.git",
|
|
32
32
|
"directory": "packages/clients/app-platform-internal-api"
|
|
33
33
|
},
|
|
34
34
|
"description": "Generated internal API client for the Xema app-platform-api service.",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.16.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* App Runtime API
|
|
5
|
-
* App Runtime API extract (generated for client codegen).
|
|
6
|
-
* OpenAPI spec version: 0.1.2
|
|
7
|
-
*/
|
|
8
|
-
import type { MintForInviteRequestDto, MintForInviteResponseDtoDataEnvelope } from '../../models';
|
|
9
|
-
export declare const getInternalDelegatedSessionsControllerMintForInviteUrl: () => string;
|
|
10
|
-
/**
|
|
11
|
-
* @summary Mint a delegated-session JWT for an external invitee. Service-to-service.
|
|
12
|
-
*/
|
|
13
|
-
export declare const internalDelegatedSessionsControllerMintForInvite: (mintForInviteRequestDto: MintForInviteRequestDto, options?: RequestInit) => Promise<MintForInviteResponseDtoDataEnvelope>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.internalDelegatedSessionsControllerMintForInvite = exports.getInternalDelegatedSessionsControllerMintForInviteUrl = void 0;
|
|
4
|
-
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
const getInternalDelegatedSessionsControllerMintForInviteUrl = () => {
|
|
6
|
-
return `/internal/delegated-sessions/mint-for-invite`;
|
|
7
|
-
};
|
|
8
|
-
exports.getInternalDelegatedSessionsControllerMintForInviteUrl = getInternalDelegatedSessionsControllerMintForInviteUrl;
|
|
9
|
-
/**
|
|
10
|
-
* @summary Mint a delegated-session JWT for an external invitee. Service-to-service.
|
|
11
|
-
*/
|
|
12
|
-
const internalDelegatedSessionsControllerMintForInvite = async (mintForInviteRequestDto, options) => {
|
|
13
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getInternalDelegatedSessionsControllerMintForInviteUrl)(), {
|
|
14
|
-
...options,
|
|
15
|
-
method: 'POST',
|
|
16
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
-
body: JSON.stringify(mintForInviteRequestDto),
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
exports.internalDelegatedSessionsControllerMintForInvite = internalDelegatedSessionsControllerMintForInvite;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.16.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* App Runtime API
|
|
5
|
-
* App Runtime API extract (generated for client codegen).
|
|
6
|
-
* OpenAPI spec version: 0.1.2
|
|
7
|
-
*/
|
|
8
|
-
export interface MintForInviteRequestDto {
|
|
9
|
-
/** AppClient row id (i.e. `AppClientDto.id`). The session row that originates the invite carries this on `Session.appClientId`. The service resolves the App + AudiencePolicy from this id; no clientSecret is required (the caller is a Xema service). */
|
|
10
|
-
appClientId: string;
|
|
11
|
-
/** External subject id (opaque, app-defined). A hashed `external-user:` subjectRef is derived from this string for the token `sub` claim. */
|
|
12
|
-
externalSubjectId: string;
|
|
13
|
-
/** Display name persisted on the participant row. */
|
|
14
|
-
displayName: string;
|
|
15
|
-
/** Capability refs to grant in the minted token. The caller (the inviting service) is responsible for asserting these are within the App AudiencePolicy. The mint endpoint logs the full capability list. */
|
|
16
|
-
capabilities: string[];
|
|
17
|
-
/** Optional ExecutionEnvironment slug. Defaults to the App `defaultZone`. Must be in the resolved AudiencePolicy.allowedEnvironments[]. */
|
|
18
|
-
requestedZone?: string;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.16.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* App Runtime API
|
|
5
|
-
* App Runtime API extract (generated for client codegen).
|
|
6
|
-
* OpenAPI spec version: 0.1.2
|
|
7
|
-
*/
|
|
8
|
-
export interface MintForInviteResponseDto {
|
|
9
|
-
accessToken: string;
|
|
10
|
-
expiresAt: string;
|
|
11
|
-
sessionId: string;
|
|
12
|
-
subjectRef: string;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.16.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* App Runtime API
|
|
5
|
-
* App Runtime API extract (generated for client codegen).
|
|
6
|
-
* OpenAPI spec version: 0.1.2
|
|
7
|
-
*/
|
|
8
|
-
import type { MintForInviteResponseDto } from './mintForInviteResponseDto.js';
|
|
9
|
-
export interface MintForInviteResponseDtoDataEnvelope {
|
|
10
|
-
data: MintForInviteResponseDto;
|
|
11
|
-
}
|