@spaciv/sdk 0.1.1 → 0.1.2
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/.openapi-generator/FILES +23 -0
- package/README.md +2 -2
- package/dist/apis/AccountsApi.d.ts +24 -24
- package/dist/apis/AccountsApi.js +12 -12
- package/dist/apis/AuditLogApi.d.ts +1 -1
- package/dist/apis/AuthenticationApi.d.ts +8 -8
- package/dist/apis/AuthenticationApi.js +4 -4
- package/dist/apis/ScriptsApi.d.ts +383 -0
- package/dist/apis/ScriptsApi.js +559 -0
- package/dist/apis/UsersApi.d.ts +4 -4
- package/dist/apis/UsersApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AccountsApi.d.ts +24 -24
- package/dist/esm/apis/AccountsApi.js +12 -12
- package/dist/esm/apis/AuditLogApi.d.ts +1 -1
- package/dist/esm/apis/AuthenticationApi.d.ts +8 -8
- package/dist/esm/apis/AuthenticationApi.js +4 -4
- package/dist/esm/apis/ScriptsApi.d.ts +383 -0
- package/dist/esm/apis/ScriptsApi.js +555 -0
- package/dist/esm/apis/UsersApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/APIKey.d.ts +6 -0
- package/dist/esm/models/APIKey.js +2 -0
- package/dist/esm/models/ScriptAuditEntry.d.ts +67 -0
- package/dist/esm/models/ScriptAuditEntry.js +63 -0
- package/dist/esm/models/ScriptAuditResBody.d.ts +39 -0
- package/dist/esm/models/ScriptAuditResBody.js +46 -0
- package/dist/esm/models/ScriptDetail.d.ts +161 -0
- package/dist/esm/models/ScriptDetail.js +122 -0
- package/dist/esm/models/ScriptExport.d.ts +174 -0
- package/dist/esm/models/ScriptExport.js +129 -0
- package/dist/esm/models/ScriptExportResBody.d.ts +39 -0
- package/dist/esm/models/ScriptExportResBody.js +48 -0
- package/dist/esm/models/ScriptExportRun.d.ts +92 -0
- package/dist/esm/models/ScriptExportRun.js +73 -0
- package/dist/esm/models/ScriptKey.d.ts +64 -0
- package/dist/esm/models/ScriptKey.js +58 -0
- package/dist/esm/models/ScriptListResBody.d.ts +33 -0
- package/dist/esm/models/ScriptListResBody.js +44 -0
- package/dist/esm/models/ScriptLogLine.d.ts +38 -0
- package/dist/esm/models/ScriptLogLine.js +47 -0
- package/dist/esm/models/ScriptPatchReqBody.d.ts +98 -0
- package/dist/esm/models/ScriptPatchReqBody.js +70 -0
- package/dist/esm/models/ScriptPostReqBody.d.ts +113 -0
- package/dist/esm/models/ScriptPostReqBody.js +82 -0
- package/dist/esm/models/ScriptRun.d.ts +86 -0
- package/dist/esm/models/ScriptRun.js +69 -0
- package/dist/esm/models/ScriptRunLogsResBody.d.ts +39 -0
- package/dist/esm/models/ScriptRunLogsResBody.js +48 -0
- package/dist/esm/models/ScriptRunsResBody.d.ts +39 -0
- package/dist/esm/models/ScriptRunsResBody.js +46 -0
- package/dist/esm/models/ScriptRuntime.d.ts +62 -0
- package/dist/esm/models/ScriptRuntime.js +51 -0
- package/dist/esm/models/ScriptSchedule.d.ts +38 -0
- package/dist/esm/models/ScriptSchedule.js +43 -0
- package/dist/esm/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
- package/dist/esm/models/ScriptSchedulePreviewReqBody.js +45 -0
- package/dist/esm/models/ScriptSchedulePreviewResBody.d.ts +44 -0
- package/dist/esm/models/ScriptSchedulePreviewResBody.js +49 -0
- package/dist/esm/models/ScriptSecretsReqBody.d.ts +40 -0
- package/dist/esm/models/ScriptSecretsReqBody.js +43 -0
- package/dist/esm/models/ScriptSecretsResBody.d.ts +134 -0
- package/dist/esm/models/ScriptSecretsResBody.js +111 -0
- package/dist/esm/models/ScriptSummary.d.ts +128 -0
- package/dist/esm/models/ScriptSummary.js +107 -0
- package/dist/esm/models/ScriptWebhookResBody.d.ts +32 -0
- package/dist/esm/models/ScriptWebhookResBody.js +43 -0
- package/dist/esm/models/index.d.ts +22 -0
- package/dist/esm/models/index.js +22 -0
- package/dist/models/APIKey.d.ts +6 -0
- package/dist/models/APIKey.js +2 -0
- package/dist/models/ScriptAuditEntry.d.ts +67 -0
- package/dist/models/ScriptAuditEntry.js +71 -0
- package/dist/models/ScriptAuditResBody.d.ts +39 -0
- package/dist/models/ScriptAuditResBody.js +53 -0
- package/dist/models/ScriptDetail.d.ts +161 -0
- package/dist/models/ScriptDetail.js +130 -0
- package/dist/models/ScriptExport.d.ts +174 -0
- package/dist/models/ScriptExport.js +137 -0
- package/dist/models/ScriptExportResBody.d.ts +39 -0
- package/dist/models/ScriptExportResBody.js +55 -0
- package/dist/models/ScriptExportRun.d.ts +92 -0
- package/dist/models/ScriptExportRun.js +80 -0
- package/dist/models/ScriptKey.d.ts +64 -0
- package/dist/models/ScriptKey.js +66 -0
- package/dist/models/ScriptListResBody.d.ts +33 -0
- package/dist/models/ScriptListResBody.js +51 -0
- package/dist/models/ScriptLogLine.d.ts +38 -0
- package/dist/models/ScriptLogLine.js +54 -0
- package/dist/models/ScriptPatchReqBody.d.ts +98 -0
- package/dist/models/ScriptPatchReqBody.js +78 -0
- package/dist/models/ScriptPostReqBody.d.ts +113 -0
- package/dist/models/ScriptPostReqBody.js +90 -0
- package/dist/models/ScriptRun.d.ts +86 -0
- package/dist/models/ScriptRun.js +76 -0
- package/dist/models/ScriptRunLogsResBody.d.ts +39 -0
- package/dist/models/ScriptRunLogsResBody.js +55 -0
- package/dist/models/ScriptRunsResBody.d.ts +39 -0
- package/dist/models/ScriptRunsResBody.js +53 -0
- package/dist/models/ScriptRuntime.d.ts +62 -0
- package/dist/models/ScriptRuntime.js +58 -0
- package/dist/models/ScriptSchedule.d.ts +38 -0
- package/dist/models/ScriptSchedule.js +50 -0
- package/dist/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
- package/dist/models/ScriptSchedulePreviewReqBody.js +52 -0
- package/dist/models/ScriptSchedulePreviewResBody.d.ts +44 -0
- package/dist/models/ScriptSchedulePreviewResBody.js +56 -0
- package/dist/models/ScriptSecretsReqBody.d.ts +40 -0
- package/dist/models/ScriptSecretsReqBody.js +50 -0
- package/dist/models/ScriptSecretsResBody.d.ts +134 -0
- package/dist/models/ScriptSecretsResBody.js +119 -0
- package/dist/models/ScriptSummary.d.ts +128 -0
- package/dist/models/ScriptSummary.js +115 -0
- package/dist/models/ScriptWebhookResBody.d.ts +32 -0
- package/dist/models/ScriptWebhookResBody.js +50 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +24 -24
- package/src/apis/AuditLogApi.ts +1 -1
- package/src/apis/AuthenticationApi.ts +8 -8
- package/src/apis/ScriptsApi.ts +984 -0
- package/src/apis/UsersApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/APIKey.ts +8 -0
- package/src/models/ScriptAuditEntry.ts +112 -0
- package/src/models/ScriptAuditResBody.ts +82 -0
- package/src/models/ScriptDetail.ts +265 -0
- package/src/models/ScriptExport.ts +289 -0
- package/src/models/ScriptExportResBody.ts +83 -0
- package/src/models/ScriptExportRun.ts +151 -0
- package/src/models/ScriptKey.ts +109 -0
- package/src/models/ScriptListResBody.ts +74 -0
- package/src/models/ScriptLogLine.ts +75 -0
- package/src/models/ScriptPatchReqBody.ts +158 -0
- package/src/models/ScriptPostReqBody.ts +176 -0
- package/src/models/ScriptRun.ts +142 -0
- package/src/models/ScriptRunLogsResBody.ts +83 -0
- package/src/models/ScriptRunsResBody.ts +82 -0
- package/src/models/ScriptRuntime.ts +105 -0
- package/src/models/ScriptSchedule.ts +73 -0
- package/src/models/ScriptSchedulePreviewReqBody.ts +81 -0
- package/src/models/ScriptSchedulePreviewResBody.ts +83 -0
- package/src/models/ScriptSecretsReqBody.ts +73 -0
- package/src/models/ScriptSecretsResBody.ts +225 -0
- package/src/models/ScriptSummary.ts +216 -0
- package/src/models/ScriptWebhookResBody.ts +66 -0
- package/src/models/index.ts +22 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScriptAuditEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptAuditEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScriptAuditEntry
|
|
22
|
+
*/
|
|
23
|
+
actorType: ScriptAuditEntryActorTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* What changed, for example created, updated, api-key-rotated or needs-reauthorisation.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScriptAuditEntry
|
|
28
|
+
*/
|
|
29
|
+
kind: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ScriptAuditEntry
|
|
34
|
+
*/
|
|
35
|
+
modifiedAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
* User who made the change, when actorType is user.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ScriptAuditEntry
|
|
40
|
+
*/
|
|
41
|
+
modifiedBy?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: string; }}
|
|
45
|
+
* @memberof ScriptAuditEntry
|
|
46
|
+
*/
|
|
47
|
+
params?: {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const ScriptAuditEntryActorTypeEnum: {
|
|
55
|
+
readonly User: "user";
|
|
56
|
+
readonly System: "system";
|
|
57
|
+
readonly Anonymous: "anonymous";
|
|
58
|
+
};
|
|
59
|
+
export type ScriptAuditEntryActorTypeEnum = typeof ScriptAuditEntryActorTypeEnum[keyof typeof ScriptAuditEntryActorTypeEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ScriptAuditEntry interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfScriptAuditEntry(value: object): value is ScriptAuditEntry;
|
|
64
|
+
export declare function ScriptAuditEntryFromJSON(json: any): ScriptAuditEntry;
|
|
65
|
+
export declare function ScriptAuditEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptAuditEntry;
|
|
66
|
+
export declare function ScriptAuditEntryToJSON(json: any): ScriptAuditEntry;
|
|
67
|
+
export declare function ScriptAuditEntryToJSONTyped(value?: ScriptAuditEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScriptAuditEntryActorTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptAuditEntry = instanceOfScriptAuditEntry;
|
|
18
|
+
exports.ScriptAuditEntryFromJSON = ScriptAuditEntryFromJSON;
|
|
19
|
+
exports.ScriptAuditEntryFromJSONTyped = ScriptAuditEntryFromJSONTyped;
|
|
20
|
+
exports.ScriptAuditEntryToJSON = ScriptAuditEntryToJSON;
|
|
21
|
+
exports.ScriptAuditEntryToJSONTyped = ScriptAuditEntryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ScriptAuditEntryActorTypeEnum = {
|
|
26
|
+
User: 'user',
|
|
27
|
+
System: 'system',
|
|
28
|
+
Anonymous: 'anonymous'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ScriptAuditEntry interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfScriptAuditEntry(value) {
|
|
34
|
+
if (!('actorType' in value) || value['actorType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('modifiedAt' in value) || value['modifiedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ScriptAuditEntryFromJSON(json) {
|
|
43
|
+
return ScriptAuditEntryFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ScriptAuditEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'actorType': json['actorType'],
|
|
51
|
+
'kind': json['kind'],
|
|
52
|
+
'modifiedAt': (new Date(json['modifiedAt'])),
|
|
53
|
+
'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
|
|
54
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ScriptAuditEntryToJSON(json) {
|
|
58
|
+
return ScriptAuditEntryToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ScriptAuditEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'actorType': value['actorType'],
|
|
66
|
+
'kind': value['kind'],
|
|
67
|
+
'modifiedAt': ((value['modifiedAt']).toISOString()),
|
|
68
|
+
'modifiedBy': value['modifiedBy'],
|
|
69
|
+
'params': value['params'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ScriptAuditEntry } from './ScriptAuditEntry';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScriptAuditResBody
|
|
17
|
+
*/
|
|
18
|
+
export interface ScriptAuditResBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ScriptAuditEntry>}
|
|
22
|
+
* @memberof ScriptAuditResBody
|
|
23
|
+
*/
|
|
24
|
+
entries: Array<ScriptAuditEntry>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ScriptAuditResBody
|
|
29
|
+
*/
|
|
30
|
+
nextCursor?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScriptAuditResBody interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScriptAuditResBody(value: object): value is ScriptAuditResBody;
|
|
36
|
+
export declare function ScriptAuditResBodyFromJSON(json: any): ScriptAuditResBody;
|
|
37
|
+
export declare function ScriptAuditResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptAuditResBody;
|
|
38
|
+
export declare function ScriptAuditResBodyToJSON(json: any): ScriptAuditResBody;
|
|
39
|
+
export declare function ScriptAuditResBodyToJSONTyped(value?: ScriptAuditResBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfScriptAuditResBody = instanceOfScriptAuditResBody;
|
|
17
|
+
exports.ScriptAuditResBodyFromJSON = ScriptAuditResBodyFromJSON;
|
|
18
|
+
exports.ScriptAuditResBodyFromJSONTyped = ScriptAuditResBodyFromJSONTyped;
|
|
19
|
+
exports.ScriptAuditResBodyToJSON = ScriptAuditResBodyToJSON;
|
|
20
|
+
exports.ScriptAuditResBodyToJSONTyped = ScriptAuditResBodyToJSONTyped;
|
|
21
|
+
const ScriptAuditEntry_1 = require("./ScriptAuditEntry");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScriptAuditResBody interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScriptAuditResBody(value) {
|
|
26
|
+
if (!('entries' in value) || value['entries'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ScriptAuditResBodyFromJSON(json) {
|
|
31
|
+
return ScriptAuditResBodyFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ScriptAuditResBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'entries': (json['entries'].map(ScriptAuditEntry_1.ScriptAuditEntryFromJSON)),
|
|
39
|
+
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ScriptAuditResBodyToJSON(json) {
|
|
43
|
+
return ScriptAuditResBodyToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ScriptAuditResBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'entries': (value['entries'].map(ScriptAuditEntry_1.ScriptAuditEntryToJSON)),
|
|
51
|
+
'nextCursor': value['nextCursor'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ScriptKey } from './ScriptKey';
|
|
13
|
+
import type { ScriptSchedule } from './ScriptSchedule';
|
|
14
|
+
import type { ScriptRuntime } from './ScriptRuntime';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ScriptDetail
|
|
19
|
+
*/
|
|
20
|
+
export interface ScriptDetail {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Date}
|
|
24
|
+
* @memberof ScriptDetail
|
|
25
|
+
*/
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof ScriptDetail
|
|
31
|
+
*/
|
|
32
|
+
createdBy: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ScriptDetail
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof ScriptDetail
|
|
43
|
+
*/
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Source files keyed by path.
|
|
47
|
+
* @type {{ [key: string]: string; }}
|
|
48
|
+
* @memberof ScriptDetail
|
|
49
|
+
*/
|
|
50
|
+
files: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ScriptDetail
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ScriptKey}
|
|
62
|
+
* @memberof ScriptDetail
|
|
63
|
+
*/
|
|
64
|
+
key: ScriptKey;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ScriptDetail
|
|
69
|
+
*/
|
|
70
|
+
language: ScriptDetailLanguageEnum;
|
|
71
|
+
/**
|
|
72
|
+
* Dependency manifest: requirements.txt for Python, go.mod for Go, package.json for JavaScript.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ScriptDetail
|
|
75
|
+
*/
|
|
76
|
+
manifest?: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof ScriptDetail
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* Project the script's API key is scoped to. Absent when it acts across the account.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ScriptDetail
|
|
87
|
+
*/
|
|
88
|
+
project?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Pass back when updating, so a concurrent change is reported rather than overwritten.
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ScriptDetail
|
|
93
|
+
*/
|
|
94
|
+
revision: number;
|
|
95
|
+
/**
|
|
96
|
+
* Live state from the runner; absent if the runner could not be reached.
|
|
97
|
+
* @type {ScriptRuntime}
|
|
98
|
+
* @memberof ScriptDetail
|
|
99
|
+
*/
|
|
100
|
+
runtime?: ScriptRuntime;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {ScriptSchedule}
|
|
104
|
+
* @memberof ScriptDetail
|
|
105
|
+
*/
|
|
106
|
+
schedule: ScriptSchedule;
|
|
107
|
+
/**
|
|
108
|
+
* Names of the secrets set on the script. Values are never returned.
|
|
109
|
+
* @type {Array<string>}
|
|
110
|
+
* @memberof ScriptDetail
|
|
111
|
+
*/
|
|
112
|
+
secretNames: Array<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The handler signature the script implements.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ScriptDetail
|
|
117
|
+
*/
|
|
118
|
+
type: ScriptDetailTypeEnum;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Date}
|
|
122
|
+
* @memberof ScriptDetail
|
|
123
|
+
*/
|
|
124
|
+
updatedAt: Date;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof ScriptDetail
|
|
129
|
+
*/
|
|
130
|
+
webhook: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Returned only when a webhook URL is first issued; it cannot be retrieved later.
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof ScriptDetail
|
|
135
|
+
*/
|
|
136
|
+
webhookUrl?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export declare const ScriptDetailLanguageEnum: {
|
|
142
|
+
readonly Python: "python";
|
|
143
|
+
readonly Go: "go";
|
|
144
|
+
readonly Javascript: "javascript";
|
|
145
|
+
};
|
|
146
|
+
export type ScriptDetailLanguageEnum = typeof ScriptDetailLanguageEnum[keyof typeof ScriptDetailLanguageEnum];
|
|
147
|
+
/**
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export declare const ScriptDetailTypeEnum: {
|
|
151
|
+
readonly Integration: "integration";
|
|
152
|
+
};
|
|
153
|
+
export type ScriptDetailTypeEnum = typeof ScriptDetailTypeEnum[keyof typeof ScriptDetailTypeEnum];
|
|
154
|
+
/**
|
|
155
|
+
* Check if a given object implements the ScriptDetail interface.
|
|
156
|
+
*/
|
|
157
|
+
export declare function instanceOfScriptDetail(value: object): value is ScriptDetail;
|
|
158
|
+
export declare function ScriptDetailFromJSON(json: any): ScriptDetail;
|
|
159
|
+
export declare function ScriptDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptDetail;
|
|
160
|
+
export declare function ScriptDetailToJSON(json: any): ScriptDetail;
|
|
161
|
+
export declare function ScriptDetailToJSONTyped(value?: ScriptDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ScriptDetailTypeEnum = exports.ScriptDetailLanguageEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptDetail = instanceOfScriptDetail;
|
|
18
|
+
exports.ScriptDetailFromJSON = ScriptDetailFromJSON;
|
|
19
|
+
exports.ScriptDetailFromJSONTyped = ScriptDetailFromJSONTyped;
|
|
20
|
+
exports.ScriptDetailToJSON = ScriptDetailToJSON;
|
|
21
|
+
exports.ScriptDetailToJSONTyped = ScriptDetailToJSONTyped;
|
|
22
|
+
const ScriptKey_1 = require("./ScriptKey");
|
|
23
|
+
const ScriptSchedule_1 = require("./ScriptSchedule");
|
|
24
|
+
const ScriptRuntime_1 = require("./ScriptRuntime");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.ScriptDetailLanguageEnum = {
|
|
29
|
+
Python: 'python',
|
|
30
|
+
Go: 'go',
|
|
31
|
+
Javascript: 'javascript'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.ScriptDetailTypeEnum = {
|
|
37
|
+
Integration: 'integration'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ScriptDetail interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfScriptDetail(value) {
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('revision' in value) || value['revision'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('schedule' in value) || value['schedule'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('secretNames' in value) || value['secretNames'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('webhook' in value) || value['webhook'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
function ScriptDetailFromJSON(json) {
|
|
74
|
+
return ScriptDetailFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function ScriptDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
82
|
+
'createdBy': json['createdBy'],
|
|
83
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
84
|
+
'enabled': json['enabled'],
|
|
85
|
+
'files': json['files'],
|
|
86
|
+
'id': json['id'],
|
|
87
|
+
'key': (0, ScriptKey_1.ScriptKeyFromJSON)(json['key']),
|
|
88
|
+
'language': json['language'],
|
|
89
|
+
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
92
|
+
'revision': json['revision'],
|
|
93
|
+
'runtime': json['runtime'] == null ? undefined : (0, ScriptRuntime_1.ScriptRuntimeFromJSON)(json['runtime']),
|
|
94
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleFromJSON)(json['schedule']),
|
|
95
|
+
'secretNames': json['secretNames'],
|
|
96
|
+
'type': json['type'],
|
|
97
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
98
|
+
'webhook': json['webhook'],
|
|
99
|
+
'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function ScriptDetailToJSON(json) {
|
|
103
|
+
return ScriptDetailToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
function ScriptDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
111
|
+
'createdBy': value['createdBy'],
|
|
112
|
+
'description': value['description'],
|
|
113
|
+
'enabled': value['enabled'],
|
|
114
|
+
'files': value['files'],
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'key': (0, ScriptKey_1.ScriptKeyToJSON)(value['key']),
|
|
117
|
+
'language': value['language'],
|
|
118
|
+
'manifest': value['manifest'],
|
|
119
|
+
'name': value['name'],
|
|
120
|
+
'project': value['project'],
|
|
121
|
+
'revision': value['revision'],
|
|
122
|
+
'runtime': (0, ScriptRuntime_1.ScriptRuntimeToJSON)(value['runtime']),
|
|
123
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleToJSON)(value['schedule']),
|
|
124
|
+
'secretNames': value['secretNames'],
|
|
125
|
+
'type': value['type'],
|
|
126
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
127
|
+
'webhook': value['webhook'],
|
|
128
|
+
'webhookUrl': value['webhookUrl'],
|
|
129
|
+
};
|
|
130
|
+
}
|