@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,45 @@
|
|
|
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 { AssistantTranscriptMessage } from './AssistantTranscriptMessage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssistantTranscriptBody
|
|
17
|
+
*/
|
|
18
|
+
export interface AssistantTranscriptBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AssistantTranscriptMessage>}
|
|
22
|
+
* @memberof AssistantTranscriptBody
|
|
23
|
+
*/
|
|
24
|
+
messages: Array<AssistantTranscriptMessage>;
|
|
25
|
+
/**
|
|
26
|
+
* What the assistant is told of the messages it no longer replays, once the conversation has been compacted. Empty until then.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AssistantTranscriptBody
|
|
29
|
+
*/
|
|
30
|
+
summary: string;
|
|
31
|
+
/**
|
|
32
|
+
* How many of the leading messages the summary stands in for.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AssistantTranscriptBody
|
|
35
|
+
*/
|
|
36
|
+
summaryUpTo: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssistantTranscriptBody interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAssistantTranscriptBody(value: object): value is AssistantTranscriptBody;
|
|
42
|
+
export declare function AssistantTranscriptBodyFromJSON(json: any): AssistantTranscriptBody;
|
|
43
|
+
export declare function AssistantTranscriptBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantTranscriptBody;
|
|
44
|
+
export declare function AssistantTranscriptBodyToJSON(json: any): AssistantTranscriptBody;
|
|
45
|
+
export declare function AssistantTranscriptBodyToJSONTyped(value?: AssistantTranscriptBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AssistantTranscriptMessageFromJSON, AssistantTranscriptMessageToJSON, } from './AssistantTranscriptMessage';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AssistantTranscriptBody interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAssistantTranscriptBody(value) {
|
|
19
|
+
if (!('messages' in value) || value['messages'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('summaryUpTo' in value) || value['summaryUpTo'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function AssistantTranscriptBodyFromJSON(json) {
|
|
28
|
+
return AssistantTranscriptBodyFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function AssistantTranscriptBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'messages': (json['messages'].map(AssistantTranscriptMessageFromJSON)),
|
|
36
|
+
'summary': json['summary'],
|
|
37
|
+
'summaryUpTo': json['summaryUpTo'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function AssistantTranscriptBodyToJSON(json) {
|
|
41
|
+
return AssistantTranscriptBodyToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function AssistantTranscriptBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'messages': (value['messages'].map(AssistantTranscriptMessageToJSON)),
|
|
49
|
+
'summary': value['summary'],
|
|
50
|
+
'summaryUpTo': value['summaryUpTo'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { AssistantTranscriptToolCall } from './AssistantTranscriptToolCall';
|
|
13
|
+
import type { AssistantChatPollAttachment } from './AssistantChatPollAttachment';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AssistantTranscriptMessage
|
|
18
|
+
*/
|
|
19
|
+
export interface AssistantTranscriptMessage {
|
|
20
|
+
/**
|
|
21
|
+
* Files attached to a user message. Empty on every other message.
|
|
22
|
+
* @type {Array<AssistantChatPollAttachment>}
|
|
23
|
+
* @memberof AssistantTranscriptMessage
|
|
24
|
+
*/
|
|
25
|
+
attachments: Array<AssistantChatPollAttachment>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AssistantTranscriptMessage
|
|
30
|
+
*/
|
|
31
|
+
createdAt: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the tool call a tool message answers failed: the tool refused it, returned an error, or was not available.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AssistantTranscriptMessage
|
|
36
|
+
*/
|
|
37
|
+
failed: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The message's index in the conversation. A poll's message ids start with it.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AssistantTranscriptMessage
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Why a notice was given, as the id a poll shows it with.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AssistantTranscriptMessage
|
|
48
|
+
*/
|
|
49
|
+
reason: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AssistantTranscriptMessage
|
|
54
|
+
*/
|
|
55
|
+
requestId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AssistantTranscriptMessage
|
|
60
|
+
*/
|
|
61
|
+
role: AssistantTranscriptMessageRoleEnum;
|
|
62
|
+
/**
|
|
63
|
+
* For a tool message, the result the assistant was given.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof AssistantTranscriptMessage
|
|
66
|
+
*/
|
|
67
|
+
text: string;
|
|
68
|
+
/**
|
|
69
|
+
* The id of the tool call a tool message is the result of.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AssistantTranscriptMessage
|
|
72
|
+
*/
|
|
73
|
+
toolCallId: string;
|
|
74
|
+
/**
|
|
75
|
+
* The tools an assistant message called. Empty on every other message.
|
|
76
|
+
* @type {Array<AssistantTranscriptToolCall>}
|
|
77
|
+
* @memberof AssistantTranscriptMessage
|
|
78
|
+
*/
|
|
79
|
+
toolCalls: Array<AssistantTranscriptToolCall>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const AssistantTranscriptMessageRoleEnum: {
|
|
85
|
+
readonly User: "user";
|
|
86
|
+
readonly Assistant: "assistant";
|
|
87
|
+
readonly Tool: "tool";
|
|
88
|
+
readonly Notice: "notice";
|
|
89
|
+
};
|
|
90
|
+
export type AssistantTranscriptMessageRoleEnum = typeof AssistantTranscriptMessageRoleEnum[keyof typeof AssistantTranscriptMessageRoleEnum];
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the AssistantTranscriptMessage interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfAssistantTranscriptMessage(value: object): value is AssistantTranscriptMessage;
|
|
95
|
+
export declare function AssistantTranscriptMessageFromJSON(json: any): AssistantTranscriptMessage;
|
|
96
|
+
export declare function AssistantTranscriptMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantTranscriptMessage;
|
|
97
|
+
export declare function AssistantTranscriptMessageToJSON(json: any): AssistantTranscriptMessage;
|
|
98
|
+
export declare function AssistantTranscriptMessageToJSONTyped(value?: AssistantTranscriptMessage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AssistantTranscriptToolCallFromJSON, AssistantTranscriptToolCallToJSON, } from './AssistantTranscriptToolCall';
|
|
15
|
+
import { AssistantChatPollAttachmentFromJSON, AssistantChatPollAttachmentToJSON, } from './AssistantChatPollAttachment';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const AssistantTranscriptMessageRoleEnum = {
|
|
20
|
+
User: 'user',
|
|
21
|
+
Assistant: 'assistant',
|
|
22
|
+
Tool: 'tool',
|
|
23
|
+
Notice: 'notice'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssistantTranscriptMessage interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfAssistantTranscriptMessage(value) {
|
|
29
|
+
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('failed' in value) || value['failed'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('toolCalls' in value) || value['toolCalls'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
export function AssistantTranscriptMessageFromJSON(json) {
|
|
52
|
+
return AssistantTranscriptMessageFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function AssistantTranscriptMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'attachments': (json['attachments'].map(AssistantChatPollAttachmentFromJSON)),
|
|
60
|
+
'createdAt': json['createdAt'],
|
|
61
|
+
'failed': json['failed'],
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'reason': json['reason'],
|
|
64
|
+
'requestId': json['requestId'],
|
|
65
|
+
'role': json['role'],
|
|
66
|
+
'text': json['text'],
|
|
67
|
+
'toolCallId': json['toolCallId'],
|
|
68
|
+
'toolCalls': (json['toolCalls'].map(AssistantTranscriptToolCallFromJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function AssistantTranscriptMessageToJSON(json) {
|
|
72
|
+
return AssistantTranscriptMessageToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function AssistantTranscriptMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'attachments': (value['attachments'].map(AssistantChatPollAttachmentToJSON)),
|
|
80
|
+
'createdAt': value['createdAt'],
|
|
81
|
+
'failed': value['failed'],
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'reason': value['reason'],
|
|
84
|
+
'requestId': value['requestId'],
|
|
85
|
+
'role': value['role'],
|
|
86
|
+
'text': value['text'],
|
|
87
|
+
'toolCallId': value['toolCallId'],
|
|
88
|
+
'toolCalls': (value['toolCalls'].map(AssistantTranscriptToolCallToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 AssistantTranscriptToolCall
|
|
16
|
+
*/
|
|
17
|
+
export interface AssistantTranscriptToolCall {
|
|
18
|
+
/**
|
|
19
|
+
* The call's JSON arguments.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssistantTranscriptToolCall
|
|
22
|
+
*/
|
|
23
|
+
arguments: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssistantTranscriptToolCall
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssistantTranscriptToolCall
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AssistantTranscriptToolCall interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAssistantTranscriptToolCall(value: object): value is AssistantTranscriptToolCall;
|
|
41
|
+
export declare function AssistantTranscriptToolCallFromJSON(json: any): AssistantTranscriptToolCall;
|
|
42
|
+
export declare function AssistantTranscriptToolCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantTranscriptToolCall;
|
|
43
|
+
export declare function AssistantTranscriptToolCallToJSON(json: any): AssistantTranscriptToolCall;
|
|
44
|
+
export declare function AssistantTranscriptToolCallToJSONTyped(value?: AssistantTranscriptToolCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AssistantTranscriptToolCall interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAssistantTranscriptToolCall(value) {
|
|
18
|
+
if (!('arguments' in value) || value['arguments'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function AssistantTranscriptToolCallFromJSON(json) {
|
|
27
|
+
return AssistantTranscriptToolCallFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function AssistantTranscriptToolCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'arguments': json['arguments'],
|
|
35
|
+
'id': json['id'],
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function AssistantTranscriptToolCallToJSON(json) {
|
|
40
|
+
return AssistantTranscriptToolCallToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AssistantTranscriptToolCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'arguments': value['arguments'],
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ScriptAuditEntryActorTypeEnum = {
|
|
18
|
+
User: 'user',
|
|
19
|
+
System: 'system',
|
|
20
|
+
Anonymous: 'anonymous'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ScriptAuditEntry interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfScriptAuditEntry(value) {
|
|
26
|
+
if (!('actorType' in value) || value['actorType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('modifiedAt' in value) || value['modifiedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ScriptAuditEntryFromJSON(json) {
|
|
35
|
+
return ScriptAuditEntryFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ScriptAuditEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'actorType': json['actorType'],
|
|
43
|
+
'kind': json['kind'],
|
|
44
|
+
'modifiedAt': (new Date(json['modifiedAt'])),
|
|
45
|
+
'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
|
|
46
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ScriptAuditEntryToJSON(json) {
|
|
50
|
+
return ScriptAuditEntryToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ScriptAuditEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'actorType': value['actorType'],
|
|
58
|
+
'kind': value['kind'],
|
|
59
|
+
'modifiedAt': ((value['modifiedAt']).toISOString()),
|
|
60
|
+
'modifiedBy': value['modifiedBy'],
|
|
61
|
+
'params': value['params'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ScriptAuditEntryFromJSON, ScriptAuditEntryToJSON, } from './ScriptAuditEntry';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ScriptAuditResBody interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfScriptAuditResBody(value) {
|
|
19
|
+
if (!('entries' in value) || value['entries'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ScriptAuditResBodyFromJSON(json) {
|
|
24
|
+
return ScriptAuditResBodyFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ScriptAuditResBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'entries': (json['entries'].map(ScriptAuditEntryFromJSON)),
|
|
32
|
+
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function ScriptAuditResBodyToJSON(json) {
|
|
36
|
+
return ScriptAuditResBodyToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ScriptAuditResBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'entries': (value['entries'].map(ScriptAuditEntryToJSON)),
|
|
44
|
+
'nextCursor': value['nextCursor'],
|
|
45
|
+
};
|
|
46
|
+
}
|