@spaciv/sdk 0.1.0 → 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 +26 -0
- package/README.md +2 -2
- package/dist/apis/AccountsApi.d.ts +24 -24
- package/dist/apis/AccountsApi.js +12 -12
- package/dist/apis/AssistantApi.d.ts +28 -1
- package/dist/apis/AssistantApi.js +39 -0
- 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/AssistantApi.d.ts +28 -1
- package/dist/esm/apis/AssistantApi.js +40 -1
- 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/AssistantTranscriptBody.d.ts +45 -0
- package/dist/esm/models/AssistantTranscriptBody.js +52 -0
- package/dist/esm/models/AssistantTranscriptMessage.d.ts +98 -0
- package/dist/esm/models/AssistantTranscriptMessage.js +90 -0
- package/dist/esm/models/AssistantTranscriptToolCall.d.ts +44 -0
- package/dist/esm/models/AssistantTranscriptToolCall.js +51 -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 +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/models/APIKey.d.ts +6 -0
- package/dist/models/APIKey.js +2 -0
- package/dist/models/AssistantTranscriptBody.d.ts +45 -0
- package/dist/models/AssistantTranscriptBody.js +59 -0
- package/dist/models/AssistantTranscriptMessage.d.ts +98 -0
- package/dist/models/AssistantTranscriptMessage.js +98 -0
- package/dist/models/AssistantTranscriptToolCall.d.ts +44 -0
- package/dist/models/AssistantTranscriptToolCall.js +58 -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 +25 -0
- package/dist/models/index.js +25 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +24 -24
- package/src/apis/AssistantApi.ts +70 -0
- 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/AssistantTranscriptBody.ts +92 -0
- package/src/models/AssistantTranscriptMessage.ts +175 -0
- package/src/models/AssistantTranscriptToolCall.ts +84 -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 +25 -0
|
@@ -0,0 +1,119 @@
|
|
|
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.ScriptSecretsResBodyTypeEnum = exports.ScriptSecretsResBodyLanguageEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptSecretsResBody = instanceOfScriptSecretsResBody;
|
|
18
|
+
exports.ScriptSecretsResBodyFromJSON = ScriptSecretsResBodyFromJSON;
|
|
19
|
+
exports.ScriptSecretsResBodyFromJSONTyped = ScriptSecretsResBodyFromJSONTyped;
|
|
20
|
+
exports.ScriptSecretsResBodyToJSON = ScriptSecretsResBodyToJSON;
|
|
21
|
+
exports.ScriptSecretsResBodyToJSONTyped = ScriptSecretsResBodyToJSONTyped;
|
|
22
|
+
const ScriptKey_1 = require("./ScriptKey");
|
|
23
|
+
const ScriptSchedule_1 = require("./ScriptSchedule");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ScriptSecretsResBodyLanguageEnum = {
|
|
28
|
+
Python: 'python',
|
|
29
|
+
Go: 'go',
|
|
30
|
+
Javascript: 'javascript'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.ScriptSecretsResBodyTypeEnum = {
|
|
36
|
+
Integration: 'integration'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ScriptSecretsResBody interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfScriptSecretsResBody(value) {
|
|
42
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('revision' in value) || value['revision'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('schedule' in value) || value['schedule'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('secretNames' in value) || value['secretNames'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('webhook' in value) || value['webhook'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
function ScriptSecretsResBodyFromJSON(json) {
|
|
71
|
+
return ScriptSecretsResBodyFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ScriptSecretsResBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
79
|
+
'createdBy': json['createdBy'],
|
|
80
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
81
|
+
'enabled': json['enabled'],
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'key': (0, ScriptKey_1.ScriptKeyFromJSON)(json['key']),
|
|
84
|
+
'language': json['language'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
87
|
+
'revision': json['revision'],
|
|
88
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleFromJSON)(json['schedule']),
|
|
89
|
+
'secretNames': json['secretNames'],
|
|
90
|
+
'type': json['type'],
|
|
91
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
92
|
+
'webhook': json['webhook'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function ScriptSecretsResBodyToJSON(json) {
|
|
96
|
+
return ScriptSecretsResBodyToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
function ScriptSecretsResBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
104
|
+
'createdBy': value['createdBy'],
|
|
105
|
+
'description': value['description'],
|
|
106
|
+
'enabled': value['enabled'],
|
|
107
|
+
'id': value['id'],
|
|
108
|
+
'key': (0, ScriptKey_1.ScriptKeyToJSON)(value['key']),
|
|
109
|
+
'language': value['language'],
|
|
110
|
+
'name': value['name'],
|
|
111
|
+
'project': value['project'],
|
|
112
|
+
'revision': value['revision'],
|
|
113
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleToJSON)(value['schedule']),
|
|
114
|
+
'secretNames': value['secretNames'],
|
|
115
|
+
'type': value['type'],
|
|
116
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
117
|
+
'webhook': value['webhook'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ScriptSummary
|
|
18
|
+
*/
|
|
19
|
+
export interface ScriptSummary {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Date}
|
|
23
|
+
* @memberof ScriptSummary
|
|
24
|
+
*/
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ScriptSummary
|
|
30
|
+
*/
|
|
31
|
+
createdBy: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ScriptSummary
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ScriptSummary
|
|
42
|
+
*/
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ScriptSummary
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ScriptKey}
|
|
53
|
+
* @memberof ScriptSummary
|
|
54
|
+
*/
|
|
55
|
+
key: ScriptKey;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ScriptSummary
|
|
60
|
+
*/
|
|
61
|
+
language: ScriptSummaryLanguageEnum;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ScriptSummary
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
/**
|
|
69
|
+
* Project the script's API key is scoped to. Absent when it acts across the account.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof ScriptSummary
|
|
72
|
+
*/
|
|
73
|
+
project?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Pass back when updating, so a concurrent change is reported rather than overwritten.
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof ScriptSummary
|
|
78
|
+
*/
|
|
79
|
+
revision: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {ScriptSchedule}
|
|
83
|
+
* @memberof ScriptSummary
|
|
84
|
+
*/
|
|
85
|
+
schedule: ScriptSchedule;
|
|
86
|
+
/**
|
|
87
|
+
* The handler signature the script implements.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ScriptSummary
|
|
90
|
+
*/
|
|
91
|
+
type: ScriptSummaryTypeEnum;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof ScriptSummary
|
|
96
|
+
*/
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof ScriptSummary
|
|
102
|
+
*/
|
|
103
|
+
webhook: boolean;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const ScriptSummaryLanguageEnum: {
|
|
109
|
+
readonly Python: "python";
|
|
110
|
+
readonly Go: "go";
|
|
111
|
+
readonly Javascript: "javascript";
|
|
112
|
+
};
|
|
113
|
+
export type ScriptSummaryLanguageEnum = typeof ScriptSummaryLanguageEnum[keyof typeof ScriptSummaryLanguageEnum];
|
|
114
|
+
/**
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
export declare const ScriptSummaryTypeEnum: {
|
|
118
|
+
readonly Integration: "integration";
|
|
119
|
+
};
|
|
120
|
+
export type ScriptSummaryTypeEnum = typeof ScriptSummaryTypeEnum[keyof typeof ScriptSummaryTypeEnum];
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the ScriptSummary interface.
|
|
123
|
+
*/
|
|
124
|
+
export declare function instanceOfScriptSummary(value: object): value is ScriptSummary;
|
|
125
|
+
export declare function ScriptSummaryFromJSON(json: any): ScriptSummary;
|
|
126
|
+
export declare function ScriptSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSummary;
|
|
127
|
+
export declare function ScriptSummaryToJSON(json: any): ScriptSummary;
|
|
128
|
+
export declare function ScriptSummaryToJSONTyped(value?: ScriptSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,115 @@
|
|
|
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.ScriptSummaryTypeEnum = exports.ScriptSummaryLanguageEnum = void 0;
|
|
17
|
+
exports.instanceOfScriptSummary = instanceOfScriptSummary;
|
|
18
|
+
exports.ScriptSummaryFromJSON = ScriptSummaryFromJSON;
|
|
19
|
+
exports.ScriptSummaryFromJSONTyped = ScriptSummaryFromJSONTyped;
|
|
20
|
+
exports.ScriptSummaryToJSON = ScriptSummaryToJSON;
|
|
21
|
+
exports.ScriptSummaryToJSONTyped = ScriptSummaryToJSONTyped;
|
|
22
|
+
const ScriptKey_1 = require("./ScriptKey");
|
|
23
|
+
const ScriptSchedule_1 = require("./ScriptSchedule");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ScriptSummaryLanguageEnum = {
|
|
28
|
+
Python: 'python',
|
|
29
|
+
Go: 'go',
|
|
30
|
+
Javascript: 'javascript'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.ScriptSummaryTypeEnum = {
|
|
36
|
+
Integration: 'integration'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ScriptSummary interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfScriptSummary(value) {
|
|
42
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('revision' in value) || value['revision'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('schedule' in value) || value['schedule'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('webhook' in value) || value['webhook'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function ScriptSummaryFromJSON(json) {
|
|
69
|
+
return ScriptSummaryFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function ScriptSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
77
|
+
'createdBy': json['createdBy'],
|
|
78
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
79
|
+
'enabled': json['enabled'],
|
|
80
|
+
'id': json['id'],
|
|
81
|
+
'key': (0, ScriptKey_1.ScriptKeyFromJSON)(json['key']),
|
|
82
|
+
'language': json['language'],
|
|
83
|
+
'name': json['name'],
|
|
84
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
85
|
+
'revision': json['revision'],
|
|
86
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleFromJSON)(json['schedule']),
|
|
87
|
+
'type': json['type'],
|
|
88
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
89
|
+
'webhook': json['webhook'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function ScriptSummaryToJSON(json) {
|
|
93
|
+
return ScriptSummaryToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
function ScriptSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
101
|
+
'createdBy': value['createdBy'],
|
|
102
|
+
'description': value['description'],
|
|
103
|
+
'enabled': value['enabled'],
|
|
104
|
+
'id': value['id'],
|
|
105
|
+
'key': (0, ScriptKey_1.ScriptKeyToJSON)(value['key']),
|
|
106
|
+
'language': value['language'],
|
|
107
|
+
'name': value['name'],
|
|
108
|
+
'project': value['project'],
|
|
109
|
+
'revision': value['revision'],
|
|
110
|
+
'schedule': (0, ScriptSchedule_1.ScriptScheduleToJSON)(value['schedule']),
|
|
111
|
+
'type': value['type'],
|
|
112
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
113
|
+
'webhook': value['webhook'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ScriptWebhookResBody
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptWebhookResBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScriptWebhookResBody
|
|
22
|
+
*/
|
|
23
|
+
webhookUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ScriptWebhookResBody interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfScriptWebhookResBody(value: object): value is ScriptWebhookResBody;
|
|
29
|
+
export declare function ScriptWebhookResBodyFromJSON(json: any): ScriptWebhookResBody;
|
|
30
|
+
export declare function ScriptWebhookResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptWebhookResBody;
|
|
31
|
+
export declare function ScriptWebhookResBodyToJSON(json: any): ScriptWebhookResBody;
|
|
32
|
+
export declare function ScriptWebhookResBodyToJSONTyped(value?: ScriptWebhookResBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfScriptWebhookResBody = instanceOfScriptWebhookResBody;
|
|
17
|
+
exports.ScriptWebhookResBodyFromJSON = ScriptWebhookResBodyFromJSON;
|
|
18
|
+
exports.ScriptWebhookResBodyFromJSONTyped = ScriptWebhookResBodyFromJSONTyped;
|
|
19
|
+
exports.ScriptWebhookResBodyToJSON = ScriptWebhookResBodyToJSON;
|
|
20
|
+
exports.ScriptWebhookResBodyToJSONTyped = ScriptWebhookResBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ScriptWebhookResBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfScriptWebhookResBody(value) {
|
|
25
|
+
if (!('webhookUrl' in value) || value['webhookUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ScriptWebhookResBodyFromJSON(json) {
|
|
30
|
+
return ScriptWebhookResBodyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ScriptWebhookResBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'webhookUrl': json['webhookUrl'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ScriptWebhookResBodyToJSON(json) {
|
|
41
|
+
return ScriptWebhookResBodyToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ScriptWebhookResBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'webhookUrl': value['webhookUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ export * from './AssistantConversationFailureBody';
|
|
|
37
37
|
export * from './AssistantConversationListEntry';
|
|
38
38
|
export * from './AssistantConversationListRes';
|
|
39
39
|
export * from './AssistantModelListBody';
|
|
40
|
+
export * from './AssistantTranscriptBody';
|
|
41
|
+
export * from './AssistantTranscriptMessage';
|
|
42
|
+
export * from './AssistantTranscriptToolCall';
|
|
40
43
|
export * from './AuthAPIKeyTokenReqBody';
|
|
41
44
|
export * from './AuthAPIKeyTokenResBody';
|
|
42
45
|
export * from './AuthLoginPassReqBody';
|
|
@@ -289,6 +292,28 @@ export * from './ScenarioListEntry';
|
|
|
289
292
|
export * from './ScenarioListRes';
|
|
290
293
|
export * from './ScenarioNotFoundDetail';
|
|
291
294
|
export * from './ScenarioPatch';
|
|
295
|
+
export * from './ScriptAuditEntry';
|
|
296
|
+
export * from './ScriptAuditResBody';
|
|
297
|
+
export * from './ScriptDetail';
|
|
298
|
+
export * from './ScriptExport';
|
|
299
|
+
export * from './ScriptExportResBody';
|
|
300
|
+
export * from './ScriptExportRun';
|
|
301
|
+
export * from './ScriptKey';
|
|
302
|
+
export * from './ScriptListResBody';
|
|
303
|
+
export * from './ScriptLogLine';
|
|
304
|
+
export * from './ScriptPatchReqBody';
|
|
305
|
+
export * from './ScriptPostReqBody';
|
|
306
|
+
export * from './ScriptRun';
|
|
307
|
+
export * from './ScriptRunLogsResBody';
|
|
308
|
+
export * from './ScriptRunsResBody';
|
|
309
|
+
export * from './ScriptRuntime';
|
|
310
|
+
export * from './ScriptSchedule';
|
|
311
|
+
export * from './ScriptSchedulePreviewReqBody';
|
|
312
|
+
export * from './ScriptSchedulePreviewResBody';
|
|
313
|
+
export * from './ScriptSecretsReqBody';
|
|
314
|
+
export * from './ScriptSecretsResBody';
|
|
315
|
+
export * from './ScriptSummary';
|
|
316
|
+
export * from './ScriptWebhookResBody';
|
|
292
317
|
export * from './SendPasswordPutReqBody';
|
|
293
318
|
export * from './SerializedEvent';
|
|
294
319
|
export * from './SingleSelectChangelogData';
|
package/dist/models/index.js
CHANGED
|
@@ -55,6 +55,9 @@ __exportStar(require("./AssistantConversationFailureBody"), exports);
|
|
|
55
55
|
__exportStar(require("./AssistantConversationListEntry"), exports);
|
|
56
56
|
__exportStar(require("./AssistantConversationListRes"), exports);
|
|
57
57
|
__exportStar(require("./AssistantModelListBody"), exports);
|
|
58
|
+
__exportStar(require("./AssistantTranscriptBody"), exports);
|
|
59
|
+
__exportStar(require("./AssistantTranscriptMessage"), exports);
|
|
60
|
+
__exportStar(require("./AssistantTranscriptToolCall"), exports);
|
|
58
61
|
__exportStar(require("./AuthAPIKeyTokenReqBody"), exports);
|
|
59
62
|
__exportStar(require("./AuthAPIKeyTokenResBody"), exports);
|
|
60
63
|
__exportStar(require("./AuthLoginPassReqBody"), exports);
|
|
@@ -307,6 +310,28 @@ __exportStar(require("./ScenarioListEntry"), exports);
|
|
|
307
310
|
__exportStar(require("./ScenarioListRes"), exports);
|
|
308
311
|
__exportStar(require("./ScenarioNotFoundDetail"), exports);
|
|
309
312
|
__exportStar(require("./ScenarioPatch"), exports);
|
|
313
|
+
__exportStar(require("./ScriptAuditEntry"), exports);
|
|
314
|
+
__exportStar(require("./ScriptAuditResBody"), exports);
|
|
315
|
+
__exportStar(require("./ScriptDetail"), exports);
|
|
316
|
+
__exportStar(require("./ScriptExport"), exports);
|
|
317
|
+
__exportStar(require("./ScriptExportResBody"), exports);
|
|
318
|
+
__exportStar(require("./ScriptExportRun"), exports);
|
|
319
|
+
__exportStar(require("./ScriptKey"), exports);
|
|
320
|
+
__exportStar(require("./ScriptListResBody"), exports);
|
|
321
|
+
__exportStar(require("./ScriptLogLine"), exports);
|
|
322
|
+
__exportStar(require("./ScriptPatchReqBody"), exports);
|
|
323
|
+
__exportStar(require("./ScriptPostReqBody"), exports);
|
|
324
|
+
__exportStar(require("./ScriptRun"), exports);
|
|
325
|
+
__exportStar(require("./ScriptRunLogsResBody"), exports);
|
|
326
|
+
__exportStar(require("./ScriptRunsResBody"), exports);
|
|
327
|
+
__exportStar(require("./ScriptRuntime"), exports);
|
|
328
|
+
__exportStar(require("./ScriptSchedule"), exports);
|
|
329
|
+
__exportStar(require("./ScriptSchedulePreviewReqBody"), exports);
|
|
330
|
+
__exportStar(require("./ScriptSchedulePreviewResBody"), exports);
|
|
331
|
+
__exportStar(require("./ScriptSecretsReqBody"), exports);
|
|
332
|
+
__exportStar(require("./ScriptSecretsResBody"), exports);
|
|
333
|
+
__exportStar(require("./ScriptSummary"), exports);
|
|
334
|
+
__exportStar(require("./ScriptWebhookResBody"), exports);
|
|
310
335
|
__exportStar(require("./SendPasswordPutReqBody"), exports);
|
|
311
336
|
__exportStar(require("./SerializedEvent"), exports);
|
|
312
337
|
__exportStar(require("./SingleSelectChangelogData"), exports);
|