@spaciv/sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/.openapi-generator/FILES +23 -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/index.d.ts +22 -0
  72. package/dist/esm/models/index.js +22 -0
  73. package/dist/models/APIKey.d.ts +6 -0
  74. package/dist/models/APIKey.js +2 -0
  75. package/dist/models/ScriptAuditEntry.d.ts +67 -0
  76. package/dist/models/ScriptAuditEntry.js +71 -0
  77. package/dist/models/ScriptAuditResBody.d.ts +39 -0
  78. package/dist/models/ScriptAuditResBody.js +53 -0
  79. package/dist/models/ScriptDetail.d.ts +161 -0
  80. package/dist/models/ScriptDetail.js +130 -0
  81. package/dist/models/ScriptExport.d.ts +174 -0
  82. package/dist/models/ScriptExport.js +137 -0
  83. package/dist/models/ScriptExportResBody.d.ts +39 -0
  84. package/dist/models/ScriptExportResBody.js +55 -0
  85. package/dist/models/ScriptExportRun.d.ts +92 -0
  86. package/dist/models/ScriptExportRun.js +80 -0
  87. package/dist/models/ScriptKey.d.ts +64 -0
  88. package/dist/models/ScriptKey.js +66 -0
  89. package/dist/models/ScriptListResBody.d.ts +33 -0
  90. package/dist/models/ScriptListResBody.js +51 -0
  91. package/dist/models/ScriptLogLine.d.ts +38 -0
  92. package/dist/models/ScriptLogLine.js +54 -0
  93. package/dist/models/ScriptPatchReqBody.d.ts +98 -0
  94. package/dist/models/ScriptPatchReqBody.js +78 -0
  95. package/dist/models/ScriptPostReqBody.d.ts +113 -0
  96. package/dist/models/ScriptPostReqBody.js +90 -0
  97. package/dist/models/ScriptRun.d.ts +86 -0
  98. package/dist/models/ScriptRun.js +76 -0
  99. package/dist/models/ScriptRunLogsResBody.d.ts +39 -0
  100. package/dist/models/ScriptRunLogsResBody.js +55 -0
  101. package/dist/models/ScriptRunsResBody.d.ts +39 -0
  102. package/dist/models/ScriptRunsResBody.js +53 -0
  103. package/dist/models/ScriptRuntime.d.ts +62 -0
  104. package/dist/models/ScriptRuntime.js +58 -0
  105. package/dist/models/ScriptSchedule.d.ts +38 -0
  106. package/dist/models/ScriptSchedule.js +50 -0
  107. package/dist/models/ScriptSchedulePreviewReqBody.d.ts +44 -0
  108. package/dist/models/ScriptSchedulePreviewReqBody.js +52 -0
  109. package/dist/models/ScriptSchedulePreviewResBody.d.ts +44 -0
  110. package/dist/models/ScriptSchedulePreviewResBody.js +56 -0
  111. package/dist/models/ScriptSecretsReqBody.d.ts +40 -0
  112. package/dist/models/ScriptSecretsReqBody.js +50 -0
  113. package/dist/models/ScriptSecretsResBody.d.ts +134 -0
  114. package/dist/models/ScriptSecretsResBody.js +119 -0
  115. package/dist/models/ScriptSummary.d.ts +128 -0
  116. package/dist/models/ScriptSummary.js +115 -0
  117. package/dist/models/ScriptWebhookResBody.d.ts +32 -0
  118. package/dist/models/ScriptWebhookResBody.js +50 -0
  119. package/dist/models/index.d.ts +22 -0
  120. package/dist/models/index.js +22 -0
  121. package/package.json +1 -1
  122. package/src/apis/AccountsApi.ts +24 -24
  123. package/src/apis/AuditLogApi.ts +1 -1
  124. package/src/apis/AuthenticationApi.ts +8 -8
  125. package/src/apis/ScriptsApi.ts +984 -0
  126. package/src/apis/UsersApi.ts +4 -4
  127. package/src/apis/index.ts +1 -0
  128. package/src/models/APIKey.ts +8 -0
  129. package/src/models/ScriptAuditEntry.ts +112 -0
  130. package/src/models/ScriptAuditResBody.ts +82 -0
  131. package/src/models/ScriptDetail.ts +265 -0
  132. package/src/models/ScriptExport.ts +289 -0
  133. package/src/models/ScriptExportResBody.ts +83 -0
  134. package/src/models/ScriptExportRun.ts +151 -0
  135. package/src/models/ScriptKey.ts +109 -0
  136. package/src/models/ScriptListResBody.ts +74 -0
  137. package/src/models/ScriptLogLine.ts +75 -0
  138. package/src/models/ScriptPatchReqBody.ts +158 -0
  139. package/src/models/ScriptPostReqBody.ts +176 -0
  140. package/src/models/ScriptRun.ts +142 -0
  141. package/src/models/ScriptRunLogsResBody.ts +83 -0
  142. package/src/models/ScriptRunsResBody.ts +82 -0
  143. package/src/models/ScriptRuntime.ts +105 -0
  144. package/src/models/ScriptSchedule.ts +73 -0
  145. package/src/models/ScriptSchedulePreviewReqBody.ts +81 -0
  146. package/src/models/ScriptSchedulePreviewResBody.ts +83 -0
  147. package/src/models/ScriptSecretsReqBody.ts +73 -0
  148. package/src/models/ScriptSecretsResBody.ts +225 -0
  149. package/src/models/ScriptSummary.ts +216 -0
  150. package/src/models/ScriptWebhookResBody.ts +66 -0
  151. package/src/models/index.ts +22 -0
@@ -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;
@@ -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.instanceOfScriptSecretsReqBody = instanceOfScriptSecretsReqBody;
17
+ exports.ScriptSecretsReqBodyFromJSON = ScriptSecretsReqBodyFromJSON;
18
+ exports.ScriptSecretsReqBodyFromJSONTyped = ScriptSecretsReqBodyFromJSONTyped;
19
+ exports.ScriptSecretsReqBodyToJSON = ScriptSecretsReqBodyToJSON;
20
+ exports.ScriptSecretsReqBodyToJSONTyped = ScriptSecretsReqBodyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ScriptSecretsReqBody interface.
23
+ */
24
+ function instanceOfScriptSecretsReqBody(value) {
25
+ return true;
26
+ }
27
+ function ScriptSecretsReqBodyFromJSON(json) {
28
+ return ScriptSecretsReqBodyFromJSONTyped(json, false);
29
+ }
30
+ function ScriptSecretsReqBodyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'remove': json['remove'] == null ? undefined : json['remove'],
36
+ 'set': json['set'] == null ? undefined : json['set'],
37
+ };
38
+ }
39
+ function ScriptSecretsReqBodyToJSON(json) {
40
+ return ScriptSecretsReqBodyToJSONTyped(json, false);
41
+ }
42
+ function ScriptSecretsReqBodyToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'remove': value['remove'],
48
+ 'set': value['set'],
49
+ };
50
+ }
@@ -0,0 +1,134 @@
1
+ /**
2
+ * spaciv API
3
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@spaciv.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScriptKey } from './ScriptKey';
13
+ import type { ScriptSchedule } from './ScriptSchedule';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ScriptSecretsResBody
18
+ */
19
+ export interface ScriptSecretsResBody {
20
+ /**
21
+ *
22
+ * @type {Date}
23
+ * @memberof ScriptSecretsResBody
24
+ */
25
+ createdAt: Date;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof ScriptSecretsResBody
30
+ */
31
+ createdBy: number;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ScriptSecretsResBody
36
+ */
37
+ description?: string;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof ScriptSecretsResBody
42
+ */
43
+ enabled: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ScriptSecretsResBody
48
+ */
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {ScriptKey}
53
+ * @memberof ScriptSecretsResBody
54
+ */
55
+ key: ScriptKey;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ScriptSecretsResBody
60
+ */
61
+ language: ScriptSecretsResBodyLanguageEnum;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof ScriptSecretsResBody
66
+ */
67
+ name: string;
68
+ /**
69
+ * Project the script's API key is scoped to. Absent when it acts across the account.
70
+ * @type {number}
71
+ * @memberof ScriptSecretsResBody
72
+ */
73
+ project?: number;
74
+ /**
75
+ * Pass back when updating, so a concurrent change is reported rather than overwritten.
76
+ * @type {number}
77
+ * @memberof ScriptSecretsResBody
78
+ */
79
+ revision: number;
80
+ /**
81
+ *
82
+ * @type {ScriptSchedule}
83
+ * @memberof ScriptSecretsResBody
84
+ */
85
+ schedule: ScriptSchedule;
86
+ /**
87
+ *
88
+ * @type {Array<string>}
89
+ * @memberof ScriptSecretsResBody
90
+ */
91
+ secretNames: Array<string>;
92
+ /**
93
+ * The handler signature the script implements.
94
+ * @type {string}
95
+ * @memberof ScriptSecretsResBody
96
+ */
97
+ type: ScriptSecretsResBodyTypeEnum;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof ScriptSecretsResBody
102
+ */
103
+ updatedAt: Date;
104
+ /**
105
+ *
106
+ * @type {boolean}
107
+ * @memberof ScriptSecretsResBody
108
+ */
109
+ webhook: boolean;
110
+ }
111
+ /**
112
+ * @export
113
+ */
114
+ export declare const ScriptSecretsResBodyLanguageEnum: {
115
+ readonly Python: "python";
116
+ readonly Go: "go";
117
+ readonly Javascript: "javascript";
118
+ };
119
+ export type ScriptSecretsResBodyLanguageEnum = typeof ScriptSecretsResBodyLanguageEnum[keyof typeof ScriptSecretsResBodyLanguageEnum];
120
+ /**
121
+ * @export
122
+ */
123
+ export declare const ScriptSecretsResBodyTypeEnum: {
124
+ readonly Integration: "integration";
125
+ };
126
+ export type ScriptSecretsResBodyTypeEnum = typeof ScriptSecretsResBodyTypeEnum[keyof typeof ScriptSecretsResBodyTypeEnum];
127
+ /**
128
+ * Check if a given object implements the ScriptSecretsResBody interface.
129
+ */
130
+ export declare function instanceOfScriptSecretsResBody(value: object): value is ScriptSecretsResBody;
131
+ export declare function ScriptSecretsResBodyFromJSON(json: any): ScriptSecretsResBody;
132
+ export declare function ScriptSecretsResBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSecretsResBody;
133
+ export declare function ScriptSecretsResBodyToJSON(json: any): ScriptSecretsResBody;
134
+ export declare function ScriptSecretsResBodyToJSONTyped(value?: ScriptSecretsResBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * spaciv API
6
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@spaciv.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ScriptSecretsResBodyTypeEnum = exports.ScriptSecretsResBodyLanguageEnum = void 0;
17
+ exports.instanceOfScriptSecretsResBody = instanceOfScriptSecretsResBody;
18
+ exports.ScriptSecretsResBodyFromJSON = ScriptSecretsResBodyFromJSON;
19
+ exports.ScriptSecretsResBodyFromJSONTyped = ScriptSecretsResBodyFromJSONTyped;
20
+ exports.ScriptSecretsResBodyToJSON = ScriptSecretsResBodyToJSON;
21
+ exports.ScriptSecretsResBodyToJSONTyped = ScriptSecretsResBodyToJSONTyped;
22
+ const ScriptKey_1 = require("./ScriptKey");
23
+ const ScriptSchedule_1 = require("./ScriptSchedule");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ScriptSecretsResBodyLanguageEnum = {
28
+ Python: 'python',
29
+ Go: 'go',
30
+ Javascript: 'javascript'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.ScriptSecretsResBodyTypeEnum = {
36
+ Integration: 'integration'
37
+ };
38
+ /**
39
+ * Check if a given object implements the ScriptSecretsResBody interface.
40
+ */
41
+ function instanceOfScriptSecretsResBody(value) {
42
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
43
+ return false;
44
+ if (!('createdBy' in value) || value['createdBy'] === undefined)
45
+ return false;
46
+ if (!('enabled' in value) || value['enabled'] === undefined)
47
+ return false;
48
+ if (!('id' in value) || value['id'] === undefined)
49
+ return false;
50
+ if (!('key' in value) || value['key'] === undefined)
51
+ return false;
52
+ if (!('language' in value) || value['language'] === undefined)
53
+ return false;
54
+ if (!('name' in value) || value['name'] === undefined)
55
+ return false;
56
+ if (!('revision' in value) || value['revision'] === undefined)
57
+ return false;
58
+ if (!('schedule' in value) || value['schedule'] === undefined)
59
+ return false;
60
+ if (!('secretNames' in value) || value['secretNames'] === undefined)
61
+ return false;
62
+ if (!('type' in value) || value['type'] === undefined)
63
+ return false;
64
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
65
+ return false;
66
+ if (!('webhook' in value) || value['webhook'] === undefined)
67
+ return false;
68
+ return true;
69
+ }
70
+ function ScriptSecretsResBodyFromJSON(json) {
71
+ return ScriptSecretsResBodyFromJSONTyped(json, false);
72
+ }
73
+ function ScriptSecretsResBodyFromJSONTyped(json, ignoreDiscriminator) {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+ 'createdAt': (new Date(json['createdAt'])),
79
+ 'createdBy': json['createdBy'],
80
+ 'description': json['description'] == null ? undefined : json['description'],
81
+ 'enabled': json['enabled'],
82
+ 'id': json['id'],
83
+ 'key': (0, ScriptKey_1.ScriptKeyFromJSON)(json['key']),
84
+ 'language': json['language'],
85
+ 'name': json['name'],
86
+ 'project': json['project'] == null ? undefined : json['project'],
87
+ 'revision': json['revision'],
88
+ 'schedule': (0, ScriptSchedule_1.ScriptScheduleFromJSON)(json['schedule']),
89
+ 'secretNames': json['secretNames'],
90
+ 'type': json['type'],
91
+ 'updatedAt': (new Date(json['updatedAt'])),
92
+ 'webhook': json['webhook'],
93
+ };
94
+ }
95
+ function ScriptSecretsResBodyToJSON(json) {
96
+ return ScriptSecretsResBodyToJSONTyped(json, false);
97
+ }
98
+ function ScriptSecretsResBodyToJSONTyped(value, ignoreDiscriminator = false) {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+ return {
103
+ 'createdAt': ((value['createdAt']).toISOString()),
104
+ 'createdBy': value['createdBy'],
105
+ 'description': value['description'],
106
+ 'enabled': value['enabled'],
107
+ 'id': value['id'],
108
+ 'key': (0, ScriptKey_1.ScriptKeyToJSON)(value['key']),
109
+ 'language': value['language'],
110
+ 'name': value['name'],
111
+ 'project': value['project'],
112
+ 'revision': value['revision'],
113
+ 'schedule': (0, ScriptSchedule_1.ScriptScheduleToJSON)(value['schedule']),
114
+ 'secretNames': value['secretNames'],
115
+ 'type': value['type'],
116
+ 'updatedAt': ((value['updatedAt']).toISOString()),
117
+ 'webhook': value['webhook'],
118
+ };
119
+ }
@@ -0,0 +1,128 @@
1
+ /**
2
+ * spaciv API
3
+ * The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@spaciv.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScriptKey } from './ScriptKey';
13
+ import type { ScriptSchedule } from './ScriptSchedule';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ScriptSummary
18
+ */
19
+ export interface ScriptSummary {
20
+ /**
21
+ *
22
+ * @type {Date}
23
+ * @memberof ScriptSummary
24
+ */
25
+ createdAt: Date;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof ScriptSummary
30
+ */
31
+ createdBy: number;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ScriptSummary
36
+ */
37
+ description?: string;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof ScriptSummary
42
+ */
43
+ enabled: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ScriptSummary
48
+ */
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {ScriptKey}
53
+ * @memberof ScriptSummary
54
+ */
55
+ key: ScriptKey;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ScriptSummary
60
+ */
61
+ language: ScriptSummaryLanguageEnum;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof ScriptSummary
66
+ */
67
+ name: string;
68
+ /**
69
+ * Project the script's API key is scoped to. Absent when it acts across the account.
70
+ * @type {number}
71
+ * @memberof ScriptSummary
72
+ */
73
+ project?: number;
74
+ /**
75
+ * Pass back when updating, so a concurrent change is reported rather than overwritten.
76
+ * @type {number}
77
+ * @memberof ScriptSummary
78
+ */
79
+ revision: number;
80
+ /**
81
+ *
82
+ * @type {ScriptSchedule}
83
+ * @memberof ScriptSummary
84
+ */
85
+ schedule: ScriptSchedule;
86
+ /**
87
+ * The handler signature the script implements.
88
+ * @type {string}
89
+ * @memberof ScriptSummary
90
+ */
91
+ type: ScriptSummaryTypeEnum;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof ScriptSummary
96
+ */
97
+ updatedAt: Date;
98
+ /**
99
+ *
100
+ * @type {boolean}
101
+ * @memberof ScriptSummary
102
+ */
103
+ webhook: boolean;
104
+ }
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const ScriptSummaryLanguageEnum: {
109
+ readonly Python: "python";
110
+ readonly Go: "go";
111
+ readonly Javascript: "javascript";
112
+ };
113
+ export type ScriptSummaryLanguageEnum = typeof ScriptSummaryLanguageEnum[keyof typeof ScriptSummaryLanguageEnum];
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const ScriptSummaryTypeEnum: {
118
+ readonly Integration: "integration";
119
+ };
120
+ export type ScriptSummaryTypeEnum = typeof ScriptSummaryTypeEnum[keyof typeof ScriptSummaryTypeEnum];
121
+ /**
122
+ * Check if a given object implements the ScriptSummary interface.
123
+ */
124
+ export declare function instanceOfScriptSummary(value: object): value is ScriptSummary;
125
+ export declare function ScriptSummaryFromJSON(json: any): ScriptSummary;
126
+ export declare function ScriptSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScriptSummary;
127
+ export declare function ScriptSummaryToJSON(json: any): ScriptSummary;
128
+ export declare function ScriptSummaryToJSONTyped(value?: ScriptSummary | null, ignoreDiscriminator?: boolean): any;