@knowledge-stack/ksapi 1.162.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.
- package/.openapi-generator/FILES +20 -2
- package/README.md +13 -3
- package/dist/apis/BillingApi.d.ts +70 -0
- package/dist/apis/BillingApi.js +120 -0
- package/dist/apis/DocumentVersionsApi.d.ts +8 -8
- package/dist/apis/DocumentVersionsApi.js +4 -4
- package/dist/apis/DocumentsApi.d.ts +4 -4
- package/dist/apis/DocumentsApi.js +2 -2
- package/dist/apis/SubscriptionsApi.d.ts +17 -20
- package/dist/apis/SubscriptionsApi.js +6 -9
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/apis/TrashApi.d.ts +39 -1
- package/dist/apis/TrashApi.js +48 -0
- package/dist/apis/WorkflowRunsApi.d.ts +4 -4
- package/dist/apis/WorkflowRunsApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +70 -0
- package/dist/esm/apis/BillingApi.js +83 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -8
- package/dist/esm/apis/DocumentVersionsApi.js +4 -4
- package/dist/esm/apis/DocumentsApi.d.ts +4 -4
- package/dist/esm/apis/DocumentsApi.js +2 -2
- package/dist/esm/apis/SubscriptionsApi.d.ts +17 -20
- package/dist/esm/apis/SubscriptionsApi.js +7 -10
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/TrashApi.d.ts +39 -1
- package/dist/esm/apis/TrashApi.js +49 -1
- package/dist/esm/apis/WorkflowRunsApi.d.ts +4 -4
- package/dist/esm/apis/WorkflowRunsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/BillingInterval.d.ts +25 -0
- package/dist/esm/models/BillingInterval.js +43 -0
- package/dist/esm/models/BillingPaymentResponse.d.ts +100 -0
- package/dist/esm/models/BillingPaymentResponse.js +75 -0
- package/dist/esm/models/BillingSystem.d.ts +30 -0
- package/dist/esm/models/BillingSystem.js +48 -0
- package/dist/esm/models/ChangeSubscriptionRequest.d.ts +34 -0
- package/dist/esm/models/ChangeSubscriptionRequest.js +10 -0
- package/dist/esm/models/CheckoutAction.d.ts +27 -0
- package/dist/esm/models/CheckoutAction.js +45 -0
- package/dist/esm/models/CheckoutResponse.d.ts +76 -0
- package/dist/esm/models/{SubmitSubscriptionResponse.js → CheckoutResponse.js} +20 -20
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +19 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +10 -0
- package/dist/esm/models/IdpConfig.d.ts +6 -0
- package/dist/esm/models/IdpConfig.js +10 -1
- package/dist/esm/models/PaginatedResponseBillingPaymentResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseBillingPaymentResponse.js +70 -0
- package/dist/esm/models/ScheduleCadence.d.ts +32 -0
- package/dist/esm/models/ScheduleCadence.js +50 -0
- package/dist/esm/models/SubscriptionPlanResponse.d.ts +24 -0
- package/dist/esm/models/SubscriptionPlanResponse.js +8 -0
- package/dist/esm/models/{SubmitSubscriptionResponse.d.ts → TenantSubscriptionResponse.d.ts} +49 -38
- package/dist/esm/models/TenantSubscriptionResponse.js +67 -0
- package/dist/esm/models/TrashItemDetailResponse.d.ts +110 -0
- package/dist/esm/models/TrashItemDetailResponse.js +81 -0
- package/dist/esm/models/TrashItemResponse.d.ts +7 -0
- package/dist/esm/models/TrashItemResponse.js +3 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +19 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +10 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +19 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +7 -0
- package/dist/esm/models/index.d.ts +9 -1
- package/dist/esm/models/index.js +9 -1
- package/dist/models/BillingInterval.d.ts +25 -0
- package/dist/models/BillingInterval.js +51 -0
- package/dist/models/BillingPaymentResponse.d.ts +100 -0
- package/dist/models/BillingPaymentResponse.js +83 -0
- package/dist/models/BillingSystem.d.ts +30 -0
- package/dist/models/BillingSystem.js +56 -0
- package/dist/models/ChangeSubscriptionRequest.d.ts +34 -0
- package/dist/models/ChangeSubscriptionRequest.js +10 -0
- package/dist/models/CheckoutAction.d.ts +27 -0
- package/dist/models/CheckoutAction.js +53 -0
- package/dist/models/CheckoutResponse.d.ts +76 -0
- package/dist/models/{SubmitSubscriptionResponse.js → CheckoutResponse.js} +26 -26
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +19 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +10 -0
- package/dist/models/IdpConfig.d.ts +6 -0
- package/dist/models/IdpConfig.js +10 -1
- package/dist/models/PaginatedResponseBillingPaymentResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseBillingPaymentResponse.js +78 -0
- package/dist/models/ScheduleCadence.d.ts +32 -0
- package/dist/models/ScheduleCadence.js +58 -0
- package/dist/models/SubscriptionPlanResponse.d.ts +24 -0
- package/dist/models/SubscriptionPlanResponse.js +8 -0
- package/dist/models/{SubmitSubscriptionResponse.d.ts → TenantSubscriptionResponse.d.ts} +49 -38
- package/dist/models/TenantSubscriptionResponse.js +75 -0
- package/dist/models/TrashItemDetailResponse.d.ts +110 -0
- package/dist/models/TrashItemDetailResponse.js +89 -0
- package/dist/models/TrashItemResponse.d.ts +7 -0
- package/dist/models/TrashItemResponse.js +3 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +19 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.js +10 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +19 -0
- package/dist/models/WorkflowDefinitionResponse.js +7 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/docs/BillingApi.md +90 -0
- package/docs/BillingInterval.md +33 -0
- package/docs/BillingPaymentResponse.md +51 -0
- package/docs/BillingSystem.md +33 -0
- package/docs/ChangeSubscriptionRequest.md +9 -1
- package/docs/CheckoutAction.md +33 -0
- package/docs/CheckoutResponse.md +41 -0
- package/docs/CreateWorkflowDefinitionRequest.md +6 -0
- package/docs/DocumentVersionsApi.md +2 -2
- package/docs/DocumentsApi.md +1 -1
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +6 -0
- package/docs/IdpConfig.md +2 -0
- package/docs/PaginatedResponseBillingPaymentResponse.md +40 -0
- package/docs/ScheduleCadence.md +33 -0
- package/docs/SubscriptionPlanResponse.md +8 -0
- package/docs/SubscriptionsApi.md +7 -10
- package/docs/TenantSubscriptionResponse.md +47 -0
- package/docs/TenantsApi.md +1 -1
- package/docs/TrashApi.md +76 -0
- package/docs/TrashItemDetailResponse.md +55 -0
- package/docs/TrashItemResponse.md +2 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +6 -0
- package/docs/WorkflowDefinitionResponse.md +6 -0
- package/docs/WorkflowRunsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +142 -0
- package/src/apis/DocumentVersionsApi.ts +8 -8
- package/src/apis/DocumentsApi.ts +4 -4
- package/src/apis/SubscriptionsApi.ts +24 -31
- package/src/apis/TenantsApi.ts +4 -4
- package/src/apis/TrashApi.ts +86 -0
- package/src/apis/WorkflowRunsApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/BillingInterval.ts +53 -0
- package/src/models/BillingPaymentResponse.ts +168 -0
- package/src/models/BillingSystem.ts +58 -0
- package/src/models/ChangeSubscriptionRequest.ts +55 -0
- package/src/models/CheckoutAction.ts +55 -0
- package/src/models/{SubmitSubscriptionResponse.ts → CheckoutResponse.ts} +61 -47
- package/src/models/CreateWorkflowDefinitionRequest.ts +37 -0
- package/src/models/IdpConfig.ts +14 -0
- package/src/models/PaginatedResponseBillingPaymentResponse.ts +130 -0
- package/src/models/ScheduleCadence.ts +60 -0
- package/src/models/SubscriptionPlanResponse.ts +32 -0
- package/src/models/TenantSubscriptionResponse.ts +159 -0
- package/src/models/TrashItemDetailResponse.ts +194 -0
- package/src/models/TrashItemResponse.ts +15 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +37 -0
- package/src/models/WorkflowDefinitionResponse.ts +31 -0
- package/src/models/index.ts +9 -1
- package/docs/SubmitSubscriptionResponse.md +0 -39
|
@@ -13,48 +13,62 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CheckoutAction } from './CheckoutAction';
|
|
17
|
+
import {
|
|
18
|
+
CheckoutActionFromJSON,
|
|
19
|
+
CheckoutActionFromJSONTyped,
|
|
20
|
+
CheckoutActionToJSON,
|
|
21
|
+
CheckoutActionToJSONTyped,
|
|
22
|
+
} from './CheckoutAction';
|
|
23
|
+
import type { BillingSystem } from './BillingSystem';
|
|
24
|
+
import {
|
|
25
|
+
BillingSystemFromJSON,
|
|
26
|
+
BillingSystemFromJSONTyped,
|
|
27
|
+
BillingSystemToJSON,
|
|
28
|
+
BillingSystemToJSONTyped,
|
|
29
|
+
} from './BillingSystem';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
|
-
* Result
|
|
18
|
-
*
|
|
19
|
-
* The endpoint returns immediately after the (mock-)Stripe charge is
|
|
20
|
-
* submitted; the actual plan/seat write happens later in the Stripe
|
|
21
|
-
* subscription webhook. ``submitted=True`` always when the route
|
|
22
|
-
* succeeds (errors raise via the global handler).
|
|
32
|
+
* Result of ``POST /v1/tenants/{tenant_id}/subscriptions``.
|
|
23
33
|
*
|
|
24
|
-
* ``
|
|
25
|
-
* ``
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* ``idempotency_key`` echoes the value forwarded to Stripe — clients
|
|
32
|
-
* can store it to correlate the eventual webhook receipt with the
|
|
33
|
-
* original request, and re-send it verbatim on retries.
|
|
34
|
+
* ``REDIRECT`` → send the browser to ``url`` (Stripe Checkout).
|
|
35
|
+
* ``CREDENTIAL`` → feed ``credential`` to the Ping++ JS SDK to invoke
|
|
36
|
+
* the chosen channel. ``SCHEDULED`` → nothing to pay; the current
|
|
37
|
+
* billed subscription will not renew and expires at period end.
|
|
38
|
+
* ``APPLIED`` → the change is already in effect (free-plan downgrade
|
|
39
|
+
* of an unbilled tenant, or a no-op request).
|
|
34
40
|
* @export
|
|
35
|
-
* @interface
|
|
41
|
+
* @interface CheckoutResponse
|
|
36
42
|
*/
|
|
37
|
-
export interface
|
|
43
|
+
export interface CheckoutResponse {
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {
|
|
41
|
-
* @memberof
|
|
45
|
+
*
|
|
46
|
+
* @type {CheckoutAction}
|
|
47
|
+
* @memberof CheckoutResponse
|
|
42
48
|
*/
|
|
43
|
-
|
|
49
|
+
action: CheckoutAction;
|
|
44
50
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
47
|
-
* @memberof
|
|
51
|
+
*
|
|
52
|
+
* @type {BillingSystem}
|
|
53
|
+
* @memberof CheckoutResponse
|
|
48
54
|
*/
|
|
49
|
-
|
|
55
|
+
billingSystem?: BillingSystem;
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
57
|
+
* Stripe Checkout URL (action=REDIRECT).
|
|
52
58
|
* @type {string}
|
|
53
|
-
* @memberof
|
|
59
|
+
* @memberof CheckoutResponse
|
|
54
60
|
*/
|
|
55
|
-
|
|
61
|
+
url?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Ping++ charge credential (action=CREDENTIAL).
|
|
64
|
+
* @type {{ [key: string]: any; }}
|
|
65
|
+
* @memberof CheckoutResponse
|
|
66
|
+
*/
|
|
67
|
+
credential?: { [key: string]: any; } | null;
|
|
56
68
|
}
|
|
57
|
-
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
export const CheckoutResponsePropertyValidationAttributesMap: {
|
|
58
72
|
[property: string]: {
|
|
59
73
|
maxLength?: number,
|
|
60
74
|
minLength?: number,
|
|
@@ -73,45 +87,45 @@ export const SubmitSubscriptionResponsePropertyValidationAttributesMap: {
|
|
|
73
87
|
|
|
74
88
|
|
|
75
89
|
/**
|
|
76
|
-
* Check if a given object implements the
|
|
90
|
+
* Check if a given object implements the CheckoutResponse interface.
|
|
77
91
|
*/
|
|
78
|
-
export function
|
|
79
|
-
if (!('
|
|
80
|
-
if (!('noop' in value) || value['noop'] === undefined) return false;
|
|
81
|
-
if (!('idempotencyKey' in value) || value['idempotencyKey'] === undefined) return false;
|
|
92
|
+
export function instanceOfCheckoutResponse(value: object): value is CheckoutResponse {
|
|
93
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
82
94
|
return true;
|
|
83
95
|
}
|
|
84
96
|
|
|
85
|
-
export function
|
|
86
|
-
return
|
|
97
|
+
export function CheckoutResponseFromJSON(json: any): CheckoutResponse {
|
|
98
|
+
return CheckoutResponseFromJSONTyped(json, false);
|
|
87
99
|
}
|
|
88
100
|
|
|
89
|
-
export function
|
|
101
|
+
export function CheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutResponse {
|
|
90
102
|
if (json == null) {
|
|
91
103
|
return json;
|
|
92
104
|
}
|
|
93
105
|
return {
|
|
94
106
|
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
107
|
+
'action': CheckoutActionFromJSON(json['action']),
|
|
108
|
+
'billingSystem': json['billing_system'] == null ? undefined : BillingSystemFromJSON(json['billing_system']),
|
|
109
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
110
|
+
'credential': json['credential'] == null ? undefined : json['credential'],
|
|
98
111
|
};
|
|
99
112
|
}
|
|
100
113
|
|
|
101
|
-
export function
|
|
102
|
-
return
|
|
114
|
+
export function CheckoutResponseToJSON(json: any): CheckoutResponse {
|
|
115
|
+
return CheckoutResponseToJSONTyped(json, false);
|
|
103
116
|
}
|
|
104
117
|
|
|
105
|
-
export function
|
|
118
|
+
export function CheckoutResponseToJSONTyped(value?: CheckoutResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
106
119
|
if (value == null) {
|
|
107
120
|
return value;
|
|
108
121
|
}
|
|
109
122
|
|
|
110
123
|
return {
|
|
111
124
|
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
125
|
+
'action': CheckoutActionToJSON(value['action']),
|
|
126
|
+
'billing_system': BillingSystemToJSON(value['billingSystem']),
|
|
127
|
+
'url': value['url'],
|
|
128
|
+
'credential': value['credential'],
|
|
115
129
|
};
|
|
116
130
|
}
|
|
117
131
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ScheduleCadence } from './ScheduleCadence';
|
|
17
|
+
import {
|
|
18
|
+
ScheduleCadenceFromJSON,
|
|
19
|
+
ScheduleCadenceFromJSONTyped,
|
|
20
|
+
ScheduleCadenceToJSON,
|
|
21
|
+
ScheduleCadenceToJSONTyped,
|
|
22
|
+
} from './ScheduleCadence';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Create a new workflow definition.
|
|
18
26
|
*
|
|
@@ -23,6 +31,24 @@ import { mapValues } from '../runtime';
|
|
|
23
31
|
* @interface CreateWorkflowDefinitionRequest
|
|
24
32
|
*/
|
|
25
33
|
export interface CreateWorkflowDefinitionRequest {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ScheduleCadence}
|
|
37
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
38
|
+
*/
|
|
39
|
+
scheduleCadence?: ScheduleCadence;
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
44
|
+
*/
|
|
45
|
+
scheduleStartAt?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
50
|
+
*/
|
|
51
|
+
scheduleTimezone?: string | null;
|
|
26
52
|
/**
|
|
27
53
|
*
|
|
28
54
|
* @type {string}
|
|
@@ -78,6 +104,8 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
78
104
|
*/
|
|
79
105
|
commonFilePathPartIds?: Array<string>;
|
|
80
106
|
}
|
|
107
|
+
|
|
108
|
+
|
|
81
109
|
export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
82
110
|
[property: string]: {
|
|
83
111
|
maxLength?: number,
|
|
@@ -93,6 +121,9 @@ export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
|
93
121
|
uniqueItems?: boolean
|
|
94
122
|
}
|
|
95
123
|
} = {
|
|
124
|
+
scheduleTimezone: {
|
|
125
|
+
maxLength: 64,
|
|
126
|
+
},
|
|
96
127
|
name: {
|
|
97
128
|
maxLength: 255,
|
|
98
129
|
},
|
|
@@ -133,6 +164,9 @@ export function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDi
|
|
|
133
164
|
}
|
|
134
165
|
return {
|
|
135
166
|
|
|
167
|
+
'scheduleCadence': json['schedule_cadence'] == null ? undefined : ScheduleCadenceFromJSON(json['schedule_cadence']),
|
|
168
|
+
'scheduleStartAt': json['schedule_start_at'] == null ? undefined : (new Date(json['schedule_start_at'])),
|
|
169
|
+
'scheduleTimezone': json['schedule_timezone'] == null ? undefined : json['schedule_timezone'],
|
|
136
170
|
'name': json['name'],
|
|
137
171
|
'description': json['description'] == null ? undefined : json['description'],
|
|
138
172
|
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
@@ -156,6 +190,9 @@ export function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflo
|
|
|
156
190
|
|
|
157
191
|
return {
|
|
158
192
|
|
|
193
|
+
'schedule_cadence': ScheduleCadenceToJSON(value['scheduleCadence']),
|
|
194
|
+
'schedule_start_at': value['scheduleStartAt'] == null ? value['scheduleStartAt'] : value['scheduleStartAt'].toISOString(),
|
|
195
|
+
'schedule_timezone': value['scheduleTimezone'],
|
|
159
196
|
'name': value['name'],
|
|
160
197
|
'description': value['description'],
|
|
161
198
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
package/src/models/IdpConfig.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface IdpConfig {
|
|
|
43
43
|
* @memberof IdpConfig
|
|
44
44
|
*/
|
|
45
45
|
_configuration: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
* Crontab string for directory sync
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof IdpConfig
|
|
50
|
+
*/
|
|
51
|
+
syncCrontab?: string | null;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
|
|
@@ -61,6 +67,12 @@ export const IdpConfigPropertyValidationAttributesMap: {
|
|
|
61
67
|
uniqueItems?: boolean
|
|
62
68
|
}
|
|
63
69
|
} = {
|
|
70
|
+
_configuration: {
|
|
71
|
+
minItems: 1,
|
|
72
|
+
},
|
|
73
|
+
syncCrontab: {
|
|
74
|
+
minLength: 9,
|
|
75
|
+
},
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
|
|
@@ -85,6 +97,7 @@ export function IdpConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
85
97
|
|
|
86
98
|
'provider': SupportedIdPFromJSON(json['provider']),
|
|
87
99
|
'_configuration': json['configuration'],
|
|
100
|
+
'syncCrontab': json['sync_crontab'] == null ? undefined : json['sync_crontab'],
|
|
88
101
|
};
|
|
89
102
|
}
|
|
90
103
|
|
|
@@ -101,6 +114,7 @@ export function IdpConfigToJSONTyped(value?: IdpConfig | null, ignoreDiscriminat
|
|
|
101
114
|
|
|
102
115
|
'provider': SupportedIdPToJSON(value['provider']),
|
|
103
116
|
'configuration': value['_configuration'],
|
|
117
|
+
'sync_crontab': value['syncCrontab'],
|
|
104
118
|
};
|
|
105
119
|
}
|
|
106
120
|
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BillingPaymentResponse } from './BillingPaymentResponse';
|
|
17
|
+
import {
|
|
18
|
+
BillingPaymentResponseFromJSON,
|
|
19
|
+
BillingPaymentResponseFromJSONTyped,
|
|
20
|
+
BillingPaymentResponseToJSON,
|
|
21
|
+
BillingPaymentResponseToJSONTyped,
|
|
22
|
+
} from './BillingPaymentResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseBillingPaymentResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseBillingPaymentResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<BillingPaymentResponse>}
|
|
33
|
+
* @memberof PaginatedResponseBillingPaymentResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<BillingPaymentResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseBillingPaymentResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseBillingPaymentResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseBillingPaymentResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
export const PaginatedResponseBillingPaymentResponsePropertyValidationAttributesMap: {
|
|
56
|
+
[property: string]: {
|
|
57
|
+
maxLength?: number,
|
|
58
|
+
minLength?: number,
|
|
59
|
+
pattern?: string,
|
|
60
|
+
maximum?: number,
|
|
61
|
+
exclusiveMaximum?: boolean,
|
|
62
|
+
minimum?: number,
|
|
63
|
+
exclusiveMinimum?: boolean,
|
|
64
|
+
multipleOf?: number,
|
|
65
|
+
maxItems?: number,
|
|
66
|
+
minItems?: number,
|
|
67
|
+
uniqueItems?: boolean
|
|
68
|
+
}
|
|
69
|
+
} = {
|
|
70
|
+
total: {
|
|
71
|
+
minimum: 0,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
limit: {
|
|
75
|
+
minimum: 1,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
offset: {
|
|
79
|
+
minimum: 0,
|
|
80
|
+
exclusiveMinimum: false,
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the PaginatedResponseBillingPaymentResponse interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfPaginatedResponseBillingPaymentResponse(value: object): value is PaginatedResponseBillingPaymentResponse {
|
|
89
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
90
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
91
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
92
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PaginatedResponseBillingPaymentResponseFromJSON(json: any): PaginatedResponseBillingPaymentResponse {
|
|
97
|
+
return PaginatedResponseBillingPaymentResponseFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PaginatedResponseBillingPaymentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseBillingPaymentResponse {
|
|
101
|
+
if (json == null) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'items': ((json['items'] as Array<any>).map(BillingPaymentResponseFromJSON)),
|
|
107
|
+
'total': json['total'],
|
|
108
|
+
'limit': json['limit'],
|
|
109
|
+
'offset': json['offset'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PaginatedResponseBillingPaymentResponseToJSON(json: any): PaginatedResponseBillingPaymentResponse {
|
|
114
|
+
return PaginatedResponseBillingPaymentResponseToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PaginatedResponseBillingPaymentResponseToJSONTyped(value?: PaginatedResponseBillingPaymentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'items': ((value['items'] as Array<any>).map(BillingPaymentResponseToJSON)),
|
|
125
|
+
'total': value['total'],
|
|
126
|
+
'limit': value['limit'],
|
|
127
|
+
'offset': value['offset'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* How often a workflow definition runs itself.
|
|
18
|
+
*
|
|
19
|
+
* The cadence names the recurrence; the time of day, weekday and day of
|
|
20
|
+
* month all come from the definition's ``schedule_start_at``, so an illegal
|
|
21
|
+
* combination (a daily cadence carrying a weekday, say) cannot be expressed.
|
|
22
|
+
* ``None`` on the definition means manual-only — the state every definition
|
|
23
|
+
* is in today.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const ScheduleCadence = {
|
|
27
|
+
Daily: 'DAILY',
|
|
28
|
+
Weekly: 'WEEKLY',
|
|
29
|
+
Monthly: 'MONTHLY'
|
|
30
|
+
} as const;
|
|
31
|
+
export type ScheduleCadence = typeof ScheduleCadence[keyof typeof ScheduleCadence];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfScheduleCadence(value: any): boolean {
|
|
35
|
+
for (const key in ScheduleCadence) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(ScheduleCadence, key)) {
|
|
37
|
+
if (ScheduleCadence[key as keyof typeof ScheduleCadence] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ScheduleCadenceFromJSON(json: any): ScheduleCadence {
|
|
46
|
+
return ScheduleCadenceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ScheduleCadenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleCadence {
|
|
50
|
+
return json as ScheduleCadence;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ScheduleCadenceToJSON(value?: ScheduleCadence | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ScheduleCadenceToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleCadence {
|
|
58
|
+
return value as ScheduleCadence;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -73,6 +73,30 @@ export interface SubscriptionPlanResponse {
|
|
|
73
73
|
* @memberof SubscriptionPlanResponse
|
|
74
74
|
*/
|
|
75
75
|
_public: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Per-seat monthly price in USD cents (Stripe / NA). NULL = not self-serve purchasable in this currency/interval.
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof SubscriptionPlanResponse
|
|
80
|
+
*/
|
|
81
|
+
priceMonthlyUsdCents?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Per-seat annual price in USD cents (Stripe / NA).
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof SubscriptionPlanResponse
|
|
86
|
+
*/
|
|
87
|
+
priceAnnualUsdCents?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* Per-seat monthly price in CNY fen (Ping++ / CN).
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof SubscriptionPlanResponse
|
|
92
|
+
*/
|
|
93
|
+
priceMonthlyCnyFen?: number | null;
|
|
94
|
+
/**
|
|
95
|
+
* Per-seat annual price in CNY fen (Ping++ / CN).
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof SubscriptionPlanResponse
|
|
98
|
+
*/
|
|
99
|
+
priceAnnualCnyFen?: number | null;
|
|
76
100
|
/**
|
|
77
101
|
* Plan creation timestamp.
|
|
78
102
|
* @type {Date}
|
|
@@ -139,6 +163,10 @@ export function SubscriptionPlanResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
139
163
|
'mediaMinutes': json['media_minutes'],
|
|
140
164
|
'maxSeats': json['max_seats'],
|
|
141
165
|
'_public': json['public'],
|
|
166
|
+
'priceMonthlyUsdCents': json['price_monthly_usd_cents'] == null ? undefined : json['price_monthly_usd_cents'],
|
|
167
|
+
'priceAnnualUsdCents': json['price_annual_usd_cents'] == null ? undefined : json['price_annual_usd_cents'],
|
|
168
|
+
'priceMonthlyCnyFen': json['price_monthly_cny_fen'] == null ? undefined : json['price_monthly_cny_fen'],
|
|
169
|
+
'priceAnnualCnyFen': json['price_annual_cny_fen'] == null ? undefined : json['price_annual_cny_fen'],
|
|
142
170
|
'createdAt': (new Date(json['created_at'])),
|
|
143
171
|
'updatedAt': (new Date(json['updated_at'])),
|
|
144
172
|
};
|
|
@@ -163,6 +191,10 @@ export function SubscriptionPlanResponseToJSONTyped(value?: SubscriptionPlanResp
|
|
|
163
191
|
'media_minutes': value['mediaMinutes'],
|
|
164
192
|
'max_seats': value['maxSeats'],
|
|
165
193
|
'public': value['_public'],
|
|
194
|
+
'price_monthly_usd_cents': value['priceMonthlyUsdCents'],
|
|
195
|
+
'price_annual_usd_cents': value['priceAnnualUsdCents'],
|
|
196
|
+
'price_monthly_cny_fen': value['priceMonthlyCnyFen'],
|
|
197
|
+
'price_annual_cny_fen': value['priceAnnualCnyFen'],
|
|
166
198
|
'created_at': value['createdAt'].toISOString(),
|
|
167
199
|
'updated_at': value['updatedAt'].toISOString(),
|
|
168
200
|
};
|