@spaciv/sdk 0.1.1 → 0.1.3

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.
Files changed (191) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +24 -24
  4. package/dist/apis/AccountsApi.js +12 -12
  5. package/dist/apis/AuditLogApi.d.ts +1 -1
  6. package/dist/apis/AuthenticationApi.d.ts +8 -8
  7. package/dist/apis/AuthenticationApi.js +4 -4
  8. package/dist/apis/ScriptsApi.d.ts +383 -0
  9. package/dist/apis/ScriptsApi.js +559 -0
  10. package/dist/apis/UsersApi.d.ts +4 -4
  11. package/dist/apis/UsersApi.js +2 -2
  12. package/dist/apis/index.d.ts +1 -0
  13. package/dist/apis/index.js +1 -0
  14. package/dist/esm/apis/AccountsApi.d.ts +24 -24
  15. package/dist/esm/apis/AccountsApi.js +12 -12
  16. package/dist/esm/apis/AuditLogApi.d.ts +1 -1
  17. package/dist/esm/apis/AuthenticationApi.d.ts +8 -8
  18. package/dist/esm/apis/AuthenticationApi.js +4 -4
  19. package/dist/esm/apis/ScriptsApi.d.ts +383 -0
  20. package/dist/esm/apis/ScriptsApi.js +555 -0
  21. package/dist/esm/apis/UsersApi.d.ts +4 -4
  22. package/dist/esm/apis/UsersApi.js +2 -2
  23. package/dist/esm/apis/index.d.ts +1 -0
  24. package/dist/esm/apis/index.js +1 -0
  25. package/dist/esm/models/APIKey.d.ts +6 -0
  26. package/dist/esm/models/APIKey.js +2 -0
  27. package/dist/esm/models/ScriptAuditEntry.d.ts +67 -0
  28. package/dist/esm/models/ScriptAuditEntry.js +63 -0
  29. package/dist/esm/models/ScriptAuditResBody.d.ts +39 -0
  30. package/dist/esm/models/ScriptAuditResBody.js +46 -0
  31. package/dist/esm/models/ScriptDetail.d.ts +161 -0
  32. package/dist/esm/models/ScriptDetail.js +122 -0
  33. package/dist/esm/models/ScriptExport.d.ts +174 -0
  34. package/dist/esm/models/ScriptExport.js +129 -0
  35. package/dist/esm/models/ScriptExportResBody.d.ts +39 -0
  36. package/dist/esm/models/ScriptExportResBody.js +48 -0
  37. package/dist/esm/models/ScriptExportRun.d.ts +92 -0
  38. package/dist/esm/models/ScriptExportRun.js +73 -0
  39. package/dist/esm/models/ScriptKey.d.ts +64 -0
  40. package/dist/esm/models/ScriptKey.js +58 -0
  41. package/dist/esm/models/ScriptListResBody.d.ts +33 -0
  42. package/dist/esm/models/ScriptListResBody.js +44 -0
  43. package/dist/esm/models/ScriptLogLine.d.ts +38 -0
  44. package/dist/esm/models/ScriptLogLine.js +47 -0
  45. package/dist/esm/models/ScriptPatchReqBody.d.ts +98 -0
  46. package/dist/esm/models/ScriptPatchReqBody.js +70 -0
  47. package/dist/esm/models/ScriptPostReqBody.d.ts +113 -0
  48. package/dist/esm/models/ScriptPostReqBody.js +82 -0
  49. package/dist/esm/models/ScriptRun.d.ts +86 -0
  50. package/dist/esm/models/ScriptRun.js +69 -0
  51. package/dist/esm/models/ScriptRunLogsResBody.d.ts +39 -0
  52. package/dist/esm/models/ScriptRunLogsResBody.js +48 -0
  53. package/dist/esm/models/ScriptRunsResBody.d.ts +39 -0
  54. package/dist/esm/models/ScriptRunsResBody.js +46 -0
  55. package/dist/esm/models/ScriptRuntime.d.ts +62 -0
  56. package/dist/esm/models/ScriptRuntime.js +51 -0
  57. package/dist/esm/models/ScriptSchedule.d.ts +38 -0
  58. package/dist/esm/models/ScriptSchedule.js +43 -0
  59. package/dist/esm/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
  60. package/dist/esm/models/ScriptSchedulePreviewReqBody.js +45 -0
  61. package/dist/esm/models/ScriptSchedulePreviewResBody.d.ts +44 -0
  62. package/dist/esm/models/ScriptSchedulePreviewResBody.js +49 -0
  63. package/dist/esm/models/ScriptSecretsReqBody.d.ts +40 -0
  64. package/dist/esm/models/ScriptSecretsReqBody.js +43 -0
  65. package/dist/esm/models/ScriptSecretsResBody.d.ts +134 -0
  66. package/dist/esm/models/ScriptSecretsResBody.js +111 -0
  67. package/dist/esm/models/ScriptSummary.d.ts +128 -0
  68. package/dist/esm/models/ScriptSummary.js +107 -0
  69. package/dist/esm/models/ScriptWebhookResBody.d.ts +32 -0
  70. package/dist/esm/models/ScriptWebhookResBody.js +43 -0
  71. package/dist/esm/models/VariableData.d.ts +2 -1
  72. package/dist/esm/models/VariableData.js +7 -0
  73. package/dist/esm/models/VariableDataOneOf2.d.ts +3 -3
  74. package/dist/esm/models/VariableDataOneOf2.js +4 -4
  75. package/dist/esm/models/VariableDataOneOf3.d.ts +3 -3
  76. package/dist/esm/models/VariableDataOneOf3.js +4 -4
  77. package/dist/esm/models/VariableDataOneOf4.d.ts +3 -3
  78. package/dist/esm/models/VariableDataOneOf4.js +4 -4
  79. package/dist/esm/models/VariableDataOneOf5.d.ts +3 -2
  80. package/dist/esm/models/VariableDataOneOf5.js +4 -3
  81. package/dist/esm/models/VariableDataOneOf6.d.ts +1 -1
  82. package/dist/esm/models/VariableDataOneOf6.js +3 -3
  83. package/dist/esm/models/VariableDataOneOf7.d.ts +32 -0
  84. package/dist/esm/models/VariableDataOneOf7.js +43 -0
  85. package/dist/esm/models/VariableDate.d.ts +50 -0
  86. package/dist/esm/models/VariableDate.js +55 -0
  87. package/dist/esm/models/index.d.ts +24 -0
  88. package/dist/esm/models/index.js +24 -0
  89. package/dist/models/APIKey.d.ts +6 -0
  90. package/dist/models/APIKey.js +2 -0
  91. package/dist/models/ScriptAuditEntry.d.ts +67 -0
  92. package/dist/models/ScriptAuditEntry.js +71 -0
  93. package/dist/models/ScriptAuditResBody.d.ts +39 -0
  94. package/dist/models/ScriptAuditResBody.js +53 -0
  95. package/dist/models/ScriptDetail.d.ts +161 -0
  96. package/dist/models/ScriptDetail.js +130 -0
  97. package/dist/models/ScriptExport.d.ts +174 -0
  98. package/dist/models/ScriptExport.js +137 -0
  99. package/dist/models/ScriptExportResBody.d.ts +39 -0
  100. package/dist/models/ScriptExportResBody.js +55 -0
  101. package/dist/models/ScriptExportRun.d.ts +92 -0
  102. package/dist/models/ScriptExportRun.js +80 -0
  103. package/dist/models/ScriptKey.d.ts +64 -0
  104. package/dist/models/ScriptKey.js +66 -0
  105. package/dist/models/ScriptListResBody.d.ts +33 -0
  106. package/dist/models/ScriptListResBody.js +51 -0
  107. package/dist/models/ScriptLogLine.d.ts +38 -0
  108. package/dist/models/ScriptLogLine.js +54 -0
  109. package/dist/models/ScriptPatchReqBody.d.ts +98 -0
  110. package/dist/models/ScriptPatchReqBody.js +78 -0
  111. package/dist/models/ScriptPostReqBody.d.ts +113 -0
  112. package/dist/models/ScriptPostReqBody.js +90 -0
  113. package/dist/models/ScriptRun.d.ts +86 -0
  114. package/dist/models/ScriptRun.js +76 -0
  115. package/dist/models/ScriptRunLogsResBody.d.ts +39 -0
  116. package/dist/models/ScriptRunLogsResBody.js +55 -0
  117. package/dist/models/ScriptRunsResBody.d.ts +39 -0
  118. package/dist/models/ScriptRunsResBody.js +53 -0
  119. package/dist/models/ScriptRuntime.d.ts +62 -0
  120. package/dist/models/ScriptRuntime.js +58 -0
  121. package/dist/models/ScriptSchedule.d.ts +38 -0
  122. package/dist/models/ScriptSchedule.js +50 -0
  123. package/dist/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
  124. package/dist/models/ScriptSchedulePreviewReqBody.js +52 -0
  125. package/dist/models/ScriptSchedulePreviewResBody.d.ts +44 -0
  126. package/dist/models/ScriptSchedulePreviewResBody.js +56 -0
  127. package/dist/models/ScriptSecretsReqBody.d.ts +40 -0
  128. package/dist/models/ScriptSecretsReqBody.js +50 -0
  129. package/dist/models/ScriptSecretsResBody.d.ts +134 -0
  130. package/dist/models/ScriptSecretsResBody.js +119 -0
  131. package/dist/models/ScriptSummary.d.ts +128 -0
  132. package/dist/models/ScriptSummary.js +115 -0
  133. package/dist/models/ScriptWebhookResBody.d.ts +32 -0
  134. package/dist/models/ScriptWebhookResBody.js +50 -0
  135. package/dist/models/VariableData.d.ts +2 -1
  136. package/dist/models/VariableData.js +7 -0
  137. package/dist/models/VariableDataOneOf2.d.ts +3 -3
  138. package/dist/models/VariableDataOneOf2.js +4 -4
  139. package/dist/models/VariableDataOneOf3.d.ts +3 -3
  140. package/dist/models/VariableDataOneOf3.js +4 -4
  141. package/dist/models/VariableDataOneOf4.d.ts +3 -3
  142. package/dist/models/VariableDataOneOf4.js +4 -4
  143. package/dist/models/VariableDataOneOf5.d.ts +3 -2
  144. package/dist/models/VariableDataOneOf5.js +4 -3
  145. package/dist/models/VariableDataOneOf6.d.ts +1 -1
  146. package/dist/models/VariableDataOneOf6.js +3 -3
  147. package/dist/models/VariableDataOneOf7.d.ts +32 -0
  148. package/dist/models/VariableDataOneOf7.js +50 -0
  149. package/dist/models/VariableDate.d.ts +50 -0
  150. package/dist/models/VariableDate.js +62 -0
  151. package/dist/models/index.d.ts +24 -0
  152. package/dist/models/index.js +24 -0
  153. package/package.json +1 -1
  154. package/src/apis/AccountsApi.ts +24 -24
  155. package/src/apis/AuditLogApi.ts +1 -1
  156. package/src/apis/AuthenticationApi.ts +8 -8
  157. package/src/apis/ScriptsApi.ts +984 -0
  158. package/src/apis/UsersApi.ts +4 -4
  159. package/src/apis/index.ts +1 -0
  160. package/src/models/APIKey.ts +8 -0
  161. package/src/models/ScriptAuditEntry.ts +112 -0
  162. package/src/models/ScriptAuditResBody.ts +82 -0
  163. package/src/models/ScriptDetail.ts +265 -0
  164. package/src/models/ScriptExport.ts +289 -0
  165. package/src/models/ScriptExportResBody.ts +83 -0
  166. package/src/models/ScriptExportRun.ts +151 -0
  167. package/src/models/ScriptKey.ts +109 -0
  168. package/src/models/ScriptListResBody.ts +74 -0
  169. package/src/models/ScriptLogLine.ts +75 -0
  170. package/src/models/ScriptPatchReqBody.ts +158 -0
  171. package/src/models/ScriptPostReqBody.ts +176 -0
  172. package/src/models/ScriptRun.ts +142 -0
  173. package/src/models/ScriptRunLogsResBody.ts +83 -0
  174. package/src/models/ScriptRunsResBody.ts +82 -0
  175. package/src/models/ScriptRuntime.ts +105 -0
  176. package/src/models/ScriptSchedule.ts +73 -0
  177. package/src/models/ScriptSchedulePreviewReqBody.ts +81 -0
  178. package/src/models/ScriptSchedulePreviewResBody.ts +83 -0
  179. package/src/models/ScriptSecretsReqBody.ts +73 -0
  180. package/src/models/ScriptSecretsResBody.ts +225 -0
  181. package/src/models/ScriptSummary.ts +216 -0
  182. package/src/models/ScriptWebhookResBody.ts +66 -0
  183. package/src/models/VariableData.ts +14 -1
  184. package/src/models/VariableDataOneOf2.ts +11 -11
  185. package/src/models/VariableDataOneOf3.ts +11 -11
  186. package/src/models/VariableDataOneOf4.ts +11 -11
  187. package/src/models/VariableDataOneOf5.ts +13 -5
  188. package/src/models/VariableDataOneOf6.ts +4 -4
  189. package/src/models/VariableDataOneOf7.ts +66 -0
  190. package/src/models/VariableDate.ts +93 -0
  191. package/src/models/index.ts +24 -0
@@ -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 { ScriptLogLine } from './ScriptLogLine';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScriptRunLogsResBody
17
+ */
18
+ export interface ScriptRunLogsResBody {
19
+ /**
20
+ *
21
+ * @type {Array<ScriptLogLine>}
22
+ * @memberof ScriptRunLogsResBody
23
+ */
24
+ lines: Array<ScriptLogLine>;
25
+ /**
26
+ * Set when the run wrote more output than is kept, so some of it is missing.
27
+ * @type {boolean}
28
+ * @memberof ScriptRunLogsResBody
29
+ */
30
+ truncated: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ScriptRunLogsResBody interface.
34
+ */
35
+ export declare function instanceOfScriptRunLogsResBody(value: object): value is ScriptRunLogsResBody;
36
+ export declare function ScriptRunLogsResBodyFromJSON(json: any): ScriptRunLogsResBody;
37
+ export declare function ScriptRunLogsResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptRunLogsResBody;
38
+ export declare function ScriptRunLogsResBodyToJSON(json: any): ScriptRunLogsResBody;
39
+ export declare function ScriptRunLogsResBodyToJSONTyped(value?: ScriptRunLogsResBody | 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.instanceOfScriptRunLogsResBody = instanceOfScriptRunLogsResBody;
17
+ exports.ScriptRunLogsResBodyFromJSON = ScriptRunLogsResBodyFromJSON;
18
+ exports.ScriptRunLogsResBodyFromJSONTyped = ScriptRunLogsResBodyFromJSONTyped;
19
+ exports.ScriptRunLogsResBodyToJSON = ScriptRunLogsResBodyToJSON;
20
+ exports.ScriptRunLogsResBodyToJSONTyped = ScriptRunLogsResBodyToJSONTyped;
21
+ const ScriptLogLine_1 = require("./ScriptLogLine");
22
+ /**
23
+ * Check if a given object implements the ScriptRunLogsResBody interface.
24
+ */
25
+ function instanceOfScriptRunLogsResBody(value) {
26
+ if (!('lines' in value) || value['lines'] === undefined)
27
+ return false;
28
+ if (!('truncated' in value) || value['truncated'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ScriptRunLogsResBodyFromJSON(json) {
33
+ return ScriptRunLogsResBodyFromJSONTyped(json, false);
34
+ }
35
+ function ScriptRunLogsResBodyFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'lines': (json['lines'].map(ScriptLogLine_1.ScriptLogLineFromJSON)),
41
+ 'truncated': json['truncated'],
42
+ };
43
+ }
44
+ function ScriptRunLogsResBodyToJSON(json) {
45
+ return ScriptRunLogsResBodyToJSONTyped(json, false);
46
+ }
47
+ function ScriptRunLogsResBodyToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'lines': (value['lines'].map(ScriptLogLine_1.ScriptLogLineToJSON)),
53
+ 'truncated': value['truncated'],
54
+ };
55
+ }
@@ -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 { ScriptRun } from './ScriptRun';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScriptRunsResBody
17
+ */
18
+ export interface ScriptRunsResBody {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ScriptRunsResBody
23
+ */
24
+ nextCursor?: string;
25
+ /**
26
+ *
27
+ * @type {Array<ScriptRun>}
28
+ * @memberof ScriptRunsResBody
29
+ */
30
+ runs: Array<ScriptRun>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ScriptRunsResBody interface.
34
+ */
35
+ export declare function instanceOfScriptRunsResBody(value: object): value is ScriptRunsResBody;
36
+ export declare function ScriptRunsResBodyFromJSON(json: any): ScriptRunsResBody;
37
+ export declare function ScriptRunsResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptRunsResBody;
38
+ export declare function ScriptRunsResBodyToJSON(json: any): ScriptRunsResBody;
39
+ export declare function ScriptRunsResBodyToJSONTyped(value?: ScriptRunsResBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfScriptRunsResBody = instanceOfScriptRunsResBody;
17
+ exports.ScriptRunsResBodyFromJSON = ScriptRunsResBodyFromJSON;
18
+ exports.ScriptRunsResBodyFromJSONTyped = ScriptRunsResBodyFromJSONTyped;
19
+ exports.ScriptRunsResBodyToJSON = ScriptRunsResBodyToJSON;
20
+ exports.ScriptRunsResBodyToJSONTyped = ScriptRunsResBodyToJSONTyped;
21
+ const ScriptRun_1 = require("./ScriptRun");
22
+ /**
23
+ * Check if a given object implements the ScriptRunsResBody interface.
24
+ */
25
+ function instanceOfScriptRunsResBody(value) {
26
+ if (!('runs' in value) || value['runs'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ScriptRunsResBodyFromJSON(json) {
31
+ return ScriptRunsResBodyFromJSONTyped(json, false);
32
+ }
33
+ function ScriptRunsResBodyFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
39
+ 'runs': (json['runs'].map(ScriptRun_1.ScriptRunFromJSON)),
40
+ };
41
+ }
42
+ function ScriptRunsResBodyToJSON(json) {
43
+ return ScriptRunsResBodyToJSONTyped(json, false);
44
+ }
45
+ function ScriptRunsResBodyToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'nextCursor': value['nextCursor'],
51
+ 'runs': (value['runs'].map(ScriptRun_1.ScriptRunToJSON)),
52
+ };
53
+ }
@@ -0,0 +1,62 @@
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 ScriptRuntime
16
+ */
17
+ export interface ScriptRuntime {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScriptRuntime
22
+ */
23
+ buildRunId?: string;
24
+ /**
25
+ * State of the latest dependency build.
26
+ * @type {string}
27
+ * @memberof ScriptRuntime
28
+ */
29
+ buildState?: string;
30
+ /**
31
+ * vCPU units per run (1024 = 1 vCPU).
32
+ * @type {number}
33
+ * @memberof ScriptRuntime
34
+ */
35
+ cpu?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ScriptRuntime
40
+ */
41
+ memoryMb?: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof ScriptRuntime
46
+ */
47
+ nextRunAt?: Date;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ScriptRuntime
52
+ */
53
+ timeoutSeconds?: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ScriptRuntime interface.
57
+ */
58
+ export declare function instanceOfScriptRuntime(value: object): value is ScriptRuntime;
59
+ export declare function ScriptRuntimeFromJSON(json: any): ScriptRuntime;
60
+ export declare function ScriptRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptRuntime;
61
+ export declare function ScriptRuntimeToJSON(json: any): ScriptRuntime;
62
+ export declare function ScriptRuntimeToJSONTyped(value?: ScriptRuntime | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfScriptRuntime = instanceOfScriptRuntime;
17
+ exports.ScriptRuntimeFromJSON = ScriptRuntimeFromJSON;
18
+ exports.ScriptRuntimeFromJSONTyped = ScriptRuntimeFromJSONTyped;
19
+ exports.ScriptRuntimeToJSON = ScriptRuntimeToJSON;
20
+ exports.ScriptRuntimeToJSONTyped = ScriptRuntimeToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptRuntime interface.
23
+ */
24
+ function instanceOfScriptRuntime(value) {
25
+ return true;
26
+ }
27
+ function ScriptRuntimeFromJSON(json) {
28
+ return ScriptRuntimeFromJSONTyped(json, false);
29
+ }
30
+ function ScriptRuntimeFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'buildRunId': json['buildRunId'] == null ? undefined : json['buildRunId'],
36
+ 'buildState': json['buildState'] == null ? undefined : json['buildState'],
37
+ 'cpu': json['cpu'] == null ? undefined : json['cpu'],
38
+ 'memoryMb': json['memoryMb'] == null ? undefined : json['memoryMb'],
39
+ 'nextRunAt': json['nextRunAt'] == null ? undefined : (new Date(json['nextRunAt'])),
40
+ 'timeoutSeconds': json['timeoutSeconds'] == null ? undefined : json['timeoutSeconds'],
41
+ };
42
+ }
43
+ function ScriptRuntimeToJSON(json) {
44
+ return ScriptRuntimeToJSONTyped(json, false);
45
+ }
46
+ function ScriptRuntimeToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'buildRunId': value['buildRunId'],
52
+ 'buildState': value['buildState'],
53
+ 'cpu': value['cpu'],
54
+ 'memoryMb': value['memoryMb'],
55
+ 'nextRunAt': value['nextRunAt'] == null ? undefined : ((value['nextRunAt']).toISOString()),
56
+ 'timeoutSeconds': value['timeoutSeconds'],
57
+ };
58
+ }
@@ -0,0 +1,38 @@
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 ScriptSchedule
16
+ */
17
+ export interface ScriptSchedule {
18
+ /**
19
+ * Five-field cron expression (minute, hour, day of month, month, day of week). Empty means the script only runs from its webhook.
20
+ * @type {string}
21
+ * @memberof ScriptSchedule
22
+ */
23
+ cron?: string;
24
+ /**
25
+ * IANA time zone the cron expression is evaluated in. Defaults to UTC.
26
+ * @type {string}
27
+ * @memberof ScriptSchedule
28
+ */
29
+ timezone?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ScriptSchedule interface.
33
+ */
34
+ export declare function instanceOfScriptSchedule(value: object): value is ScriptSchedule;
35
+ export declare function ScriptScheduleFromJSON(json: any): ScriptSchedule;
36
+ export declare function ScriptScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSchedule;
37
+ export declare function ScriptScheduleToJSON(json: any): ScriptSchedule;
38
+ export declare function ScriptScheduleToJSONTyped(value?: ScriptSchedule | 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.instanceOfScriptSchedule = instanceOfScriptSchedule;
17
+ exports.ScriptScheduleFromJSON = ScriptScheduleFromJSON;
18
+ exports.ScriptScheduleFromJSONTyped = ScriptScheduleFromJSONTyped;
19
+ exports.ScriptScheduleToJSON = ScriptScheduleToJSON;
20
+ exports.ScriptScheduleToJSONTyped = ScriptScheduleToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptSchedule interface.
23
+ */
24
+ function instanceOfScriptSchedule(value) {
25
+ return true;
26
+ }
27
+ function ScriptScheduleFromJSON(json) {
28
+ return ScriptScheduleFromJSONTyped(json, false);
29
+ }
30
+ function ScriptScheduleFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'cron': json['cron'] == null ? undefined : json['cron'],
36
+ 'timezone': json['timezone'] == null ? undefined : json['timezone'],
37
+ };
38
+ }
39
+ function ScriptScheduleToJSON(json) {
40
+ return ScriptScheduleToJSONTyped(json, false);
41
+ }
42
+ function ScriptScheduleToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'cron': value['cron'],
48
+ 'timezone': value['timezone'],
49
+ };
50
+ }
@@ -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 ScriptSchedulePreviewReqBody
16
+ */
17
+ export interface ScriptSchedulePreviewReqBody {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ScriptSchedulePreviewReqBody
22
+ */
23
+ count?: number;
24
+ /**
25
+ * Five-field cron expression (minute, hour, day of month, month, day of week). Empty means the script only runs from its webhook.
26
+ * @type {string}
27
+ * @memberof ScriptSchedulePreviewReqBody
28
+ */
29
+ cron?: string;
30
+ /**
31
+ * IANA time zone the cron expression is evaluated in. Defaults to UTC.
32
+ * @type {string}
33
+ * @memberof ScriptSchedulePreviewReqBody
34
+ */
35
+ timezone?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ScriptSchedulePreviewReqBody interface.
39
+ */
40
+ export declare function instanceOfScriptSchedulePreviewReqBody(value: object): value is ScriptSchedulePreviewReqBody;
41
+ export declare function ScriptSchedulePreviewReqBodyFromJSON(json: any): ScriptSchedulePreviewReqBody;
42
+ export declare function ScriptSchedulePreviewReqBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSchedulePreviewReqBody;
43
+ export declare function ScriptSchedulePreviewReqBodyToJSON(json: any): ScriptSchedulePreviewReqBody;
44
+ export declare function ScriptSchedulePreviewReqBodyToJSONTyped(value?: ScriptSchedulePreviewReqBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfScriptSchedulePreviewReqBody = instanceOfScriptSchedulePreviewReqBody;
17
+ exports.ScriptSchedulePreviewReqBodyFromJSON = ScriptSchedulePreviewReqBodyFromJSON;
18
+ exports.ScriptSchedulePreviewReqBodyFromJSONTyped = ScriptSchedulePreviewReqBodyFromJSONTyped;
19
+ exports.ScriptSchedulePreviewReqBodyToJSON = ScriptSchedulePreviewReqBodyToJSON;
20
+ exports.ScriptSchedulePreviewReqBodyToJSONTyped = ScriptSchedulePreviewReqBodyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptSchedulePreviewReqBody interface.
23
+ */
24
+ function instanceOfScriptSchedulePreviewReqBody(value) {
25
+ return true;
26
+ }
27
+ function ScriptSchedulePreviewReqBodyFromJSON(json) {
28
+ return ScriptSchedulePreviewReqBodyFromJSONTyped(json, false);
29
+ }
30
+ function ScriptSchedulePreviewReqBodyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'count': json['count'] == null ? undefined : json['count'],
36
+ 'cron': json['cron'] == null ? undefined : json['cron'],
37
+ 'timezone': json['timezone'] == null ? undefined : json['timezone'],
38
+ };
39
+ }
40
+ function ScriptSchedulePreviewReqBodyToJSON(json) {
41
+ return ScriptSchedulePreviewReqBodyToJSONTyped(json, false);
42
+ }
43
+ function ScriptSchedulePreviewReqBodyToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'count': value['count'],
49
+ 'cron': value['cron'],
50
+ 'timezone': value['timezone'],
51
+ };
52
+ }
@@ -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 ScriptSchedulePreviewResBody
16
+ */
17
+ export interface ScriptSchedulePreviewResBody {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScriptSchedulePreviewResBody
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {Array<Date>}
27
+ * @memberof ScriptSchedulePreviewResBody
28
+ */
29
+ nextRuns: Array<Date>;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ScriptSchedulePreviewResBody
34
+ */
35
+ valid: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ScriptSchedulePreviewResBody interface.
39
+ */
40
+ export declare function instanceOfScriptSchedulePreviewResBody(value: object): value is ScriptSchedulePreviewResBody;
41
+ export declare function ScriptSchedulePreviewResBodyFromJSON(json: any): ScriptSchedulePreviewResBody;
42
+ export declare function ScriptSchedulePreviewResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSchedulePreviewResBody;
43
+ export declare function ScriptSchedulePreviewResBodyToJSON(json: any): ScriptSchedulePreviewResBody;
44
+ export declare function ScriptSchedulePreviewResBodyToJSONTyped(value?: ScriptSchedulePreviewResBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfScriptSchedulePreviewResBody = instanceOfScriptSchedulePreviewResBody;
17
+ exports.ScriptSchedulePreviewResBodyFromJSON = ScriptSchedulePreviewResBodyFromJSON;
18
+ exports.ScriptSchedulePreviewResBodyFromJSONTyped = ScriptSchedulePreviewResBodyFromJSONTyped;
19
+ exports.ScriptSchedulePreviewResBodyToJSON = ScriptSchedulePreviewResBodyToJSON;
20
+ exports.ScriptSchedulePreviewResBodyToJSONTyped = ScriptSchedulePreviewResBodyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptSchedulePreviewResBody interface.
23
+ */
24
+ function instanceOfScriptSchedulePreviewResBody(value) {
25
+ if (!('nextRuns' in value) || value['nextRuns'] === undefined)
26
+ return false;
27
+ if (!('valid' in value) || value['valid'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ScriptSchedulePreviewResBodyFromJSON(json) {
32
+ return ScriptSchedulePreviewResBodyFromJSONTyped(json, false);
33
+ }
34
+ function ScriptSchedulePreviewResBodyFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'error': json['error'] == null ? undefined : json['error'],
40
+ 'nextRuns': json['nextRuns'],
41
+ 'valid': json['valid'],
42
+ };
43
+ }
44
+ function ScriptSchedulePreviewResBodyToJSON(json) {
45
+ return ScriptSchedulePreviewResBodyToJSONTyped(json, false);
46
+ }
47
+ function ScriptSchedulePreviewResBodyToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'error': value['error'],
53
+ 'nextRuns': value['nextRuns'],
54
+ 'valid': value['valid'],
55
+ };
56
+ }
@@ -0,0 +1,40 @@
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 ScriptSecretsReqBody
16
+ */
17
+ export interface ScriptSecretsReqBody {
18
+ /**
19
+ * Names of secrets to delete.
20
+ * @type {Array<string>}
21
+ * @memberof ScriptSecretsReqBody
22
+ */
23
+ remove?: Array<string>;
24
+ /**
25
+ * Secrets to add or replace, keyed by environment variable name.
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof ScriptSecretsReqBody
28
+ */
29
+ set?: {
30
+ [key: string]: string;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the ScriptSecretsReqBody interface.
35
+ */
36
+ export declare function instanceOfScriptSecretsReqBody(value: object): value is ScriptSecretsReqBody;
37
+ export declare function ScriptSecretsReqBodyFromJSON(json: any): ScriptSecretsReqBody;
38
+ export declare function ScriptSecretsReqBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSecretsReqBody;
39
+ export declare function ScriptSecretsReqBodyToJSON(json: any): ScriptSecretsReqBody;
40
+ export declare function ScriptSecretsReqBodyToJSONTyped(value?: ScriptSecretsReqBody | null, ignoreDiscriminator?: boolean): any;