@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,174 @@
|
|
|
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
|
+
import type { ScriptExportRun } from './ScriptExportRun';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScriptExport
|
|
20
|
+
*/
|
|
21
|
+
export interface ScriptExport {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof ScriptExport
|
|
26
|
+
*/
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ScriptExport
|
|
32
|
+
*/
|
|
33
|
+
createdBy: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ScriptExport
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ScriptExport
|
|
44
|
+
*/
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Source files keyed by path.
|
|
48
|
+
* @type {{ [key: string]: string; }}
|
|
49
|
+
* @memberof ScriptExport
|
|
50
|
+
*/
|
|
51
|
+
files: {
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ScriptExport
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {ScriptKey}
|
|
63
|
+
* @memberof ScriptExport
|
|
64
|
+
*/
|
|
65
|
+
key: ScriptKey;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ScriptExport
|
|
70
|
+
*/
|
|
71
|
+
language: ScriptExportLanguageEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Dependency manifest: requirements.txt for Python, go.mod for Go, package.json for JavaScript.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ScriptExport
|
|
76
|
+
*/
|
|
77
|
+
manifest?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ScriptExport
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* Project the script's API key is scoped to. Absent when it acts across the account.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ScriptExport
|
|
88
|
+
*/
|
|
89
|
+
project?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Pass back when updating, so a concurrent change is reported rather than overwritten.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ScriptExport
|
|
94
|
+
*/
|
|
95
|
+
revision: number;
|
|
96
|
+
/**
|
|
97
|
+
* Every build and run still kept, newest first.
|
|
98
|
+
* @type {Array<ScriptExportRun>}
|
|
99
|
+
* @memberof ScriptExport
|
|
100
|
+
*/
|
|
101
|
+
runs: Array<ScriptExportRun>;
|
|
102
|
+
/**
|
|
103
|
+
* Set when the run history could not be read in full, in which case runs holds only the newest part that was read. Page through the script's runs endpoint for the rest.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ScriptExport
|
|
106
|
+
*/
|
|
107
|
+
runsError?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Live state from the runner; absent if the runner could not be reached.
|
|
110
|
+
* @type {ScriptRuntime}
|
|
111
|
+
* @memberof ScriptExport
|
|
112
|
+
*/
|
|
113
|
+
runtime?: ScriptRuntime;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {ScriptSchedule}
|
|
117
|
+
* @memberof ScriptExport
|
|
118
|
+
*/
|
|
119
|
+
schedule: ScriptSchedule;
|
|
120
|
+
/**
|
|
121
|
+
* Names of the secrets set on the script. Values are never returned.
|
|
122
|
+
* @type {Array<string>}
|
|
123
|
+
* @memberof ScriptExport
|
|
124
|
+
*/
|
|
125
|
+
secretNames: Array<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The handler signature the script implements.
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof ScriptExport
|
|
130
|
+
*/
|
|
131
|
+
type: ScriptExportTypeEnum;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {Date}
|
|
135
|
+
* @memberof ScriptExport
|
|
136
|
+
*/
|
|
137
|
+
updatedAt: Date;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof ScriptExport
|
|
142
|
+
*/
|
|
143
|
+
webhook: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Returned only when a webhook URL is first issued; it cannot be retrieved later.
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof ScriptExport
|
|
148
|
+
*/
|
|
149
|
+
webhookUrl?: string;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const ScriptExportLanguageEnum: {
|
|
155
|
+
readonly Python: "python";
|
|
156
|
+
readonly Go: "go";
|
|
157
|
+
readonly Javascript: "javascript";
|
|
158
|
+
};
|
|
159
|
+
export type ScriptExportLanguageEnum = typeof ScriptExportLanguageEnum[keyof typeof ScriptExportLanguageEnum];
|
|
160
|
+
/**
|
|
161
|
+
* @export
|
|
162
|
+
*/
|
|
163
|
+
export declare const ScriptExportTypeEnum: {
|
|
164
|
+
readonly Integration: "integration";
|
|
165
|
+
};
|
|
166
|
+
export type ScriptExportTypeEnum = typeof ScriptExportTypeEnum[keyof typeof ScriptExportTypeEnum];
|
|
167
|
+
/**
|
|
168
|
+
* Check if a given object implements the ScriptExport interface.
|
|
169
|
+
*/
|
|
170
|
+
export declare function instanceOfScriptExport(value: object): value is ScriptExport;
|
|
171
|
+
export declare function ScriptExportFromJSON(json: any): ScriptExport;
|
|
172
|
+
export declare function ScriptExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptExport;
|
|
173
|
+
export declare function ScriptExportToJSON(json: any): ScriptExport;
|
|
174
|
+
export declare function ScriptExportToJSONTyped(value?: ScriptExport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,137 @@
|
|
|
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.ScriptExportTypeEnum = exports.ScriptExportLanguageEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptExport = instanceOfScriptExport;
|
|
18
|
+
exports.ScriptExportFromJSON = ScriptExportFromJSON;
|
|
19
|
+
exports.ScriptExportFromJSONTyped = ScriptExportFromJSONTyped;
|
|
20
|
+
exports.ScriptExportToJSON = ScriptExportToJSON;
|
|
21
|
+
exports.ScriptExportToJSONTyped = ScriptExportToJSONTyped;
|
|
22
|
+
const ScriptKey_1 = require("./ScriptKey");
|
|
23
|
+
const ScriptSchedule_1 = require("./ScriptSchedule");
|
|
24
|
+
const ScriptRuntime_1 = require("./ScriptRuntime");
|
|
25
|
+
const ScriptExportRun_1 = require("./ScriptExportRun");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.ScriptExportLanguageEnum = {
|
|
30
|
+
Python: 'python',
|
|
31
|
+
Go: 'go',
|
|
32
|
+
Javascript: 'javascript'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.ScriptExportTypeEnum = {
|
|
38
|
+
Integration: 'integration'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ScriptExport interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfScriptExport(value) {
|
|
44
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('revision' in value) || value['revision'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('runs' in value) || value['runs'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('schedule' in value) || value['schedule'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('secretNames' in value) || value['secretNames'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('webhook' in value) || value['webhook'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
function ScriptExportFromJSON(json) {
|
|
77
|
+
return ScriptExportFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function ScriptExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
85
|
+
'createdBy': json['createdBy'],
|
|
86
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
87
|
+
'enabled': json['enabled'],
|
|
88
|
+
'files': json['files'],
|
|
89
|
+
'id': json['id'],
|
|
90
|
+
'key': (0, ScriptKey_1.ScriptKeyFromJSON)(json['key']),
|
|
91
|
+
'language': json['language'],
|
|
92
|
+
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
93
|
+
'name': json['name'],
|
|
94
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
95
|
+
'revision': json['revision'],
|
|
96
|
+
'runs': (json['runs'].map(ScriptExportRun_1.ScriptExportRunFromJSON)),
|
|
97
|
+
'runsError': json['runsError'] == null ? undefined : json['runsError'],
|
|
98
|
+
'runtime': json['runtime'] == null ? undefined : (0, ScriptRuntime_1.ScriptRuntimeFromJSON)(json['runtime']),
|
|
99
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleFromJSON)(json['schedule']),
|
|
100
|
+
'secretNames': json['secretNames'],
|
|
101
|
+
'type': json['type'],
|
|
102
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
103
|
+
'webhook': json['webhook'],
|
|
104
|
+
'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function ScriptExportToJSON(json) {
|
|
108
|
+
return ScriptExportToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
function ScriptExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
116
|
+
'createdBy': value['createdBy'],
|
|
117
|
+
'description': value['description'],
|
|
118
|
+
'enabled': value['enabled'],
|
|
119
|
+
'files': value['files'],
|
|
120
|
+
'id': value['id'],
|
|
121
|
+
'key': (0, ScriptKey_1.ScriptKeyToJSON)(value['key']),
|
|
122
|
+
'language': value['language'],
|
|
123
|
+
'manifest': value['manifest'],
|
|
124
|
+
'name': value['name'],
|
|
125
|
+
'project': value['project'],
|
|
126
|
+
'revision': value['revision'],
|
|
127
|
+
'runs': (value['runs'].map(ScriptExportRun_1.ScriptExportRunToJSON)),
|
|
128
|
+
'runsError': value['runsError'],
|
|
129
|
+
'runtime': (0, ScriptRuntime_1.ScriptRuntimeToJSON)(value['runtime']),
|
|
130
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleToJSON)(value['schedule']),
|
|
131
|
+
'secretNames': value['secretNames'],
|
|
132
|
+
'type': value['type'],
|
|
133
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
134
|
+
'webhook': value['webhook'],
|
|
135
|
+
'webhookUrl': value['webhookUrl'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -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 { ScriptExport } from './ScriptExport';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ScriptExportResBody
|
|
17
|
+
*/
|
|
18
|
+
export interface ScriptExportResBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Date}
|
|
22
|
+
* @memberof ScriptExportResBody
|
|
23
|
+
*/
|
|
24
|
+
exportedAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ScriptExport>}
|
|
28
|
+
* @memberof ScriptExportResBody
|
|
29
|
+
*/
|
|
30
|
+
scripts: Array<ScriptExport>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ScriptExportResBody interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfScriptExportResBody(value: object): value is ScriptExportResBody;
|
|
36
|
+
export declare function ScriptExportResBodyFromJSON(json: any): ScriptExportResBody;
|
|
37
|
+
export declare function ScriptExportResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptExportResBody;
|
|
38
|
+
export declare function ScriptExportResBodyToJSON(json: any): ScriptExportResBody;
|
|
39
|
+
export declare function ScriptExportResBodyToJSONTyped(value?: ScriptExportResBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfScriptExportResBody = instanceOfScriptExportResBody;
|
|
17
|
+
exports.ScriptExportResBodyFromJSON = ScriptExportResBodyFromJSON;
|
|
18
|
+
exports.ScriptExportResBodyFromJSONTyped = ScriptExportResBodyFromJSONTyped;
|
|
19
|
+
exports.ScriptExportResBodyToJSON = ScriptExportResBodyToJSON;
|
|
20
|
+
exports.ScriptExportResBodyToJSONTyped = ScriptExportResBodyToJSONTyped;
|
|
21
|
+
const ScriptExport_1 = require("./ScriptExport");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScriptExportResBody interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfScriptExportResBody(value) {
|
|
26
|
+
if (!('exportedAt' in value) || value['exportedAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('scripts' in value) || value['scripts'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ScriptExportResBodyFromJSON(json) {
|
|
33
|
+
return ScriptExportResBodyFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ScriptExportResBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'exportedAt': (new Date(json['exportedAt'])),
|
|
41
|
+
'scripts': (json['scripts'].map(ScriptExport_1.ScriptExportFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ScriptExportResBodyToJSON(json) {
|
|
45
|
+
return ScriptExportResBodyToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ScriptExportResBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'exportedAt': ((value['exportedAt']).toISOString()),
|
|
53
|
+
'scripts': (value['scripts'].map(ScriptExport_1.ScriptExportToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 ScriptExportRun
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptExportRun {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ScriptExportRun
|
|
22
|
+
*/
|
|
23
|
+
durationMs?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ScriptExportRun
|
|
28
|
+
*/
|
|
29
|
+
endedAt?: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ScriptExportRun
|
|
34
|
+
*/
|
|
35
|
+
exitCode: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScriptExportRun
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* "build" for a dependency build, "run" for an execution.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ScriptExportRun
|
|
46
|
+
*/
|
|
47
|
+
kind: string;
|
|
48
|
+
/**
|
|
49
|
+
* API path that returns the run's logs while the run is kept.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ScriptExportRun
|
|
52
|
+
*/
|
|
53
|
+
logsPath: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ScriptExportRun
|
|
58
|
+
*/
|
|
59
|
+
message?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof ScriptExportRun
|
|
64
|
+
*/
|
|
65
|
+
queuedAt?: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof ScriptExportRun
|
|
70
|
+
*/
|
|
71
|
+
startedAt?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ScriptExportRun
|
|
76
|
+
*/
|
|
77
|
+
status: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ScriptExportRun
|
|
82
|
+
*/
|
|
83
|
+
trigger: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ScriptExportRun interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfScriptExportRun(value: object): value is ScriptExportRun;
|
|
89
|
+
export declare function ScriptExportRunFromJSON(json: any): ScriptExportRun;
|
|
90
|
+
export declare function ScriptExportRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptExportRun;
|
|
91
|
+
export declare function ScriptExportRunToJSON(json: any): ScriptExportRun;
|
|
92
|
+
export declare function ScriptExportRunToJSONTyped(value?: ScriptExportRun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfScriptExportRun = instanceOfScriptExportRun;
|
|
17
|
+
exports.ScriptExportRunFromJSON = ScriptExportRunFromJSON;
|
|
18
|
+
exports.ScriptExportRunFromJSONTyped = ScriptExportRunFromJSONTyped;
|
|
19
|
+
exports.ScriptExportRunToJSON = ScriptExportRunToJSON;
|
|
20
|
+
exports.ScriptExportRunToJSONTyped = ScriptExportRunToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ScriptExportRun interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfScriptExportRun(value) {
|
|
25
|
+
if (!('exitCode' in value) || value['exitCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('logsPath' in value) || value['logsPath'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('trigger' in value) || value['trigger'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ScriptExportRunFromJSON(json) {
|
|
40
|
+
return ScriptExportRunFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ScriptExportRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'durationMs': json['durationMs'] == null ? undefined : json['durationMs'],
|
|
48
|
+
'endedAt': json['endedAt'] == null ? undefined : (new Date(json['endedAt'])),
|
|
49
|
+
'exitCode': json['exitCode'],
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'kind': json['kind'],
|
|
52
|
+
'logsPath': json['logsPath'],
|
|
53
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
54
|
+
'queuedAt': json['queuedAt'] == null ? undefined : (new Date(json['queuedAt'])),
|
|
55
|
+
'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
|
|
56
|
+
'status': json['status'],
|
|
57
|
+
'trigger': json['trigger'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ScriptExportRunToJSON(json) {
|
|
61
|
+
return ScriptExportRunToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ScriptExportRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'durationMs': value['durationMs'],
|
|
69
|
+
'endedAt': value['endedAt'] == null ? undefined : ((value['endedAt']).toISOString()),
|
|
70
|
+
'exitCode': value['exitCode'],
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'kind': value['kind'],
|
|
73
|
+
'logsPath': value['logsPath'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'queuedAt': value['queuedAt'] == null ? undefined : ((value['queuedAt']).toISOString()),
|
|
76
|
+
'startedAt': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
|
|
77
|
+
'status': value['status'],
|
|
78
|
+
'trigger': value['trigger'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 ScriptKey
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptKey {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof ScriptKey
|
|
22
|
+
*/
|
|
23
|
+
expiresAt?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Why the last automatic rotation failed or why the key needs re-authorising.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScriptKey
|
|
28
|
+
*/
|
|
29
|
+
lastError?: string;
|
|
30
|
+
/**
|
|
31
|
+
* User whose permissions the key acts with.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ScriptKey
|
|
34
|
+
*/
|
|
35
|
+
ownerUserId?: number;
|
|
36
|
+
/**
|
|
37
|
+
* When the key is next replaced automatically.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ScriptKey
|
|
40
|
+
*/
|
|
41
|
+
rotateAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the script's Spaciv API key is usable. While "needs_reauthorisation", runs are paused until someone with *Manage my account* re-authorises it.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ScriptKey
|
|
46
|
+
*/
|
|
47
|
+
status: ScriptKeyStatusEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ScriptKeyStatusEnum: {
|
|
53
|
+
readonly Active: "active";
|
|
54
|
+
readonly NeedsReauthorisation: "needs_reauthorisation";
|
|
55
|
+
};
|
|
56
|
+
export type ScriptKeyStatusEnum = typeof ScriptKeyStatusEnum[keyof typeof ScriptKeyStatusEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the ScriptKey interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfScriptKey(value: object): value is ScriptKey;
|
|
61
|
+
export declare function ScriptKeyFromJSON(json: any): ScriptKey;
|
|
62
|
+
export declare function ScriptKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptKey;
|
|
63
|
+
export declare function ScriptKeyToJSON(json: any): ScriptKey;
|
|
64
|
+
export declare function ScriptKeyToJSONTyped(value?: ScriptKey | null, ignoreDiscriminator?: boolean): any;
|