@knowledge-stack/ksapi 1.163.0 → 2.4.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 (153) hide show
  1. package/.openapi-generator/FILES +20 -2
  2. package/README.md +13 -3
  3. package/dist/apis/BillingApi.d.ts +70 -0
  4. package/dist/apis/BillingApi.js +120 -0
  5. package/dist/apis/DocumentVersionsApi.d.ts +8 -8
  6. package/dist/apis/DocumentVersionsApi.js +4 -4
  7. package/dist/apis/DocumentsApi.d.ts +4 -4
  8. package/dist/apis/DocumentsApi.js +2 -2
  9. package/dist/apis/SubscriptionsApi.d.ts +17 -20
  10. package/dist/apis/SubscriptionsApi.js +6 -9
  11. package/dist/apis/TenantsApi.d.ts +4 -4
  12. package/dist/apis/TenantsApi.js +2 -2
  13. package/dist/apis/TrashApi.d.ts +39 -1
  14. package/dist/apis/TrashApi.js +48 -0
  15. package/dist/apis/WorkflowRunsApi.d.ts +4 -4
  16. package/dist/apis/WorkflowRunsApi.js +2 -2
  17. package/dist/apis/index.d.ts +1 -0
  18. package/dist/apis/index.js +1 -0
  19. package/dist/esm/apis/BillingApi.d.ts +70 -0
  20. package/dist/esm/apis/BillingApi.js +83 -0
  21. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -8
  22. package/dist/esm/apis/DocumentVersionsApi.js +4 -4
  23. package/dist/esm/apis/DocumentsApi.d.ts +4 -4
  24. package/dist/esm/apis/DocumentsApi.js +2 -2
  25. package/dist/esm/apis/SubscriptionsApi.d.ts +17 -20
  26. package/dist/esm/apis/SubscriptionsApi.js +7 -10
  27. package/dist/esm/apis/TenantsApi.d.ts +4 -4
  28. package/dist/esm/apis/TenantsApi.js +2 -2
  29. package/dist/esm/apis/TrashApi.d.ts +39 -1
  30. package/dist/esm/apis/TrashApi.js +49 -1
  31. package/dist/esm/apis/WorkflowRunsApi.d.ts +4 -4
  32. package/dist/esm/apis/WorkflowRunsApi.js +2 -2
  33. package/dist/esm/apis/index.d.ts +1 -0
  34. package/dist/esm/apis/index.js +1 -0
  35. package/dist/esm/models/BillingInterval.d.ts +25 -0
  36. package/dist/esm/models/BillingInterval.js +43 -0
  37. package/dist/esm/models/BillingPaymentResponse.d.ts +100 -0
  38. package/dist/esm/models/BillingPaymentResponse.js +75 -0
  39. package/dist/esm/models/BillingSystem.d.ts +30 -0
  40. package/dist/esm/models/BillingSystem.js +48 -0
  41. package/dist/esm/models/ChangeSubscriptionRequest.d.ts +34 -0
  42. package/dist/esm/models/ChangeSubscriptionRequest.js +10 -0
  43. package/dist/esm/models/CheckoutAction.d.ts +27 -0
  44. package/dist/esm/models/CheckoutAction.js +45 -0
  45. package/dist/esm/models/CheckoutResponse.d.ts +76 -0
  46. package/dist/esm/models/{SubmitSubscriptionResponse.js → CheckoutResponse.js} +20 -20
  47. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +19 -0
  48. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +10 -0
  49. package/dist/esm/models/IdpConfig.d.ts +6 -0
  50. package/dist/esm/models/IdpConfig.js +10 -1
  51. package/dist/esm/models/PaginatedResponseBillingPaymentResponse.d.ts +66 -0
  52. package/dist/esm/models/PaginatedResponseBillingPaymentResponse.js +70 -0
  53. package/dist/esm/models/ScheduleCadence.d.ts +32 -0
  54. package/dist/esm/models/ScheduleCadence.js +50 -0
  55. package/dist/esm/models/SubscriptionPlanResponse.d.ts +24 -0
  56. package/dist/esm/models/SubscriptionPlanResponse.js +8 -0
  57. package/dist/esm/models/{SubmitSubscriptionResponse.d.ts → TenantSubscriptionResponse.d.ts} +49 -38
  58. package/dist/esm/models/TenantSubscriptionResponse.js +67 -0
  59. package/dist/esm/models/TrashItemDetailResponse.d.ts +110 -0
  60. package/dist/esm/models/TrashItemDetailResponse.js +81 -0
  61. package/dist/esm/models/TrashItemResponse.d.ts +7 -0
  62. package/dist/esm/models/TrashItemResponse.js +3 -0
  63. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +19 -0
  64. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +10 -0
  65. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +19 -0
  66. package/dist/esm/models/WorkflowDefinitionResponse.js +7 -0
  67. package/dist/esm/models/index.d.ts +9 -1
  68. package/dist/esm/models/index.js +9 -1
  69. package/dist/models/BillingInterval.d.ts +25 -0
  70. package/dist/models/BillingInterval.js +51 -0
  71. package/dist/models/BillingPaymentResponse.d.ts +100 -0
  72. package/dist/models/BillingPaymentResponse.js +83 -0
  73. package/dist/models/BillingSystem.d.ts +30 -0
  74. package/dist/models/BillingSystem.js +56 -0
  75. package/dist/models/ChangeSubscriptionRequest.d.ts +34 -0
  76. package/dist/models/ChangeSubscriptionRequest.js +10 -0
  77. package/dist/models/CheckoutAction.d.ts +27 -0
  78. package/dist/models/CheckoutAction.js +53 -0
  79. package/dist/models/CheckoutResponse.d.ts +76 -0
  80. package/dist/models/{SubmitSubscriptionResponse.js → CheckoutResponse.js} +26 -26
  81. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +19 -0
  82. package/dist/models/CreateWorkflowDefinitionRequest.js +10 -0
  83. package/dist/models/IdpConfig.d.ts +6 -0
  84. package/dist/models/IdpConfig.js +10 -1
  85. package/dist/models/PaginatedResponseBillingPaymentResponse.d.ts +66 -0
  86. package/dist/models/PaginatedResponseBillingPaymentResponse.js +78 -0
  87. package/dist/models/ScheduleCadence.d.ts +32 -0
  88. package/dist/models/ScheduleCadence.js +58 -0
  89. package/dist/models/SubscriptionPlanResponse.d.ts +24 -0
  90. package/dist/models/SubscriptionPlanResponse.js +8 -0
  91. package/dist/models/{SubmitSubscriptionResponse.d.ts → TenantSubscriptionResponse.d.ts} +49 -38
  92. package/dist/models/TenantSubscriptionResponse.js +75 -0
  93. package/dist/models/TrashItemDetailResponse.d.ts +110 -0
  94. package/dist/models/TrashItemDetailResponse.js +89 -0
  95. package/dist/models/TrashItemResponse.d.ts +7 -0
  96. package/dist/models/TrashItemResponse.js +3 -0
  97. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +19 -0
  98. package/dist/models/UpdateWorkflowDefinitionRequest.js +10 -0
  99. package/dist/models/WorkflowDefinitionResponse.d.ts +19 -0
  100. package/dist/models/WorkflowDefinitionResponse.js +7 -0
  101. package/dist/models/index.d.ts +9 -1
  102. package/dist/models/index.js +9 -1
  103. package/docs/BillingApi.md +90 -0
  104. package/docs/BillingInterval.md +33 -0
  105. package/docs/BillingPaymentResponse.md +51 -0
  106. package/docs/BillingSystem.md +33 -0
  107. package/docs/ChangeSubscriptionRequest.md +9 -1
  108. package/docs/CheckoutAction.md +33 -0
  109. package/docs/CheckoutResponse.md +41 -0
  110. package/docs/CreateWorkflowDefinitionRequest.md +6 -0
  111. package/docs/DocumentVersionsApi.md +2 -2
  112. package/docs/DocumentsApi.md +1 -1
  113. package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +6 -0
  114. package/docs/IdpConfig.md +2 -0
  115. package/docs/PaginatedResponseBillingPaymentResponse.md +40 -0
  116. package/docs/ScheduleCadence.md +33 -0
  117. package/docs/SubscriptionPlanResponse.md +8 -0
  118. package/docs/SubscriptionsApi.md +7 -10
  119. package/docs/TenantSubscriptionResponse.md +47 -0
  120. package/docs/TenantsApi.md +1 -1
  121. package/docs/TrashApi.md +76 -0
  122. package/docs/TrashItemDetailResponse.md +55 -0
  123. package/docs/TrashItemResponse.md +2 -0
  124. package/docs/UpdateWorkflowDefinitionRequest.md +6 -0
  125. package/docs/WorkflowDefinitionResponse.md +6 -0
  126. package/docs/WorkflowRunsApi.md +1 -1
  127. package/package.json +1 -1
  128. package/src/apis/BillingApi.ts +142 -0
  129. package/src/apis/DocumentVersionsApi.ts +8 -8
  130. package/src/apis/DocumentsApi.ts +4 -4
  131. package/src/apis/SubscriptionsApi.ts +24 -31
  132. package/src/apis/TenantsApi.ts +4 -4
  133. package/src/apis/TrashApi.ts +86 -0
  134. package/src/apis/WorkflowRunsApi.ts +4 -4
  135. package/src/apis/index.ts +1 -0
  136. package/src/models/BillingInterval.ts +53 -0
  137. package/src/models/BillingPaymentResponse.ts +168 -0
  138. package/src/models/BillingSystem.ts +58 -0
  139. package/src/models/ChangeSubscriptionRequest.ts +55 -0
  140. package/src/models/CheckoutAction.ts +55 -0
  141. package/src/models/{SubmitSubscriptionResponse.ts → CheckoutResponse.ts} +61 -47
  142. package/src/models/CreateWorkflowDefinitionRequest.ts +37 -0
  143. package/src/models/IdpConfig.ts +14 -0
  144. package/src/models/PaginatedResponseBillingPaymentResponse.ts +130 -0
  145. package/src/models/ScheduleCadence.ts +60 -0
  146. package/src/models/SubscriptionPlanResponse.ts +32 -0
  147. package/src/models/TenantSubscriptionResponse.ts +159 -0
  148. package/src/models/TrashItemDetailResponse.ts +194 -0
  149. package/src/models/TrashItemResponse.ts +15 -0
  150. package/src/models/UpdateWorkflowDefinitionRequest.ts +37 -0
  151. package/src/models/WorkflowDefinitionResponse.ts +31 -0
  152. package/src/models/index.ts +9 -1
  153. package/docs/SubmitSubscriptionResponse.md +0 -39
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 { CheckoutAction } from './CheckoutAction';
13
+ import type { BillingSystem } from './BillingSystem';
14
+ /**
15
+ * Result of ``POST /v1/tenants/{tenant_id}/subscriptions``.
16
+ *
17
+ * ``REDIRECT`` → send the browser to ``url`` (Stripe Checkout).
18
+ * ``CREDENTIAL`` → feed ``credential`` to the Ping++ JS SDK to invoke
19
+ * the chosen channel. ``SCHEDULED`` → nothing to pay; the current
20
+ * billed subscription will not renew and expires at period end.
21
+ * ``APPLIED`` → the change is already in effect (free-plan downgrade
22
+ * of an unbilled tenant, or a no-op request).
23
+ * @export
24
+ * @interface CheckoutResponse
25
+ */
26
+ export interface CheckoutResponse {
27
+ /**
28
+ *
29
+ * @type {CheckoutAction}
30
+ * @memberof CheckoutResponse
31
+ */
32
+ action: CheckoutAction;
33
+ /**
34
+ *
35
+ * @type {BillingSystem}
36
+ * @memberof CheckoutResponse
37
+ */
38
+ billingSystem?: BillingSystem;
39
+ /**
40
+ * Stripe Checkout URL (action=REDIRECT).
41
+ * @type {string}
42
+ * @memberof CheckoutResponse
43
+ */
44
+ url?: string | null;
45
+ /**
46
+ * Ping++ charge credential (action=CREDENTIAL).
47
+ * @type {{ [key: string]: any; }}
48
+ * @memberof CheckoutResponse
49
+ */
50
+ credential?: {
51
+ [key: string]: any;
52
+ } | null;
53
+ }
54
+ export declare const CheckoutResponsePropertyValidationAttributesMap: {
55
+ [property: string]: {
56
+ maxLength?: number;
57
+ minLength?: number;
58
+ pattern?: string;
59
+ maximum?: number;
60
+ exclusiveMaximum?: boolean;
61
+ minimum?: number;
62
+ exclusiveMinimum?: boolean;
63
+ multipleOf?: number;
64
+ maxItems?: number;
65
+ minItems?: number;
66
+ uniqueItems?: boolean;
67
+ };
68
+ };
69
+ /**
70
+ * Check if a given object implements the CheckoutResponse interface.
71
+ */
72
+ export declare function instanceOfCheckoutResponse(value: object): value is CheckoutResponse;
73
+ export declare function CheckoutResponseFromJSON(json: any): CheckoutResponse;
74
+ export declare function CheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutResponse;
75
+ export declare function CheckoutResponseToJSON(json: any): CheckoutResponse;
76
+ export declare function CheckoutResponseToJSONTyped(value?: CheckoutResponse | null, ignoreDiscriminator?: boolean): any;
@@ -11,42 +11,42 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export const SubmitSubscriptionResponsePropertyValidationAttributesMap = {};
14
+ import { CheckoutActionFromJSON, CheckoutActionToJSON, } from './CheckoutAction';
15
+ import { BillingSystemFromJSON, BillingSystemToJSON, } from './BillingSystem';
16
+ export const CheckoutResponsePropertyValidationAttributesMap = {};
15
17
  /**
16
- * Check if a given object implements the SubmitSubscriptionResponse interface.
18
+ * Check if a given object implements the CheckoutResponse interface.
17
19
  */
18
- export function instanceOfSubmitSubscriptionResponse(value) {
19
- if (!('submitted' in value) || value['submitted'] === undefined)
20
- return false;
21
- if (!('noop' in value) || value['noop'] === undefined)
22
- return false;
23
- if (!('idempotencyKey' in value) || value['idempotencyKey'] === undefined)
20
+ export function instanceOfCheckoutResponse(value) {
21
+ if (!('action' in value) || value['action'] === undefined)
24
22
  return false;
25
23
  return true;
26
24
  }
27
- export function SubmitSubscriptionResponseFromJSON(json) {
28
- return SubmitSubscriptionResponseFromJSONTyped(json, false);
25
+ export function CheckoutResponseFromJSON(json) {
26
+ return CheckoutResponseFromJSONTyped(json, false);
29
27
  }
30
- export function SubmitSubscriptionResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ export function CheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
31
29
  if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'submitted': json['submitted'],
36
- 'noop': json['noop'],
37
- 'idempotencyKey': json['idempotency_key'],
33
+ 'action': CheckoutActionFromJSON(json['action']),
34
+ 'billingSystem': json['billing_system'] == null ? undefined : BillingSystemFromJSON(json['billing_system']),
35
+ 'url': json['url'] == null ? undefined : json['url'],
36
+ 'credential': json['credential'] == null ? undefined : json['credential'],
38
37
  };
39
38
  }
40
- export function SubmitSubscriptionResponseToJSON(json) {
41
- return SubmitSubscriptionResponseToJSONTyped(json, false);
39
+ export function CheckoutResponseToJSON(json) {
40
+ return CheckoutResponseToJSONTyped(json, false);
42
41
  }
43
- export function SubmitSubscriptionResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ export function CheckoutResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
43
  if (value == null) {
45
44
  return value;
46
45
  }
47
46
  return {
48
- 'submitted': value['submitted'],
49
- 'noop': value['noop'],
50
- 'idempotency_key': value['idempotencyKey'],
47
+ 'action': CheckoutActionToJSON(value['action']),
48
+ 'billing_system': BillingSystemToJSON(value['billingSystem']),
49
+ 'url': value['url'],
50
+ 'credential': value['credential'],
51
51
  };
52
52
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ScheduleCadence } from './ScheduleCadence';
12
13
  /**
13
14
  * Create a new workflow definition.
14
15
  *
@@ -19,6 +20,24 @@
19
20
  * @interface CreateWorkflowDefinitionRequest
20
21
  */
21
22
  export interface CreateWorkflowDefinitionRequest {
23
+ /**
24
+ *
25
+ * @type {ScheduleCadence}
26
+ * @memberof CreateWorkflowDefinitionRequest
27
+ */
28
+ scheduleCadence?: ScheduleCadence;
29
+ /**
30
+ * First occurrence. Read in ``schedule_timezone``, so its local wall time, weekday and day of month drive the recurrence. A MONTHLY schedule must land on or before the 28th: Temporal silently skips months that are too short.
31
+ * @type {Date}
32
+ * @memberof CreateWorkflowDefinitionRequest
33
+ */
34
+ scheduleStartAt?: Date | null;
35
+ /**
36
+ * IANA zone the schedule fires in, e.g. ``Asia/Shanghai``. Optional: omit it to inherit the tenant timezone. Only set it to fire in a different zone than the tenant's. Must be an IANA name, not an ISO offset — an offset stops meaning the same wall clock across DST.
37
+ * @type {string}
38
+ * @memberof CreateWorkflowDefinitionRequest
39
+ */
40
+ scheduleTimezone?: string | null;
22
41
  /**
23
42
  *
24
43
  * @type {string}
@@ -11,7 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ScheduleCadenceFromJSON, ScheduleCadenceToJSON, } from './ScheduleCadence';
14
15
  export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
16
+ scheduleTimezone: {
17
+ maxLength: 64,
18
+ },
15
19
  name: {
16
20
  maxLength: 255,
17
21
  },
@@ -50,6 +54,9 @@ export function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscrim
50
54
  return json;
51
55
  }
52
56
  return {
57
+ 'scheduleCadence': json['schedule_cadence'] == null ? undefined : ScheduleCadenceFromJSON(json['schedule_cadence']),
58
+ 'scheduleStartAt': json['schedule_start_at'] == null ? undefined : (new Date(json['schedule_start_at'])),
59
+ 'scheduleTimezone': json['schedule_timezone'] == null ? undefined : json['schedule_timezone'],
53
60
  'name': json['name'],
54
61
  'description': json['description'] == null ? undefined : json['description'],
55
62
  'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
@@ -69,6 +76,9 @@ export function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscrimi
69
76
  return value;
70
77
  }
71
78
  return {
79
+ 'schedule_cadence': ScheduleCadenceToJSON(value['scheduleCadence']),
80
+ 'schedule_start_at': value['scheduleStartAt'] == null ? value['scheduleStartAt'] : value['scheduleStartAt'].toISOString(),
81
+ 'schedule_timezone': value['scheduleTimezone'],
72
82
  'name': value['name'],
73
83
  'description': value['description'],
74
84
  'max_run_duration_seconds': value['maxRunDurationSeconds'],
@@ -34,6 +34,12 @@ export interface IdpConfig {
34
34
  _configuration: {
35
35
  [key: string]: any;
36
36
  };
37
+ /**
38
+ * Crontab string for directory sync
39
+ * @type {string}
40
+ * @memberof IdpConfig
41
+ */
42
+ syncCrontab?: string | null;
37
43
  }
38
44
  export declare const IdpConfigPropertyValidationAttributesMap: {
39
45
  [property: string]: {
@@ -12,7 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { SupportedIdPFromJSON, SupportedIdPToJSON, } from './SupportedIdP';
15
- export const IdpConfigPropertyValidationAttributesMap = {};
15
+ export const IdpConfigPropertyValidationAttributesMap = {
16
+ _configuration: {
17
+ minItems: 1,
18
+ },
19
+ syncCrontab: {
20
+ minLength: 9,
21
+ },
22
+ };
16
23
  /**
17
24
  * Check if a given object implements the IdpConfig interface.
18
25
  */
@@ -33,6 +40,7 @@ export function IdpConfigFromJSONTyped(json, ignoreDiscriminator) {
33
40
  return {
34
41
  'provider': SupportedIdPFromJSON(json['provider']),
35
42
  '_configuration': json['configuration'],
43
+ 'syncCrontab': json['sync_crontab'] == null ? undefined : json['sync_crontab'],
36
44
  };
37
45
  }
38
46
  export function IdpConfigToJSON(json) {
@@ -45,5 +53,6 @@ export function IdpConfigToJSONTyped(value, ignoreDiscriminator = false) {
45
53
  return {
46
54
  'provider': SupportedIdPToJSON(value['provider']),
47
55
  'configuration': value['_configuration'],
56
+ 'sync_crontab': value['syncCrontab'],
48
57
  };
49
58
  }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 { BillingPaymentResponse } from './BillingPaymentResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseBillingPaymentResponse
17
+ */
18
+ export interface PaginatedResponseBillingPaymentResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<BillingPaymentResponse>}
22
+ * @memberof PaginatedResponseBillingPaymentResponse
23
+ */
24
+ items: Array<BillingPaymentResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseBillingPaymentResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseBillingPaymentResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseBillingPaymentResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ export declare const PaginatedResponseBillingPaymentResponsePropertyValidationAttributesMap: {
45
+ [property: string]: {
46
+ maxLength?: number;
47
+ minLength?: number;
48
+ pattern?: string;
49
+ maximum?: number;
50
+ exclusiveMaximum?: boolean;
51
+ minimum?: number;
52
+ exclusiveMinimum?: boolean;
53
+ multipleOf?: number;
54
+ maxItems?: number;
55
+ minItems?: number;
56
+ uniqueItems?: boolean;
57
+ };
58
+ };
59
+ /**
60
+ * Check if a given object implements the PaginatedResponseBillingPaymentResponse interface.
61
+ */
62
+ export declare function instanceOfPaginatedResponseBillingPaymentResponse(value: object): value is PaginatedResponseBillingPaymentResponse;
63
+ export declare function PaginatedResponseBillingPaymentResponseFromJSON(json: any): PaginatedResponseBillingPaymentResponse;
64
+ export declare function PaginatedResponseBillingPaymentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseBillingPaymentResponse;
65
+ export declare function PaginatedResponseBillingPaymentResponseToJSON(json: any): PaginatedResponseBillingPaymentResponse;
66
+ export declare function PaginatedResponseBillingPaymentResponseToJSONTyped(value?: PaginatedResponseBillingPaymentResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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 { BillingPaymentResponseFromJSON, BillingPaymentResponseToJSON, } from './BillingPaymentResponse';
15
+ export const PaginatedResponseBillingPaymentResponsePropertyValidationAttributesMap = {
16
+ total: {
17
+ minimum: 0,
18
+ exclusiveMinimum: false,
19
+ },
20
+ limit: {
21
+ minimum: 1,
22
+ exclusiveMinimum: false,
23
+ },
24
+ offset: {
25
+ minimum: 0,
26
+ exclusiveMinimum: false,
27
+ },
28
+ };
29
+ /**
30
+ * Check if a given object implements the PaginatedResponseBillingPaymentResponse interface.
31
+ */
32
+ export function instanceOfPaginatedResponseBillingPaymentResponse(value) {
33
+ if (!('items' in value) || value['items'] === undefined)
34
+ return false;
35
+ if (!('total' in value) || value['total'] === undefined)
36
+ return false;
37
+ if (!('limit' in value) || value['limit'] === undefined)
38
+ return false;
39
+ if (!('offset' in value) || value['offset'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function PaginatedResponseBillingPaymentResponseFromJSON(json) {
44
+ return PaginatedResponseBillingPaymentResponseFromJSONTyped(json, false);
45
+ }
46
+ export function PaginatedResponseBillingPaymentResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'items': (json['items'].map(BillingPaymentResponseFromJSON)),
52
+ 'total': json['total'],
53
+ 'limit': json['limit'],
54
+ 'offset': json['offset'],
55
+ };
56
+ }
57
+ export function PaginatedResponseBillingPaymentResponseToJSON(json) {
58
+ return PaginatedResponseBillingPaymentResponseToJSONTyped(json, false);
59
+ }
60
+ export function PaginatedResponseBillingPaymentResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'items': (value['items'].map(BillingPaymentResponseToJSON)),
66
+ 'total': value['total'],
67
+ 'limit': value['limit'],
68
+ 'offset': value['offset'],
69
+ };
70
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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
+ * How often a workflow definition runs itself.
14
+ *
15
+ * The cadence names the recurrence; the time of day, weekday and day of
16
+ * month all come from the definition's ``schedule_start_at``, so an illegal
17
+ * combination (a daily cadence carrying a weekday, say) cannot be expressed.
18
+ * ``None`` on the definition means manual-only — the state every definition
19
+ * is in today.
20
+ * @export
21
+ */
22
+ export declare const ScheduleCadence: {
23
+ readonly Daily: 'DAILY';
24
+ readonly Weekly: 'WEEKLY';
25
+ readonly Monthly: 'MONTHLY';
26
+ };
27
+ export type ScheduleCadence = typeof ScheduleCadence[keyof typeof ScheduleCadence];
28
+ export declare function instanceOfScheduleCadence(value: any): boolean;
29
+ export declare function ScheduleCadenceFromJSON(json: any): ScheduleCadence;
30
+ export declare function ScheduleCadenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleCadence;
31
+ export declare function ScheduleCadenceToJSON(value?: ScheduleCadence | null): any;
32
+ export declare function ScheduleCadenceToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleCadence;
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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
+ * How often a workflow definition runs itself.
16
+ *
17
+ * The cadence names the recurrence; the time of day, weekday and day of
18
+ * month all come from the definition's ``schedule_start_at``, so an illegal
19
+ * combination (a daily cadence carrying a weekday, say) cannot be expressed.
20
+ * ``None`` on the definition means manual-only — the state every definition
21
+ * is in today.
22
+ * @export
23
+ */
24
+ export const ScheduleCadence = {
25
+ Daily: 'DAILY',
26
+ Weekly: 'WEEKLY',
27
+ Monthly: 'MONTHLY'
28
+ };
29
+ export function instanceOfScheduleCadence(value) {
30
+ for (const key in ScheduleCadence) {
31
+ if (Object.prototype.hasOwnProperty.call(ScheduleCadence, key)) {
32
+ if (ScheduleCadence[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ export function ScheduleCadenceFromJSON(json) {
40
+ return ScheduleCadenceFromJSONTyped(json, false);
41
+ }
42
+ export function ScheduleCadenceFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ export function ScheduleCadenceToJSON(value) {
46
+ return value;
47
+ }
48
+ export function ScheduleCadenceToJSONTyped(value, ignoreDiscriminator) {
49
+ return value;
50
+ }
@@ -69,6 +69,30 @@ export interface SubscriptionPlanResponse {
69
69
  * @memberof SubscriptionPlanResponse
70
70
  */
71
71
  _public: boolean;
72
+ /**
73
+ * Per-seat monthly price in USD cents (Stripe / NA). NULL = not self-serve purchasable in this currency/interval.
74
+ * @type {number}
75
+ * @memberof SubscriptionPlanResponse
76
+ */
77
+ priceMonthlyUsdCents?: number | null;
78
+ /**
79
+ * Per-seat annual price in USD cents (Stripe / NA).
80
+ * @type {number}
81
+ * @memberof SubscriptionPlanResponse
82
+ */
83
+ priceAnnualUsdCents?: number | null;
84
+ /**
85
+ * Per-seat monthly price in CNY fen (Ping++ / CN).
86
+ * @type {number}
87
+ * @memberof SubscriptionPlanResponse
88
+ */
89
+ priceMonthlyCnyFen?: number | null;
90
+ /**
91
+ * Per-seat annual price in CNY fen (Ping++ / CN).
92
+ * @type {number}
93
+ * @memberof SubscriptionPlanResponse
94
+ */
95
+ priceAnnualCnyFen?: number | null;
72
96
  /**
73
97
  * Plan creation timestamp.
74
98
  * @type {Date}
@@ -54,6 +54,10 @@ export function SubscriptionPlanResponseFromJSONTyped(json, ignoreDiscriminator)
54
54
  'mediaMinutes': json['media_minutes'],
55
55
  'maxSeats': json['max_seats'],
56
56
  '_public': json['public'],
57
+ 'priceMonthlyUsdCents': json['price_monthly_usd_cents'] == null ? undefined : json['price_monthly_usd_cents'],
58
+ 'priceAnnualUsdCents': json['price_annual_usd_cents'] == null ? undefined : json['price_annual_usd_cents'],
59
+ 'priceMonthlyCnyFen': json['price_monthly_cny_fen'] == null ? undefined : json['price_monthly_cny_fen'],
60
+ 'priceAnnualCnyFen': json['price_annual_cny_fen'] == null ? undefined : json['price_annual_cny_fen'],
57
61
  'createdAt': (new Date(json['created_at'])),
58
62
  'updatedAt': (new Date(json['updated_at'])),
59
63
  };
@@ -74,6 +78,10 @@ export function SubscriptionPlanResponseToJSONTyped(value, ignoreDiscriminator =
74
78
  'media_minutes': value['mediaMinutes'],
75
79
  'max_seats': value['maxSeats'],
76
80
  'public': value['_public'],
81
+ 'price_monthly_usd_cents': value['priceMonthlyUsdCents'],
82
+ 'price_annual_usd_cents': value['priceAnnualUsdCents'],
83
+ 'price_monthly_cny_fen': value['priceMonthlyCnyFen'],
84
+ 'price_annual_cny_fen': value['priceAnnualCnyFen'],
77
85
  'created_at': value['createdAt'].toISOString(),
78
86
  'updated_at': value['updatedAt'].toISOString(),
79
87
  };
@@ -9,48 +9,59 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { BillingInterval } from './BillingInterval';
13
+ import type { BillingSystem } from './BillingSystem';
14
+ import type { SubscriptionPlanResponse } from './SubscriptionPlanResponse';
12
15
  /**
13
- * Result envelope for the subscription-change submit endpoint.
14
- *
15
- * The endpoint returns immediately after the (mock-)Stripe charge is
16
- * submitted; the actual plan/seat write happens later in the Stripe
17
- * subscription webhook. ``submitted=True`` always when the route
18
- * succeeds (errors raise via the global handler).
19
- *
20
- * ``noop=True`` indicates the tenant is already at the requested
21
- * ``(plan, num_seats)`` — no Stripe call was issued, no webhook will
22
- * arrive, and the user's account is unchanged. Symmetric with
23
- * ``StripeWebhookAck.replayed`` so client UIs can render "already
24
- * on this plan" rather than spinning a "waiting for webhook"
25
- * indicator forever.
26
- *
27
- * ``idempotency_key`` echoes the value forwarded to Stripe — clients
28
- * can store it to correlate the eventual webhook receipt with the
29
- * original request, and re-send it verbatim on retries.
16
+ * The tenant's current subscription: plan body + period state.
30
17
  * @export
31
- * @interface SubmitSubscriptionResponse
18
+ * @interface TenantSubscriptionResponse
32
19
  */
33
- export interface SubmitSubscriptionResponse {
20
+ export interface TenantSubscriptionResponse {
34
21
  /**
35
- * Always True when the submit returns 202.
36
- * @type {boolean}
37
- * @memberof SubmitSubscriptionResponse
22
+ *
23
+ * @type {SubscriptionPlanResponse}
24
+ * @memberof TenantSubscriptionResponse
38
25
  */
39
- submitted: boolean;
26
+ plan: SubscriptionPlanResponse;
40
27
  /**
41
- * True when the tenant was already at the target ``(plan, num_seats)`` — no Stripe call was made and no webhook will arrive.
42
- * @type {boolean}
43
- * @memberof SubmitSubscriptionResponse
28
+ * Seats in force for this period.
29
+ * @type {number}
30
+ * @memberof TenantSubscriptionResponse
31
+ */
32
+ numSeats: number;
33
+ /**
34
+ * Inclusive period start.
35
+ * @type {Date}
36
+ * @memberof TenantSubscriptionResponse
44
37
  */
45
- noop: boolean;
38
+ startDate: Date;
46
39
  /**
47
- * Idempotency key forwarded to Stripe sourced from the ``Idempotency-Key`` request header or a server-generated uuid4 when absent.
48
- * @type {string}
49
- * @memberof SubmitSubscriptionResponse
40
+ * Exclusive period end. Unbilled subscriptions carry a 100-year horizon; billed ones the paid-through date.
41
+ * @type {Date}
42
+ * @memberof TenantSubscriptionResponse
43
+ */
44
+ endDate: Date;
45
+ /**
46
+ *
47
+ * @type {BillingSystem}
48
+ * @memberof TenantSubscriptionResponse
49
+ */
50
+ billingSystem?: BillingSystem;
51
+ /**
52
+ *
53
+ * @type {BillingInterval}
54
+ * @memberof TenantSubscriptionResponse
55
+ */
56
+ interval?: BillingInterval;
57
+ /**
58
+ * True when the subscription auto-renews at period end (a Stripe subscription with no cancellation scheduled). False for Ping++ prepay (renewal = buying again), unbilled subscriptions, and Stripe periods with a scheduled cancellation.
59
+ * @type {boolean}
60
+ * @memberof TenantSubscriptionResponse
50
61
  */
51
- idempotencyKey: string;
62
+ willRenew: boolean;
52
63
  }
53
- export declare const SubmitSubscriptionResponsePropertyValidationAttributesMap: {
64
+ export declare const TenantSubscriptionResponsePropertyValidationAttributesMap: {
54
65
  [property: string]: {
55
66
  maxLength?: number;
56
67
  minLength?: number;
@@ -66,10 +77,10 @@ export declare const SubmitSubscriptionResponsePropertyValidationAttributesMap:
66
77
  };
67
78
  };
68
79
  /**
69
- * Check if a given object implements the SubmitSubscriptionResponse interface.
80
+ * Check if a given object implements the TenantSubscriptionResponse interface.
70
81
  */
71
- export declare function instanceOfSubmitSubscriptionResponse(value: object): value is SubmitSubscriptionResponse;
72
- export declare function SubmitSubscriptionResponseFromJSON(json: any): SubmitSubscriptionResponse;
73
- export declare function SubmitSubscriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitSubscriptionResponse;
74
- export declare function SubmitSubscriptionResponseToJSON(json: any): SubmitSubscriptionResponse;
75
- export declare function SubmitSubscriptionResponseToJSONTyped(value?: SubmitSubscriptionResponse | null, ignoreDiscriminator?: boolean): any;
82
+ export declare function instanceOfTenantSubscriptionResponse(value: object): value is TenantSubscriptionResponse;
83
+ export declare function TenantSubscriptionResponseFromJSON(json: any): TenantSubscriptionResponse;
84
+ export declare function TenantSubscriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSubscriptionResponse;
85
+ export declare function TenantSubscriptionResponseToJSON(json: any): TenantSubscriptionResponse;
86
+ export declare function TenantSubscriptionResponseToJSONTyped(value?: TenantSubscriptionResponse | null, ignoreDiscriminator?: boolean): any;