@nemphi/sdk 0.8.6854 → 0.8.6887
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/dist/block-kit-state.d.ts +3 -3
- package/dist/block-kit-state.d.ts.map +1 -1
- package/dist/block-kit-state.js +33 -17
- package/dist/block-kit-state.js.map +1 -1
- package/dist/block-kit.d.ts +46 -46
- package/dist/block-kit.d.ts.map +1 -1
- package/dist/block-kit.js +10 -5
- package/dist/block-kit.js.map +1 -1
- package/dist/index.d.ts +622 -622
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +179 -113
- package/dist/index.js.map +1 -1
- package/dist/reactions.d.ts +1 -1
- package/dist/reactions.d.ts.map +1 -1
- package/dist/reactions.js +10 -5
- package/dist/reactions.js.map +1 -1
- package/dist/ui-spec.d.ts +3 -3
- package/dist/ui-spec.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export interface Membership {
|
|
|
111
111
|
* A page offers an action (and a picker its «Crear…») only when its
|
|
112
112
|
* tool is here. Absent for built-in roles. The pipeline still decides.
|
|
113
113
|
*/
|
|
114
|
-
tools?: string
|
|
114
|
+
tools?: Array<string>;
|
|
115
115
|
/**
|
|
116
116
|
* When the workspace finished the profiling gate, or null while it
|
|
117
117
|
* still owes it answers. The app redirects to onboarding on null:
|
|
@@ -150,11 +150,11 @@ export interface WorkspaceProfile {
|
|
|
150
150
|
bookkeeping?: "none" | "spreadsheet" | "accountant" | "software";
|
|
151
151
|
has_employees: boolean;
|
|
152
152
|
/** Customer channels the business already uses (whatsapp, instagram, …). */
|
|
153
|
-
channels?: string
|
|
153
|
+
channels?: Array<string>;
|
|
154
154
|
/** Personal workspaces only. */
|
|
155
155
|
household?: string;
|
|
156
156
|
income?: string;
|
|
157
|
-
goals: string
|
|
157
|
+
goals: Array<string>;
|
|
158
158
|
autonomy: WorkspaceAutonomy;
|
|
159
159
|
guidance: WorkspaceGuidance;
|
|
160
160
|
}
|
|
@@ -167,24 +167,24 @@ export interface OnboardingQuestion {
|
|
|
167
167
|
/** Stable id; the dictionary keys its wording by this. */
|
|
168
168
|
id: string;
|
|
169
169
|
/** Option values, keyed "<id>.<option>" in the dictionary. */
|
|
170
|
-
options: string
|
|
170
|
+
options: Array<string>;
|
|
171
171
|
/** Several answers allowed. */
|
|
172
172
|
multiple?: boolean;
|
|
173
173
|
/** Asked once the workspace is open rather than by the gate. */
|
|
174
174
|
later?: boolean;
|
|
175
175
|
/** What has been answered so far. */
|
|
176
|
-
answers?: string
|
|
176
|
+
answers?: Array<string>;
|
|
177
177
|
}
|
|
178
178
|
/** The profiling gate's state: what applies, what is answered, what it means. */
|
|
179
179
|
export interface OnboardingState {
|
|
180
180
|
completed: boolean;
|
|
181
181
|
completed_at?: string;
|
|
182
|
-
questions: OnboardingQuestion
|
|
182
|
+
questions: Array<OnboardingQuestion>;
|
|
183
183
|
/** The gate's question ids still unanswered — the gate stays shut while non-empty. */
|
|
184
|
-
missing: string
|
|
184
|
+
missing: Array<string>;
|
|
185
185
|
profile: WorkspaceProfile;
|
|
186
186
|
/** Tool modules worth setting up for this workspace. */
|
|
187
|
-
modules: string
|
|
187
|
+
modules: Array<string>;
|
|
188
188
|
/** The autonomy level shown pre-selected: always the most cautious one. */
|
|
189
189
|
recommended_autonomy: WorkspaceAutonomy;
|
|
190
190
|
/**
|
|
@@ -193,7 +193,7 @@ export interface OnboardingState {
|
|
|
193
193
|
* until there is data to put in them.
|
|
194
194
|
*/
|
|
195
195
|
preview: {
|
|
196
|
-
blocks: CanvasBlock
|
|
196
|
+
blocks: Array<CanvasBlock>;
|
|
197
197
|
};
|
|
198
198
|
/** Set by onboarding.complete: autonomy rules written, canvas built. */
|
|
199
199
|
policies_seeded?: number;
|
|
@@ -211,18 +211,18 @@ export interface WorkspaceRole {
|
|
|
211
211
|
id: string;
|
|
212
212
|
name: string;
|
|
213
213
|
description?: string;
|
|
214
|
-
grants: RoleGrant
|
|
214
|
+
grants: Array<RoleGrant>;
|
|
215
215
|
members: number;
|
|
216
216
|
pending_invites: number;
|
|
217
217
|
created_at: string;
|
|
218
218
|
updated_at: string;
|
|
219
219
|
}
|
|
220
220
|
export interface RoleList {
|
|
221
|
-
builtin: {
|
|
221
|
+
builtin: Array<{
|
|
222
222
|
role: string;
|
|
223
223
|
access: string;
|
|
224
|
-
}
|
|
225
|
-
roles: WorkspaceRole
|
|
224
|
+
}>;
|
|
225
|
+
roles: Array<WorkspaceRole>;
|
|
226
226
|
}
|
|
227
227
|
export interface SessionResponse {
|
|
228
228
|
user: User;
|
|
@@ -238,7 +238,7 @@ export interface MfaChallenge {
|
|
|
238
238
|
/** Bearer token for completing this login, and nothing else. */
|
|
239
239
|
challenge: string;
|
|
240
240
|
expires_at: string;
|
|
241
|
-
methods: SecondFactor
|
|
241
|
+
methods: Array<SecondFactor>;
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
244
|
* What every first factor answers with — password, magic link, passkey
|
|
@@ -297,7 +297,7 @@ export interface SsoTarget {
|
|
|
297
297
|
export interface SsoLookup {
|
|
298
298
|
sso: SsoTarget | null;
|
|
299
299
|
/** Platform-wide social providers this deployment can offer. */
|
|
300
|
-
providers?:
|
|
300
|
+
providers?: Array<"google" | "microsoft">;
|
|
301
301
|
}
|
|
302
302
|
/** An identity provider connected to the current account. */
|
|
303
303
|
export interface ConnectedIdentity {
|
|
@@ -342,7 +342,7 @@ export interface OAuthConnectedApp {
|
|
|
342
342
|
logo_uri?: string;
|
|
343
343
|
tenant_id: string;
|
|
344
344
|
tenant_name: string;
|
|
345
|
-
scopes: string
|
|
345
|
+
scopes: Array<string>;
|
|
346
346
|
resource?: string;
|
|
347
347
|
access_expires_at: string;
|
|
348
348
|
refresh_expires_at?: string;
|
|
@@ -417,7 +417,7 @@ export interface RunQuestion {
|
|
|
417
417
|
question: string;
|
|
418
418
|
description?: string;
|
|
419
419
|
/** Choices to pick from; absent means a free-text answer. */
|
|
420
|
-
options?: RunQuestionOption
|
|
420
|
+
options?: Array<RunQuestionOption>;
|
|
421
421
|
/** Allow selecting more than one option. */
|
|
422
422
|
multiple?: boolean;
|
|
423
423
|
}
|
|
@@ -425,7 +425,7 @@ export interface RunQuestion {
|
|
|
425
425
|
export interface RunAnswer {
|
|
426
426
|
question: string;
|
|
427
427
|
/** Selected option labels, or a single free-text value. Empty = skipped. */
|
|
428
|
-
answer: string
|
|
428
|
+
answer: Array<string>;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* A whole agent trace: every run of one delegation tree, each with its
|
|
@@ -451,7 +451,7 @@ export interface RunTrace {
|
|
|
451
451
|
/** True when the tree hit the server's run or step cap and spans were left out. */
|
|
452
452
|
truncated: boolean;
|
|
453
453
|
/** Every run of the tree, roots first, each with `steps` and `agent_name` set. */
|
|
454
|
-
runs: Run
|
|
454
|
+
runs: Array<Run>;
|
|
455
455
|
}
|
|
456
456
|
export interface AnswerResult {
|
|
457
457
|
run_id: string;
|
|
@@ -496,9 +496,9 @@ export interface Run {
|
|
|
496
496
|
max_duration_ms: number;
|
|
497
497
|
/** Working time consumed so far: LLM turns plus tool calls, excluding parked time. */
|
|
498
498
|
used_duration_ms: number;
|
|
499
|
-
steps?: RunStep
|
|
499
|
+
steps?: Array<RunStep>;
|
|
500
500
|
/** Set on the run detail endpoint: child runs this run spawned (agents.delegate / agents.ask). */
|
|
501
|
-
children?: Run
|
|
501
|
+
children?: Array<Run>;
|
|
502
502
|
/** Position in the delegation tree; omitted (0) for roots. */
|
|
503
503
|
depth?: number;
|
|
504
504
|
/** The run whose delegate call spawned this one. */
|
|
@@ -514,7 +514,7 @@ export interface Run {
|
|
|
514
514
|
* they wanted mailed about). Empty means in-app only, which is where
|
|
515
515
|
* every run reports regardless.
|
|
516
516
|
*/
|
|
517
|
-
notify_channels?: NotificationChannel
|
|
517
|
+
notify_channels?: Array<NotificationChannel>;
|
|
518
518
|
/** W3C trace id of the run's OpenTelemetry trace: every span of the run and its delegation tree shares it. Set once the first traced span exists. */
|
|
519
519
|
trace_id?: string;
|
|
520
520
|
created_at: string;
|
|
@@ -541,7 +541,7 @@ export interface Routine {
|
|
|
541
541
|
tool_pattern: string;
|
|
542
542
|
event_filter: RoutineFilter;
|
|
543
543
|
webhook_key_hint: string;
|
|
544
|
-
notify_channels: NotificationChannel
|
|
544
|
+
notify_channels: Array<NotificationChannel>;
|
|
545
545
|
created_at: string;
|
|
546
546
|
updated_at: string;
|
|
547
547
|
}
|
|
@@ -555,7 +555,7 @@ export interface RoutineRun {
|
|
|
555
555
|
error: string;
|
|
556
556
|
}
|
|
557
557
|
export interface RoutineDetail extends Routine {
|
|
558
|
-
runs: RoutineRun
|
|
558
|
+
runs: Array<RoutineRun>;
|
|
559
559
|
}
|
|
560
560
|
export interface RoutineListInput {
|
|
561
561
|
agent?: string;
|
|
@@ -574,7 +574,7 @@ export interface SaveRoutineInput {
|
|
|
574
574
|
cron?: string;
|
|
575
575
|
tool_pattern?: string;
|
|
576
576
|
filter?: RoutineFilter;
|
|
577
|
-
notify_channels?: NotificationChannel
|
|
577
|
+
notify_channels?: Array<NotificationChannel>;
|
|
578
578
|
enabled?: boolean;
|
|
579
579
|
}
|
|
580
580
|
export interface ApprovalDecision {
|
|
@@ -613,7 +613,7 @@ export interface Notification {
|
|
|
613
613
|
approval_id?: string;
|
|
614
614
|
data?: unknown;
|
|
615
615
|
/** External channels the raising task asked for, on top of the member's own destination. */
|
|
616
|
-
channels?: NotificationChannel
|
|
616
|
+
channels?: Array<NotificationChannel>;
|
|
617
617
|
read: boolean;
|
|
618
618
|
resolved: boolean;
|
|
619
619
|
created_at: string;
|
|
@@ -688,7 +688,7 @@ export type RealtimeEvent = {
|
|
|
688
688
|
} | {
|
|
689
689
|
type: "presence";
|
|
690
690
|
/** Member ids with at least one open connection to the workspace. */
|
|
691
|
-
users: string
|
|
691
|
+
users: Array<string>;
|
|
692
692
|
} | {
|
|
693
693
|
type: "change";
|
|
694
694
|
/**
|
|
@@ -789,7 +789,7 @@ export interface InboxApproval {
|
|
|
789
789
|
}
|
|
790
790
|
export interface InboxQuestion {
|
|
791
791
|
run_id: string;
|
|
792
|
-
questions: RunQuestion
|
|
792
|
+
questions: Array<RunQuestion> | null;
|
|
793
793
|
goal: string;
|
|
794
794
|
/** What the run is about as a person reads it ("" when it names nothing). */
|
|
795
795
|
title?: string;
|
|
@@ -819,10 +819,10 @@ export interface Inbox {
|
|
|
819
819
|
* row's own `can_decide`: follow the row.
|
|
820
820
|
*/
|
|
821
821
|
can_decide: boolean;
|
|
822
|
-
pending_approvals: InboxApproval
|
|
823
|
-
pending_questions: InboxQuestion
|
|
824
|
-
policy_suggestions: PolicySuggestion
|
|
825
|
-
notifications: Notification
|
|
822
|
+
pending_approvals: Array<InboxApproval>;
|
|
823
|
+
pending_questions: Array<InboxQuestion>;
|
|
824
|
+
policy_suggestions: Array<PolicySuggestion>;
|
|
825
|
+
notifications: Array<Notification>;
|
|
826
826
|
unread: number;
|
|
827
827
|
}
|
|
828
828
|
export type NotificationChannel = "email" | "whatsapp";
|
|
@@ -852,7 +852,7 @@ export interface MessageNotifyPrefs {
|
|
|
852
852
|
mobile?: MessageGlobalNotifyPref;
|
|
853
853
|
suppress_channel_mentions?: boolean;
|
|
854
854
|
threads_everything?: boolean;
|
|
855
|
-
highlight_words?: string
|
|
855
|
+
highlight_words?: Array<string>;
|
|
856
856
|
mark_channel_read_on_desktop?: boolean;
|
|
857
857
|
dnd?: MessageDnDPrefs;
|
|
858
858
|
}
|
|
@@ -860,16 +860,16 @@ export interface NotificationPrefs {
|
|
|
860
860
|
/** Per-kind delivery: app (default), email, WhatsApp, both, or none (muted). */
|
|
861
861
|
destinations: Partial<Record<NotificationKind, NotificationDestination>>;
|
|
862
862
|
/** Derived: union of channels across destinations (legacy). */
|
|
863
|
-
channels: NotificationChannel
|
|
863
|
+
channels: Array<NotificationChannel>;
|
|
864
864
|
/** Derived: kinds whose destination is not none. */
|
|
865
|
-
kinds: NotificationKind
|
|
865
|
+
kinds: Array<NotificationKind>;
|
|
866
866
|
/** Kinds this member may enable (owners/admins: all; members: the workspace allowlist). */
|
|
867
|
-
available_kinds: NotificationKind
|
|
867
|
+
available_kinds: Array<NotificationKind>;
|
|
868
868
|
/** Kinds this member cannot turn off (approvals/questions for owners/admins). */
|
|
869
|
-
locked_kinds: NotificationKind
|
|
869
|
+
locked_kinds: Array<NotificationKind>;
|
|
870
870
|
phone: string | null;
|
|
871
871
|
phone_verified: boolean;
|
|
872
|
-
available_channels: NotificationChannel
|
|
872
|
+
available_channels: Array<NotificationChannel>;
|
|
873
873
|
whatsapp_enabled: boolean;
|
|
874
874
|
/** Chat notification decision dials (mute/DnD/mentions/threads). */
|
|
875
875
|
message_notify: MessageNotifyPrefs;
|
|
@@ -877,9 +877,9 @@ export interface NotificationPrefs {
|
|
|
877
877
|
/** Workspace-level notification settings (owner/admin only). */
|
|
878
878
|
export interface WorkspaceNotificationSettings {
|
|
879
879
|
/** Kinds plain members may receive; owners/admins always have the full set. */
|
|
880
|
-
member_kinds: NotificationKind
|
|
880
|
+
member_kinds: Array<NotificationKind>;
|
|
881
881
|
/** Every kind the platform knows, in display order. */
|
|
882
|
-
kinds: NotificationKind
|
|
882
|
+
kinds: Array<NotificationKind>;
|
|
883
883
|
}
|
|
884
884
|
export interface BankTransaction {
|
|
885
885
|
id: string;
|
|
@@ -896,7 +896,7 @@ export interface BankTransaction {
|
|
|
896
896
|
matched_id?: string;
|
|
897
897
|
payment_id?: string;
|
|
898
898
|
created_at: string;
|
|
899
|
-
candidates?: BankCandidate
|
|
899
|
+
candidates?: Array<BankCandidate>;
|
|
900
900
|
}
|
|
901
901
|
export interface BankCandidate {
|
|
902
902
|
kind: "invoice" | "bill";
|
|
@@ -919,7 +919,7 @@ export interface BankSummary {
|
|
|
919
919
|
oldest_unmatched?: string | null;
|
|
920
920
|
}
|
|
921
921
|
export interface BankTransactionsResponse {
|
|
922
|
-
transactions: BankTransaction
|
|
922
|
+
transactions: Array<BankTransaction>;
|
|
923
923
|
summary: BankSummary;
|
|
924
924
|
}
|
|
925
925
|
export type FixedAssetCategory = "land" | "building" | "machinery" | "vehicle" | "computer" | "furniture" | "intangible" | "other";
|
|
@@ -997,7 +997,7 @@ export interface FixedAssetSummaryRow {
|
|
|
997
997
|
export interface FixedAssetSummary {
|
|
998
998
|
as_of: string;
|
|
999
999
|
currency: string;
|
|
1000
|
-
categories: FixedAssetSummaryRow
|
|
1000
|
+
categories: Array<FixedAssetSummaryRow>;
|
|
1001
1001
|
totals: {
|
|
1002
1002
|
asset_count: number;
|
|
1003
1003
|
cost_cents: number;
|
|
@@ -1029,7 +1029,7 @@ export interface DepreciationRunResult {
|
|
|
1029
1029
|
period: string;
|
|
1030
1030
|
currency: string;
|
|
1031
1031
|
journal_entry: JournalEntry | null;
|
|
1032
|
-
depreciated: {
|
|
1032
|
+
depreciated: Array<{
|
|
1033
1033
|
asset_id: string;
|
|
1034
1034
|
name: string;
|
|
1035
1035
|
code: string | null;
|
|
@@ -1038,7 +1038,7 @@ export interface DepreciationRunResult {
|
|
|
1038
1038
|
accumulated_cents: number;
|
|
1039
1039
|
book_value_cents: number;
|
|
1040
1040
|
fully_depreciated: boolean;
|
|
1041
|
-
}
|
|
1041
|
+
}>;
|
|
1042
1042
|
skipped: number;
|
|
1043
1043
|
total_cents: number;
|
|
1044
1044
|
}
|
|
@@ -1139,8 +1139,8 @@ export interface Liquidation {
|
|
|
1139
1139
|
base_prestaciones_cents: number;
|
|
1140
1140
|
indemnity_days: number;
|
|
1141
1141
|
seniority_days: number;
|
|
1142
|
-
steps: string
|
|
1143
|
-
warnings?: string
|
|
1142
|
+
steps: Array<string>;
|
|
1143
|
+
warnings?: Array<string>;
|
|
1144
1144
|
params_source: string;
|
|
1145
1145
|
termination_reason: string;
|
|
1146
1146
|
}
|
|
@@ -1219,11 +1219,11 @@ export interface PayslipTrace {
|
|
|
1219
1219
|
bracket: string;
|
|
1220
1220
|
tax_uvt: number;
|
|
1221
1221
|
tax_cents: number;
|
|
1222
|
-
steps: string
|
|
1222
|
+
steps: Array<string>;
|
|
1223
1223
|
};
|
|
1224
|
-
steps: string
|
|
1225
|
-
warnings?: string
|
|
1226
|
-
notes?: string
|
|
1224
|
+
steps: Array<string>;
|
|
1225
|
+
warnings?: Array<string>;
|
|
1226
|
+
notes?: Array<string>;
|
|
1227
1227
|
period_days: number;
|
|
1228
1228
|
contract_type: ContractType;
|
|
1229
1229
|
salary_type: SalaryType;
|
|
@@ -1297,7 +1297,7 @@ export interface PayrollParameters {
|
|
|
1297
1297
|
year: number;
|
|
1298
1298
|
currency: string;
|
|
1299
1299
|
source?: string;
|
|
1300
|
-
notes?: string
|
|
1300
|
+
notes?: Array<string>;
|
|
1301
1301
|
smmlv_cents: number;
|
|
1302
1302
|
transport_allowance_cents: number;
|
|
1303
1303
|
uvt_cents: number;
|
|
@@ -1313,15 +1313,15 @@ export interface PayrollParameters {
|
|
|
1313
1313
|
health_employer_rate: number;
|
|
1314
1314
|
pension_employee_rate: number;
|
|
1315
1315
|
pension_employer_rate: number;
|
|
1316
|
-
arl_rates: number
|
|
1316
|
+
arl_rates: Array<number>;
|
|
1317
1317
|
sena_rate: number;
|
|
1318
1318
|
icbf_rate: number;
|
|
1319
1319
|
ccf_rate: number;
|
|
1320
|
-
solidarity_fund: {
|
|
1320
|
+
solidarity_fund: Array<{
|
|
1321
1321
|
from_smmlv: number;
|
|
1322
1322
|
to_smmlv: number;
|
|
1323
1323
|
rate: number;
|
|
1324
|
-
}
|
|
1324
|
+
}>;
|
|
1325
1325
|
cesantias_rate: number;
|
|
1326
1326
|
intereses_cesantias_rate: number;
|
|
1327
1327
|
prima_rate: number;
|
|
@@ -1344,12 +1344,12 @@ export interface PayrollParameters {
|
|
|
1344
1344
|
exempt_cap_uvt_annual: number;
|
|
1345
1345
|
total_cap_rate: number;
|
|
1346
1346
|
total_cap_uvt_annual: number;
|
|
1347
|
-
brackets: {
|
|
1347
|
+
brackets: Array<{
|
|
1348
1348
|
from_uvt: number;
|
|
1349
1349
|
to_uvt: number;
|
|
1350
1350
|
rate: number;
|
|
1351
1351
|
add_uvt: number;
|
|
1352
|
-
}
|
|
1352
|
+
}>;
|
|
1353
1353
|
};
|
|
1354
1354
|
indemnity: {
|
|
1355
1355
|
low_first_year_days: number;
|
|
@@ -1378,12 +1378,12 @@ export interface PayrollParametersResult {
|
|
|
1378
1378
|
country: string;
|
|
1379
1379
|
year: number;
|
|
1380
1380
|
/** Keys the workspace overrides on top of the built-in defaults. */
|
|
1381
|
-
override_keys: string
|
|
1381
|
+
override_keys: Array<string> | null;
|
|
1382
1382
|
overrides: JsonObject;
|
|
1383
|
-
known_default_years: number
|
|
1384
|
-
keys: string
|
|
1383
|
+
known_default_years: Array<number> | null;
|
|
1384
|
+
keys: Array<string>;
|
|
1385
1385
|
/** The dial catalog, in display order. */
|
|
1386
|
-
schema: PayrollParamField
|
|
1386
|
+
schema: Array<PayrollParamField>;
|
|
1387
1387
|
/** The year's values with no workspace overrides (country defaults + platform row). */
|
|
1388
1388
|
defaults?: PayrollParameters;
|
|
1389
1389
|
effective?: PayrollParameters;
|
|
@@ -1405,19 +1405,19 @@ export interface PayslipSummary {
|
|
|
1405
1405
|
export interface PayrollCalculateResult {
|
|
1406
1406
|
run: PayrollRun;
|
|
1407
1407
|
totals: PayrollRunTotals;
|
|
1408
|
-
payslips: PayslipSummary
|
|
1409
|
-
skipped: {
|
|
1408
|
+
payslips: Array<PayslipSummary>;
|
|
1409
|
+
skipped: Array<{
|
|
1410
1410
|
employee_id: string;
|
|
1411
1411
|
name: string;
|
|
1412
1412
|
reason: string;
|
|
1413
|
-
}
|
|
1414
|
-
warnings: {
|
|
1413
|
+
}> | null;
|
|
1414
|
+
warnings: Array<{
|
|
1415
1415
|
employee_id: string;
|
|
1416
1416
|
name: string;
|
|
1417
1417
|
warning: string;
|
|
1418
|
-
}
|
|
1418
|
+
}> | null;
|
|
1419
1419
|
parameters_source: string;
|
|
1420
|
-
parameter_notes: string
|
|
1420
|
+
parameter_notes: Array<string> | null;
|
|
1421
1421
|
}
|
|
1422
1422
|
export interface PayrollPostResult {
|
|
1423
1423
|
run: PayrollRun;
|
|
@@ -1445,7 +1445,7 @@ export interface PayrollPayResult {
|
|
|
1445
1445
|
employee?: Employee;
|
|
1446
1446
|
journal_entry: JournalEntry;
|
|
1447
1447
|
total_cents: number;
|
|
1448
|
-
payments: PayrollPaymentRow
|
|
1448
|
+
payments: Array<PayrollPaymentRow>;
|
|
1449
1449
|
remaining_unpaid?: number;
|
|
1450
1450
|
payment_date?: string;
|
|
1451
1451
|
}
|
|
@@ -1485,9 +1485,9 @@ export interface PilaRow {
|
|
|
1485
1485
|
export interface PilaSummary {
|
|
1486
1486
|
period: string;
|
|
1487
1487
|
currency: string;
|
|
1488
|
-
runs: string
|
|
1489
|
-
draft_runs: string
|
|
1490
|
-
employees: PilaRow
|
|
1488
|
+
runs: Array<string>;
|
|
1489
|
+
draft_runs: Array<string> | null;
|
|
1490
|
+
employees: Array<PilaRow> | null;
|
|
1491
1491
|
totals: PilaRow;
|
|
1492
1492
|
/** Ready-to-upload CSV for the PILA operator. */
|
|
1493
1493
|
csv: string;
|
|
@@ -1563,7 +1563,7 @@ export interface BudgetLine {
|
|
|
1563
1563
|
starts_on: string;
|
|
1564
1564
|
ends_on: string | null;
|
|
1565
1565
|
archived: boolean;
|
|
1566
|
-
months: BudgetMonth
|
|
1566
|
+
months: Array<BudgetMonth>;
|
|
1567
1567
|
}
|
|
1568
1568
|
/** The budget planner's year (`budget.overview`). */
|
|
1569
1569
|
export interface BudgetOverview {
|
|
@@ -1571,7 +1571,7 @@ export interface BudgetOverview {
|
|
|
1571
1571
|
today: string;
|
|
1572
1572
|
/** Caja y bancos at the close of the day before the year opens. */
|
|
1573
1573
|
opening_cash_cents: number;
|
|
1574
|
-
lines: BudgetLine
|
|
1574
|
+
lines: Array<BudgetLine>;
|
|
1575
1575
|
}
|
|
1576
1576
|
export interface RecurringDocument {
|
|
1577
1577
|
id: string;
|
|
@@ -1612,7 +1612,7 @@ export interface Policy {
|
|
|
1612
1612
|
updated_at: string;
|
|
1613
1613
|
}
|
|
1614
1614
|
export interface PolicyList {
|
|
1615
|
-
policies: Policy
|
|
1615
|
+
policies: Array<Policy>;
|
|
1616
1616
|
/** The platform's default per tool when no policy matches, the class policy included. */
|
|
1617
1617
|
defaults: Record<string, "allow" | "require_approval">;
|
|
1618
1618
|
/**
|
|
@@ -1626,7 +1626,7 @@ export interface PolicyList {
|
|
|
1626
1626
|
* covers them: under "up to an amount" they always ask. Absent from an
|
|
1627
1627
|
* older platform.
|
|
1628
1628
|
*/
|
|
1629
|
-
amountless?: string
|
|
1629
|
+
amountless?: Array<string>;
|
|
1630
1630
|
}
|
|
1631
1631
|
export interface ActionPreview {
|
|
1632
1632
|
action: "approve" | "deny";
|
|
@@ -1666,7 +1666,7 @@ export interface LiveDocumentFile {
|
|
|
1666
1666
|
* the run the reading started (`/dashboard/runs/{run_id}`).
|
|
1667
1667
|
*/
|
|
1668
1668
|
export interface LiveDocumentFileWork {
|
|
1669
|
-
actions: ThreadActionRow
|
|
1669
|
+
actions: Array<ThreadActionRow>;
|
|
1670
1670
|
more: number;
|
|
1671
1671
|
run_id: string;
|
|
1672
1672
|
run_status: string;
|
|
@@ -1674,11 +1674,11 @@ export interface LiveDocumentFileWork {
|
|
|
1674
1674
|
/** What the books keep a document as support of: deleting its Docs file keeps it. */
|
|
1675
1675
|
export interface DocumentSupport {
|
|
1676
1676
|
/** Bills filed or made from it. */
|
|
1677
|
-
bills: {
|
|
1677
|
+
bills: Array<{
|
|
1678
1678
|
id: string;
|
|
1679
1679
|
number: string;
|
|
1680
1680
|
vendor: string;
|
|
1681
|
-
}
|
|
1681
|
+
}>;
|
|
1682
1682
|
/** Bank movements imported from it. */
|
|
1683
1683
|
bank_transactions: number;
|
|
1684
1684
|
/** Whether it is an e-invoice artifact the DIAN validated. */
|
|
@@ -1697,9 +1697,9 @@ export interface DocumentWorkRun {
|
|
|
1697
1697
|
/** What Nemphi did with a document after reading it (`documents.work`). */
|
|
1698
1698
|
export interface DocumentWork {
|
|
1699
1699
|
document_id: string;
|
|
1700
|
-
runs: DocumentWorkRun
|
|
1700
|
+
runs: Array<DocumentWorkRun>;
|
|
1701
1701
|
/** Every record its runs made or changed, oldest first. */
|
|
1702
|
-
actions: ThreadActionRow
|
|
1702
|
+
actions: Array<ThreadActionRow>;
|
|
1703
1703
|
support: DocumentSupport;
|
|
1704
1704
|
}
|
|
1705
1705
|
/** A document the books keep as support outside Docs, as `documents.support` lists it. */
|
|
@@ -1714,7 +1714,7 @@ export interface SupportDocument {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
/** The documents kept as support outside Docs (`documents.support`), at most 50. */
|
|
1716
1716
|
export interface SupportDocuments {
|
|
1717
|
-
documents: SupportDocument
|
|
1717
|
+
documents: Array<SupportDocument>;
|
|
1718
1718
|
/** More are kept than listed. */
|
|
1719
1719
|
more: boolean;
|
|
1720
1720
|
}
|
|
@@ -1776,7 +1776,7 @@ export interface LiveDocument {
|
|
|
1776
1776
|
file: LiveDocumentFile | null;
|
|
1777
1777
|
/** Whether the caller owns it: a personal document they created. */
|
|
1778
1778
|
owned: boolean;
|
|
1779
|
-
tags: LiveDocumentTag
|
|
1779
|
+
tags: Array<LiveDocumentTag>;
|
|
1780
1780
|
created_at: string;
|
|
1781
1781
|
updated_at: string;
|
|
1782
1782
|
/** When it went to the trash; null while it is on a shelf. */
|
|
@@ -1849,7 +1849,7 @@ export interface FileSyncMoveInput {
|
|
|
1849
1849
|
}
|
|
1850
1850
|
/** A page of `filesync.changes`: keep calling with `cursor` while `has_more`; `reset` means list again. */
|
|
1851
1851
|
export interface FileSyncPage {
|
|
1852
|
-
items: FileSyncItem
|
|
1852
|
+
items: Array<FileSyncItem>;
|
|
1853
1853
|
cursor: string;
|
|
1854
1854
|
has_more: boolean;
|
|
1855
1855
|
reset: boolean;
|
|
@@ -1860,11 +1860,11 @@ export interface LiveDocumentShares {
|
|
|
1860
1860
|
space: LiveDocumentSpace;
|
|
1861
1861
|
owner_id: string | null;
|
|
1862
1862
|
owned: boolean;
|
|
1863
|
-
shares: {
|
|
1863
|
+
shares: Array<{
|
|
1864
1864
|
user_id: string;
|
|
1865
1865
|
name: string;
|
|
1866
1866
|
email: string;
|
|
1867
|
-
}
|
|
1867
|
+
}>;
|
|
1868
1868
|
}
|
|
1869
1869
|
/** What a comment's @-mentions told (`knowledge.mention_in_comment`). */
|
|
1870
1870
|
export interface LiveDocumentMentions {
|
|
@@ -1872,17 +1872,17 @@ export interface LiveDocumentMentions {
|
|
|
1872
1872
|
thread_id: string;
|
|
1873
1873
|
comment_id: string;
|
|
1874
1874
|
/** The members named who can open the document. */
|
|
1875
|
-
mentioned: string
|
|
1875
|
+
mentioned: Array<string>;
|
|
1876
1876
|
/** Those this comment had not told before, now notified. */
|
|
1877
|
-
notified: string
|
|
1877
|
+
notified: Array<string>;
|
|
1878
1878
|
/** Members the document is closed to, told nothing. */
|
|
1879
|
-
skipped: string
|
|
1879
|
+
skipped: Array<string>;
|
|
1880
1880
|
}
|
|
1881
1881
|
/** One comment's mentions, as `mentionInLiveDocumentComment` sends them. */
|
|
1882
1882
|
export interface LiveDocumentMentionInput {
|
|
1883
1883
|
thread_id: string;
|
|
1884
1884
|
comment_id: string;
|
|
1885
|
-
user_ids: string
|
|
1885
|
+
user_ids: Array<string>;
|
|
1886
1886
|
/** The comment's words, quoted in the notification. */
|
|
1887
1887
|
text?: string;
|
|
1888
1888
|
}
|
|
@@ -1890,7 +1890,7 @@ export interface LiveDocumentMentionInput {
|
|
|
1890
1890
|
export type TransferExpiryDays = 1 | 3 | 7 | 14 | 30;
|
|
1891
1891
|
/** What `createTransfer` sends (`transfers.create`). */
|
|
1892
1892
|
export interface TransferInput {
|
|
1893
|
-
live_document_ids: string
|
|
1893
|
+
live_document_ids: Array<string>;
|
|
1894
1894
|
/** The first document's title by default. */
|
|
1895
1895
|
title?: string;
|
|
1896
1896
|
message?: string;
|
|
@@ -1899,7 +1899,7 @@ export interface TransferInput {
|
|
|
1899
1899
|
/** 6 to 72 characters; none by default. */
|
|
1900
1900
|
password?: string;
|
|
1901
1901
|
/** Addresses mailed the link. */
|
|
1902
|
-
recipients?: string
|
|
1902
|
+
recipients?: Array<string>;
|
|
1903
1903
|
}
|
|
1904
1904
|
/** One document a transfer carries. */
|
|
1905
1905
|
export interface TransferItem {
|
|
@@ -1916,8 +1916,8 @@ export interface CreatedTransfer {
|
|
|
1916
1916
|
title: string;
|
|
1917
1917
|
expires_at: string;
|
|
1918
1918
|
locked: boolean;
|
|
1919
|
-
items: TransferItem
|
|
1920
|
-
recipients: string
|
|
1919
|
+
items: Array<TransferItem>;
|
|
1920
|
+
recipients: Array<string>;
|
|
1921
1921
|
}
|
|
1922
1922
|
/** One of the caller's transfers (`transfers.list`). The link is not kept. */
|
|
1923
1923
|
export interface Transfer {
|
|
@@ -1932,7 +1932,7 @@ export interface Transfer {
|
|
|
1932
1932
|
revoked_at: string | null;
|
|
1933
1933
|
download_count: number;
|
|
1934
1934
|
created_at: string;
|
|
1935
|
-
items: TransferItem
|
|
1935
|
+
items: Array<TransferItem>;
|
|
1936
1936
|
}
|
|
1937
1937
|
/** One document on a transfer's public page. */
|
|
1938
1938
|
export interface PublicTransferItem {
|
|
@@ -1949,12 +1949,12 @@ export interface PublicTransfer {
|
|
|
1949
1949
|
sender_name: string;
|
|
1950
1950
|
expires_at: string;
|
|
1951
1951
|
locked: boolean;
|
|
1952
|
-
items?: PublicTransferItem
|
|
1952
|
+
items?: Array<PublicTransferItem>;
|
|
1953
1953
|
}
|
|
1954
1954
|
/** An unlocked transfer: the key its downloads carry for an hour. */
|
|
1955
1955
|
export interface UnlockedTransfer {
|
|
1956
1956
|
key: string;
|
|
1957
|
-
items: PublicTransferItem
|
|
1957
|
+
items: Array<PublicTransferItem>;
|
|
1958
1958
|
}
|
|
1959
1959
|
/** One of the workspace's document tags and what it means. */
|
|
1960
1960
|
export interface LiveDocumentWorkspaceTag {
|
|
@@ -2077,8 +2077,8 @@ export interface CompanyProfile {
|
|
|
2077
2077
|
person_type: "natural" | "juridica" | "";
|
|
2078
2078
|
legal_form: string;
|
|
2079
2079
|
ciiu_primary: string;
|
|
2080
|
-
ciiu_secondary: string
|
|
2081
|
-
fiscal_responsibilities: string
|
|
2080
|
+
ciiu_secondary: Array<string>;
|
|
2081
|
+
fiscal_responsibilities: Array<string>;
|
|
2082
2082
|
municipality_code: string;
|
|
2083
2083
|
city: string;
|
|
2084
2084
|
address: string;
|
|
@@ -2097,14 +2097,14 @@ export interface CompanyProfile {
|
|
|
2097
2097
|
export interface CompanyProfileResponse {
|
|
2098
2098
|
profile: CompanyProfile;
|
|
2099
2099
|
/** Identity fields still unknown (legal_name, tax_id, person_type, legal_form, ciiu_primary). */
|
|
2100
|
-
missing: string
|
|
2100
|
+
missing: Array<string>;
|
|
2101
2101
|
/** Which registration document to ask the owner for, by tenant country. */
|
|
2102
2102
|
document_request: {
|
|
2103
2103
|
document: string;
|
|
2104
2104
|
kind: CompanyDocumentKind;
|
|
2105
2105
|
why: string;
|
|
2106
2106
|
};
|
|
2107
|
-
warnings: string
|
|
2107
|
+
warnings: Array<string>;
|
|
2108
2108
|
}
|
|
2109
2109
|
/** Result of uploading a company logo (`POST /v1/company/logo`). */
|
|
2110
2110
|
export interface CompanyLogo {
|
|
@@ -2176,7 +2176,7 @@ export interface SupportTicketSummary extends SupportTicket {
|
|
|
2176
2176
|
}
|
|
2177
2177
|
/** support.tickets: one tab's tickets and how many each tab holds. */
|
|
2178
2178
|
export interface SupportTicketList {
|
|
2179
|
-
tickets: SupportTicketSummary
|
|
2179
|
+
tickets: Array<SupportTicketSummary>;
|
|
2180
2180
|
counts?: {
|
|
2181
2181
|
open: number;
|
|
2182
2182
|
closed: number;
|
|
@@ -2196,7 +2196,7 @@ export interface SupportMessage {
|
|
|
2196
2196
|
created_at: string;
|
|
2197
2197
|
}
|
|
2198
2198
|
export interface SupportThread extends SupportTicket {
|
|
2199
|
-
messages: SupportMessage
|
|
2199
|
+
messages: Array<SupportMessage>;
|
|
2200
2200
|
}
|
|
2201
2201
|
/** Hosted websites (`sites.*` tools): {slug}.site.nemphi.app + custom domains. */
|
|
2202
2202
|
export type SiteStatus = "draft" | "published" | "pending_deletion";
|
|
@@ -2256,7 +2256,7 @@ export interface SiteDomain {
|
|
|
2256
2256
|
/** Stored provider name; current attachments use "cloudflare". */
|
|
2257
2257
|
edge_provider: string | null;
|
|
2258
2258
|
/** JSON bytes from Go — usually a base64 string of SiteDNSRecord[]. */
|
|
2259
|
-
dns_records: string | SiteDNSRecord
|
|
2259
|
+
dns_records: string | Array<SiteDNSRecord> | null;
|
|
2260
2260
|
purchase_registrar: string | null;
|
|
2261
2261
|
purchase_order_id: string | null;
|
|
2262
2262
|
/** The one-year registration price the approver authorized. */
|
|
@@ -2324,7 +2324,7 @@ export interface SiteZone {
|
|
|
2324
2324
|
export interface SiteZoneRecords {
|
|
2325
2325
|
domain: SiteDomain;
|
|
2326
2326
|
zone: SiteZone | null;
|
|
2327
|
-
records: SiteZoneRecord
|
|
2327
|
+
records: Array<SiteZoneRecord>;
|
|
2328
2328
|
}
|
|
2329
2329
|
/** Registrar answer inside `sites.check_domain` output. */
|
|
2330
2330
|
export interface SiteDomainAvailability {
|
|
@@ -2484,7 +2484,7 @@ export interface SiteCreated {
|
|
|
2484
2484
|
/** Platform wrote the locked llm.chat key to managed site config. */
|
|
2485
2485
|
gateway_configured: boolean;
|
|
2486
2486
|
gateway_base_url: string;
|
|
2487
|
-
gateway_scopes: string
|
|
2487
|
+
gateway_scopes: Array<string>;
|
|
2488
2488
|
}
|
|
2489
2489
|
/** Workspace messaging (team chat): DM, group, or project room. */
|
|
2490
2490
|
/** `session`: a member's conversation with the orchestrator opened as a session, listed under its project. */
|
|
@@ -2541,7 +2541,7 @@ export interface MessageThreadFile {
|
|
|
2541
2541
|
* independent of page_size; `next_cursor` asks for the shares after this page.
|
|
2542
2542
|
*/
|
|
2543
2543
|
export interface MessageThreadFileList {
|
|
2544
|
-
files: MessageThreadFile
|
|
2544
|
+
files: Array<MessageThreadFile>;
|
|
2545
2545
|
next_cursor: string | null;
|
|
2546
2546
|
total: number;
|
|
2547
2547
|
}
|
|
@@ -2562,7 +2562,7 @@ export interface MessageReaction {
|
|
|
2562
2562
|
emoji: string;
|
|
2563
2563
|
count: number;
|
|
2564
2564
|
/** Capped server-side on a very busy message; `count` is the whole tally. */
|
|
2565
|
-
actors: MessageReactionActor
|
|
2565
|
+
actors: Array<MessageReactionActor>;
|
|
2566
2566
|
}
|
|
2567
2567
|
/** Enough of the parent for a reply to quote it without a second read. */
|
|
2568
2568
|
export interface MessageReplyPreview {
|
|
@@ -2585,7 +2585,7 @@ export interface MessagingMessage {
|
|
|
2585
2585
|
author_name: string;
|
|
2586
2586
|
body: string;
|
|
2587
2587
|
/** Block Kit blocks rendered under the body, when the message carries any. */
|
|
2588
|
-
blocks?: MessageBlock
|
|
2588
|
+
blocks?: Array<MessageBlock>;
|
|
2589
2589
|
/**
|
|
2590
2590
|
* The json-render spec an agent's answer drew. When present it is the
|
|
2591
2591
|
* message's UI, and `blocks` is its Block Kit reading for readers that
|
|
@@ -2604,10 +2604,10 @@ export interface MessagingMessage {
|
|
|
2604
2604
|
edited_at?: string;
|
|
2605
2605
|
/** Soft-deleted by messages.delete: the body and blocks are masked. */
|
|
2606
2606
|
deleted?: boolean;
|
|
2607
|
-
attachments: MessagingAttachment
|
|
2608
|
-
mentions: MessageMention
|
|
2607
|
+
attachments: Array<MessagingAttachment>;
|
|
2608
|
+
mentions: Array<MessageMention>;
|
|
2609
2609
|
/** Emoji reactions grouped by emoji, in the order they first appeared. */
|
|
2610
|
-
reactions: MessageReaction
|
|
2610
|
+
reactions: Array<MessageReaction>;
|
|
2611
2611
|
}
|
|
2612
2612
|
/** What messages.react and messages.unreact answer with. */
|
|
2613
2613
|
export interface MessageReactionResult {
|
|
@@ -2617,7 +2617,7 @@ export interface MessageReactionResult {
|
|
|
2617
2617
|
count: number;
|
|
2618
2618
|
/** Whether the caller's own reaction stands after the call. */
|
|
2619
2619
|
reacted: boolean;
|
|
2620
|
-
actors: MessageReactionActor
|
|
2620
|
+
actors: Array<MessageReactionActor>;
|
|
2621
2621
|
}
|
|
2622
2622
|
export interface MessageThread {
|
|
2623
2623
|
id: string;
|
|
@@ -2640,8 +2640,8 @@ export interface MessageThread {
|
|
|
2640
2640
|
archived_at: string | null;
|
|
2641
2641
|
created_at: string;
|
|
2642
2642
|
updated_at: string;
|
|
2643
|
-
participants: MessageParticipant
|
|
2644
|
-
messages?: MessagingMessage
|
|
2643
|
+
participants: Array<MessageParticipant>;
|
|
2644
|
+
messages?: Array<MessagingMessage>;
|
|
2645
2645
|
message_count?: number;
|
|
2646
2646
|
unread?: boolean;
|
|
2647
2647
|
unread_count?: number;
|
|
@@ -2652,7 +2652,7 @@ export interface MessageThread {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
/** Result of messages.list_threads. unread_total is open-thread unread, independent of page_size. */
|
|
2654
2654
|
export interface MessageThreadList {
|
|
2655
|
-
threads: MessageThread
|
|
2655
|
+
threads: Array<MessageThread>;
|
|
2656
2656
|
unread_total: number;
|
|
2657
2657
|
}
|
|
2658
2658
|
/**
|
|
@@ -2671,7 +2671,7 @@ export interface MessageThreadPage {
|
|
|
2671
2671
|
* page exists on either side. `before`/`after` take a message id.
|
|
2672
2672
|
*/
|
|
2673
2673
|
export interface MessagePage {
|
|
2674
|
-
messages: MessagingMessage
|
|
2674
|
+
messages: Array<MessagingMessage>;
|
|
2675
2675
|
has_more_before: boolean;
|
|
2676
2676
|
has_more_after: boolean;
|
|
2677
2677
|
}
|
|
@@ -2685,7 +2685,7 @@ export interface MessageSearchHit {
|
|
|
2685
2685
|
thread_kind: MessageThreadKind;
|
|
2686
2686
|
thread_title: string;
|
|
2687
2687
|
thread_status: MessageThreadStatus;
|
|
2688
|
-
participants: MessageParticipant
|
|
2688
|
+
participants: Array<MessageParticipant>;
|
|
2689
2689
|
message_id: string;
|
|
2690
2690
|
author_type: MessageAuthorType;
|
|
2691
2691
|
author_id: string | null;
|
|
@@ -2699,8 +2699,8 @@ export interface MessageSearchHit {
|
|
|
2699
2699
|
* people match, and the messages whose body does.
|
|
2700
2700
|
*/
|
|
2701
2701
|
export interface MessageSearchResult {
|
|
2702
|
-
threads: MessageThread
|
|
2703
|
-
messages: MessageSearchHit
|
|
2702
|
+
threads: Array<MessageThread>;
|
|
2703
|
+
messages: Array<MessageSearchHit>;
|
|
2704
2704
|
}
|
|
2705
2705
|
export type MessageCallMode = "audio" | "video";
|
|
2706
2706
|
export type MessageCallStatus = "pending" | "provisioning" | "active" | "ending" | "ended" | "failed";
|
|
@@ -2784,7 +2784,7 @@ export interface CallTasksCreated {
|
|
|
2784
2784
|
assignee_user_id: string | null;
|
|
2785
2785
|
due_on: string | null;
|
|
2786
2786
|
}>;
|
|
2787
|
-
items: CallActionItem
|
|
2787
|
+
items: Array<CallActionItem>;
|
|
2788
2788
|
}
|
|
2789
2789
|
/** A standalone call: a meeting with a shareable link, tied to no chat, person, agent or group. */
|
|
2790
2790
|
export interface CallRecording {
|
|
@@ -2828,27 +2828,27 @@ export interface Call {
|
|
|
2828
2828
|
summary: string | null;
|
|
2829
2829
|
summarized_at: string | null;
|
|
2830
2830
|
/** Documents the summary heard referenced, resolved to workspace documents where a filename matched. */
|
|
2831
|
-
summary_references: CallSummaryReference
|
|
2831
|
+
summary_references: Array<CallSummaryReference>;
|
|
2832
2832
|
/** File the summary's action items as project tasks as soon as it is written. */
|
|
2833
2833
|
auto_tasks: boolean;
|
|
2834
2834
|
/** Who may share their screen on this call. */
|
|
2835
2835
|
present_policy: CallPresentPolicy;
|
|
2836
2836
|
/** With `present_policy: "chosen"`: the built-in workspace roles that may present. */
|
|
2837
|
-
present_roles: string
|
|
2837
|
+
present_roles: Array<string>;
|
|
2838
2838
|
/** With `present_policy: "chosen"`: the custom roles that may present. */
|
|
2839
|
-
present_role_ids: string
|
|
2839
|
+
present_role_ids: Array<string>;
|
|
2840
2840
|
/** With `present_policy: "chosen"`: the people who may present whatever their role. */
|
|
2841
|
-
present_user_ids: string
|
|
2841
|
+
present_user_ids: Array<string>;
|
|
2842
2842
|
/** When a scheduled call starts; null for a call started on the spot. */
|
|
2843
2843
|
scheduled_for: string | null;
|
|
2844
2844
|
/** How long a scheduled call is planned to run, in minutes. */
|
|
2845
2845
|
scheduled_minutes: number | null;
|
|
2846
2846
|
/** Everyone seated or invited, the creator first: what an untitled call is called by. */
|
|
2847
|
-
people: string
|
|
2847
|
+
people: Array<string>;
|
|
2848
2848
|
/** Whether the caller may share their screen; only `getCall` returns it. */
|
|
2849
2849
|
can_present?: boolean;
|
|
2850
2850
|
/** The summary's action items; only `getCall` returns them. */
|
|
2851
|
-
action_items?: CallActionItem
|
|
2851
|
+
action_items?: Array<CallActionItem>;
|
|
2852
2852
|
/** The orchestrator session the call's record opened, once the summary is written; only `getCall` returns it. */
|
|
2853
2853
|
session_id?: string | null;
|
|
2854
2854
|
/** The capability behind `/call/{join_token}`; only `getCall` returns it. */
|
|
@@ -2921,7 +2921,7 @@ export interface BookingType {
|
|
|
2921
2921
|
location_kind: BookingLocationKind | null;
|
|
2922
2922
|
status: "active" | "paused";
|
|
2923
2923
|
publishes_to_calendar: boolean;
|
|
2924
|
-
ranges: BookingRange
|
|
2924
|
+
ranges: Array<BookingRange>;
|
|
2925
2925
|
created_at: string;
|
|
2926
2926
|
updated_at: string;
|
|
2927
2927
|
}
|
|
@@ -2938,7 +2938,7 @@ export interface BookingSlots {
|
|
|
2938
2938
|
location: string;
|
|
2939
2939
|
from: string;
|
|
2940
2940
|
to: string;
|
|
2941
|
-
slots: BookingSlot
|
|
2941
|
+
slots: Array<BookingSlot>;
|
|
2942
2942
|
}
|
|
2943
2943
|
/** An appointment somebody took out of a page's ranges. */
|
|
2944
2944
|
export interface Booking {
|
|
@@ -2983,7 +2983,7 @@ export interface PublicBookingSlots {
|
|
|
2983
2983
|
to: string | null;
|
|
2984
2984
|
duration_minutes: number | null;
|
|
2985
2985
|
time_zone: string | null;
|
|
2986
|
-
slots: BookingSlot
|
|
2986
|
+
slots: Array<BookingSlot>;
|
|
2987
2987
|
}
|
|
2988
2988
|
/** The confirmation a guest gets, with their own capability over it. */
|
|
2989
2989
|
export interface PublicBookingConfirmation {
|
|
@@ -3173,17 +3173,17 @@ export interface ThreadDecisionRow {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
/** Result of messages.activity: the thread's live runs plus the delegates below them. */
|
|
3175
3175
|
export interface MessageThreadActivity {
|
|
3176
|
-
activity: ThreadActivityRow
|
|
3176
|
+
activity: Array<ThreadActivityRow>;
|
|
3177
3177
|
/** Newest 20, oldest first. */
|
|
3178
|
-
delegates: ThreadDelegateRow
|
|
3178
|
+
delegates: Array<ThreadDelegateRow>;
|
|
3179
3179
|
/** What the thread's recent runs changed, oldest first. */
|
|
3180
|
-
actions?: ThreadActionRow
|
|
3180
|
+
actions?: Array<ThreadActionRow>;
|
|
3181
3181
|
/** What the thread's recent runs looked at, oldest first. */
|
|
3182
|
-
reads?: ThreadReadRow
|
|
3182
|
+
reads?: Array<ThreadReadRow>;
|
|
3183
3183
|
/** The messages sent while an agent was at work, the last day's, newest first. */
|
|
3184
|
-
queued?: ThreadQueuedRow
|
|
3184
|
+
queued?: Array<ThreadQueuedRow>;
|
|
3185
3185
|
/** The approvals decided for the thread's recent runs, newest first. */
|
|
3186
|
-
decisions?: ThreadDecisionRow
|
|
3186
|
+
decisions?: Array<ThreadDecisionRow>;
|
|
3187
3187
|
}
|
|
3188
3188
|
/** What kind of capability a usage row describes. */
|
|
3189
3189
|
export type FeatureKind = "tool" | "page" | "agent";
|
|
@@ -3213,7 +3213,7 @@ export interface FeatureUsageRow {
|
|
|
3213
3213
|
/** Workspaces that ever reached it; platform-wide reports only. */
|
|
3214
3214
|
tenants?: number;
|
|
3215
3215
|
/** Surfaces the windowed calls came through. */
|
|
3216
|
-
surfaces?: UsageSurface
|
|
3216
|
+
surfaces?: Array<UsageSurface>;
|
|
3217
3217
|
last_used_at?: string;
|
|
3218
3218
|
}
|
|
3219
3219
|
/** Headline adoption numbers for one kind of capability. */
|
|
@@ -3241,8 +3241,8 @@ export interface UsageSurfaceRow {
|
|
|
3241
3241
|
export interface FeatureUsageResponse {
|
|
3242
3242
|
window_days: number;
|
|
3243
3243
|
totals: Partial<Record<FeatureKind, FeatureUsageTotals>>;
|
|
3244
|
-
surfaces: UsageSurfaceRow
|
|
3245
|
-
features: FeatureUsageRow
|
|
3244
|
+
surfaces: Array<UsageSurfaceRow>;
|
|
3245
|
+
features: Array<FeatureUsageRow>;
|
|
3246
3246
|
}
|
|
3247
3247
|
export interface ApiKey {
|
|
3248
3248
|
id: string;
|
|
@@ -3253,7 +3253,7 @@ export interface ApiKey {
|
|
|
3253
3253
|
* Tool patterns the key may invoke ("ar.%", "%:read", "tool.name:full").
|
|
3254
3254
|
* Empty = unrestricted.
|
|
3255
3255
|
*/
|
|
3256
|
-
scopes: string
|
|
3256
|
+
scopes: Array<string>;
|
|
3257
3257
|
created_at: string;
|
|
3258
3258
|
last_used_at: string | null;
|
|
3259
3259
|
revoked_at: string | null;
|
|
@@ -3270,11 +3270,11 @@ export interface ApiKeyUsage {
|
|
|
3270
3270
|
window_days: number;
|
|
3271
3271
|
/** Ledger actions ever recorded for this key (reads are not ledgered). */
|
|
3272
3272
|
total_actions: number;
|
|
3273
|
-
tools: {
|
|
3273
|
+
tools: Array<{
|
|
3274
3274
|
tool: string;
|
|
3275
3275
|
invocations: number;
|
|
3276
3276
|
last_invoked_at: string;
|
|
3277
|
-
}
|
|
3277
|
+
}>;
|
|
3278
3278
|
}
|
|
3279
3279
|
/** What the OAuth consent page shows a signed-in member. */
|
|
3280
3280
|
export interface OAuthConsent {
|
|
@@ -3285,7 +3285,7 @@ export interface OAuthConsent {
|
|
|
3285
3285
|
logo_uri?: string;
|
|
3286
3286
|
redirect_uri: string;
|
|
3287
3287
|
/** High-level scopes the client asked for (tools / tools:read / patterns). */
|
|
3288
|
-
scopes: string
|
|
3288
|
+
scopes: Array<string>;
|
|
3289
3289
|
resource?: string;
|
|
3290
3290
|
tenants: Array<{
|
|
3291
3291
|
id: string;
|
|
@@ -3347,7 +3347,7 @@ export interface Bill {
|
|
|
3347
3347
|
reason_code: string | null;
|
|
3348
3348
|
reason: string | null;
|
|
3349
3349
|
/** Present on create/update/get responses. */
|
|
3350
|
-
lines?: DocumentLine
|
|
3350
|
+
lines?: Array<DocumentLine>;
|
|
3351
3351
|
/** Present on list rows. */
|
|
3352
3352
|
lines_count?: number;
|
|
3353
3353
|
/**
|
|
@@ -3479,7 +3479,7 @@ export interface StockLevel {
|
|
|
3479
3479
|
updated_at: string;
|
|
3480
3480
|
}
|
|
3481
3481
|
export interface StockLevels {
|
|
3482
|
-
levels: StockLevel
|
|
3482
|
+
levels: Array<StockLevel>;
|
|
3483
3483
|
total_value_cents: number;
|
|
3484
3484
|
low_stock_count: number;
|
|
3485
3485
|
currency: string;
|
|
@@ -3508,7 +3508,7 @@ export interface StockMovement {
|
|
|
3508
3508
|
balance_value_cents: number;
|
|
3509
3509
|
}
|
|
3510
3510
|
export interface StockMovements {
|
|
3511
|
-
movements: StockMovement
|
|
3511
|
+
movements: Array<StockMovement>;
|
|
3512
3512
|
opening_quantity: number;
|
|
3513
3513
|
opening_value_cents: number;
|
|
3514
3514
|
closing_quantity: number;
|
|
@@ -3529,11 +3529,11 @@ export interface InventoryValuationRow {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
export interface InventoryValuation {
|
|
3531
3531
|
as_of: string;
|
|
3532
|
-
items: InventoryValuationRow
|
|
3533
|
-
warehouses: {
|
|
3532
|
+
items: Array<InventoryValuationRow>;
|
|
3533
|
+
warehouses: Array<{
|
|
3534
3534
|
warehouse_code: string;
|
|
3535
3535
|
value_cents: number;
|
|
3536
|
-
}
|
|
3536
|
+
}>;
|
|
3537
3537
|
stock_value_cents: number;
|
|
3538
3538
|
currency: string;
|
|
3539
3539
|
/** Only when every warehouse is valued (the ledger covers them all). */
|
|
@@ -3551,7 +3551,7 @@ export interface InventoryOverviewLevel extends StockLevel {
|
|
|
3551
3551
|
month_in: number;
|
|
3552
3552
|
month_out: number;
|
|
3553
3553
|
/** The owned quantity at each of the last twelve week ends, oldest first; the last is today. */
|
|
3554
|
-
trend: number
|
|
3554
|
+
trend: Array<number>;
|
|
3555
3555
|
}
|
|
3556
3556
|
/** A month's movements of one type in one warehouse, summed. */
|
|
3557
3557
|
export interface InventoryOverviewFlow {
|
|
@@ -3587,11 +3587,11 @@ export interface InventoryOverviewCount {
|
|
|
3587
3587
|
warehouse_id: string;
|
|
3588
3588
|
counted_on: string;
|
|
3589
3589
|
reference: string | null;
|
|
3590
|
-
lines: {
|
|
3590
|
+
lines: Array<{
|
|
3591
3591
|
item_id: string;
|
|
3592
3592
|
expected_quantity: number;
|
|
3593
3593
|
counted_quantity: number | null;
|
|
3594
|
-
}
|
|
3594
|
+
}>;
|
|
3595
3595
|
}
|
|
3596
3596
|
/** The inventory page in one read (`inventory.overview`). Values in cents. */
|
|
3597
3597
|
export interface InventoryOverview {
|
|
@@ -3599,43 +3599,43 @@ export interface InventoryOverview {
|
|
|
3599
3599
|
/** YYYY-MM whose movements and flows these are. */
|
|
3600
3600
|
month: string;
|
|
3601
3601
|
currency: string;
|
|
3602
|
-
warehouses: {
|
|
3602
|
+
warehouses: Array<{
|
|
3603
3603
|
id: string;
|
|
3604
3604
|
code: string;
|
|
3605
3605
|
name: string;
|
|
3606
3606
|
is_default: boolean;
|
|
3607
3607
|
active: boolean;
|
|
3608
|
-
}
|
|
3608
|
+
}>;
|
|
3609
3609
|
/** The active items that keep stock. */
|
|
3610
|
-
items: {
|
|
3610
|
+
items: Array<{
|
|
3611
3611
|
id: string;
|
|
3612
3612
|
code: string | null;
|
|
3613
3613
|
name: string;
|
|
3614
3614
|
unit_code: string;
|
|
3615
3615
|
reorder_point: number | null;
|
|
3616
|
-
}
|
|
3617
|
-
levels: InventoryOverviewLevel
|
|
3618
|
-
flows: InventoryOverviewFlow
|
|
3619
|
-
movements: InventoryOverviewMovement
|
|
3616
|
+
}>;
|
|
3617
|
+
levels: Array<InventoryOverviewLevel>;
|
|
3618
|
+
flows: Array<InventoryOverviewFlow>;
|
|
3619
|
+
movements: Array<InventoryOverviewMovement>;
|
|
3620
3620
|
/** Twelve months per warehouse ending with `month`: value in, out and at close. */
|
|
3621
|
-
history: {
|
|
3621
|
+
history: Array<{
|
|
3622
3622
|
warehouse_id: string;
|
|
3623
|
-
months: {
|
|
3623
|
+
months: Array<{
|
|
3624
3624
|
month: string;
|
|
3625
3625
|
in_cents: number;
|
|
3626
3626
|
out_cents: number;
|
|
3627
3627
|
closing_cents: number;
|
|
3628
|
-
}
|
|
3629
|
-
}
|
|
3628
|
+
}>;
|
|
3629
|
+
}>;
|
|
3630
3630
|
stock_value_cents: number;
|
|
3631
3631
|
ledger_balance_cents: number;
|
|
3632
3632
|
difference_cents: number;
|
|
3633
3633
|
low_stock_count: number;
|
|
3634
3634
|
reorder: {
|
|
3635
3635
|
estimated_total_cost_cents: number;
|
|
3636
|
-
suggestions: ReorderSuggestion
|
|
3636
|
+
suggestions: Array<ReorderSuggestion>;
|
|
3637
3637
|
};
|
|
3638
|
-
open_counts: InventoryOverviewCount
|
|
3638
|
+
open_counts: Array<InventoryOverviewCount>;
|
|
3639
3639
|
/** Whether there were more levels or movements than the page carries. */
|
|
3640
3640
|
truncated: boolean;
|
|
3641
3641
|
/** Which of the page's writes the caller's role reaches. */
|
|
@@ -3692,7 +3692,7 @@ export interface InventoryCountLine {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
export interface InventoryCountDetail {
|
|
3694
3694
|
count: InventoryCount;
|
|
3695
|
-
lines: InventoryCountLine
|
|
3695
|
+
lines: Array<InventoryCountLine>;
|
|
3696
3696
|
net_difference_cents: number;
|
|
3697
3697
|
currency: string;
|
|
3698
3698
|
}
|
|
@@ -3725,7 +3725,7 @@ export interface NoteInput {
|
|
|
3725
3725
|
reason: string;
|
|
3726
3726
|
/** Credit notes: mirror every line of the original. */
|
|
3727
3727
|
full?: boolean;
|
|
3728
|
-
lines?: LineInput
|
|
3728
|
+
lines?: Array<LineInput>;
|
|
3729
3729
|
subtotal?: number;
|
|
3730
3730
|
tax?: number;
|
|
3731
3731
|
total?: number;
|
|
@@ -3791,7 +3791,7 @@ export interface EinvoiceSubmissionView {
|
|
|
3791
3791
|
qr_url?: string;
|
|
3792
3792
|
public_url?: string;
|
|
3793
3793
|
/** DIAN rule messages ("Regla: FAJ44b, Notificación: …"). */
|
|
3794
|
-
messages?: string
|
|
3794
|
+
messages?: Array<string>;
|
|
3795
3795
|
last_error?: string;
|
|
3796
3796
|
attempts: number;
|
|
3797
3797
|
provider?: string;
|
|
@@ -3802,7 +3802,7 @@ export interface EinvoiceSubmissionView {
|
|
|
3802
3802
|
updated_at: string;
|
|
3803
3803
|
}
|
|
3804
3804
|
export interface EinvoiceSubmissionList {
|
|
3805
|
-
submissions: EinvoiceSubmissionView
|
|
3805
|
+
submissions: Array<EinvoiceSubmissionView>;
|
|
3806
3806
|
/** Row count per state, for badges. */
|
|
3807
3807
|
counts: Partial<Record<EinvoiceState, number>>;
|
|
3808
3808
|
}
|
|
@@ -3822,7 +3822,7 @@ export interface EinvoiceDownload {
|
|
|
3822
3822
|
number?: string;
|
|
3823
3823
|
authority_uid?: string;
|
|
3824
3824
|
public_url?: string;
|
|
3825
|
-
artifacts: EinvoiceArtifact
|
|
3825
|
+
artifacts: Array<EinvoiceArtifact>;
|
|
3826
3826
|
}
|
|
3827
3827
|
export interface EinvoiceLiveStatus {
|
|
3828
3828
|
/** Absent when the document never reached the facturador (`reason`). */
|
|
@@ -3833,7 +3833,7 @@ export interface EinvoiceLiveStatus {
|
|
|
3833
3833
|
provider?: string;
|
|
3834
3834
|
authority_uid?: string;
|
|
3835
3835
|
number?: string;
|
|
3836
|
-
messages?: string
|
|
3836
|
+
messages?: Array<string>;
|
|
3837
3837
|
public_url?: string;
|
|
3838
3838
|
qr_url?: string;
|
|
3839
3839
|
/** What we have on file, for comparison. */
|
|
@@ -3868,7 +3868,7 @@ export interface Party {
|
|
|
3868
3868
|
person_type?: "natural" | "juridica" | null;
|
|
3869
3869
|
legal_form?: string | null;
|
|
3870
3870
|
ciiu_primary?: string | null;
|
|
3871
|
-
ciiu_secondary?: string
|
|
3871
|
+
ciiu_secondary?: Array<string> | null;
|
|
3872
3872
|
city?: string | null;
|
|
3873
3873
|
/** DIAN identity for electronic invoicing (parties.update). */
|
|
3874
3874
|
identification_document_code?: string | null;
|
|
@@ -3877,7 +3877,7 @@ export interface Party {
|
|
|
3877
3877
|
tribute_code?: string | null;
|
|
3878
3878
|
municipality_code?: string | null;
|
|
3879
3879
|
trade_name?: string | null;
|
|
3880
|
-
fiscal_responsibilities?: string
|
|
3880
|
+
fiscal_responsibilities?: Array<string> | null;
|
|
3881
3881
|
crm_company_id?: string | null;
|
|
3882
3882
|
/** When parties.archive hid it from lists and pickers; null while it is listed. */
|
|
3883
3883
|
archived_at?: string | null;
|
|
@@ -3906,11 +3906,11 @@ export type CRMCompanySize = "any" | "micro" | "small" | "medium" | "large" | "e
|
|
|
3906
3906
|
/** The workspace's ideal customer profile (crm.save_prospecting_profile). */
|
|
3907
3907
|
export interface CRMProspectingProfile {
|
|
3908
3908
|
description: string;
|
|
3909
|
-
industries: string
|
|
3909
|
+
industries: Array<string>;
|
|
3910
3910
|
/** ISO 3166-1 alpha-2; "" searches everywhere. */
|
|
3911
3911
|
country: string;
|
|
3912
3912
|
company_size: CRMCompanySize;
|
|
3913
|
-
tags: string
|
|
3913
|
+
tags: Array<string>;
|
|
3914
3914
|
/** Companies one search adds at most: 5, 10 or 25. */
|
|
3915
3915
|
run_size: number;
|
|
3916
3916
|
/** Pipeline key new deals open in; "" is the workspace's first. */
|
|
@@ -3955,8 +3955,8 @@ export interface CRMProspect {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
export interface CRMProspecting {
|
|
3957
3957
|
profile: CRMProspectingProfile | null;
|
|
3958
|
-
runs: CRMProspectRun
|
|
3959
|
-
prospects: CRMProspect
|
|
3958
|
+
runs: Array<CRMProspectRun>;
|
|
3959
|
+
prospects: Array<CRMProspect>;
|
|
3960
3960
|
}
|
|
3961
3961
|
export interface PartyUpdateInput {
|
|
3962
3962
|
party_id: string;
|
|
@@ -3971,7 +3971,7 @@ export interface PartyUpdateInput {
|
|
|
3971
3971
|
person_type?: "natural" | "juridica" | "";
|
|
3972
3972
|
legal_form?: string;
|
|
3973
3973
|
ciiu_primary?: string;
|
|
3974
|
-
ciiu_secondary?: string
|
|
3974
|
+
ciiu_secondary?: Array<string>;
|
|
3975
3975
|
city?: string;
|
|
3976
3976
|
}
|
|
3977
3977
|
/**
|
|
@@ -4024,7 +4024,7 @@ export interface PartyMergeResult {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
/** What parties.find_matches answers: the duplicates, and the company a work email binds to. */
|
|
4026
4026
|
export interface PartyMatches {
|
|
4027
|
-
matches: PartyMatch
|
|
4027
|
+
matches: Array<PartyMatch>;
|
|
4028
4028
|
company: {
|
|
4029
4029
|
domain: string;
|
|
4030
4030
|
name: string;
|
|
@@ -4041,8 +4041,8 @@ export interface GlobalCompany {
|
|
|
4041
4041
|
person_type: string;
|
|
4042
4042
|
legal_form: string;
|
|
4043
4043
|
ciiu_primary: string;
|
|
4044
|
-
ciiu_secondary: string
|
|
4045
|
-
fiscal_responsibilities: string
|
|
4044
|
+
ciiu_secondary: Array<string>;
|
|
4045
|
+
fiscal_responsibilities: Array<string>;
|
|
4046
4046
|
municipality_code: string;
|
|
4047
4047
|
city: string;
|
|
4048
4048
|
source: string;
|
|
@@ -4072,7 +4072,7 @@ export interface PaymentFormat {
|
|
|
4072
4072
|
description: string;
|
|
4073
4073
|
content_type: string;
|
|
4074
4074
|
extension: string;
|
|
4075
|
-
required_party_fields: string
|
|
4075
|
+
required_party_fields: Array<string> | null;
|
|
4076
4076
|
requires_payer: boolean;
|
|
4077
4077
|
verified: boolean;
|
|
4078
4078
|
}
|
|
@@ -4156,11 +4156,11 @@ export interface PaymentRunMissingDetails {
|
|
|
4156
4156
|
bill_id: string;
|
|
4157
4157
|
party_id?: string;
|
|
4158
4158
|
vendor_name: string;
|
|
4159
|
-
missing: string
|
|
4159
|
+
missing: Array<string>;
|
|
4160
4160
|
party_resolved: boolean;
|
|
4161
4161
|
}
|
|
4162
4162
|
export interface PaymentRunCreateInput {
|
|
4163
|
-
bill_ids?: string
|
|
4163
|
+
bill_ids?: Array<string>;
|
|
4164
4164
|
due_by?: string;
|
|
4165
4165
|
amounts?: Record<string, number>;
|
|
4166
4166
|
currency?: string;
|
|
@@ -4171,13 +4171,13 @@ export interface PaymentRunCreateInput {
|
|
|
4171
4171
|
}
|
|
4172
4172
|
export interface PaymentRunCreateResult {
|
|
4173
4173
|
run: PaymentRun;
|
|
4174
|
-
items: PaymentRunItem
|
|
4175
|
-
missing_bank_details: PaymentRunMissingDetails
|
|
4176
|
-
skipped: {
|
|
4174
|
+
items: Array<PaymentRunItem>;
|
|
4175
|
+
missing_bank_details: Array<PaymentRunMissingDetails> | null;
|
|
4176
|
+
skipped: Array<{
|
|
4177
4177
|
bill_id: string;
|
|
4178
4178
|
vendor_name: string;
|
|
4179
4179
|
reason: string;
|
|
4180
|
-
}
|
|
4180
|
+
}> | null;
|
|
4181
4181
|
format: PaymentFormat;
|
|
4182
4182
|
warning?: string;
|
|
4183
4183
|
}
|
|
@@ -4192,18 +4192,18 @@ export interface PaymentRunExportResult {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
export interface PaymentRunSettleResult {
|
|
4194
4194
|
run: PaymentRun;
|
|
4195
|
-
settled: {
|
|
4195
|
+
settled: Array<{
|
|
4196
4196
|
item_id: string;
|
|
4197
4197
|
bill_id: string;
|
|
4198
4198
|
payment_id: string;
|
|
4199
4199
|
journal_entry_id: string;
|
|
4200
4200
|
amount_cents: number;
|
|
4201
4201
|
bank_transaction_id?: string;
|
|
4202
|
-
}
|
|
4203
|
-
skipped: {
|
|
4202
|
+
}> | null;
|
|
4203
|
+
skipped: Array<{
|
|
4204
4204
|
item_id: string;
|
|
4205
4205
|
status: string;
|
|
4206
|
-
}
|
|
4206
|
+
}> | null;
|
|
4207
4207
|
pending_items: number;
|
|
4208
4208
|
}
|
|
4209
4209
|
export interface StatementImportResult {
|
|
@@ -4213,10 +4213,10 @@ export interface StatementImportResult {
|
|
|
4213
4213
|
currency: string;
|
|
4214
4214
|
parsed: number;
|
|
4215
4215
|
skipped_rows: number;
|
|
4216
|
-
warnings: string
|
|
4216
|
+
warnings: Array<string> | null;
|
|
4217
4217
|
imported?: number;
|
|
4218
4218
|
skipped?: number;
|
|
4219
|
-
transaction_ids?: string
|
|
4219
|
+
transaction_ids?: Array<string>;
|
|
4220
4220
|
}
|
|
4221
4221
|
export interface Account {
|
|
4222
4222
|
id: string;
|
|
@@ -4261,7 +4261,7 @@ export interface Tag {
|
|
|
4261
4261
|
created_at: string;
|
|
4262
4262
|
}
|
|
4263
4263
|
export interface TagDimensionWithTags extends TagDimension {
|
|
4264
|
-
tags: Tag
|
|
4264
|
+
tags: Array<Tag>;
|
|
4265
4265
|
}
|
|
4266
4266
|
/** Journal-line tag selection: stable dimension key -> stable tag code. */
|
|
4267
4267
|
export type LineTags = Record<string, string>;
|
|
@@ -4283,11 +4283,11 @@ export interface JournalLine {
|
|
|
4283
4283
|
debit_cents: number;
|
|
4284
4284
|
credit_cents: number;
|
|
4285
4285
|
memo: string | null;
|
|
4286
|
-
tags: JournalLineTag
|
|
4286
|
+
tags: Array<JournalLineTag>;
|
|
4287
4287
|
}
|
|
4288
4288
|
export interface JournalEntryDetail {
|
|
4289
4289
|
entry: JournalEntry;
|
|
4290
|
-
lines: JournalLine
|
|
4290
|
+
lines: Array<JournalLine>;
|
|
4291
4291
|
}
|
|
4292
4292
|
export interface ProfitabilityMetrics {
|
|
4293
4293
|
income_cents: number;
|
|
@@ -4307,7 +4307,7 @@ export interface ProfitabilityReport {
|
|
|
4307
4307
|
to: string;
|
|
4308
4308
|
dimension_key: string;
|
|
4309
4309
|
totals: ProfitabilityMetrics;
|
|
4310
|
-
rows: ProfitabilityRow
|
|
4310
|
+
rows: Array<ProfitabilityRow>;
|
|
4311
4311
|
unassigned: ProfitabilityMetrics | null;
|
|
4312
4312
|
}
|
|
4313
4313
|
export interface TrialBalanceRow {
|
|
@@ -4324,7 +4324,7 @@ export interface BalanceSheetAccount {
|
|
|
4324
4324
|
balance_cents: number;
|
|
4325
4325
|
}
|
|
4326
4326
|
export interface BalanceSheetSection {
|
|
4327
|
-
accounts: BalanceSheetAccount
|
|
4327
|
+
accounts: Array<BalanceSheetAccount>;
|
|
4328
4328
|
total_cents: number;
|
|
4329
4329
|
}
|
|
4330
4330
|
export interface BalanceSheet {
|
|
@@ -4357,11 +4357,11 @@ export interface IncomeStatement {
|
|
|
4357
4357
|
to: string;
|
|
4358
4358
|
currency: string;
|
|
4359
4359
|
income: {
|
|
4360
|
-
accounts: IncomeStatementAccount
|
|
4360
|
+
accounts: Array<IncomeStatementAccount>;
|
|
4361
4361
|
total_cents: number;
|
|
4362
4362
|
};
|
|
4363
4363
|
expense: {
|
|
4364
|
-
accounts: IncomeStatementAccount
|
|
4364
|
+
accounts: Array<IncomeStatementAccount>;
|
|
4365
4365
|
total_cents: number;
|
|
4366
4366
|
};
|
|
4367
4367
|
income_cents: number;
|
|
@@ -4369,7 +4369,7 @@ export interface IncomeStatement {
|
|
|
4369
4369
|
net_cents: number;
|
|
4370
4370
|
breakdown?: {
|
|
4371
4371
|
dimension_key: string;
|
|
4372
|
-
rows: IncomeStatementBreakdownRow
|
|
4372
|
+
rows: Array<IncomeStatementBreakdownRow>;
|
|
4373
4373
|
unassigned: IncomeStatementBreakdownRow | null;
|
|
4374
4374
|
};
|
|
4375
4375
|
}
|
|
@@ -4397,7 +4397,7 @@ export interface AccountStatement {
|
|
|
4397
4397
|
to: string;
|
|
4398
4398
|
currency: string;
|
|
4399
4399
|
opening_balance_cents: number;
|
|
4400
|
-
movements: AccountMovement
|
|
4400
|
+
movements: Array<AccountMovement>;
|
|
4401
4401
|
debits_cents: number;
|
|
4402
4402
|
credits_cents: number;
|
|
4403
4403
|
closing_balance_cents: number;
|
|
@@ -4427,13 +4427,13 @@ export interface AgingParty {
|
|
|
4427
4427
|
party_id: string;
|
|
4428
4428
|
party_name: string;
|
|
4429
4429
|
buckets: AgingBuckets;
|
|
4430
|
-
documents: AgingDocument
|
|
4430
|
+
documents: Array<AgingDocument>;
|
|
4431
4431
|
}
|
|
4432
4432
|
export interface AgingReport {
|
|
4433
4433
|
kind: "receivable" | "payable";
|
|
4434
4434
|
as_of: string;
|
|
4435
4435
|
currency: string;
|
|
4436
|
-
parties: AgingParty
|
|
4436
|
+
parties: Array<AgingParty>;
|
|
4437
4437
|
totals: AgingBuckets;
|
|
4438
4438
|
documents: number;
|
|
4439
4439
|
}
|
|
@@ -4461,7 +4461,7 @@ export interface PartyStatement {
|
|
|
4461
4461
|
to: string;
|
|
4462
4462
|
currency: string;
|
|
4463
4463
|
opening_balance_cents: number;
|
|
4464
|
-
rows: PartyStatementRow
|
|
4464
|
+
rows: Array<PartyStatementRow>;
|
|
4465
4465
|
debits_cents: number;
|
|
4466
4466
|
credits_cents: number;
|
|
4467
4467
|
closing_balance_cents: number;
|
|
@@ -4541,7 +4541,7 @@ export interface Invoice {
|
|
|
4541
4541
|
reason_code: string | null;
|
|
4542
4542
|
reason: string | null;
|
|
4543
4543
|
/** Present on create/update/get responses. */
|
|
4544
|
-
lines?: DocumentLine
|
|
4544
|
+
lines?: Array<DocumentLine>;
|
|
4545
4545
|
/** Present on list rows. */
|
|
4546
4546
|
lines_count?: number;
|
|
4547
4547
|
/** Posted documents: total − payments − posted credit notes (document currency); credit notes read 0. */
|
|
@@ -4549,9 +4549,9 @@ export interface Invoice {
|
|
|
4549
4549
|
}
|
|
4550
4550
|
export interface InvoiceDetail {
|
|
4551
4551
|
invoice: Invoice;
|
|
4552
|
-
lines: DocumentLine
|
|
4553
|
-
payments: Payment
|
|
4554
|
-
notes: NoteSummary
|
|
4552
|
+
lines: Array<DocumentLine>;
|
|
4553
|
+
payments: Array<Payment>;
|
|
4554
|
+
notes: Array<NoteSummary>;
|
|
4555
4555
|
balance: DocumentBalance;
|
|
4556
4556
|
einvoice: EinvoiceSubmission | null;
|
|
4557
4557
|
related_invoice?: Invoice;
|
|
@@ -4563,9 +4563,9 @@ export interface InvoiceDetail {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
export interface BillDetail {
|
|
4565
4565
|
bill: Bill;
|
|
4566
|
-
lines: DocumentLine
|
|
4567
|
-
payments: Payment
|
|
4568
|
-
notes: NoteSummary
|
|
4566
|
+
lines: Array<DocumentLine>;
|
|
4567
|
+
payments: Array<Payment>;
|
|
4568
|
+
notes: Array<NoteSummary>;
|
|
4569
4569
|
balance: DocumentBalance;
|
|
4570
4570
|
related_bill?: Bill;
|
|
4571
4571
|
reason_label?: string;
|
|
@@ -4641,9 +4641,9 @@ export interface FxRatesResponse {
|
|
|
4641
4641
|
/** The tenant currency the quotes are relative to. */
|
|
4642
4642
|
base: string;
|
|
4643
4643
|
as_of: string;
|
|
4644
|
-
rates: FxQuote
|
|
4644
|
+
rates: Array<FxQuote>;
|
|
4645
4645
|
/** Requested codes with no rate on file. */
|
|
4646
|
-
missing: string
|
|
4646
|
+
missing: Array<string>;
|
|
4647
4647
|
feed: {
|
|
4648
4648
|
/** When the provider feed last wrote rates (RFC 3339), null if never. */
|
|
4649
4649
|
last_refresh: string | null;
|
|
@@ -4695,8 +4695,8 @@ export interface UserUsageRow {
|
|
|
4695
4695
|
tools: number;
|
|
4696
4696
|
}
|
|
4697
4697
|
export interface LLMUsageResponse {
|
|
4698
|
-
usage: LLMUsageRow
|
|
4699
|
-
by_user: UserUsageRow
|
|
4698
|
+
usage: Array<LLMUsageRow>;
|
|
4699
|
+
by_user: Array<UserUsageRow>;
|
|
4700
4700
|
/** Tenant currency the cost_cents fields are denominated in. */
|
|
4701
4701
|
currency: string;
|
|
4702
4702
|
}
|
|
@@ -4753,10 +4753,10 @@ export interface MetricResult {
|
|
|
4753
4753
|
/** Summary key stat cards show by default. */
|
|
4754
4754
|
primary: string;
|
|
4755
4755
|
summary: Record<string, number>;
|
|
4756
|
-
series?: MetricPoint
|
|
4756
|
+
series?: Array<MetricPoint>;
|
|
4757
4757
|
/** Value keys charts should plot by default (set by forecast metrics whose series mixes keys). */
|
|
4758
|
-
series_keys?: string
|
|
4759
|
-
rows?: JsonObject
|
|
4758
|
+
series_keys?: Array<string>;
|
|
4759
|
+
rows?: Array<JsonObject>;
|
|
4760
4760
|
window?: {
|
|
4761
4761
|
from?: string;
|
|
4762
4762
|
to?: string;
|
|
@@ -4773,7 +4773,7 @@ export interface MetricResult {
|
|
|
4773
4773
|
/** Move from `previous`, in basis points; a key is absent when the baseline is zero. */
|
|
4774
4774
|
change_bps?: Record<string, number>;
|
|
4775
4775
|
/** The baseline's own buckets, for a chart that draws both lines. */
|
|
4776
|
-
previous_series?: MetricPoint
|
|
4776
|
+
previous_series?: Array<MetricPoint>;
|
|
4777
4777
|
compare_window?: {
|
|
4778
4778
|
from?: string;
|
|
4779
4779
|
to?: string;
|
|
@@ -4801,7 +4801,7 @@ export interface AnalyticsFilter {
|
|
|
4801
4801
|
/** The operand of every op but in, not_in, is_set and not_set. */
|
|
4802
4802
|
value?: string;
|
|
4803
4803
|
/** The operands of in and not_in. */
|
|
4804
|
-
values?: string
|
|
4804
|
+
values?: Array<string>;
|
|
4805
4805
|
}
|
|
4806
4806
|
/** One sort key: a result column (`period`, a dimension, `count` or `<property>_<kind>`). */
|
|
4807
4807
|
export interface AnalyticsOrder {
|
|
@@ -4813,13 +4813,13 @@ export interface SavedMetricQuery {
|
|
|
4813
4813
|
/** The event stream, a name from `analytics.catalog`. */
|
|
4814
4814
|
stream: string;
|
|
4815
4815
|
/** Default one count. */
|
|
4816
|
-
measures?: AnalyticsMeasure
|
|
4816
|
+
measures?: Array<AnalyticsMeasure>;
|
|
4817
4817
|
/** Properties to group by; each becomes a column named without a leading `$`. */
|
|
4818
|
-
dimensions?: string
|
|
4818
|
+
dimensions?: Array<string>;
|
|
4819
4819
|
/** Adds a first column `period` (YYYY-MM-DD, or YYYY-MM-DD HH:00 by hour). */
|
|
4820
4820
|
bucket?: "hour" | "day" | "week" | "month";
|
|
4821
|
-
filters?: AnalyticsFilter
|
|
4822
|
-
order?: AnalyticsOrder
|
|
4821
|
+
filters?: Array<AnalyticsFilter>;
|
|
4822
|
+
order?: Array<AnalyticsOrder>;
|
|
4823
4823
|
}
|
|
4824
4824
|
/**
|
|
4825
4825
|
* A structured question over the workspace's own event streams. The
|
|
@@ -4839,8 +4839,8 @@ export interface AnalyticsResultColumn {
|
|
|
4839
4839
|
type: string;
|
|
4840
4840
|
}
|
|
4841
4841
|
export interface AnalyticsResult {
|
|
4842
|
-
columns: AnalyticsResultColumn
|
|
4843
|
-
rows: unknown
|
|
4842
|
+
columns: Array<AnalyticsResultColumn>;
|
|
4843
|
+
rows: Array<Array<unknown>>;
|
|
4844
4844
|
/** The HogQL that ran, for display only. */
|
|
4845
4845
|
sql: string;
|
|
4846
4846
|
row_count: number;
|
|
@@ -4857,12 +4857,12 @@ export interface AnalyticsProperty {
|
|
|
4857
4857
|
export interface AnalyticsStream {
|
|
4858
4858
|
name: string;
|
|
4859
4859
|
doc: string;
|
|
4860
|
-
properties: AnalyticsProperty
|
|
4860
|
+
properties: Array<AnalyticsProperty>;
|
|
4861
4861
|
}
|
|
4862
4862
|
export interface AnalyticsCatalog {
|
|
4863
4863
|
/** False until the platform has a PostHog query key. */
|
|
4864
4864
|
configured: boolean;
|
|
4865
|
-
streams: AnalyticsStream
|
|
4865
|
+
streams: Array<AnalyticsStream>;
|
|
4866
4866
|
}
|
|
4867
4867
|
export interface CanvasStat {
|
|
4868
4868
|
label: string;
|
|
@@ -4885,7 +4885,7 @@ export interface CanvasStat {
|
|
|
4885
4885
|
/** The query's goal, for the progress bar under the number. */
|
|
4886
4886
|
target?: number;
|
|
4887
4887
|
/** The displayed key's own buckets (grouped to at most 24), for the trend line. */
|
|
4888
|
-
spark?: number
|
|
4888
|
+
spark?: Array<number>;
|
|
4889
4889
|
}
|
|
4890
4890
|
/** Selects one live record source with optional filters (records blocks). */
|
|
4891
4891
|
export interface RecordsQuery {
|
|
@@ -4941,7 +4941,7 @@ export interface RecordsRowAction {
|
|
|
4941
4941
|
/** Tool input property that receives the row's id. */
|
|
4942
4942
|
id_field: string;
|
|
4943
4943
|
/** Row `status` values the action applies to (absent = every row). */
|
|
4944
|
-
statuses?: string
|
|
4944
|
+
statuses?: Array<string>;
|
|
4945
4945
|
variant?: CanvasAction["variant"];
|
|
4946
4946
|
icon?: CanvasIcon;
|
|
4947
4947
|
/** Question the viewer must accept before the tool runs. */
|
|
@@ -4961,15 +4961,15 @@ export interface RecordsRowAction {
|
|
|
4961
4961
|
*/
|
|
4962
4962
|
export interface RecordsResult {
|
|
4963
4963
|
source: RecordsQuery["source"];
|
|
4964
|
-
columns: RecordsColumn
|
|
4965
|
-
rows: JsonObject
|
|
4964
|
+
columns: Array<RecordsColumn>;
|
|
4965
|
+
rows: Array<JsonObject>;
|
|
4966
4966
|
currency?: string;
|
|
4967
4967
|
/** App path of the page listing these records. */
|
|
4968
4968
|
link?: string;
|
|
4969
4969
|
/** Per-record detail path with `{id}` standing for the row's id. */
|
|
4970
4970
|
link_template?: string;
|
|
4971
4971
|
/** Row-level tool actions this source supports. */
|
|
4972
|
-
actions?: RecordsRowAction
|
|
4972
|
+
actions?: Array<RecordsRowAction>;
|
|
4973
4973
|
}
|
|
4974
4974
|
/**
|
|
4975
4975
|
* One tool-backed quick action in an actions block: a button whose form
|
|
@@ -5022,8 +5022,8 @@ export interface CanvasProfile {
|
|
|
5022
5022
|
person_type?: string;
|
|
5023
5023
|
legal_form?: string;
|
|
5024
5024
|
ciiu_primary?: string;
|
|
5025
|
-
ciiu_secondary?: string
|
|
5026
|
-
fiscal_responsibilities?: string
|
|
5025
|
+
ciiu_secondary?: Array<string>;
|
|
5026
|
+
fiscal_responsibilities?: Array<string>;
|
|
5027
5027
|
city?: string;
|
|
5028
5028
|
address?: string;
|
|
5029
5029
|
email?: string;
|
|
@@ -5096,7 +5096,7 @@ export interface CRMDealEvent {
|
|
|
5096
5096
|
stage_name?: string;
|
|
5097
5097
|
status?: "open" | "won" | "lost";
|
|
5098
5098
|
/** The fields an edit changed. */
|
|
5099
|
-
fields?: string
|
|
5099
|
+
fields?: Array<string>;
|
|
5100
5100
|
/** What a conversion made. */
|
|
5101
5101
|
document_kind?: "quote" | "invoice";
|
|
5102
5102
|
document_id?: string;
|
|
@@ -5105,7 +5105,7 @@ export interface CRMDealEvent {
|
|
|
5105
5105
|
/** A deal's history, newest first (crm.deal_history). */
|
|
5106
5106
|
export interface CRMDealHistory {
|
|
5107
5107
|
deal_id: string;
|
|
5108
|
-
events: CRMDealEvent
|
|
5108
|
+
events: Array<CRMDealEvent>;
|
|
5109
5109
|
}
|
|
5110
5110
|
/** One kanban column: a pipeline stage and the deals sitting in it. */
|
|
5111
5111
|
export interface CRMBoardColumn {
|
|
@@ -5117,7 +5117,7 @@ export interface CRMBoardColumn {
|
|
|
5117
5117
|
count: number;
|
|
5118
5118
|
/** Sum of the column's deal amounts (integer cents). */
|
|
5119
5119
|
total_cents: number;
|
|
5120
|
-
deals: CRMDeal
|
|
5120
|
+
deals: Array<CRMDeal>;
|
|
5121
5121
|
}
|
|
5122
5122
|
/**
|
|
5123
5123
|
* The hydrated shape of a kanban block (crm.board): stages as ordered
|
|
@@ -5127,12 +5127,12 @@ export interface CRMBoardColumn {
|
|
|
5127
5127
|
export interface CRMBoardResult {
|
|
5128
5128
|
pipeline: string;
|
|
5129
5129
|
pipeline_name: string;
|
|
5130
|
-
pipelines: {
|
|
5130
|
+
pipelines: Array<{
|
|
5131
5131
|
key: string;
|
|
5132
5132
|
name: string;
|
|
5133
|
-
}
|
|
5133
|
+
}>;
|
|
5134
5134
|
currency: string;
|
|
5135
|
-
columns: CRMBoardColumn
|
|
5135
|
+
columns: Array<CRMBoardColumn>;
|
|
5136
5136
|
link?: string;
|
|
5137
5137
|
move_tool?: string;
|
|
5138
5138
|
}
|
|
@@ -5142,7 +5142,7 @@ export interface CRMFieldDef {
|
|
|
5142
5142
|
key: string;
|
|
5143
5143
|
label: string;
|
|
5144
5144
|
type: "text" | "number" | "date" | "select" | "multiselect" | "bool" | "url";
|
|
5145
|
-
options?: string
|
|
5145
|
+
options?: Array<string>;
|
|
5146
5146
|
required: boolean;
|
|
5147
5147
|
position: number;
|
|
5148
5148
|
active: boolean;
|
|
@@ -5166,7 +5166,7 @@ export interface CRMGridQuery {
|
|
|
5166
5166
|
/** party: only the archived contacts. */
|
|
5167
5167
|
archived?: boolean;
|
|
5168
5168
|
search?: string;
|
|
5169
|
-
filters?: CRMGridFilter
|
|
5169
|
+
filters?: Array<CRMGridFilter>;
|
|
5170
5170
|
sort?: string;
|
|
5171
5171
|
dir?: "asc" | "desc";
|
|
5172
5172
|
offset?: number;
|
|
@@ -5180,7 +5180,7 @@ export interface CRMGridColumn {
|
|
|
5180
5180
|
key: string;
|
|
5181
5181
|
kind: "text" | "number" | "money" | "count" | "date" | "datetime" | "status" | "stage" | "avatar" | "url" | "domain" | "tags" | "chips" | "select" | "multiselect" | "bool";
|
|
5182
5182
|
label?: string;
|
|
5183
|
-
options?: string
|
|
5183
|
+
options?: Array<string>;
|
|
5184
5184
|
custom?: boolean;
|
|
5185
5185
|
ai?: boolean;
|
|
5186
5186
|
field?: string;
|
|
@@ -5188,8 +5188,8 @@ export interface CRMGridColumn {
|
|
|
5188
5188
|
/** One page of the CRM grid plus what its toolbar needs. */
|
|
5189
5189
|
export interface CRMGridResult {
|
|
5190
5190
|
entity: "party" | "deal";
|
|
5191
|
-
columns: CRMGridColumn
|
|
5192
|
-
rows: JsonObject
|
|
5191
|
+
columns: Array<CRMGridColumn>;
|
|
5192
|
+
rows: Array<JsonObject>;
|
|
5193
5193
|
total: number;
|
|
5194
5194
|
/**
|
|
5195
5195
|
* How many records each tab holds, before search and filters: parties by
|
|
@@ -5199,19 +5199,19 @@ export interface CRMGridResult {
|
|
|
5199
5199
|
offset: number;
|
|
5200
5200
|
limit: number;
|
|
5201
5201
|
currency: string;
|
|
5202
|
-
fields: CRMFieldDef
|
|
5203
|
-
tags?: CRMPartyTag
|
|
5204
|
-
pipelines?: {
|
|
5202
|
+
fields: Array<CRMFieldDef>;
|
|
5203
|
+
tags?: Array<CRMPartyTag>;
|
|
5204
|
+
pipelines?: Array<{
|
|
5205
5205
|
key: string;
|
|
5206
5206
|
name: string;
|
|
5207
|
-
}
|
|
5208
|
-
stages?: {
|
|
5207
|
+
}>;
|
|
5208
|
+
stages?: Array<{
|
|
5209
5209
|
key: string;
|
|
5210
5210
|
name: string;
|
|
5211
5211
|
kind: string;
|
|
5212
5212
|
pipeline: string;
|
|
5213
|
-
}
|
|
5214
|
-
actions?: RecordsRowAction
|
|
5213
|
+
}>;
|
|
5214
|
+
actions?: Array<RecordsRowAction>;
|
|
5215
5215
|
link_template?: string;
|
|
5216
5216
|
}
|
|
5217
5217
|
/** How a workflow starts. */
|
|
@@ -5242,7 +5242,7 @@ export interface WorkflowCondition {
|
|
|
5242
5242
|
/** What a step is gated on. */
|
|
5243
5243
|
export interface WorkflowWhen {
|
|
5244
5244
|
match: "all" | "any";
|
|
5245
|
-
conditions: WorkflowCondition
|
|
5245
|
+
conditions: Array<WorkflowCondition>;
|
|
5246
5246
|
}
|
|
5247
5247
|
/** What a step does when its conditions do not hold. */
|
|
5248
5248
|
export type WorkflowOtherwise = "skip" | "stop" | "fail";
|
|
@@ -5264,7 +5264,7 @@ export interface WorkflowStep {
|
|
|
5264
5264
|
/** loop: the list to walk, as a template ({{steps.0.output.invoices}}). */
|
|
5265
5265
|
each?: string;
|
|
5266
5266
|
/** loop: what runs for each item, reading {{loop.item}} and {{loop.index}}. */
|
|
5267
|
-
steps?: WorkflowStep
|
|
5267
|
+
steps?: Array<WorkflowStep>;
|
|
5268
5268
|
/** loop: how many items at most (1-100, 25 by default). */
|
|
5269
5269
|
max_iterations?: number;
|
|
5270
5270
|
/** loop: whether one item's failure ends the run or is recorded and stepped over. */
|
|
@@ -5309,7 +5309,7 @@ export interface WorkflowRun {
|
|
|
5309
5309
|
started_at: string;
|
|
5310
5310
|
finished_at?: string;
|
|
5311
5311
|
updated_at: string;
|
|
5312
|
-
steps: WorkflowRunStep
|
|
5312
|
+
steps: Array<WorkflowRunStep>;
|
|
5313
5313
|
/** What the run knows (workflows.runs only): the triggering event, the input, each step's output. */
|
|
5314
5314
|
context?: JsonObject;
|
|
5315
5315
|
}
|
|
@@ -5319,7 +5319,7 @@ export interface Workflow {
|
|
|
5319
5319
|
name: string;
|
|
5320
5320
|
description: string;
|
|
5321
5321
|
trigger: WorkflowTrigger;
|
|
5322
|
-
steps: WorkflowStep
|
|
5322
|
+
steps: Array<WorkflowStep>;
|
|
5323
5323
|
live: boolean;
|
|
5324
5324
|
run_count: number;
|
|
5325
5325
|
next_run_at?: string;
|
|
@@ -5328,14 +5328,14 @@ export interface Workflow {
|
|
|
5328
5328
|
stats: WorkflowStats;
|
|
5329
5329
|
last_run?: WorkflowRun;
|
|
5330
5330
|
/** Recent runs (workflows.get only). */
|
|
5331
|
-
runs?: WorkflowRun
|
|
5331
|
+
runs?: Array<WorkflowRun>;
|
|
5332
5332
|
}
|
|
5333
5333
|
export interface SaveWorkflowInput {
|
|
5334
5334
|
key?: string;
|
|
5335
5335
|
name: string;
|
|
5336
5336
|
description?: string;
|
|
5337
5337
|
trigger: WorkflowTrigger;
|
|
5338
|
-
steps: WorkflowStep
|
|
5338
|
+
steps: Array<WorkflowStep>;
|
|
5339
5339
|
live?: boolean;
|
|
5340
5340
|
}
|
|
5341
5341
|
/** One project task as carried on the board, timeline, and projects.* outputs. */
|
|
@@ -5357,7 +5357,7 @@ export interface ProjectTask {
|
|
|
5357
5357
|
assignee_agent_id?: string;
|
|
5358
5358
|
start_on?: string;
|
|
5359
5359
|
due_on?: string;
|
|
5360
|
-
depends_on?: string
|
|
5360
|
+
depends_on?: Array<string>;
|
|
5361
5361
|
position: number;
|
|
5362
5362
|
completed_at?: string;
|
|
5363
5363
|
created_at: string;
|
|
@@ -5369,7 +5369,7 @@ export interface ProjectBoardColumn {
|
|
|
5369
5369
|
name: string;
|
|
5370
5370
|
kind: "open" | "done";
|
|
5371
5371
|
count: number;
|
|
5372
|
-
tasks: ProjectTask
|
|
5372
|
+
tasks: Array<ProjectTask>;
|
|
5373
5373
|
}
|
|
5374
5374
|
/** One project in a switcher, with the chat room it is talked about in. */
|
|
5375
5375
|
export interface ProjectRef {
|
|
@@ -5383,8 +5383,8 @@ export interface ProjectRef {
|
|
|
5383
5383
|
export interface ProjectBoardResult {
|
|
5384
5384
|
project: string;
|
|
5385
5385
|
project_name: string;
|
|
5386
|
-
projects: ProjectRef
|
|
5387
|
-
columns: ProjectBoardColumn
|
|
5386
|
+
projects: Array<ProjectRef>;
|
|
5387
|
+
columns: Array<ProjectBoardColumn>;
|
|
5388
5388
|
link?: string;
|
|
5389
5389
|
move_tool?: string;
|
|
5390
5390
|
}
|
|
@@ -5400,13 +5400,13 @@ export interface Project {
|
|
|
5400
5400
|
description?: string;
|
|
5401
5401
|
status: "active" | "completed" | "archived";
|
|
5402
5402
|
thread_id?: string;
|
|
5403
|
-
columns?: ProjectColumn
|
|
5404
|
-
members?: {
|
|
5403
|
+
columns?: Array<ProjectColumn>;
|
|
5404
|
+
members?: Array<{
|
|
5405
5405
|
user_id: string;
|
|
5406
5406
|
name: string;
|
|
5407
5407
|
email: string;
|
|
5408
5408
|
role: string;
|
|
5409
|
-
}
|
|
5409
|
+
}>;
|
|
5410
5410
|
created_at: string;
|
|
5411
5411
|
updated_at: string;
|
|
5412
5412
|
}
|
|
@@ -5436,11 +5436,11 @@ export interface ProjectTaskDetail extends ProjectTask {
|
|
|
5436
5436
|
created_by_name?: string;
|
|
5437
5437
|
/** The session the orchestrator works the task in, once it was handed the task. */
|
|
5438
5438
|
session_id?: string;
|
|
5439
|
-
columns: ProjectColumn
|
|
5439
|
+
columns: Array<ProjectColumn>;
|
|
5440
5440
|
/** The tasks this one waits on (finish-to-start). */
|
|
5441
|
-
depends_on_tasks: ProjectTaskLink
|
|
5441
|
+
depends_on_tasks: Array<ProjectTaskLink>;
|
|
5442
5442
|
/** The tasks waiting on this one. */
|
|
5443
|
-
blocks: ProjectTaskLink
|
|
5443
|
+
blocks: Array<ProjectTaskLink>;
|
|
5444
5444
|
}
|
|
5445
5445
|
export interface ProjectTimelineEdge {
|
|
5446
5446
|
task_id: string;
|
|
@@ -5450,11 +5450,11 @@ export interface ProjectTimelineEdge {
|
|
|
5450
5450
|
export interface ProjectTimelineResult {
|
|
5451
5451
|
project: string;
|
|
5452
5452
|
project_name: string;
|
|
5453
|
-
projects: ProjectRef
|
|
5453
|
+
projects: Array<ProjectRef>;
|
|
5454
5454
|
from?: string;
|
|
5455
5455
|
to?: string;
|
|
5456
|
-
tasks: ProjectTask
|
|
5457
|
-
edges: ProjectTimelineEdge
|
|
5456
|
+
tasks: Array<ProjectTask>;
|
|
5457
|
+
edges: Array<ProjectTimelineEdge>;
|
|
5458
5458
|
link?: string;
|
|
5459
5459
|
}
|
|
5460
5460
|
/**
|
|
@@ -5477,7 +5477,7 @@ export interface MyWorkResult {
|
|
|
5477
5477
|
/** The bucket tasks holds; counts always covers all of them. */
|
|
5478
5478
|
bucket: MyWorkBucket;
|
|
5479
5479
|
counts: Record<MyWorkBucket, number>;
|
|
5480
|
-
tasks: MyWorkTask
|
|
5480
|
+
tasks: Array<MyWorkTask>;
|
|
5481
5481
|
/** More near-term tasks exist than one read returns: the counts are floors. */
|
|
5482
5482
|
truncated: boolean;
|
|
5483
5483
|
link?: string;
|
|
@@ -5504,7 +5504,7 @@ export interface CRMInteraction {
|
|
|
5504
5504
|
source: "manual" | "gmail" | "outlook" | "whatsapp" | "web";
|
|
5505
5505
|
counterpart_email?: string | null;
|
|
5506
5506
|
external_thread_id?: string | null;
|
|
5507
|
-
participants?: string
|
|
5507
|
+
participants?: Array<string>;
|
|
5508
5508
|
created_at: string;
|
|
5509
5509
|
}
|
|
5510
5510
|
/** An address writing to us with no contact yet (crm.list_interactions unmatched=true). */
|
|
@@ -5514,8 +5514,8 @@ export interface UnmatchedInteractionEmail {
|
|
|
5514
5514
|
last_at: string;
|
|
5515
5515
|
}
|
|
5516
5516
|
export interface CRMInteractionsResult {
|
|
5517
|
-
interactions: CRMInteraction
|
|
5518
|
-
unmatched_emails?: UnmatchedInteractionEmail
|
|
5517
|
+
interactions: Array<CRMInteraction>;
|
|
5518
|
+
unmatched_emails?: Array<UnmatchedInteractionEmail>;
|
|
5519
5519
|
}
|
|
5520
5520
|
/** A connected mailbox syncing into the CRM timeline (email.list_accounts). */
|
|
5521
5521
|
export interface EmailAccount {
|
|
@@ -5659,7 +5659,7 @@ export interface MarketingConversation {
|
|
|
5659
5659
|
}
|
|
5660
5660
|
/** `marketing.list_conversations`: one page of conversations, and how many are unread overall. */
|
|
5661
5661
|
export interface MarketingConversationList {
|
|
5662
|
-
conversations: MarketingConversation
|
|
5662
|
+
conversations: Array<MarketingConversation>;
|
|
5663
5663
|
/** Conversations with unread messages across every channel, whatever the filters and limit. */
|
|
5664
5664
|
unread_total?: number;
|
|
5665
5665
|
}
|
|
@@ -5768,11 +5768,11 @@ export interface CallCenterQueue {
|
|
|
5768
5768
|
voice_agent: CallCenterVoiceAgent;
|
|
5769
5769
|
/** What the team tells the voice agent about the business. */
|
|
5770
5770
|
voice_agent_instructions: string;
|
|
5771
|
-
members: {
|
|
5771
|
+
members: Array<{
|
|
5772
5772
|
user_id: string;
|
|
5773
5773
|
name: string;
|
|
5774
5774
|
email: string;
|
|
5775
|
-
}
|
|
5775
|
+
}>;
|
|
5776
5776
|
created_at: string;
|
|
5777
5777
|
updated_at: string;
|
|
5778
5778
|
}
|
|
@@ -5811,14 +5811,14 @@ export interface PublicCallCenterAgentPull {
|
|
|
5811
5811
|
/** One person's call-center desk (`callcenter.desk`). */
|
|
5812
5812
|
export interface CallCenterDesk {
|
|
5813
5813
|
status: CallCenterStatus;
|
|
5814
|
-
queues: CallCenterQueue
|
|
5814
|
+
queues: Array<CallCenterQueue>;
|
|
5815
5815
|
/** Unanswered calls in the person's queues, while they are available. */
|
|
5816
|
-
ringing: MarketingCall
|
|
5816
|
+
ringing: Array<MarketingCall>;
|
|
5817
5817
|
/** The call the person holds. */
|
|
5818
5818
|
current: MarketingCall | null;
|
|
5819
|
-
recent: MarketingCall
|
|
5819
|
+
recent: Array<MarketingCall>;
|
|
5820
5820
|
/** Web callers waiting to be called back: from the person's queues, or every queue for an owner or admin. */
|
|
5821
|
-
callbacks?: MarketingCall
|
|
5821
|
+
callbacks?: Array<MarketingCall>;
|
|
5822
5822
|
}
|
|
5823
5823
|
export interface CallCenterAgent {
|
|
5824
5824
|
user_id: string;
|
|
@@ -5877,17 +5877,17 @@ export interface CallCenterToolCall {
|
|
|
5877
5877
|
}
|
|
5878
5878
|
/** Everything a call's log shows (`callcenter.transcript`). */
|
|
5879
5879
|
export interface CallCenterCallLog {
|
|
5880
|
-
lines: CallCenterTranscriptLine
|
|
5881
|
-
recordings: CallCenterRecording
|
|
5882
|
-
tool_calls: CallCenterToolCall
|
|
5880
|
+
lines: Array<CallCenterTranscriptLine>;
|
|
5881
|
+
recordings: Array<CallCenterRecording>;
|
|
5882
|
+
tool_calls: Array<CallCenterToolCall>;
|
|
5883
5883
|
}
|
|
5884
5884
|
/** The supervisor board (`callcenter.board`). */
|
|
5885
5885
|
export interface CallCenterBoard {
|
|
5886
|
-
queues: CallCenterQueue
|
|
5887
|
-
agents: CallCenterAgent
|
|
5888
|
-
live: MarketingCall
|
|
5889
|
-
stats: CallCenterQueueStats
|
|
5890
|
-
recent: MarketingCall
|
|
5886
|
+
queues: Array<CallCenterQueue>;
|
|
5887
|
+
agents: Array<CallCenterAgent>;
|
|
5888
|
+
live: Array<MarketingCall>;
|
|
5889
|
+
stats: Array<CallCenterQueueStats>;
|
|
5890
|
+
recent: Array<MarketingCall>;
|
|
5891
5891
|
}
|
|
5892
5892
|
/** Aggregated delivery counts for a WhatsApp template campaign. */
|
|
5893
5893
|
export interface MarketingCampaignStats {
|
|
@@ -6009,9 +6009,9 @@ export interface MarketingMediaFilter {
|
|
|
6009
6009
|
offset?: number;
|
|
6010
6010
|
}
|
|
6011
6011
|
export interface MarketingMediaPage {
|
|
6012
|
-
media:
|
|
6012
|
+
media: Array<MarketingMediaUpload & {
|
|
6013
6013
|
created_at: string;
|
|
6014
|
-
}
|
|
6014
|
+
}>;
|
|
6015
6015
|
next_offset: number | null;
|
|
6016
6016
|
}
|
|
6017
6017
|
export type MarketingPostPermissions = Record<"create" | "draft" | "submit" | "review" | "schedule" | "cancel", boolean>;
|
|
@@ -6032,34 +6032,34 @@ export interface MarketingPostRevision {
|
|
|
6032
6032
|
provider: string;
|
|
6033
6033
|
caption: string;
|
|
6034
6034
|
media_type: MarketingPost["media_type"];
|
|
6035
|
-
media_urls: string
|
|
6035
|
+
media_urls: Array<string>;
|
|
6036
6036
|
editor_name: string | null;
|
|
6037
6037
|
actor_type: string | null;
|
|
6038
6038
|
saved_at: string;
|
|
6039
6039
|
}
|
|
6040
6040
|
export interface MarketingPostHistory {
|
|
6041
|
-
revisions: MarketingPostRevision
|
|
6041
|
+
revisions: Array<MarketingPostRevision>;
|
|
6042
6042
|
before_version: number | null;
|
|
6043
6043
|
}
|
|
6044
6044
|
export interface MarketingHistory {
|
|
6045
6045
|
import: {
|
|
6046
6046
|
id: string;
|
|
6047
6047
|
started_at: string;
|
|
6048
|
-
sources: string
|
|
6048
|
+
sources: Array<string>;
|
|
6049
6049
|
} | null;
|
|
6050
|
-
sources: {
|
|
6050
|
+
sources: Array<{
|
|
6051
6051
|
source: string;
|
|
6052
6052
|
status: "collecting" | "complete" | "partial" | "failed";
|
|
6053
6053
|
pages: number;
|
|
6054
|
-
}
|
|
6055
|
-
pages: {
|
|
6054
|
+
}>;
|
|
6055
|
+
pages: Array<{
|
|
6056
6056
|
id: string;
|
|
6057
6057
|
source: string;
|
|
6058
6058
|
cursor: string;
|
|
6059
6059
|
next_cursor: string | null;
|
|
6060
6060
|
data: JsonObject;
|
|
6061
6061
|
observed_at: string;
|
|
6062
|
-
}
|
|
6062
|
+
}>;
|
|
6063
6063
|
next_cursor: string | null;
|
|
6064
6064
|
}
|
|
6065
6065
|
export interface MarketingPostStats {
|
|
@@ -6076,7 +6076,7 @@ export interface MarketingPost {
|
|
|
6076
6076
|
batch_id?: string;
|
|
6077
6077
|
media_type: "image" | "video" | "carousel" | "text" | "reels" | "story";
|
|
6078
6078
|
caption: string;
|
|
6079
|
-
media_urls: string
|
|
6079
|
+
media_urls: Array<string>;
|
|
6080
6080
|
status: "draft" | "in_review" | "approved" | "scheduled" | "publishing" | "published" | "failed" | "cancelled";
|
|
6081
6081
|
review_note?: string;
|
|
6082
6082
|
updated_at?: string;
|
|
@@ -6093,19 +6093,19 @@ export interface MarketingPost {
|
|
|
6093
6093
|
/** The Instagram and Facebook extras: first comment, alt text, collaborators. */
|
|
6094
6094
|
details?: MarketingPostDetails | null;
|
|
6095
6095
|
/** The workspace's own labels for the post; never published. */
|
|
6096
|
-
tags?: string
|
|
6096
|
+
tags?: Array<string>;
|
|
6097
6097
|
}
|
|
6098
6098
|
/** What an Instagram or Facebook post carries beside its caption. */
|
|
6099
6099
|
export interface MarketingPostDetails {
|
|
6100
6100
|
first_comment?: string;
|
|
6101
6101
|
alt_text?: string;
|
|
6102
|
-
collaborators?: string
|
|
6102
|
+
collaborators?: Array<string>;
|
|
6103
6103
|
}
|
|
6104
6104
|
/** The extras `marketing.create_post` and `marketing.save_post_draft` take. */
|
|
6105
6105
|
export interface MarketingPostDetailChoices {
|
|
6106
6106
|
first_comment?: string;
|
|
6107
6107
|
alt_text?: string;
|
|
6108
|
-
collaborators?: string
|
|
6108
|
+
collaborators?: Array<string>;
|
|
6109
6109
|
}
|
|
6110
6110
|
/** A caption the AI wrote for one network. */
|
|
6111
6111
|
export interface MarketingCaptionSuggestion {
|
|
@@ -6118,8 +6118,8 @@ export interface MarketingCaptionDraft {
|
|
|
6118
6118
|
status: "queued" | "done" | "failed";
|
|
6119
6119
|
brief: string;
|
|
6120
6120
|
tone: string;
|
|
6121
|
-
providers: string
|
|
6122
|
-
suggestions: MarketingCaptionSuggestion
|
|
6121
|
+
providers: Array<string>;
|
|
6122
|
+
suggestions: Array<MarketingCaptionSuggestion>;
|
|
6123
6123
|
/** Starts with a code: allowance_used, not_configured or failed. */
|
|
6124
6124
|
error: string;
|
|
6125
6125
|
created_at: string;
|
|
@@ -6144,7 +6144,7 @@ export interface MarketingPostScheduleSlot {
|
|
|
6144
6144
|
export interface MarketingPostSchedule {
|
|
6145
6145
|
channel_id: string;
|
|
6146
6146
|
time_zone: string | null;
|
|
6147
|
-
slots: MarketingPostScheduleSlot
|
|
6147
|
+
slots: Array<MarketingPostScheduleSlot>;
|
|
6148
6148
|
next_slot: string | null;
|
|
6149
6149
|
}
|
|
6150
6150
|
/** A weekday and hour an account's published posts drew the most interactions at. */
|
|
@@ -6158,7 +6158,7 @@ export interface MarketingBestTime {
|
|
|
6158
6158
|
export interface MarketingBestTimes {
|
|
6159
6159
|
time_zone: string;
|
|
6160
6160
|
sample: number;
|
|
6161
|
-
times: MarketingBestTime
|
|
6161
|
+
times: Array<MarketingBestTime>;
|
|
6162
6162
|
}
|
|
6163
6163
|
/** Who can view a TikTok video, as TikTok's creator info offers the levels. */
|
|
6164
6164
|
export type TikTokPrivacyLevel = "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
|
|
@@ -6185,7 +6185,7 @@ export interface TikTokCreatorInfo {
|
|
|
6185
6185
|
creator_avatar_url: string;
|
|
6186
6186
|
creator_username: string;
|
|
6187
6187
|
creator_nickname: string;
|
|
6188
|
-
privacy_level_options: TikTokPrivacyLevel
|
|
6188
|
+
privacy_level_options: Array<TikTokPrivacyLevel>;
|
|
6189
6189
|
comment_disabled: boolean;
|
|
6190
6190
|
duet_disabled: boolean;
|
|
6191
6191
|
stitch_disabled: boolean;
|
|
@@ -6256,7 +6256,7 @@ export interface EmailSesReputation {
|
|
|
6256
6256
|
ses_cause: string;
|
|
6257
6257
|
customer_status: string;
|
|
6258
6258
|
customer_cause: string;
|
|
6259
|
-
findings: EmailReputationFinding
|
|
6259
|
+
findings: Array<EmailReputationFinding>;
|
|
6260
6260
|
}
|
|
6261
6261
|
/**
|
|
6262
6262
|
* How the workspace's sending looks to SES (marketing.email_reputation):
|
|
@@ -6292,7 +6292,7 @@ export interface EmailSpamFinding {
|
|
|
6292
6292
|
export interface EmailSpamReview {
|
|
6293
6293
|
/** 0–100; 100 is nothing to fix. */
|
|
6294
6294
|
score: number;
|
|
6295
|
-
findings: EmailSpamFinding
|
|
6295
|
+
findings: Array<EmailSpamFinding>;
|
|
6296
6296
|
html: string;
|
|
6297
6297
|
text: string;
|
|
6298
6298
|
}
|
|
@@ -6307,18 +6307,18 @@ export interface EmailFixProposal {
|
|
|
6307
6307
|
subject: string;
|
|
6308
6308
|
preheader: string;
|
|
6309
6309
|
design: unknown;
|
|
6310
|
-
fixed: string
|
|
6310
|
+
fixed: Array<string>;
|
|
6311
6311
|
score: number;
|
|
6312
|
-
findings: EmailSpamFinding
|
|
6312
|
+
findings: Array<EmailSpamFinding>;
|
|
6313
6313
|
suggested: boolean;
|
|
6314
6314
|
suggestions: {
|
|
6315
6315
|
subject?: string;
|
|
6316
6316
|
preheader?: string;
|
|
6317
|
-
blocks: {
|
|
6317
|
+
blocks: Array<{
|
|
6318
6318
|
id: string;
|
|
6319
6319
|
alt?: string;
|
|
6320
6320
|
text?: string;
|
|
6321
|
-
}
|
|
6321
|
+
}>;
|
|
6322
6322
|
};
|
|
6323
6323
|
}
|
|
6324
6324
|
/** A reusable email design (marketing.save_email_template). `design` is the builder document. */
|
|
@@ -6328,7 +6328,7 @@ export interface EmailTemplate {
|
|
|
6328
6328
|
subject: string;
|
|
6329
6329
|
preheader: string;
|
|
6330
6330
|
spam_score: number;
|
|
6331
|
-
spam_findings: EmailSpamFinding
|
|
6331
|
+
spam_findings: Array<EmailSpamFinding>;
|
|
6332
6332
|
design?: unknown;
|
|
6333
6333
|
html?: string;
|
|
6334
6334
|
text?: string;
|
|
@@ -6358,7 +6358,7 @@ export interface EmailTemplateRevision {
|
|
|
6358
6358
|
design?: unknown;
|
|
6359
6359
|
html?: string;
|
|
6360
6360
|
text?: string;
|
|
6361
|
-
spam_findings?: EmailSpamFinding
|
|
6361
|
+
spam_findings?: Array<EmailSpamFinding>;
|
|
6362
6362
|
}
|
|
6363
6363
|
/**
|
|
6364
6364
|
* A group of blocks a workspace keeps to use again (marketing.list_email_rows):
|
|
@@ -6437,17 +6437,17 @@ export interface EmailCampaignDetail {
|
|
|
6437
6437
|
/** Hourly buckets per event type (open, click, delivery, bounce, unsubscribe). */
|
|
6438
6438
|
/** The visits this campaign's links brought to the workspace's own sites. */
|
|
6439
6439
|
site_visits: AttributedSiteVisits;
|
|
6440
|
-
timeline: {
|
|
6440
|
+
timeline: Array<{
|
|
6441
6441
|
hour: string;
|
|
6442
6442
|
type: string;
|
|
6443
6443
|
count: number;
|
|
6444
|
-
}
|
|
6445
|
-
links: {
|
|
6444
|
+
}>;
|
|
6445
|
+
links: Array<{
|
|
6446
6446
|
link: string;
|
|
6447
6447
|
clicks: number;
|
|
6448
6448
|
recipients: number;
|
|
6449
|
-
}
|
|
6450
|
-
recipients: EmailCampaignRecipient
|
|
6449
|
+
}>;
|
|
6450
|
+
recipients: Array<EmailCampaignRecipient>;
|
|
6451
6451
|
}
|
|
6452
6452
|
export interface EmailUnsubscribe {
|
|
6453
6453
|
email: string;
|
|
@@ -6456,7 +6456,7 @@ export interface EmailUnsubscribe {
|
|
|
6456
6456
|
created_at: string;
|
|
6457
6457
|
}
|
|
6458
6458
|
export interface MarketingAdAccounts {
|
|
6459
|
-
accounts: MarketingAdAccount
|
|
6459
|
+
accounts: Array<MarketingAdAccount>;
|
|
6460
6460
|
can_manage: boolean;
|
|
6461
6461
|
}
|
|
6462
6462
|
/** The window every marketing analytics answer echoes back, as YYYY-MM-DD. */
|
|
@@ -6496,7 +6496,7 @@ export interface MarketingAccountComparison {
|
|
|
6496
6496
|
audience: number | null;
|
|
6497
6497
|
audience_change: number | null;
|
|
6498
6498
|
posts_published: number;
|
|
6499
|
-
metrics: MarketingChannelMetric
|
|
6499
|
+
metrics: Array<MarketingChannelMetric>;
|
|
6500
6500
|
}
|
|
6501
6501
|
export interface MarketingAdComparison {
|
|
6502
6502
|
ad_account_id: string;
|
|
@@ -6531,24 +6531,24 @@ export interface MarketingPublication {
|
|
|
6531
6531
|
date: string;
|
|
6532
6532
|
}
|
|
6533
6533
|
export interface MarketingAccountsComparison extends MarketingWindow {
|
|
6534
|
-
channels: MarketingAccountComparison
|
|
6535
|
-
ad_accounts: MarketingAdComparison
|
|
6534
|
+
channels: Array<MarketingAccountComparison>;
|
|
6535
|
+
ad_accounts: Array<MarketingAdComparison>;
|
|
6536
6536
|
/** Every post published inside the window, oldest first. */
|
|
6537
|
-
publications: MarketingPublication
|
|
6537
|
+
publications: Array<MarketingPublication>;
|
|
6538
6538
|
}
|
|
6539
6539
|
export interface MarketingChannelSeries {
|
|
6540
6540
|
channel_id: string;
|
|
6541
6541
|
/** "daily" or "account", or a value this SDK does not know yet. */
|
|
6542
6542
|
basis: string;
|
|
6543
6543
|
additive: boolean;
|
|
6544
|
-
points: {
|
|
6544
|
+
points: Array<{
|
|
6545
6545
|
date: string;
|
|
6546
6546
|
value: number;
|
|
6547
|
-
}
|
|
6547
|
+
}>;
|
|
6548
6548
|
}
|
|
6549
6549
|
export interface MarketingChannelTrend extends MarketingWindow {
|
|
6550
6550
|
metric: string;
|
|
6551
|
-
series: MarketingChannelSeries
|
|
6551
|
+
series: Array<MarketingChannelSeries>;
|
|
6552
6552
|
}
|
|
6553
6553
|
export interface MarketingAdPoint {
|
|
6554
6554
|
ad_account_id: string;
|
|
@@ -6563,7 +6563,7 @@ export interface MarketingAdPoint {
|
|
|
6563
6563
|
reach: number | null;
|
|
6564
6564
|
}
|
|
6565
6565
|
export interface MarketingAdTrend extends MarketingWindow {
|
|
6566
|
-
points: MarketingAdPoint
|
|
6566
|
+
points: Array<MarketingAdPoint>;
|
|
6567
6567
|
}
|
|
6568
6568
|
export interface MarketingTopPost {
|
|
6569
6569
|
post_id: string;
|
|
@@ -6582,7 +6582,7 @@ export interface MarketingTopPost {
|
|
|
6582
6582
|
metrics: Record<string, number>;
|
|
6583
6583
|
}
|
|
6584
6584
|
export interface MarketingTopPosts extends MarketingWindow {
|
|
6585
|
-
posts: MarketingTopPost
|
|
6585
|
+
posts: Array<MarketingTopPost>;
|
|
6586
6586
|
}
|
|
6587
6587
|
export interface MarketingMetricSnapshot {
|
|
6588
6588
|
id: string;
|
|
@@ -6603,8 +6603,8 @@ export interface EmailMessage {
|
|
|
6603
6603
|
from: string;
|
|
6604
6604
|
/** The From header's display name ("Anthropic"); absent when it names no one, or on mail synced before it was kept. */
|
|
6605
6605
|
from_name?: string;
|
|
6606
|
-
to: string
|
|
6607
|
-
cc?: string
|
|
6606
|
+
to: Array<string>;
|
|
6607
|
+
cc?: Array<string>;
|
|
6608
6608
|
subject: string;
|
|
6609
6609
|
snippet: string;
|
|
6610
6610
|
unread: boolean;
|
|
@@ -6666,7 +6666,7 @@ export interface WhatsAppMessageTemplate {
|
|
|
6666
6666
|
}
|
|
6667
6667
|
/** email.list_messages result: one page plus the caller's unread total. */
|
|
6668
6668
|
export interface EmailInbox {
|
|
6669
|
-
messages: EmailMessage
|
|
6669
|
+
messages: Array<EmailMessage>;
|
|
6670
6670
|
unread_count: number;
|
|
6671
6671
|
}
|
|
6672
6672
|
/** What a member writes from their mailbox: a new message, or an answer to or forward of one. */
|
|
@@ -6685,8 +6685,8 @@ export interface EmailSend {
|
|
|
6685
6685
|
/** The inbox message it answers or forwards; absent for a new message. */
|
|
6686
6686
|
message_id?: string;
|
|
6687
6687
|
mode: EmailComposeMode;
|
|
6688
|
-
to: string
|
|
6689
|
-
cc: string
|
|
6688
|
+
to: Array<string>;
|
|
6689
|
+
cc: Array<string>;
|
|
6690
6690
|
subject: string;
|
|
6691
6691
|
status: "queued" | "sending" | "sent" | "failed";
|
|
6692
6692
|
error?: EmailSendFailure;
|
|
@@ -6700,15 +6700,15 @@ export interface EmailComposeInput {
|
|
|
6700
6700
|
message_id?: string;
|
|
6701
6701
|
/** The mailbox to write from; an answer defaults to the one that received the message. */
|
|
6702
6702
|
account_id?: string;
|
|
6703
|
-
to: string
|
|
6704
|
-
cc?: string
|
|
6703
|
+
to: Array<string>;
|
|
6704
|
+
cc?: Array<string>;
|
|
6705
6705
|
/** Defaults to the original's with Re: or Fwd: for an answer or forward. */
|
|
6706
6706
|
subject?: string;
|
|
6707
6707
|
/** Plain text; the mailbox's signature is added under it unless `signature` is false. */
|
|
6708
6708
|
body: string;
|
|
6709
6709
|
signature?: boolean;
|
|
6710
6710
|
/** Files uploaded with uploadEmailAttachment, at most 10 MB together. */
|
|
6711
|
-
attachment_ids?: string
|
|
6711
|
+
attachment_ids?: Array<string>;
|
|
6712
6712
|
}
|
|
6713
6713
|
/** POST /v1/email/attachments result: a file waiting in the composer. */
|
|
6714
6714
|
export interface EmailAttachmentUpload {
|
|
@@ -6725,8 +6725,8 @@ export interface EmailMessageBody {
|
|
|
6725
6725
|
from: string;
|
|
6726
6726
|
/** The From header's display name; empty when it names no one. */
|
|
6727
6727
|
from_name: string;
|
|
6728
|
-
to: string
|
|
6729
|
-
cc?: string
|
|
6728
|
+
to: Array<string>;
|
|
6729
|
+
cc?: Array<string>;
|
|
6730
6730
|
subject: string;
|
|
6731
6731
|
at: string;
|
|
6732
6732
|
/** Plain-text body (always present when the message had one). */
|
|
@@ -6738,7 +6738,7 @@ export interface EmailMessageBody {
|
|
|
6738
6738
|
*/
|
|
6739
6739
|
body_html?: string;
|
|
6740
6740
|
/** What the member wrote in answer that is still queued, failed, or sent but not yet synced back. */
|
|
6741
|
-
sends?: EmailSend
|
|
6741
|
+
sends?: Array<EmailSend>;
|
|
6742
6742
|
}
|
|
6743
6743
|
/**
|
|
6744
6744
|
* The calendar: what the workspace owes, on one timeline. `events` are
|
|
@@ -6765,8 +6765,8 @@ export interface AgendaQuery {
|
|
|
6765
6765
|
/** Window length in days from `from` when `to` is not given. */
|
|
6766
6766
|
days?: number;
|
|
6767
6767
|
/** Lanes to merge; all of them when omitted (events-only in a personal workspace). */
|
|
6768
|
-
sources?: AgendaSource
|
|
6769
|
-
kinds?: CalendarKind
|
|
6768
|
+
sources?: Array<AgendaSource>;
|
|
6769
|
+
kinds?: Array<CalendarKind>;
|
|
6770
6770
|
/** Entry cap (default 100; max 400). */
|
|
6771
6771
|
limit?: number;
|
|
6772
6772
|
/**
|
|
@@ -6798,7 +6798,7 @@ export interface CalendarConnection {
|
|
|
6798
6798
|
status: "active" | "error";
|
|
6799
6799
|
last_synced_at: string | null;
|
|
6800
6800
|
last_error: string | null;
|
|
6801
|
-
calendars: ConnectedCalendar
|
|
6801
|
+
calendars: Array<ConnectedCalendar>;
|
|
6802
6802
|
}
|
|
6803
6803
|
/** A drive a member connects, mirrored into their personal Docs. */
|
|
6804
6804
|
export type DriveProvider = "google" | "onedrive";
|
|
@@ -6886,7 +6886,7 @@ export interface CalendarRepeat {
|
|
|
6886
6886
|
/** Every how many days, weeks, months or years. */
|
|
6887
6887
|
interval: number;
|
|
6888
6888
|
/** For a weekly rule, the weekdays it falls on; empty otherwise. */
|
|
6889
|
-
weekdays: CalendarWeekday
|
|
6889
|
+
weekdays: Array<CalendarWeekday>;
|
|
6890
6890
|
/** The last day it may happen on (YYYY-MM-DD), when it ends on a date. */
|
|
6891
6891
|
until?: string;
|
|
6892
6892
|
/** How many times it happens in all, when it ends after a count. */
|
|
@@ -6901,12 +6901,12 @@ export type CalendarScope = "this" | "following" | "all";
|
|
|
6901
6901
|
export interface AgendaResult {
|
|
6902
6902
|
from: string;
|
|
6903
6903
|
to: string;
|
|
6904
|
-
entries: AgendaEntry
|
|
6904
|
+
entries: Array<AgendaEntry>;
|
|
6905
6905
|
/** Entries per source, before the limit was applied. */
|
|
6906
6906
|
counts: Record<string, number>;
|
|
6907
6907
|
/** Set when the limit dropped entries inside the window. */
|
|
6908
6908
|
truncated: boolean;
|
|
6909
|
-
warnings?: string
|
|
6909
|
+
warnings?: Array<string>;
|
|
6910
6910
|
}
|
|
6911
6911
|
/**
|
|
6912
6912
|
* The single entry an `event` block highlights: either one pinned stored
|
|
@@ -6962,7 +6962,7 @@ export interface CalendarEvent {
|
|
|
6962
6962
|
export interface CalendarEventList {
|
|
6963
6963
|
from: string;
|
|
6964
6964
|
to: string;
|
|
6965
|
-
events: CalendarEvent
|
|
6965
|
+
events: Array<CalendarEvent>;
|
|
6966
6966
|
}
|
|
6967
6967
|
/** Fields shared by calendar.create and calendar.update. */
|
|
6968
6968
|
export interface CalendarEventInput {
|
|
@@ -6986,7 +6986,7 @@ export interface CalendarEventInput {
|
|
|
6986
6986
|
/** Make it repeat ("none" stops a repeat); the rule travels whole. */
|
|
6987
6987
|
repeat?: CalendarRepeatFrequency | "none";
|
|
6988
6988
|
repeat_interval?: number;
|
|
6989
|
-
repeat_weekdays?: CalendarWeekday
|
|
6989
|
+
repeat_weekdays?: Array<CalendarWeekday>;
|
|
6990
6990
|
/** The last day it may happen on, YYYY-MM-DD. */
|
|
6991
6991
|
repeat_until?: string;
|
|
6992
6992
|
repeat_count?: number;
|
|
@@ -7041,7 +7041,7 @@ export interface CanvasParam {
|
|
|
7041
7041
|
/** Hint shown under the control. */
|
|
7042
7042
|
help?: string;
|
|
7043
7043
|
/** Choices (type="select"). */
|
|
7044
|
-
options?: CanvasParamOption
|
|
7044
|
+
options?: Array<CanvasParamOption>;
|
|
7045
7045
|
/** Records source the picker lists (type="record"). */
|
|
7046
7046
|
source?: string;
|
|
7047
7047
|
/** Blocks reading this param wait until it has a value. */
|
|
@@ -7083,13 +7083,13 @@ export interface CanvasBlock {
|
|
|
7083
7083
|
*/
|
|
7084
7084
|
span?: number;
|
|
7085
7085
|
/** Nested blocks (container types); under `tabs` each child's title is its tab label. */
|
|
7086
|
-
children?: CanvasBlock
|
|
7086
|
+
children?: Array<CanvasBlock>;
|
|
7087
7087
|
/** Rendering variant: callout tone, heading level, or "collapsed" on a section. */
|
|
7088
7088
|
variant?: string;
|
|
7089
|
-
items?: CanvasStat
|
|
7089
|
+
items?: Array<CanvasStat>;
|
|
7090
7090
|
chart?: "line" | "area" | "bar" | "pie";
|
|
7091
7091
|
/** Value keys to plot; defaults to the metric's primary. */
|
|
7092
|
-
series?: string
|
|
7092
|
+
series?: Array<string>;
|
|
7093
7093
|
query?: MetricQuery;
|
|
7094
7094
|
/** Hydrated by the server. */
|
|
7095
7095
|
data?: MetricResult | null;
|
|
@@ -7102,7 +7102,7 @@ export interface CanvasBlock {
|
|
|
7102
7102
|
* buttons in a card, `button` as bare buttons, and `form` and `toggle`
|
|
7103
7103
|
* carry exactly one (rendered inline / as a switch).
|
|
7104
7104
|
*/
|
|
7105
|
-
actions?: CanvasAction
|
|
7105
|
+
actions?: Array<CanvasAction>;
|
|
7106
7106
|
markdown?: string;
|
|
7107
7107
|
/** Hydrated by the server (type=profile). */
|
|
7108
7108
|
profile?: CanvasProfile | null;
|
|
@@ -7119,7 +7119,7 @@ export interface CanvasBlock {
|
|
|
7119
7119
|
/** Hydrated by the server. */
|
|
7120
7120
|
event_data?: EventHighlight | null;
|
|
7121
7121
|
/** Viewer controls (type=params) whose values feed other blocks' inputs. */
|
|
7122
|
-
params?: CanvasParam
|
|
7122
|
+
params?: Array<CanvasParam>;
|
|
7123
7123
|
/** Read tool whose answer the block renders (type=result). */
|
|
7124
7124
|
result?: CanvasResultQuery;
|
|
7125
7125
|
/** Hydrated by the server. */
|
|
@@ -7135,7 +7135,7 @@ export interface CanvasBlock {
|
|
|
7135
7135
|
/** Follow another records block's selected row — shorthand for a single input. */
|
|
7136
7136
|
bind?: CanvasBind;
|
|
7137
7137
|
/** Query fields fed from a params control or another block's selection. */
|
|
7138
|
-
inputs?: CanvasInput
|
|
7138
|
+
inputs?: Array<CanvasInput>;
|
|
7139
7139
|
/**
|
|
7140
7140
|
* Set by the server on a block it deliberately did not hydrate: the
|
|
7141
7141
|
* panels of a tabs block behind the first. The client runs its query
|
|
@@ -7149,7 +7149,7 @@ export interface CanvasBlock {
|
|
|
7149
7149
|
* block naming its modules re-queries when one lands instead of
|
|
7150
7150
|
* waiting for a reload.
|
|
7151
7151
|
*/
|
|
7152
|
-
live?: string
|
|
7152
|
+
live?: Array<string>;
|
|
7153
7153
|
}
|
|
7154
7154
|
/**
|
|
7155
7155
|
* The Read tool a result block renders. Only tools that declare a canvas
|
|
@@ -7173,19 +7173,19 @@ export interface CanvasResultField {
|
|
|
7173
7173
|
export interface CanvasResultPart {
|
|
7174
7174
|
kind: "fields" | "table";
|
|
7175
7175
|
title?: string;
|
|
7176
|
-
fields?: CanvasResultField
|
|
7177
|
-
columns?: RecordsColumn
|
|
7178
|
-
rows?: JsonObject
|
|
7176
|
+
fields?: Array<CanvasResultField>;
|
|
7177
|
+
columns?: Array<RecordsColumn>;
|
|
7178
|
+
rows?: Array<JsonObject>;
|
|
7179
7179
|
}
|
|
7180
7180
|
/** A result block's hydrated payload. */
|
|
7181
7181
|
export interface CanvasResult {
|
|
7182
7182
|
tool: string;
|
|
7183
7183
|
/** Tenant functional currency, for the money columns. */
|
|
7184
7184
|
currency?: string;
|
|
7185
|
-
parts: CanvasResultPart
|
|
7185
|
+
parts: Array<CanvasResultPart>;
|
|
7186
7186
|
}
|
|
7187
7187
|
export interface CanvasSpec {
|
|
7188
|
-
blocks: CanvasBlock
|
|
7188
|
+
blocks: Array<CanvasBlock>;
|
|
7189
7189
|
}
|
|
7190
7190
|
export interface DashboardSummary {
|
|
7191
7191
|
id: string;
|
|
@@ -7290,7 +7290,7 @@ export interface SessionAsk {
|
|
|
7290
7290
|
/** The answer's json-render spec, when it drew one. */
|
|
7291
7291
|
ui?: UISpec;
|
|
7292
7292
|
/** The answer's Block Kit blocks, when it laid some out. */
|
|
7293
|
-
blocks?: MessageBlock
|
|
7293
|
+
blocks?: Array<MessageBlock>;
|
|
7294
7294
|
/**
|
|
7295
7295
|
* The action that waits for a person: decide it with `approveRun` /
|
|
7296
7296
|
* `denyRun` on `run_id`, the run that holds it (the session's own, or a
|
|
@@ -7303,7 +7303,7 @@ export interface SessionAsk {
|
|
|
7303
7303
|
input: Json;
|
|
7304
7304
|
};
|
|
7305
7305
|
/** The questions the run asked: answer with `answerRun`, or by writing in the thread. */
|
|
7306
|
-
questions?: RunQuestion
|
|
7306
|
+
questions?: Array<RunQuestion>;
|
|
7307
7307
|
/** What the run waits on was pending before this message: the message waits behind it. */
|
|
7308
7308
|
queued: boolean;
|
|
7309
7309
|
/** Why the run failed: `ai_allowance_used` when the plan refused the model. */
|
|
@@ -7321,10 +7321,10 @@ export interface ConversationTurn {
|
|
|
7321
7321
|
/** The json-render spec of an assistant turn. */
|
|
7322
7322
|
ui?: UISpec;
|
|
7323
7323
|
/** Block Kit blocks of an assistant turn. */
|
|
7324
|
-
message?: MessageBlock
|
|
7325
|
-
blocks?: CanvasBlock
|
|
7326
|
-
attachments?: ChatAttachment
|
|
7327
|
-
questions?: RunQuestion
|
|
7324
|
+
message?: Array<MessageBlock>;
|
|
7325
|
+
blocks?: Array<CanvasBlock>;
|
|
7326
|
+
attachments?: Array<ChatAttachment>;
|
|
7327
|
+
questions?: Array<RunQuestion>;
|
|
7328
7328
|
/** An in-chat authorization that was still undecided when saved. */
|
|
7329
7329
|
approval?: ChatApproval;
|
|
7330
7330
|
/** The member's answer to an authorization, on the user turn that sent it. */
|
|
@@ -7381,8 +7381,8 @@ export interface AgentSessionRun {
|
|
|
7381
7381
|
}
|
|
7382
7382
|
export interface AgentSessionDetail {
|
|
7383
7383
|
session: AgentSession;
|
|
7384
|
-
runs: AgentSessionRun
|
|
7385
|
-
pending_approvals: {
|
|
7384
|
+
runs: Array<AgentSessionRun>;
|
|
7385
|
+
pending_approvals: Array<{
|
|
7386
7386
|
approval_id: string;
|
|
7387
7387
|
run_id: string;
|
|
7388
7388
|
tool: string;
|
|
@@ -7390,17 +7390,17 @@ export interface AgentSessionDetail {
|
|
|
7390
7390
|
created_at: string;
|
|
7391
7391
|
/** Whether the caller may approve or deny this call (`InboxApproval.can_decide`'s rule). */
|
|
7392
7392
|
can_decide: boolean;
|
|
7393
|
-
}
|
|
7394
|
-
pending_questions: {
|
|
7393
|
+
}>;
|
|
7394
|
+
pending_questions: Array<{
|
|
7395
7395
|
run_id: string;
|
|
7396
|
-
questions: RunQuestion
|
|
7396
|
+
questions: Array<RunQuestion> | null;
|
|
7397
7397
|
created_at: string;
|
|
7398
|
-
}
|
|
7398
|
+
}>;
|
|
7399
7399
|
/** The member's own page-chat transcript; null for other origins or other members' chats. */
|
|
7400
7400
|
conversation: {
|
|
7401
7401
|
id: string;
|
|
7402
7402
|
title: string;
|
|
7403
|
-
thread: ConversationTurn
|
|
7403
|
+
thread: Array<ConversationTurn>;
|
|
7404
7404
|
} | null;
|
|
7405
7405
|
}
|
|
7406
7406
|
export interface ConversationSummary {
|
|
@@ -7416,7 +7416,7 @@ export interface ConversationSummary {
|
|
|
7416
7416
|
export interface Conversation {
|
|
7417
7417
|
id: string;
|
|
7418
7418
|
title: string;
|
|
7419
|
-
thread: ConversationTurn
|
|
7419
|
+
thread: Array<ConversationTurn>;
|
|
7420
7420
|
created_at: string;
|
|
7421
7421
|
updated_at: string;
|
|
7422
7422
|
}
|
|
@@ -7447,9 +7447,9 @@ export interface VoiceSession {
|
|
|
7447
7447
|
url: string;
|
|
7448
7448
|
}
|
|
7449
7449
|
export interface OverviewSuggestionsResponse {
|
|
7450
|
-
suggestions: OverviewSuggestion
|
|
7450
|
+
suggestions: Array<OverviewSuggestion>;
|
|
7451
7451
|
/** The first steps; absent from an API that predates them. */
|
|
7452
|
-
checklist?: OverviewChecklistStep
|
|
7452
|
+
checklist?: Array<OverviewChecklistStep>;
|
|
7453
7453
|
/** Tenant currency for formatting `_cents` params. */
|
|
7454
7454
|
currency: string;
|
|
7455
7455
|
}
|
|
@@ -7498,21 +7498,21 @@ export interface TaxConceptOverride {
|
|
|
7498
7498
|
export interface TaxProfileResponse {
|
|
7499
7499
|
profile: TaxProfile;
|
|
7500
7500
|
/** Keys the requested year overrides on top of the base profile. */
|
|
7501
|
-
year_override_keys: string
|
|
7501
|
+
year_override_keys: Array<string> | null;
|
|
7502
7502
|
/** Years that carry their own settings (tax.set_profile with year). */
|
|
7503
|
-
overridden_years: number
|
|
7504
|
-
concepts: TaxConcept
|
|
7503
|
+
overridden_years: Array<number>;
|
|
7504
|
+
concepts: Array<TaxConcept>;
|
|
7505
7505
|
overrides: Record<string, TaxConceptOverride>;
|
|
7506
7506
|
reteiva_rate_bps: number;
|
|
7507
|
-
ica_defaults: {
|
|
7507
|
+
ica_defaults: Array<{
|
|
7508
7508
|
municipality: string;
|
|
7509
7509
|
dane_code: string;
|
|
7510
7510
|
commerce_ppm: number;
|
|
7511
7511
|
services_ppm: number;
|
|
7512
7512
|
industrial_ppm: number;
|
|
7513
|
-
}
|
|
7514
|
-
exogena_formats: string
|
|
7515
|
-
warnings: string
|
|
7513
|
+
}>;
|
|
7514
|
+
exogena_formats: Array<string>;
|
|
7515
|
+
warnings: Array<string>;
|
|
7516
7516
|
}
|
|
7517
7517
|
/** A third party's tax regime — what decides how much we withhold. */
|
|
7518
7518
|
export interface PartyTaxProfile {
|
|
@@ -7548,8 +7548,8 @@ export interface WithholdingSuggestion {
|
|
|
7548
7548
|
reteica_municipality?: string;
|
|
7549
7549
|
total_withheld_cents: number;
|
|
7550
7550
|
net_payable_cents: number;
|
|
7551
|
-
rationale: string
|
|
7552
|
-
warnings?: string
|
|
7551
|
+
rationale: Array<string>;
|
|
7552
|
+
warnings?: Array<string>;
|
|
7553
7553
|
}
|
|
7554
7554
|
export interface WithholdingSuggestResponse {
|
|
7555
7555
|
suggestion: WithholdingSuggestion;
|
|
@@ -7571,7 +7571,7 @@ export interface TaxRateBucket {
|
|
|
7571
7571
|
documents: number;
|
|
7572
7572
|
}
|
|
7573
7573
|
export interface TaxRateSection {
|
|
7574
|
-
by_rate: TaxRateBucket
|
|
7574
|
+
by_rate: Array<TaxRateBucket>;
|
|
7575
7575
|
total_base_cents: number;
|
|
7576
7576
|
total_tax_cents: number;
|
|
7577
7577
|
documents: number;
|
|
@@ -7618,7 +7618,7 @@ export interface IvaReport {
|
|
|
7618
7618
|
};
|
|
7619
7619
|
/** Formulario 300 boxes the books can fill, keyed by renglón. */
|
|
7620
7620
|
renglones: Record<string, number>;
|
|
7621
|
-
warnings: string
|
|
7621
|
+
warnings: Array<string>;
|
|
7622
7622
|
}
|
|
7623
7623
|
export interface WithholdingPartyRow {
|
|
7624
7624
|
party_id?: string;
|
|
@@ -7639,12 +7639,12 @@ export interface WithholdingReport {
|
|
|
7639
7639
|
period_end: string;
|
|
7640
7640
|
currency: string;
|
|
7641
7641
|
practicadas: {
|
|
7642
|
-
rows: WithholdingPartyRow
|
|
7642
|
+
rows: Array<WithholdingPartyRow>;
|
|
7643
7643
|
base_cents: number;
|
|
7644
7644
|
retefuente_cents: number;
|
|
7645
7645
|
reteiva_cents: number;
|
|
7646
7646
|
reteica_cents: number;
|
|
7647
|
-
payroll: {
|
|
7647
|
+
payroll: Array<{
|
|
7648
7648
|
employee_id: string;
|
|
7649
7649
|
name: string;
|
|
7650
7650
|
document_type: string;
|
|
@@ -7652,20 +7652,20 @@ export interface WithholdingReport {
|
|
|
7652
7652
|
gross_cents: number;
|
|
7653
7653
|
withholding_cents: number;
|
|
7654
7654
|
payslips: number;
|
|
7655
|
-
}
|
|
7655
|
+
}>;
|
|
7656
7656
|
payroll_base_cents: number;
|
|
7657
7657
|
payroll_withholding_cents: number;
|
|
7658
7658
|
total_cents: number;
|
|
7659
7659
|
};
|
|
7660
7660
|
sufridas: {
|
|
7661
|
-
rows: {
|
|
7661
|
+
rows: Array<{
|
|
7662
7662
|
party_id?: string;
|
|
7663
7663
|
party_name: string;
|
|
7664
7664
|
party_tax_id?: string;
|
|
7665
7665
|
amount_cents: number;
|
|
7666
7666
|
withheld_cents: number;
|
|
7667
7667
|
payments: number;
|
|
7668
|
-
}
|
|
7668
|
+
}>;
|
|
7669
7669
|
total_cents: number;
|
|
7670
7670
|
};
|
|
7671
7671
|
ledger: {
|
|
@@ -7673,7 +7673,7 @@ export interface WithholdingReport {
|
|
|
7673
7673
|
withholding_receivable: TaxAccountTie;
|
|
7674
7674
|
ties: boolean;
|
|
7675
7675
|
};
|
|
7676
|
-
warnings: string
|
|
7676
|
+
warnings: Array<string>;
|
|
7677
7677
|
}
|
|
7678
7678
|
export interface WithholdingCertificate {
|
|
7679
7679
|
party_id?: string;
|
|
@@ -7682,7 +7682,7 @@ export interface WithholdingCertificate {
|
|
|
7682
7682
|
party_tax_id_type?: string;
|
|
7683
7683
|
party_country?: string;
|
|
7684
7684
|
person_type: string;
|
|
7685
|
-
lines: {
|
|
7685
|
+
lines: Array<{
|
|
7686
7686
|
concept: string;
|
|
7687
7687
|
concept_name: string;
|
|
7688
7688
|
concept_certain: boolean;
|
|
@@ -7692,7 +7692,7 @@ export interface WithholdingCertificate {
|
|
|
7692
7692
|
reteiva_cents: number;
|
|
7693
7693
|
reteica_cents: number;
|
|
7694
7694
|
documents: number;
|
|
7695
|
-
}
|
|
7695
|
+
}>;
|
|
7696
7696
|
base_cents: number;
|
|
7697
7697
|
retefuente_cents: number;
|
|
7698
7698
|
reteiva_cents: number;
|
|
@@ -7708,8 +7708,8 @@ export interface WithholdingCertificatesReport {
|
|
|
7708
7708
|
nit_check_digit: string;
|
|
7709
7709
|
country: string;
|
|
7710
7710
|
};
|
|
7711
|
-
certificates: WithholdingCertificate
|
|
7712
|
-
warnings: string
|
|
7711
|
+
certificates: Array<WithholdingCertificate>;
|
|
7712
|
+
warnings: Array<string>;
|
|
7713
7713
|
}
|
|
7714
7714
|
export interface IcaReport {
|
|
7715
7715
|
period_start: string;
|
|
@@ -7718,7 +7718,7 @@ export interface IcaReport {
|
|
|
7718
7718
|
ica_period: string;
|
|
7719
7719
|
home_municipality: string;
|
|
7720
7720
|
rate_per_mil: number;
|
|
7721
|
-
municipalities: {
|
|
7721
|
+
municipalities: Array<{
|
|
7722
7722
|
municipality: string;
|
|
7723
7723
|
base_cents: number;
|
|
7724
7724
|
returns_cents: number;
|
|
@@ -7726,31 +7726,31 @@ export interface IcaReport {
|
|
|
7726
7726
|
rate_source: string;
|
|
7727
7727
|
tax_cents: number;
|
|
7728
7728
|
documents: number;
|
|
7729
|
-
}
|
|
7729
|
+
}>;
|
|
7730
7730
|
total_base_cents: number;
|
|
7731
7731
|
total_tax_cents: number;
|
|
7732
7732
|
reteica_practicada_cents: number;
|
|
7733
|
-
warnings: string
|
|
7733
|
+
warnings: Array<string>;
|
|
7734
7734
|
}
|
|
7735
7735
|
export interface ExogenaFormat {
|
|
7736
7736
|
code: string;
|
|
7737
7737
|
name: string;
|
|
7738
7738
|
version: string;
|
|
7739
|
-
columns: string
|
|
7739
|
+
columns: Array<string>;
|
|
7740
7740
|
source: string;
|
|
7741
7741
|
note?: string;
|
|
7742
7742
|
}
|
|
7743
7743
|
export interface ExogenaReport {
|
|
7744
7744
|
year: number;
|
|
7745
7745
|
format: ExogenaFormat;
|
|
7746
|
-
columns: string
|
|
7746
|
+
columns: Array<string>;
|
|
7747
7747
|
/** Rows aligned to `columns`; amounts are whole pesos. */
|
|
7748
|
-
rows: string
|
|
7748
|
+
rows: Array<Array<string>>;
|
|
7749
7749
|
row_count: number;
|
|
7750
7750
|
/** The same rows as a BOM-prefixed CSV, ready to download. */
|
|
7751
7751
|
csv: string;
|
|
7752
7752
|
currency: string;
|
|
7753
|
-
warnings: string
|
|
7753
|
+
warnings: Array<string>;
|
|
7754
7754
|
}
|
|
7755
7755
|
/** One upcoming filing. `verified` is always false — confirm with DIAN. */
|
|
7756
7756
|
export interface TaxObligation {
|
|
@@ -7768,9 +7768,9 @@ export interface TaxObligation {
|
|
|
7768
7768
|
}
|
|
7769
7769
|
export interface TaxCalendar {
|
|
7770
7770
|
as_of: string;
|
|
7771
|
-
obligations: TaxObligation
|
|
7771
|
+
obligations: Array<TaxObligation>;
|
|
7772
7772
|
profile: TaxProfile;
|
|
7773
|
-
warnings: string
|
|
7773
|
+
warnings: Array<string>;
|
|
7774
7774
|
}
|
|
7775
7775
|
export interface ClientOptions {
|
|
7776
7776
|
/** Base URL of the API, e.g. `https://api.nemphi.com`. */
|
|
@@ -7870,7 +7870,7 @@ export interface SalesDocument {
|
|
|
7870
7870
|
created_at: string;
|
|
7871
7871
|
updated_at: string;
|
|
7872
7872
|
/** Present on create/update/get responses. */
|
|
7873
|
-
lines?: OrderLine
|
|
7873
|
+
lines?: Array<OrderLine>;
|
|
7874
7874
|
/** Present on list rows. */
|
|
7875
7875
|
lines_count?: number;
|
|
7876
7876
|
/** Quotes only: valid_until has passed while the quote was still open. */
|
|
@@ -7898,7 +7898,7 @@ export interface PurchaseOrder {
|
|
|
7898
7898
|
delivery_address?: Record<string, string>;
|
|
7899
7899
|
created_at: string;
|
|
7900
7900
|
updated_at: string;
|
|
7901
|
-
lines?: OrderLine
|
|
7901
|
+
lines?: Array<OrderLine>;
|
|
7902
7902
|
lines_count?: number;
|
|
7903
7903
|
}
|
|
7904
7904
|
/** Create shape of quotes.create / sales_orders.create. */
|
|
@@ -7912,7 +7912,7 @@ export interface SalesDocumentInput {
|
|
|
7912
7912
|
currency?: string;
|
|
7913
7913
|
notes?: string;
|
|
7914
7914
|
terms?: string;
|
|
7915
|
-
lines: LineInput
|
|
7915
|
+
lines: Array<LineInput>;
|
|
7916
7916
|
}
|
|
7917
7917
|
export interface PurchaseOrderInput {
|
|
7918
7918
|
party_id: string;
|
|
@@ -7922,7 +7922,7 @@ export interface PurchaseOrderInput {
|
|
|
7922
7922
|
notes?: string;
|
|
7923
7923
|
terms?: string;
|
|
7924
7924
|
delivery_address?: Record<string, string>;
|
|
7925
|
-
lines: LineInput
|
|
7925
|
+
lines: Array<LineInput>;
|
|
7926
7926
|
}
|
|
7927
7927
|
/** "Take this much of that line" — partial invoicing, receiving, billing. */
|
|
7928
7928
|
export interface QuantitySelection {
|
|
@@ -7939,10 +7939,10 @@ export interface SalesDocumentDetail {
|
|
|
7939
7939
|
document: SalesDocument;
|
|
7940
7940
|
party: Party;
|
|
7941
7941
|
/** Invoices created from this quote or order. */
|
|
7942
|
-
invoices: Invoice
|
|
7942
|
+
invoices: Array<Invoice>;
|
|
7943
7943
|
related_quote?: SalesDocument;
|
|
7944
7944
|
/** Quotes: the orders they were converted into. */
|
|
7945
|
-
sales_orders?: SalesDocument
|
|
7945
|
+
sales_orders?: Array<SalesDocument>;
|
|
7946
7946
|
}
|
|
7947
7947
|
export interface PurchaseReceipt {
|
|
7948
7948
|
id: string;
|
|
@@ -7965,9 +7965,9 @@ export interface PurchaseReceiptLine {
|
|
|
7965
7965
|
export interface PurchaseOrderDetail {
|
|
7966
7966
|
purchase_order: PurchaseOrder;
|
|
7967
7967
|
party: Party;
|
|
7968
|
-
receipts: PurchaseReceipt
|
|
7969
|
-
receipt_lines: PurchaseReceiptLine
|
|
7970
|
-
bills: Bill
|
|
7968
|
+
receipts: Array<PurchaseReceipt>;
|
|
7969
|
+
receipt_lines: Array<PurchaseReceiptLine>;
|
|
7970
|
+
bills: Array<Bill>;
|
|
7971
7971
|
}
|
|
7972
7972
|
/**
|
|
7973
7973
|
* Three-way match verdict. `unreceived` is the blocking one: the vendor
|
|
@@ -7999,8 +7999,8 @@ export interface MatchReport {
|
|
|
7999
7999
|
party_id: string;
|
|
8000
8000
|
};
|
|
8001
8001
|
verdict: MatchVerdict;
|
|
8002
|
-
lines: MatchLine
|
|
8003
|
-
bills: Bill
|
|
8002
|
+
lines: Array<MatchLine>;
|
|
8003
|
+
bills: Array<Bill>;
|
|
8004
8004
|
unbilled_lines: number;
|
|
8005
8005
|
summary: string;
|
|
8006
8006
|
bill_id?: string;
|
|
@@ -8099,7 +8099,7 @@ export interface NemphiClient {
|
|
|
8099
8099
|
}): Promise<void>;
|
|
8100
8100
|
me(): Promise<{
|
|
8101
8101
|
user: User;
|
|
8102
|
-
memberships: Membership
|
|
8102
|
+
memberships: Array<Membership>;
|
|
8103
8103
|
session?: SessionInfo;
|
|
8104
8104
|
platform?: PlatformInfo;
|
|
8105
8105
|
}>;
|
|
@@ -8173,15 +8173,15 @@ export interface NemphiClient {
|
|
|
8173
8173
|
startTotpEnrollment(): Promise<TotpEnrollment>;
|
|
8174
8174
|
/** Prove the app holds the secret; returns the recovery codes, once. */
|
|
8175
8175
|
confirmTotpEnrollment(code: string): Promise<{
|
|
8176
|
-
recovery_codes: string
|
|
8176
|
+
recovery_codes: Array<string>;
|
|
8177
8177
|
}>;
|
|
8178
8178
|
/** Remove the authenticator and its recovery codes. Needs a current code. */
|
|
8179
8179
|
disableTotp(code: string): Promise<void>;
|
|
8180
8180
|
/** Replace the recovery codes; the old set stops working. */
|
|
8181
8181
|
regenerateRecoveryCodes(code: string): Promise<{
|
|
8182
|
-
recovery_codes: string
|
|
8182
|
+
recovery_codes: Array<string>;
|
|
8183
8183
|
}>;
|
|
8184
|
-
listPasskeys(): Promise<Passkey
|
|
8184
|
+
listPasskeys(): Promise<Array<Passkey>>;
|
|
8185
8185
|
beginPasskeyRegistration(): Promise<PasskeyChallenge>;
|
|
8186
8186
|
finishPasskeyRegistration(input: {
|
|
8187
8187
|
token: string;
|
|
@@ -8191,7 +8191,7 @@ export interface NemphiClient {
|
|
|
8191
8191
|
renamePasskey(id: string, name: string): Promise<void>;
|
|
8192
8192
|
deletePasskey(id: string): Promise<void>;
|
|
8193
8193
|
/** Identity providers connected to this account. */
|
|
8194
|
-
listIdentities(): Promise<ConnectedIdentity
|
|
8194
|
+
listIdentities(): Promise<Array<ConnectedIdentity>>;
|
|
8195
8195
|
/** Begin attaching a provider to this account rather than signing in. */
|
|
8196
8196
|
startIdentityLink(input: {
|
|
8197
8197
|
provider?: string;
|
|
@@ -8202,7 +8202,7 @@ export interface NemphiClient {
|
|
|
8202
8202
|
}>;
|
|
8203
8203
|
unlinkIdentity(id: string): Promise<void>;
|
|
8204
8204
|
/** List the user's live sessions; the one behind this call is flagged `current`. */
|
|
8205
|
-
listMySessions(): Promise<UserSession
|
|
8205
|
+
listMySessions(): Promise<Array<UserSession>>;
|
|
8206
8206
|
/** Revoke one session by id (revoking the current one acts as a logout). */
|
|
8207
8207
|
revokeMySession(id: string): Promise<{
|
|
8208
8208
|
revoked: boolean;
|
|
@@ -8212,19 +8212,19 @@ export interface NemphiClient {
|
|
|
8212
8212
|
revoked: number;
|
|
8213
8213
|
}>;
|
|
8214
8214
|
/** OAuth apps the member authorized (MCP clients and similar). */
|
|
8215
|
-
listMyOAuthApps(): Promise<OAuthConnectedApp
|
|
8215
|
+
listMyOAuthApps(): Promise<Array<OAuthConnectedApp>>;
|
|
8216
8216
|
/** Revoke one OAuth grant so that app can no longer call with its tokens. */
|
|
8217
8217
|
revokeMyOAuthApp(id: string): Promise<{
|
|
8218
8218
|
revoked: boolean;
|
|
8219
8219
|
}>;
|
|
8220
8220
|
listCalendarConnections(): Promise<{
|
|
8221
|
-
accounts: CalendarConnection
|
|
8221
|
+
accounts: Array<CalendarConnection>;
|
|
8222
8222
|
}>;
|
|
8223
8223
|
listConnectedCalendarEvents(input: {
|
|
8224
8224
|
from: string;
|
|
8225
8225
|
to: string;
|
|
8226
8226
|
}): Promise<{
|
|
8227
|
-
events: ConnectedCalendarEvent
|
|
8227
|
+
events: Array<ConnectedCalendarEvent>;
|
|
8228
8228
|
truncated: boolean;
|
|
8229
8229
|
}>;
|
|
8230
8230
|
connectCalendarAccount(input: {
|
|
@@ -8232,7 +8232,7 @@ export interface NemphiClient {
|
|
|
8232
8232
|
}): Promise<{
|
|
8233
8233
|
auth_url: string;
|
|
8234
8234
|
}>;
|
|
8235
|
-
listEmailAccounts(): Promise<EmailAccount
|
|
8235
|
+
listEmailAccounts(): Promise<Array<EmailAccount>>;
|
|
8236
8236
|
/** Start the OAuth handshake; open `auth_url` in the browser to finish. */
|
|
8237
8237
|
connectEmailAccount(input: {
|
|
8238
8238
|
provider: "gmail" | "outlook";
|
|
@@ -8270,7 +8270,7 @@ export interface NemphiClient {
|
|
|
8270
8270
|
filename?: string;
|
|
8271
8271
|
}): Promise<EmailAttachmentUpload>;
|
|
8272
8272
|
/** Ask the AI to label these inbox messages now (email.label_with_ai). */
|
|
8273
|
-
labelEmailWithAi(messageIds: string
|
|
8273
|
+
labelEmailWithAi(messageIds: Array<string>): Promise<{
|
|
8274
8274
|
queued: number;
|
|
8275
8275
|
}>;
|
|
8276
8276
|
crmSettings(): Promise<CRMSettings>;
|
|
@@ -8284,8 +8284,8 @@ export interface NemphiClient {
|
|
|
8284
8284
|
findProspects(): Promise<CRMProspectRun>;
|
|
8285
8285
|
/** The CRM as a spreadsheet: one page of contacts or deals with custom fields (crm.grid). */
|
|
8286
8286
|
crmGrid(query: CRMGridQuery): Promise<CRMGridResult>;
|
|
8287
|
-
listCRMFields(entity?: "deal" | "party"): Promise<CRMFieldDef
|
|
8288
|
-
listWorkflows(): Promise<Workflow
|
|
8287
|
+
listCRMFields(entity?: "deal" | "party"): Promise<Array<CRMFieldDef>>;
|
|
8288
|
+
listWorkflows(): Promise<Array<Workflow>>;
|
|
8289
8289
|
getWorkflow(key: string): Promise<Workflow>;
|
|
8290
8290
|
saveWorkflow(input: SaveWorkflowInput, opts?: InvokeOpts): Promise<Workflow>;
|
|
8291
8291
|
setWorkflowLive(key: string, live: boolean): Promise<Workflow>;
|
|
@@ -8293,9 +8293,9 @@ export interface NemphiClient {
|
|
|
8293
8293
|
deleteWorkflow(key: string): Promise<{
|
|
8294
8294
|
deleted: string;
|
|
8295
8295
|
}>;
|
|
8296
|
-
listWorkflowRuns(key: string, limit?: number): Promise<WorkflowRun
|
|
8296
|
+
listWorkflowRuns(key: string, limit?: number): Promise<Array<WorkflowRun>>;
|
|
8297
8297
|
cancelWorkflowRun(runId: string): Promise<WorkflowRun>;
|
|
8298
|
-
listMarketingChannels(): Promise<MarketingChannel
|
|
8298
|
+
listMarketingChannels(): Promise<Array<MarketingChannel>>;
|
|
8299
8299
|
connectWhatsApp(input: {
|
|
8300
8300
|
mode: "coexistence" | "dedicated";
|
|
8301
8301
|
return_to?: string;
|
|
@@ -8396,14 +8396,14 @@ export interface NemphiClient {
|
|
|
8396
8396
|
}>;
|
|
8397
8397
|
listEmailTemplates(input?: {
|
|
8398
8398
|
limit?: number;
|
|
8399
|
-
}): Promise<EmailTemplate
|
|
8399
|
+
}): Promise<Array<EmailTemplate>>;
|
|
8400
8400
|
getEmailTemplate(templateId: string): Promise<{
|
|
8401
8401
|
template: EmailTemplate;
|
|
8402
8402
|
}>;
|
|
8403
8403
|
deleteEmailTemplate(templateId: string): Promise<{
|
|
8404
8404
|
deleted: boolean;
|
|
8405
8405
|
}>;
|
|
8406
|
-
listEmailRows(): Promise<EmailSavedRow
|
|
8406
|
+
listEmailRows(): Promise<Array<EmailSavedRow>>;
|
|
8407
8407
|
saveEmailRow(input: {
|
|
8408
8408
|
row_id?: string;
|
|
8409
8409
|
name: string;
|
|
@@ -8418,7 +8418,7 @@ export interface NemphiClient {
|
|
|
8418
8418
|
template_id: string;
|
|
8419
8419
|
before_version?: number;
|
|
8420
8420
|
}): Promise<{
|
|
8421
|
-
revisions: EmailTemplateRevision
|
|
8421
|
+
revisions: Array<EmailTemplateRevision>;
|
|
8422
8422
|
before_version: number | null;
|
|
8423
8423
|
}>;
|
|
8424
8424
|
getEmailTemplateRevision(input: {
|
|
@@ -8446,7 +8446,7 @@ export interface NemphiClient {
|
|
|
8446
8446
|
template_id: string;
|
|
8447
8447
|
subject?: string;
|
|
8448
8448
|
tag_id?: string;
|
|
8449
|
-
party_ids?: string
|
|
8449
|
+
party_ids?: Array<string>;
|
|
8450
8450
|
}): Promise<{
|
|
8451
8451
|
campaign: EmailCampaign;
|
|
8452
8452
|
estimated_recipients: number;
|
|
@@ -8457,7 +8457,7 @@ export interface NemphiClient {
|
|
|
8457
8457
|
template_id?: string;
|
|
8458
8458
|
subject?: string;
|
|
8459
8459
|
tag_id?: string;
|
|
8460
|
-
party_ids?: string
|
|
8460
|
+
party_ids?: Array<string>;
|
|
8461
8461
|
}): Promise<{
|
|
8462
8462
|
campaign: EmailCampaign | null;
|
|
8463
8463
|
}>;
|
|
@@ -8476,12 +8476,12 @@ export interface NemphiClient {
|
|
|
8476
8476
|
limit?: number;
|
|
8477
8477
|
}): Promise<{
|
|
8478
8478
|
permissions: EmailMarketingPermissions;
|
|
8479
|
-
campaigns: EmailCampaign
|
|
8479
|
+
campaigns: Array<EmailCampaign>;
|
|
8480
8480
|
}>;
|
|
8481
8481
|
getEmailCampaign(campaignId: string, recipientsLimit?: number): Promise<EmailCampaignDetail>;
|
|
8482
8482
|
listEmailUnsubscribes(input?: {
|
|
8483
8483
|
limit?: number;
|
|
8484
|
-
}): Promise<EmailUnsubscribe
|
|
8484
|
+
}): Promise<Array<EmailUnsubscribe>>;
|
|
8485
8485
|
unsubscribeEmail(email: string): Promise<{
|
|
8486
8486
|
email: string;
|
|
8487
8487
|
unsubscribed: boolean;
|
|
@@ -8503,11 +8503,11 @@ export interface NemphiClient {
|
|
|
8503
8503
|
from?: string;
|
|
8504
8504
|
to?: string;
|
|
8505
8505
|
limit?: number;
|
|
8506
|
-
}): Promise<MarketingMetricSnapshot
|
|
8506
|
+
}): Promise<Array<MarketingMetricSnapshot>>;
|
|
8507
8507
|
createMarketingPost(input: {
|
|
8508
|
-
channel_ids: string
|
|
8508
|
+
channel_ids: Array<string>;
|
|
8509
8509
|
caption?: string;
|
|
8510
|
-
media_urls?: string
|
|
8510
|
+
media_urls?: Array<string>;
|
|
8511
8511
|
media_type?: MarketingPost["media_type"];
|
|
8512
8512
|
scheduled_at?: string;
|
|
8513
8513
|
/** Per-account captions keyed by channel id; an account named here gets its own text. */
|
|
@@ -8516,13 +8516,13 @@ export interface NemphiClient {
|
|
|
8516
8516
|
queue?: boolean;
|
|
8517
8517
|
} & TikTokPostChoices & MarketingPostDetailChoices): Promise<{
|
|
8518
8518
|
batch_id: string;
|
|
8519
|
-
posts: MarketingPost
|
|
8519
|
+
posts: Array<MarketingPost>;
|
|
8520
8520
|
note?: string;
|
|
8521
8521
|
}>;
|
|
8522
8522
|
getTikTokCreatorInfo(channelId: string): Promise<TikTokCreatorInfo>;
|
|
8523
8523
|
writeMarketingCaptions(input: {
|
|
8524
8524
|
brief: string;
|
|
8525
|
-
providers: string
|
|
8525
|
+
providers: Array<string>;
|
|
8526
8526
|
tone?: "friendly" | "professional" | "playful" | "bold";
|
|
8527
8527
|
language?: string;
|
|
8528
8528
|
current_caption?: string;
|
|
@@ -8535,12 +8535,12 @@ export interface NemphiClient {
|
|
|
8535
8535
|
listMarketingGenerations(input?: {
|
|
8536
8536
|
kind?: "image" | "video";
|
|
8537
8537
|
status?: MarketingGeneration["status"];
|
|
8538
|
-
}): Promise<MarketingGeneration
|
|
8539
|
-
listMarketingPostSchedules(): Promise<MarketingPostSchedule
|
|
8538
|
+
}): Promise<Array<MarketingGeneration>>;
|
|
8539
|
+
listMarketingPostSchedules(): Promise<Array<MarketingPostSchedule>>;
|
|
8540
8540
|
setMarketingPostSchedule(input: {
|
|
8541
8541
|
channel_id: string;
|
|
8542
8542
|
time_zone: string;
|
|
8543
|
-
slots: MarketingPostScheduleSlot
|
|
8543
|
+
slots: Array<MarketingPostScheduleSlot>;
|
|
8544
8544
|
}): Promise<MarketingPostSchedule>;
|
|
8545
8545
|
getMarketingBestPostTimes(input: {
|
|
8546
8546
|
channel_id: string;
|
|
@@ -8548,16 +8548,16 @@ export interface NemphiClient {
|
|
|
8548
8548
|
}): Promise<MarketingBestTimes>;
|
|
8549
8549
|
setMarketingPostTags(input: {
|
|
8550
8550
|
post_id: string;
|
|
8551
|
-
tags: string
|
|
8551
|
+
tags: Array<string>;
|
|
8552
8552
|
}): Promise<MarketingPost>;
|
|
8553
|
-
listMarketingPostNotes(postId: string): Promise<MarketingPostNote
|
|
8553
|
+
listMarketingPostNotes(postId: string): Promise<Array<MarketingPostNote>>;
|
|
8554
8554
|
addMarketingPostNote(input: {
|
|
8555
8555
|
post_id: string;
|
|
8556
8556
|
body: string;
|
|
8557
8557
|
}): Promise<MarketingPostNote>;
|
|
8558
8558
|
listMarketingSnippets(input?: {
|
|
8559
8559
|
kind?: MarketingSnippet["kind"];
|
|
8560
|
-
}): Promise<MarketingSnippet
|
|
8560
|
+
}): Promise<Array<MarketingSnippet>>;
|
|
8561
8561
|
saveMarketingSnippet(input: {
|
|
8562
8562
|
id?: string;
|
|
8563
8563
|
kind: MarketingSnippet["kind"];
|
|
@@ -8565,7 +8565,7 @@ export interface NemphiClient {
|
|
|
8565
8565
|
body: string;
|
|
8566
8566
|
}): Promise<MarketingSnippet>;
|
|
8567
8567
|
deleteMarketingSnippet(id: string): Promise<MarketingSnippet>;
|
|
8568
|
-
listMarketingIdeas(): Promise<MarketingIdea
|
|
8568
|
+
listMarketingIdeas(): Promise<Array<MarketingIdea>>;
|
|
8569
8569
|
saveMarketingIdea(input: {
|
|
8570
8570
|
id?: string;
|
|
8571
8571
|
title: string;
|
|
@@ -8583,7 +8583,7 @@ export interface NemphiClient {
|
|
|
8583
8583
|
}): Promise<MarketingHistory>;
|
|
8584
8584
|
listMarketingMedia(input?: MarketingMediaFilter): Promise<MarketingMediaPage>;
|
|
8585
8585
|
listMarketingPostBoard(input?: MarketingPostFilter): Promise<{
|
|
8586
|
-
posts: MarketingPost
|
|
8586
|
+
posts: Array<MarketingPost>;
|
|
8587
8587
|
permissions: MarketingPostPermissions;
|
|
8588
8588
|
}>;
|
|
8589
8589
|
listMarketingPosts(input?: {
|
|
@@ -8592,13 +8592,13 @@ export interface NemphiClient {
|
|
|
8592
8592
|
from?: string;
|
|
8593
8593
|
until?: string;
|
|
8594
8594
|
limit?: number;
|
|
8595
|
-
}): Promise<MarketingPost
|
|
8595
|
+
}): Promise<Array<MarketingPost>>;
|
|
8596
8596
|
saveMarketingPostDraft(input: {
|
|
8597
8597
|
post_id?: string;
|
|
8598
8598
|
channel_id: string;
|
|
8599
8599
|
caption?: string;
|
|
8600
8600
|
media_type?: MarketingPost["media_type"];
|
|
8601
|
-
media_urls?: string
|
|
8601
|
+
media_urls?: Array<string>;
|
|
8602
8602
|
} & TikTokPostChoices & MarketingPostDetailChoices): Promise<{
|
|
8603
8603
|
post: MarketingPost;
|
|
8604
8604
|
}>;
|
|
@@ -8638,8 +8638,8 @@ export interface NemphiClient {
|
|
|
8638
8638
|
needs_person_only?: boolean;
|
|
8639
8639
|
hot_leads_only?: boolean;
|
|
8640
8640
|
limit?: number;
|
|
8641
|
-
}): Promise<MarketingConversation
|
|
8642
|
-
listMarketingInboxTopics(): Promise<MarketingInboxTopic
|
|
8641
|
+
}): Promise<Array<MarketingConversation>>;
|
|
8642
|
+
listMarketingInboxTopics(): Promise<Array<MarketingInboxTopic>>;
|
|
8643
8643
|
saveMarketingInboxTopic(input: {
|
|
8644
8644
|
topic_id?: string;
|
|
8645
8645
|
name: string;
|
|
@@ -8666,7 +8666,7 @@ export interface NemphiClient {
|
|
|
8666
8666
|
limit?: number;
|
|
8667
8667
|
}): Promise<{
|
|
8668
8668
|
conversation: MarketingConversation;
|
|
8669
|
-
messages: MarketingMessage
|
|
8669
|
+
messages: Array<MarketingMessage>;
|
|
8670
8670
|
}>;
|
|
8671
8671
|
markMarketingConversationRead(conversationId: string): Promise<{
|
|
8672
8672
|
conversation: MarketingConversation;
|
|
@@ -8684,7 +8684,7 @@ export interface NemphiClient {
|
|
|
8684
8684
|
channel_id?: string;
|
|
8685
8685
|
post_id?: string;
|
|
8686
8686
|
limit?: number;
|
|
8687
|
-
}): Promise<MarketingComment
|
|
8687
|
+
}): Promise<Array<MarketingComment>>;
|
|
8688
8688
|
replyToMarketingComment(input: {
|
|
8689
8689
|
comment_id: string;
|
|
8690
8690
|
body: string;
|
|
@@ -8697,7 +8697,7 @@ export interface NemphiClient {
|
|
|
8697
8697
|
conversation_id: string;
|
|
8698
8698
|
assignee_user_id?: string;
|
|
8699
8699
|
}): Promise<MarketingConversation>;
|
|
8700
|
-
listMarketingConversationNotes(conversationId: string): Promise<MarketingConversationNote
|
|
8700
|
+
listMarketingConversationNotes(conversationId: string): Promise<Array<MarketingConversationNote>>;
|
|
8701
8701
|
addMarketingConversationNote(input: {
|
|
8702
8702
|
conversation_id: string;
|
|
8703
8703
|
body: string;
|
|
@@ -8713,7 +8713,7 @@ export interface NemphiClient {
|
|
|
8713
8713
|
status?: MarketingCallStatus;
|
|
8714
8714
|
party_id?: string;
|
|
8715
8715
|
limit?: number;
|
|
8716
|
-
}): Promise<MarketingCall
|
|
8716
|
+
}): Promise<Array<MarketingCall>>;
|
|
8717
8717
|
getMarketingCall(callId: string): Promise<{
|
|
8718
8718
|
call: MarketingCall;
|
|
8719
8719
|
}>;
|
|
@@ -8757,7 +8757,7 @@ export interface NemphiClient {
|
|
|
8757
8757
|
}>;
|
|
8758
8758
|
callCenterDesk(): Promise<CallCenterDesk>;
|
|
8759
8759
|
callCenterBoard(): Promise<CallCenterBoard>;
|
|
8760
|
-
listCallCenterQueues(): Promise<CallCenterQueue
|
|
8760
|
+
listCallCenterQueues(): Promise<Array<CallCenterQueue>>;
|
|
8761
8761
|
saveCallCenterQueue(input: {
|
|
8762
8762
|
queue_id?: string;
|
|
8763
8763
|
name: string;
|
|
@@ -8769,7 +8769,7 @@ export interface NemphiClient {
|
|
|
8769
8769
|
voice_agent?: CallCenterVoiceAgent;
|
|
8770
8770
|
/** What the voice agent should know; left out keeps it. */
|
|
8771
8771
|
voice_agent_instructions?: string;
|
|
8772
|
-
user_ids?: string
|
|
8772
|
+
user_ids?: Array<string>;
|
|
8773
8773
|
}): Promise<{
|
|
8774
8774
|
queue: CallCenterQueue | null;
|
|
8775
8775
|
}>;
|
|
@@ -8792,7 +8792,7 @@ export interface NemphiClient {
|
|
|
8792
8792
|
setCallCenterStatus(status: CallCenterStatus): Promise<{
|
|
8793
8793
|
status: CallCenterStatus;
|
|
8794
8794
|
}>;
|
|
8795
|
-
callCenterTranscript(callId: string): Promise<CallCenterTranscriptLine
|
|
8795
|
+
callCenterTranscript(callId: string): Promise<Array<CallCenterTranscriptLine>>;
|
|
8796
8796
|
/** A call's transcript with its recordings and the tools a voice agent called. */
|
|
8797
8797
|
callCenterCallLog(callId: string): Promise<CallCenterCallLog>;
|
|
8798
8798
|
addCallCenterTranscript(input: {
|
|
@@ -8813,28 +8813,28 @@ export interface NemphiClient {
|
|
|
8813
8813
|
}>;
|
|
8814
8814
|
/** Streams a call-center recording; pass the Range header to seek. */
|
|
8815
8815
|
downloadCallCenterRecording(recordingId: string, range?: string): Promise<Response>;
|
|
8816
|
-
listWhatsAppTemplates(channelId: string): Promise<WhatsAppMessageTemplate
|
|
8816
|
+
listWhatsAppTemplates(channelId: string): Promise<Array<WhatsAppMessageTemplate>>;
|
|
8817
8817
|
sendWhatsAppTemplate(input: {
|
|
8818
8818
|
channel_id: string;
|
|
8819
8819
|
template_name: string;
|
|
8820
8820
|
language: string;
|
|
8821
8821
|
template_category?: string;
|
|
8822
8822
|
tag_id?: string;
|
|
8823
|
-
party_ids?: string
|
|
8824
|
-
body_params?: string
|
|
8823
|
+
party_ids?: Array<string>;
|
|
8824
|
+
body_params?: Array<string>;
|
|
8825
8825
|
name?: string;
|
|
8826
8826
|
}): Promise<SendWhatsAppTemplateResult>;
|
|
8827
8827
|
listMarketingCampaigns(input?: {
|
|
8828
8828
|
channel_id?: string;
|
|
8829
8829
|
limit?: number;
|
|
8830
|
-
}): Promise<MarketingCampaign
|
|
8830
|
+
}): Promise<Array<MarketingCampaign>>;
|
|
8831
8831
|
getMarketingCampaign(campaignId: string): Promise<{
|
|
8832
8832
|
campaign: MarketingCampaign;
|
|
8833
|
-
messages: MarketingMessage
|
|
8833
|
+
messages: Array<MarketingMessage>;
|
|
8834
8834
|
}>;
|
|
8835
8835
|
listCRMPartyTags(input?: {
|
|
8836
8836
|
party_id?: string;
|
|
8837
|
-
}): Promise<CRMPartyTag
|
|
8837
|
+
}): Promise<Array<CRMPartyTag>>;
|
|
8838
8838
|
saveCRMPartyTag(input: {
|
|
8839
8839
|
tag_id?: string;
|
|
8840
8840
|
name: string;
|
|
@@ -8848,15 +8848,15 @@ export interface NemphiClient {
|
|
|
8848
8848
|
deleteCRMPartyTag(tagId: string): Promise<{
|
|
8849
8849
|
deleted: boolean;
|
|
8850
8850
|
}>;
|
|
8851
|
-
setPartyTags(partyId: string, tagIds: string
|
|
8851
|
+
setPartyTags(partyId: string, tagIds: Array<string>): Promise<{
|
|
8852
8852
|
party_id: string;
|
|
8853
|
-
tags: CRMPartyTag
|
|
8853
|
+
tags: Array<CRMPartyTag>;
|
|
8854
8854
|
}>;
|
|
8855
8855
|
listPartiesByTag(input: {
|
|
8856
8856
|
tag_id: string;
|
|
8857
8857
|
with_phone?: boolean;
|
|
8858
8858
|
limit?: number;
|
|
8859
|
-
}): Promise<Party
|
|
8859
|
+
}): Promise<Array<Party>>;
|
|
8860
8860
|
listCRMInteractions(input?: {
|
|
8861
8861
|
party_id?: string;
|
|
8862
8862
|
/** One deal's timeline: what was logged on it, and its contact's touchpoints on no deal. */
|
|
@@ -8870,7 +8870,7 @@ export interface NemphiClient {
|
|
|
8870
8870
|
listProjects(input?: {
|
|
8871
8871
|
status?: "active" | "archived";
|
|
8872
8872
|
limit?: number;
|
|
8873
|
-
}): Promise<Project
|
|
8873
|
+
}): Promise<Array<Project>>;
|
|
8874
8874
|
/** Kanban board of one project (empty project key → first active). */
|
|
8875
8875
|
projectBoard(input?: {
|
|
8876
8876
|
project?: string;
|
|
@@ -8913,9 +8913,9 @@ export interface NemphiClient {
|
|
|
8913
8913
|
limit?: number;
|
|
8914
8914
|
}): Promise<EmailInbox>;
|
|
8915
8915
|
/** The BIMI logos of the given sender domains (each a message's `sender_logo_domain`); domains without one are left out. */
|
|
8916
|
-
emailSenderLogos(domains: string
|
|
8916
|
+
emailSenderLogos(domains: Array<string>): Promise<Array<EmailSenderLogo>>;
|
|
8917
8917
|
/** The caller's mail tags with per-tag message counts. */
|
|
8918
|
-
listEmailTags(): Promise<EmailTag
|
|
8918
|
+
listEmailTags(): Promise<Array<EmailTag>>;
|
|
8919
8919
|
/**
|
|
8920
8920
|
* Create (or update, with tag_id) a mail tag.
|
|
8921
8921
|
*
|
|
@@ -8946,7 +8946,7 @@ export interface NemphiClient {
|
|
|
8946
8946
|
readEmailMessage(messageId: string): Promise<EmailMessageBody>;
|
|
8947
8947
|
/** Mark inbox messages read. Mailboxes with read sync enabled also push the state to the provider. */
|
|
8948
8948
|
markEmailMessagesRead(input: {
|
|
8949
|
-
message_ids?: string
|
|
8949
|
+
message_ids?: Array<string>;
|
|
8950
8950
|
all?: boolean;
|
|
8951
8951
|
}): Promise<{
|
|
8952
8952
|
updated: number;
|
|
@@ -8967,10 +8967,10 @@ export interface NemphiClient {
|
|
|
8967
8967
|
}, opts?: InvokeOpts): Promise<Tenant>;
|
|
8968
8968
|
createApiKey(tenantId: string, input: {
|
|
8969
8969
|
name: string;
|
|
8970
|
-
scopes?: string
|
|
8970
|
+
scopes?: Array<string>;
|
|
8971
8971
|
expires_at?: string;
|
|
8972
8972
|
}): Promise<ApiKeyCreated>;
|
|
8973
|
-
listApiKeys(tenantId: string): Promise<ApiKey
|
|
8973
|
+
listApiKeys(tenantId: string): Promise<Array<ApiKey>>;
|
|
8974
8974
|
revokeApiKey(tenantId: string, keyId: string): Promise<{
|
|
8975
8975
|
revoked: boolean;
|
|
8976
8976
|
id: string;
|
|
@@ -8985,7 +8985,7 @@ export interface NemphiClient {
|
|
|
8985
8985
|
request_id: string;
|
|
8986
8986
|
approve: boolean;
|
|
8987
8987
|
tenant_id?: string;
|
|
8988
|
-
scopes?: string
|
|
8988
|
+
scopes?: Array<string>;
|
|
8989
8989
|
}): Promise<{
|
|
8990
8990
|
redirect_to: string;
|
|
8991
8991
|
}>;
|
|
@@ -8995,10 +8995,10 @@ export interface NemphiClient {
|
|
|
8995
8995
|
* schemas instead of the whole registry.
|
|
8996
8996
|
*/
|
|
8997
8997
|
listTools(opts?: {
|
|
8998
|
-
names?: string
|
|
8998
|
+
names?: Array<string>;
|
|
8999
8999
|
/** Only the tools the caller's role may call: what a page offers as its actions. */
|
|
9000
9000
|
callable?: boolean;
|
|
9001
|
-
}): Promise<ToolInfo
|
|
9001
|
+
}): Promise<Array<ToolInfo>>;
|
|
9002
9002
|
/**
|
|
9003
9003
|
* Calls any tool by name. `input` is the object the tool's own
|
|
9004
9004
|
* `input_schema` describes — the same value the action ledger records, so
|
|
@@ -9026,14 +9026,14 @@ export interface NemphiClient {
|
|
|
9026
9026
|
* Where to reach the member about this run beyond the app chat —
|
|
9027
9027
|
* only when they asked to be emailed or messaged about it.
|
|
9028
9028
|
*/
|
|
9029
|
-
notify_channels?: NotificationChannel
|
|
9029
|
+
notify_channels?: Array<NotificationChannel>;
|
|
9030
9030
|
}): Promise<Run>;
|
|
9031
9031
|
/** Cancel a run and every subagent it spawned; a cancelled child unblocks its waiting parent. */
|
|
9032
9032
|
cancelRun(id: string): Promise<{
|
|
9033
9033
|
run_id: string;
|
|
9034
|
-
cancelled: string
|
|
9034
|
+
cancelled: Array<string>;
|
|
9035
9035
|
}>;
|
|
9036
|
-
listRuns(): Promise<Run
|
|
9036
|
+
listRuns(): Promise<Array<Run>>;
|
|
9037
9037
|
getRun(id: string): Promise<Run>;
|
|
9038
9038
|
/**
|
|
9039
9039
|
* The full trace for a run: its whole delegation tree with every
|
|
@@ -9058,9 +9058,9 @@ export interface NemphiClient {
|
|
|
9058
9058
|
}): Promise<ApprovalDecision>;
|
|
9059
9059
|
denyRun(id: string): Promise<ApprovalDecision>;
|
|
9060
9060
|
/** Answer a run parked on `user.ask` (status `awaiting_input`) and resume it. */
|
|
9061
|
-
answerRun(id: string, answers: RunAnswer
|
|
9061
|
+
answerRun(id: string, answers: Array<RunAnswer>): Promise<AnswerResult>;
|
|
9062
9062
|
/** The workspace's routines, optionally narrowed by teammate, project or kind. */
|
|
9063
|
-
listRoutines(input?: RoutineListInput): Promise<Routine
|
|
9063
|
+
listRoutines(input?: RoutineListInput): Promise<Array<Routine>>;
|
|
9064
9064
|
/** One routine with its recent runs (status, trigger, result). */
|
|
9065
9065
|
getRoutine(id: string): Promise<RoutineDetail>;
|
|
9066
9066
|
/** Create (no `routine`) or update a routine; omitted fields keep their value and the kind cannot change. */
|
|
@@ -9096,15 +9096,15 @@ export interface NemphiClient {
|
|
|
9096
9096
|
getNotificationPrefs(): Promise<NotificationPrefs>;
|
|
9097
9097
|
updateNotificationPrefs(input: {
|
|
9098
9098
|
destinations?: Partial<Record<NotificationKind, NotificationDestination>>;
|
|
9099
|
-
channels?: NotificationChannel
|
|
9100
|
-
kinds?: NotificationKind
|
|
9099
|
+
channels?: Array<NotificationChannel>;
|
|
9100
|
+
kinds?: Array<NotificationKind>;
|
|
9101
9101
|
phone?: string | null;
|
|
9102
9102
|
message_notify?: MessageNotifyPrefs;
|
|
9103
9103
|
}): Promise<NotificationPrefs>;
|
|
9104
9104
|
/** Workspace notification settings: which kinds members may receive (owner/admin only). */
|
|
9105
9105
|
getNotificationSettings(): Promise<WorkspaceNotificationSettings>;
|
|
9106
9106
|
updateNotificationSettings(input: {
|
|
9107
|
-
member_kinds: NotificationKind
|
|
9107
|
+
member_kinds: Array<NotificationKind>;
|
|
9108
9108
|
}): Promise<WorkspaceNotificationSettings>;
|
|
9109
9109
|
/** Send a WhatsApp OTP to the saved phone so this account can act from it. */
|
|
9110
9110
|
startPhoneVerification(): Promise<{
|
|
@@ -9123,14 +9123,14 @@ export interface NemphiClient {
|
|
|
9123
9123
|
dismissed: string;
|
|
9124
9124
|
}>;
|
|
9125
9125
|
listPolicies(): Promise<PolicyList>;
|
|
9126
|
-
listRecurringDocuments(): Promise<RecurringDocument
|
|
9126
|
+
listRecurringDocuments(): Promise<Array<RecurringDocument>>;
|
|
9127
9127
|
budgetOverview(year?: number): Promise<BudgetOverview>;
|
|
9128
9128
|
createInvite(input: {
|
|
9129
9129
|
email: string;
|
|
9130
9130
|
role: "admin" | "member" | "viewer" | "custom";
|
|
9131
9131
|
role_id?: string;
|
|
9132
9132
|
}): Promise<Invitation>;
|
|
9133
|
-
listInvites(): Promise<Invitation
|
|
9133
|
+
listInvites(): Promise<Array<Invitation>>;
|
|
9134
9134
|
deleteInvite(id: string): Promise<{
|
|
9135
9135
|
deleted: string;
|
|
9136
9136
|
}>;
|
|
@@ -9151,13 +9151,13 @@ export interface NemphiClient {
|
|
|
9151
9151
|
createRole(input: {
|
|
9152
9152
|
name: string;
|
|
9153
9153
|
description?: string;
|
|
9154
|
-
grants?: RoleGrant
|
|
9154
|
+
grants?: Array<RoleGrant>;
|
|
9155
9155
|
}): Promise<WorkspaceRole>;
|
|
9156
9156
|
updateRole(input: {
|
|
9157
9157
|
role_id: string;
|
|
9158
9158
|
name?: string;
|
|
9159
9159
|
description?: string;
|
|
9160
|
-
grants?: RoleGrant
|
|
9160
|
+
grants?: Array<RoleGrant>;
|
|
9161
9161
|
}): Promise<WorkspaceRole>;
|
|
9162
9162
|
deleteRole(roleId: string): Promise<{
|
|
9163
9163
|
deleted: string;
|
|
@@ -9177,18 +9177,18 @@ export interface NemphiClient {
|
|
|
9177
9177
|
getParty(partyId: string): Promise<Party>;
|
|
9178
9178
|
updateParty(input: PartyUpdateInput): Promise<Party>;
|
|
9179
9179
|
setPartyBankDetails(input: PartyBankDetailsInput, opts?: InvokeOpts): Promise<Party>;
|
|
9180
|
-
listBanks(): Promise<BankInfo
|
|
9180
|
+
listBanks(): Promise<Array<BankInfo>>;
|
|
9181
9181
|
listPaymentFormats(): Promise<{
|
|
9182
|
-
formats: PaymentFormat
|
|
9183
|
-
banks: BankInfo
|
|
9182
|
+
formats: Array<PaymentFormat>;
|
|
9183
|
+
banks: Array<BankInfo>;
|
|
9184
9184
|
}>;
|
|
9185
9185
|
listPaymentRuns(input?: {
|
|
9186
9186
|
status?: PaymentRunStatus;
|
|
9187
9187
|
limit?: number;
|
|
9188
|
-
}): Promise<PaymentRun
|
|
9188
|
+
}): Promise<Array<PaymentRun>>;
|
|
9189
9189
|
getPaymentRun(runId: string): Promise<{
|
|
9190
9190
|
run: PaymentRun;
|
|
9191
|
-
items: PaymentRunItem
|
|
9191
|
+
items: Array<PaymentRunItem>;
|
|
9192
9192
|
}>;
|
|
9193
9193
|
createPaymentRun(input: PaymentRunCreateInput, opts?: InvokeOpts): Promise<PaymentRunCreateResult>;
|
|
9194
9194
|
exportPaymentRun(input: {
|
|
@@ -9199,13 +9199,13 @@ export interface NemphiClient {
|
|
|
9199
9199
|
settlePaymentRun(input: {
|
|
9200
9200
|
run_id: string;
|
|
9201
9201
|
payment_date?: string;
|
|
9202
|
-
item_ids?: string
|
|
9202
|
+
item_ids?: Array<string>;
|
|
9203
9203
|
bank_transaction_ids?: Record<string, string>;
|
|
9204
9204
|
memo?: string;
|
|
9205
9205
|
}, opts?: InvokeOpts): Promise<PaymentRunSettleResult>;
|
|
9206
9206
|
cancelPaymentRun(runId: string, opts?: InvokeOpts): Promise<{
|
|
9207
9207
|
run: PaymentRun;
|
|
9208
|
-
items: PaymentRunItem
|
|
9208
|
+
items: Array<PaymentRunItem>;
|
|
9209
9209
|
}>;
|
|
9210
9210
|
createFixedAsset(input: CreateFixedAssetInput): Promise<FixedAsset>;
|
|
9211
9211
|
updateFixedAsset(input: {
|
|
@@ -9215,14 +9215,14 @@ export interface NemphiClient {
|
|
|
9215
9215
|
status?: FixedAssetStatus;
|
|
9216
9216
|
category?: FixedAssetCategory;
|
|
9217
9217
|
limit?: number;
|
|
9218
|
-
}): Promise<FixedAsset
|
|
9218
|
+
}): Promise<Array<FixedAsset>>;
|
|
9219
9219
|
getFixedAsset(assetId: string): Promise<{
|
|
9220
9220
|
asset: FixedAsset;
|
|
9221
|
-
depreciations: FixedAssetDepreciation
|
|
9221
|
+
depreciations: Array<FixedAssetDepreciation>;
|
|
9222
9222
|
}>;
|
|
9223
9223
|
getFixedAssetSchedule(assetId: string): Promise<{
|
|
9224
9224
|
asset: FixedAsset;
|
|
9225
|
-
schedule: FixedAssetScheduleRow
|
|
9225
|
+
schedule: Array<FixedAssetScheduleRow>;
|
|
9226
9226
|
currency: string;
|
|
9227
9227
|
}>;
|
|
9228
9228
|
fixedAssetSummary(asOf?: string): Promise<FixedAssetSummary>;
|
|
@@ -9255,7 +9255,7 @@ export interface NemphiClient {
|
|
|
9255
9255
|
status?: EmployeeStatus;
|
|
9256
9256
|
q?: string;
|
|
9257
9257
|
limit?: number;
|
|
9258
|
-
}): Promise<Employee
|
|
9258
|
+
}): Promise<Array<Employee>>;
|
|
9259
9259
|
getEmployee(employeeId: string): Promise<Employee>;
|
|
9260
9260
|
createEmployee(input: CreateEmployeeInput, opts?: InvokeOpts): Promise<Employee>;
|
|
9261
9261
|
updateEmployee(input: UpdateEmployeeInput, opts?: InvokeOpts): Promise<Employee>;
|
|
@@ -9278,7 +9278,7 @@ export interface NemphiClient {
|
|
|
9278
9278
|
from?: string;
|
|
9279
9279
|
to?: string;
|
|
9280
9280
|
limit?: number;
|
|
9281
|
-
}): Promise<PayrollNovelty
|
|
9281
|
+
}): Promise<Array<PayrollNovelty>>;
|
|
9282
9282
|
deletePayrollNovelty(noveltyId: string, opts?: InvokeOpts): Promise<{
|
|
9283
9283
|
deleted: string;
|
|
9284
9284
|
}>;
|
|
@@ -9292,19 +9292,19 @@ export interface NemphiClient {
|
|
|
9292
9292
|
}, opts?: InvokeOpts): Promise<PayrollCalculateResult>;
|
|
9293
9293
|
payrollRun(runId: string): Promise<{
|
|
9294
9294
|
run: PayrollRun;
|
|
9295
|
-
payslips: Payslip
|
|
9295
|
+
payslips: Array<Payslip>;
|
|
9296
9296
|
}>;
|
|
9297
9297
|
listPayrollRuns(input?: {
|
|
9298
9298
|
status?: PayrollRunStatus;
|
|
9299
9299
|
limit?: number;
|
|
9300
|
-
}): Promise<PayrollRun
|
|
9300
|
+
}): Promise<Array<PayrollRun>>;
|
|
9301
9301
|
postPayrollRun(input: {
|
|
9302
9302
|
run_id: string;
|
|
9303
9303
|
date?: string;
|
|
9304
9304
|
}, opts?: InvokeOpts): Promise<PayrollPostResult>;
|
|
9305
9305
|
payPayroll(input: {
|
|
9306
9306
|
run_id?: string;
|
|
9307
|
-
employee_ids?: string
|
|
9307
|
+
employee_ids?: Array<string>;
|
|
9308
9308
|
liquidation_employee_id?: string;
|
|
9309
9309
|
payment_date?: string;
|
|
9310
9310
|
cash_account_code?: string;
|
|
@@ -9325,7 +9325,7 @@ export interface NemphiClient {
|
|
|
9325
9325
|
run_id?: string;
|
|
9326
9326
|
state?: PayrollSubmission["state"];
|
|
9327
9327
|
limit?: number;
|
|
9328
|
-
}): Promise<PayrollSubmission
|
|
9328
|
+
}): Promise<Array<PayrollSubmission>>;
|
|
9329
9329
|
/** Re-uploading bytes already filed for the tenant returns the existing
|
|
9330
9330
|
* document with `duplicate: true` instead of storing a second copy. */
|
|
9331
9331
|
/** With `partyId` (requires `kind`), the registration document fills that
|
|
@@ -9376,7 +9376,7 @@ export interface NemphiClient {
|
|
|
9376
9376
|
country?: string;
|
|
9377
9377
|
}): Promise<{
|
|
9378
9378
|
country: string;
|
|
9379
|
-
matches: GlobalCompany
|
|
9379
|
+
matches: Array<GlobalCompany>;
|
|
9380
9380
|
}>;
|
|
9381
9381
|
/** The contacts a new one would duplicate (parties.find_matches). */
|
|
9382
9382
|
findPartyMatches(input: {
|
|
@@ -9385,7 +9385,7 @@ export interface NemphiClient {
|
|
|
9385
9385
|
phone?: string;
|
|
9386
9386
|
tax_id?: string;
|
|
9387
9387
|
}): Promise<PartyMatches>;
|
|
9388
|
-
listDocuments(): Promise<Document
|
|
9388
|
+
listDocuments(): Promise<Array<Document>>;
|
|
9389
9389
|
getDocument(id: string): Promise<Document>;
|
|
9390
9390
|
/** The document with the whole text its extraction read, as Markdown. */
|
|
9391
9391
|
readDocumentText(id: string): Promise<DocumentText>;
|
|
@@ -9401,7 +9401,7 @@ export interface NemphiClient {
|
|
|
9401
9401
|
documentWork(id: string): Promise<DocumentWork>;
|
|
9402
9402
|
/** The documents the books keep as support outside Docs (`documents.support`). */
|
|
9403
9403
|
listSupportDocuments(): Promise<SupportDocuments>;
|
|
9404
|
-
listLiveDocuments(filter?: LiveDocumentFilter): Promise<LiveDocument
|
|
9404
|
+
listLiveDocuments(filter?: LiveDocumentFilter): Promise<Array<LiveDocument>>;
|
|
9405
9405
|
createLiveDocument(title: string, kind?: LiveDocumentKind, place?: LiveDocumentPlace): Promise<LiveDocument>;
|
|
9406
9406
|
/** Files a document in a folder (empty: the top level) or moves it to another space. */
|
|
9407
9407
|
moveLiveDocument(id: string, place: LiveDocumentPlace): Promise<LiveDocument>;
|
|
@@ -9418,7 +9418,7 @@ export interface NemphiClient {
|
|
|
9418
9418
|
mentionInLiveDocumentComment(id: string, mention: LiveDocumentMentionInput): Promise<LiveDocumentMentions>;
|
|
9419
9419
|
shareLiveDocument(id: string, userId: string): Promise<LiveDocumentShares>;
|
|
9420
9420
|
unshareLiveDocument(id: string, userId: string): Promise<LiveDocumentShares>;
|
|
9421
|
-
listLiveDocumentFolders(space: LiveDocumentSpace): Promise<LiveDocumentFolder
|
|
9421
|
+
listLiveDocumentFolders(space: LiveDocumentSpace): Promise<Array<LiveDocumentFolder>>;
|
|
9422
9422
|
createLiveDocumentFolder(name: string, space: LiveDocumentSpace, parentId?: string): Promise<LiveDocumentFolder>;
|
|
9423
9423
|
renameLiveDocumentFolder(id: string, name: string): Promise<LiveDocumentFolder>;
|
|
9424
9424
|
deleteLiveDocumentFolder(id: string): Promise<{
|
|
@@ -9427,7 +9427,7 @@ export interface NemphiClient {
|
|
|
9427
9427
|
}>;
|
|
9428
9428
|
/** Puts a folder inside another folder of its space (empty: the top level). */
|
|
9429
9429
|
moveLiveDocumentFolder(id: string, parentId: string): Promise<LiveDocumentFolder>;
|
|
9430
|
-
listLiveDocumentTags(): Promise<LiveDocumentWorkspaceTag
|
|
9430
|
+
listLiveDocumentTags(): Promise<Array<LiveDocumentWorkspaceTag>>;
|
|
9431
9431
|
/** Puts a tag on a document by name; a new name adds the tag to the workspace. */
|
|
9432
9432
|
tagLiveDocument(id: string, tag: string): Promise<LiveDocument>;
|
|
9433
9433
|
/** Takes a tag off a document; Clef does not put it back. */
|
|
@@ -9445,7 +9445,7 @@ export interface NemphiClient {
|
|
|
9445
9445
|
}>;
|
|
9446
9446
|
/** A document's version history, newest first, without the states. */
|
|
9447
9447
|
listLiveDocumentVersions(id: string): Promise<{
|
|
9448
|
-
versions: LiveDocumentVersion
|
|
9448
|
+
versions: Array<LiveDocumentVersion>;
|
|
9449
9449
|
}>;
|
|
9450
9450
|
/** Keeps the document as it is now as a version, named when `name` is not empty. */
|
|
9451
9451
|
createLiveDocumentVersion(id: string, name: string): Promise<LiveDocumentVersion>;
|
|
@@ -9494,7 +9494,7 @@ export interface NemphiClient {
|
|
|
9494
9494
|
/** Sends documents through a public link, mailed to any recipients. */
|
|
9495
9495
|
createTransfer(input: TransferInput): Promise<CreatedTransfer>;
|
|
9496
9496
|
/** The caller's transfers (an owner or admin: the workspace's), newest first. */
|
|
9497
|
-
listTransfers(): Promise<Transfer
|
|
9497
|
+
listTransfers(): Promise<Array<Transfer>>;
|
|
9498
9498
|
/** How many of the caller's transfers still work (an owner's or admin's: the workspace's). */
|
|
9499
9499
|
countActiveTransfers(): Promise<number>;
|
|
9500
9500
|
/** Stops a transfer's link working, for everyone. */
|
|
@@ -9511,7 +9511,7 @@ export interface NemphiClient {
|
|
|
9511
9511
|
/** Every document of a transfer as one zip, streamed. */
|
|
9512
9512
|
downloadPublicTransferZip(token: string, key?: string): Promise<Response>;
|
|
9513
9513
|
/** The member's connected Google Drive and OneDrive accounts. */
|
|
9514
|
-
listDriveAccounts(): Promise<DriveAccount
|
|
9514
|
+
listDriveAccounts(): Promise<Array<DriveAccount>>;
|
|
9515
9515
|
/** Starts connecting a drive: open `auth_url`; the provider returns to `returnTo`. */
|
|
9516
9516
|
connectDriveAccount(input: {
|
|
9517
9517
|
provider: DriveProvider;
|
|
@@ -9540,7 +9540,7 @@ export interface NemphiClient {
|
|
|
9540
9540
|
/** Only this actor's rows (a user, agent or API key id). */
|
|
9541
9541
|
actor_id?: string;
|
|
9542
9542
|
}): Promise<{
|
|
9543
|
-
actions: Action
|
|
9543
|
+
actions: Array<Action>;
|
|
9544
9544
|
cursor: number;
|
|
9545
9545
|
next_before?: number;
|
|
9546
9546
|
}>;
|
|
@@ -9615,9 +9615,9 @@ export interface NemphiClient {
|
|
|
9615
9615
|
/** The profiling gate: what this workspace has said about itself. */
|
|
9616
9616
|
onboardingState(): Promise<OnboardingState>;
|
|
9617
9617
|
/** Record answers (merged with what is stored). Owners and admins only. */
|
|
9618
|
-
answerOnboarding(answers: Record<string, string
|
|
9618
|
+
answerOnboarding(answers: Record<string, Array<string>>): Promise<OnboardingState>;
|
|
9619
9619
|
/** Close the gate and configure the workspace from the answers. */
|
|
9620
|
-
completeOnboarding(answers?: Record<string, string
|
|
9620
|
+
completeOnboarding(answers?: Record<string, Array<string>>): Promise<OnboardingState>;
|
|
9621
9621
|
sendEmail(input: {
|
|
9622
9622
|
to: string;
|
|
9623
9623
|
subject: string;
|
|
@@ -9631,7 +9631,7 @@ export interface NemphiClient {
|
|
|
9631
9631
|
limit?: number;
|
|
9632
9632
|
mode?: "hybrid" | "fts" | "vector";
|
|
9633
9633
|
}): Promise<{
|
|
9634
|
-
results: KnowledgeResult
|
|
9634
|
+
results: Array<KnowledgeResult>;
|
|
9635
9635
|
mode: string;
|
|
9636
9636
|
}>;
|
|
9637
9637
|
createBillDraft(input: {
|
|
@@ -9650,7 +9650,7 @@ export interface NemphiClient {
|
|
|
9650
9650
|
retefuente?: number;
|
|
9651
9651
|
reteiva?: number;
|
|
9652
9652
|
reteica?: number;
|
|
9653
|
-
lines?: LineInput
|
|
9653
|
+
lines?: Array<LineInput>;
|
|
9654
9654
|
/** Colombia: posting emits our own documento soporte (DIAN 05). */
|
|
9655
9655
|
support_document?: boolean;
|
|
9656
9656
|
}): Promise<Bill>;
|
|
@@ -9670,7 +9670,7 @@ export interface NemphiClient {
|
|
|
9670
9670
|
reteiva?: number;
|
|
9671
9671
|
reteica?: number;
|
|
9672
9672
|
/** Replaces all lines when present ([] strips them). */
|
|
9673
|
-
lines?: LineInput
|
|
9673
|
+
lines?: Array<LineInput>;
|
|
9674
9674
|
}): Promise<Bill>;
|
|
9675
9675
|
deleteBillDraft(billId: string): Promise<{
|
|
9676
9676
|
deleted: boolean;
|
|
@@ -9688,7 +9688,7 @@ export interface NemphiClient {
|
|
|
9688
9688
|
/** Only the bills filed from this source document. */
|
|
9689
9689
|
document_id?: string;
|
|
9690
9690
|
limit?: number;
|
|
9691
|
-
}): Promise<Bill
|
|
9691
|
+
}): Promise<Array<Bill>>;
|
|
9692
9692
|
getBill(billId: string): Promise<BillDetail>;
|
|
9693
9693
|
createBillCreditNote(input: NoteInput & {
|
|
9694
9694
|
bill_id: string;
|
|
@@ -9706,7 +9706,7 @@ export interface NemphiClient {
|
|
|
9706
9706
|
kind?: "product" | "service";
|
|
9707
9707
|
active?: boolean;
|
|
9708
9708
|
limit?: number;
|
|
9709
|
-
}): Promise<Item
|
|
9709
|
+
}): Promise<Array<Item>>;
|
|
9710
9710
|
getItem(input: {
|
|
9711
9711
|
item_id?: string;
|
|
9712
9712
|
code?: string;
|
|
@@ -9727,7 +9727,7 @@ export interface NemphiClient {
|
|
|
9727
9727
|
}): Promise<Warehouse>;
|
|
9728
9728
|
listWarehouses(input?: {
|
|
9729
9729
|
active?: boolean;
|
|
9730
|
-
}): Promise<Warehouse
|
|
9730
|
+
}): Promise<Array<Warehouse>>;
|
|
9731
9731
|
stockLevels(input?: {
|
|
9732
9732
|
item_id?: string;
|
|
9733
9733
|
warehouse_id?: string;
|
|
@@ -9751,7 +9751,7 @@ export interface NemphiClient {
|
|
|
9751
9751
|
reorderSuggestions(input?: {
|
|
9752
9752
|
warehouse_id?: string;
|
|
9753
9753
|
limit?: number;
|
|
9754
|
-
}): Promise<ReorderSuggestion
|
|
9754
|
+
}): Promise<Array<ReorderSuggestion>>;
|
|
9755
9755
|
/** The inventory page in one read; `month` is YYYY-MM, this month when omitted. */
|
|
9756
9756
|
inventoryOverview(month?: string): Promise<InventoryOverview>;
|
|
9757
9757
|
adjustStock(input: {
|
|
@@ -9785,31 +9785,31 @@ export interface NemphiClient {
|
|
|
9785
9785
|
inventoryOpeningBalance(input: {
|
|
9786
9786
|
date?: string;
|
|
9787
9787
|
memo?: string;
|
|
9788
|
-
lines: {
|
|
9788
|
+
lines: Array<{
|
|
9789
9789
|
item_id: string;
|
|
9790
9790
|
warehouse_id?: string;
|
|
9791
9791
|
quantity: number;
|
|
9792
9792
|
unit_cost?: number;
|
|
9793
|
-
}
|
|
9793
|
+
}>;
|
|
9794
9794
|
}, opts?: InvokeOpts): Promise<{
|
|
9795
|
-
movements: StockMovement
|
|
9795
|
+
movements: Array<StockMovement>;
|
|
9796
9796
|
journal_entry: JournalEntry;
|
|
9797
9797
|
total_value_cents: number;
|
|
9798
9798
|
}>;
|
|
9799
9799
|
startInventoryCount(input?: {
|
|
9800
9800
|
warehouse_id?: string;
|
|
9801
|
-
item_ids?: string
|
|
9801
|
+
item_ids?: Array<string>;
|
|
9802
9802
|
counted_on?: string;
|
|
9803
9803
|
reference?: string;
|
|
9804
9804
|
notes?: string;
|
|
9805
9805
|
}): Promise<InventoryCountDetail>;
|
|
9806
9806
|
recordInventoryCount(input: {
|
|
9807
9807
|
count_id: string;
|
|
9808
|
-
lines: {
|
|
9808
|
+
lines: Array<{
|
|
9809
9809
|
item_id: string;
|
|
9810
9810
|
quantity: number;
|
|
9811
9811
|
notes?: string;
|
|
9812
|
-
}
|
|
9812
|
+
}>;
|
|
9813
9813
|
}): Promise<InventoryCountDetail>;
|
|
9814
9814
|
postInventoryCount(input: {
|
|
9815
9815
|
count_id: string;
|
|
@@ -9818,14 +9818,14 @@ export interface NemphiClient {
|
|
|
9818
9818
|
}, opts?: InvokeOpts): Promise<{
|
|
9819
9819
|
count: InventoryCount;
|
|
9820
9820
|
status: string;
|
|
9821
|
-
movements: StockMovement
|
|
9821
|
+
movements: Array<StockMovement>;
|
|
9822
9822
|
net_difference_cents: number;
|
|
9823
9823
|
journal_entry?: JournalEntry;
|
|
9824
9824
|
}>;
|
|
9825
9825
|
listInventoryCounts(input?: {
|
|
9826
9826
|
status?: "open" | "posted" | "cancelled";
|
|
9827
9827
|
limit?: number;
|
|
9828
|
-
}): Promise<InventoryCount
|
|
9828
|
+
}): Promise<Array<InventoryCount>>;
|
|
9829
9829
|
getInventoryCount(countId: string): Promise<InventoryCountDetail>;
|
|
9830
9830
|
inventorySettings(): Promise<InventorySettings>;
|
|
9831
9831
|
configureInventory(input: {
|
|
@@ -9841,12 +9841,12 @@ export interface NemphiClient {
|
|
|
9841
9841
|
email?: string;
|
|
9842
9842
|
phone?: string;
|
|
9843
9843
|
}): Promise<Party>;
|
|
9844
|
-
listParties(): Promise<Party
|
|
9845
|
-
listAccounts(): Promise<Account
|
|
9844
|
+
listParties(): Promise<Array<Party>>;
|
|
9845
|
+
listAccounts(): Promise<Array<Account>>;
|
|
9846
9846
|
postEntry(input: {
|
|
9847
9847
|
date?: string;
|
|
9848
9848
|
memo?: string;
|
|
9849
|
-
lines: EntryLine
|
|
9849
|
+
lines: Array<EntryLine>;
|
|
9850
9850
|
}, opts?: InvokeOpts): Promise<JournalEntry>;
|
|
9851
9851
|
reverseEntry(input: {
|
|
9852
9852
|
entry_id: string;
|
|
@@ -9854,7 +9854,7 @@ export interface NemphiClient {
|
|
|
9854
9854
|
date?: string;
|
|
9855
9855
|
}, opts?: InvokeOpts): Promise<JournalEntry>;
|
|
9856
9856
|
trialBalance(): Promise<{
|
|
9857
|
-
accounts: TrialBalanceRow
|
|
9857
|
+
accounts: Array<TrialBalanceRow>;
|
|
9858
9858
|
currency: string;
|
|
9859
9859
|
}>;
|
|
9860
9860
|
balanceSheet(input?: {
|
|
@@ -9887,7 +9887,7 @@ export interface NemphiClient {
|
|
|
9887
9887
|
listPeriods(input?: {
|
|
9888
9888
|
months?: number;
|
|
9889
9889
|
}): Promise<{
|
|
9890
|
-
periods: AccountingPeriod
|
|
9890
|
+
periods: Array<AccountingPeriod>;
|
|
9891
9891
|
currency: string;
|
|
9892
9892
|
}>;
|
|
9893
9893
|
closePeriod(input: {
|
|
@@ -9903,7 +9903,7 @@ export interface NemphiClient {
|
|
|
9903
9903
|
period: JsonObject;
|
|
9904
9904
|
reversal_entry: JournalEntry | null;
|
|
9905
9905
|
}>;
|
|
9906
|
-
listEntries(): Promise<JournalEntry
|
|
9906
|
+
listEntries(): Promise<Array<JournalEntry>>;
|
|
9907
9907
|
getEntry(entryId: string): Promise<JournalEntryDetail>;
|
|
9908
9908
|
taxProfile(input?: {
|
|
9909
9909
|
year?: number;
|
|
@@ -9933,7 +9933,7 @@ export interface NemphiClient {
|
|
|
9933
9933
|
partyTaxProfile(partyId: string): Promise<{
|
|
9934
9934
|
profile: PartyTaxProfile;
|
|
9935
9935
|
}>;
|
|
9936
|
-
listPartyTaxProfiles(): Promise<PartyTaxProfile
|
|
9936
|
+
listPartyTaxProfiles(): Promise<Array<PartyTaxProfile>>;
|
|
9937
9937
|
setPartyTaxProfile(input: {
|
|
9938
9938
|
party_id: string;
|
|
9939
9939
|
person_type?: "natural" | "juridica";
|
|
@@ -10023,7 +10023,7 @@ export interface NemphiClient {
|
|
|
10023
10023
|
listTags(input?: {
|
|
10024
10024
|
dimension_key?: string;
|
|
10025
10025
|
include_inactive?: boolean;
|
|
10026
|
-
}): Promise<TagDimensionWithTags
|
|
10026
|
+
}): Promise<Array<TagDimensionWithTags>>;
|
|
10027
10027
|
profitability(input: {
|
|
10028
10028
|
dimension_key?: string;
|
|
10029
10029
|
from?: string;
|
|
@@ -10039,7 +10039,7 @@ export interface NemphiClient {
|
|
|
10039
10039
|
/** invoice (default) | credit_note | debit_note. */
|
|
10040
10040
|
kind?: DocumentKind;
|
|
10041
10041
|
}): Promise<NumberingRange>;
|
|
10042
|
-
listNumberingRanges(): Promise<NumberingRange
|
|
10042
|
+
listNumberingRanges(): Promise<Array<NumberingRange>>;
|
|
10043
10043
|
createInvoiceDraft(input: {
|
|
10044
10044
|
party_id: string;
|
|
10045
10045
|
issue_date?: string;
|
|
@@ -10049,7 +10049,7 @@ export interface NemphiClient {
|
|
|
10049
10049
|
subtotal?: number;
|
|
10050
10050
|
tax?: number;
|
|
10051
10051
|
total?: number;
|
|
10052
|
-
lines?: LineInput
|
|
10052
|
+
lines?: Array<LineInput>;
|
|
10053
10053
|
}): Promise<Invoice>;
|
|
10054
10054
|
updateInvoiceDraft(input: {
|
|
10055
10055
|
invoice_id: string;
|
|
@@ -10061,7 +10061,7 @@ export interface NemphiClient {
|
|
|
10061
10061
|
tax?: number;
|
|
10062
10062
|
total?: number;
|
|
10063
10063
|
/** Replaces all lines when present ([] strips them). */
|
|
10064
|
-
lines?: LineInput
|
|
10064
|
+
lines?: Array<LineInput>;
|
|
10065
10065
|
}): Promise<Invoice>;
|
|
10066
10066
|
deleteInvoiceDraft(invoiceId: string): Promise<{
|
|
10067
10067
|
deleted: boolean;
|
|
@@ -10079,7 +10079,7 @@ export interface NemphiClient {
|
|
|
10079
10079
|
kind?: DocumentKind;
|
|
10080
10080
|
party_id?: string;
|
|
10081
10081
|
limit?: number;
|
|
10082
|
-
}): Promise<Invoice
|
|
10082
|
+
}): Promise<Array<Invoice>>;
|
|
10083
10083
|
getInvoice(invoiceId: string): Promise<InvoiceDetail>;
|
|
10084
10084
|
createInvoiceCreditNote(input: NoteInput & {
|
|
10085
10085
|
invoice_id: string;
|
|
@@ -10118,7 +10118,7 @@ export interface NemphiClient {
|
|
|
10118
10118
|
}>;
|
|
10119
10119
|
/** Rates relative to the tenant currency (a common set unless `currencies` is given). */
|
|
10120
10120
|
fxRates(input?: {
|
|
10121
|
-
currencies?: string
|
|
10121
|
+
currencies?: Array<string>;
|
|
10122
10122
|
date?: string;
|
|
10123
10123
|
}): Promise<FxRatesResponse>;
|
|
10124
10124
|
fxConvert(input: {
|
|
@@ -10153,7 +10153,7 @@ export interface NemphiClient {
|
|
|
10153
10153
|
text?: string;
|
|
10154
10154
|
thread_id?: string;
|
|
10155
10155
|
context?: string;
|
|
10156
|
-
document_ids?: string
|
|
10156
|
+
document_ids?: Array<string>;
|
|
10157
10157
|
wait_ms?: number;
|
|
10158
10158
|
}): Promise<SessionAsk>;
|
|
10159
10159
|
/** Suggested prompts ranked from the tenant's live data. */
|
|
@@ -10164,22 +10164,22 @@ export interface NemphiClient {
|
|
|
10164
10164
|
*/
|
|
10165
10165
|
voiceSession(): Promise<VoiceSession>;
|
|
10166
10166
|
/** The caller's saved chat conversations, newest first. */
|
|
10167
|
-
listConversations(): Promise<ConversationSummary
|
|
10167
|
+
listConversations(): Promise<Array<ConversationSummary>>;
|
|
10168
10168
|
/** One saved conversation with its full thread. */
|
|
10169
10169
|
getConversation(id: string): Promise<Conversation>;
|
|
10170
10170
|
/** Creates (no id) or updates (with id) a saved conversation from the chat thread. */
|
|
10171
10171
|
saveConversation(input: {
|
|
10172
10172
|
id?: string;
|
|
10173
|
-
thread: ConversationTurn
|
|
10173
|
+
thread: Array<ConversationTurn>;
|
|
10174
10174
|
}): Promise<ConversationSummary>;
|
|
10175
10175
|
deleteConversation(id: string): Promise<void>;
|
|
10176
10176
|
/** The newest turns of the member's DM with the orchestrator, which Inicio opens on. */
|
|
10177
|
-
overviewThread(): Promise<ConversationTurn
|
|
10177
|
+
overviewThread(): Promise<Array<ConversationTurn>>;
|
|
10178
10178
|
/** Copies the turns of one finished Inicio round trip into that DM. */
|
|
10179
|
-
mirrorOverviewThread(turns: ConversationTurn
|
|
10179
|
+
mirrorOverviewThread(turns: Array<ConversationTurn>): Promise<{
|
|
10180
10180
|
thread_id: string;
|
|
10181
10181
|
}>;
|
|
10182
|
-
listDashboards(): Promise<DashboardSummary
|
|
10182
|
+
listDashboards(): Promise<Array<DashboardSummary>>;
|
|
10183
10183
|
/**
|
|
10184
10184
|
* Fetches one dashboard with every block's metric query re-run (live data).
|
|
10185
10185
|
* An optional range (YYYY-MM-DD, inclusive) re-runs every block over that
|
|
@@ -10202,7 +10202,7 @@ export interface NemphiClient {
|
|
|
10202
10202
|
spec: CanvasSpec;
|
|
10203
10203
|
}>;
|
|
10204
10204
|
/** Appends blocks to an existing dashboard without replacing its current canvas. */
|
|
10205
|
-
appendDashboard(slug: string, blocks: CanvasBlock
|
|
10205
|
+
appendDashboard(slug: string, blocks: Array<CanvasBlock>, opts?: InvokeOpts): Promise<DashboardSummary & {
|
|
10206
10206
|
spec: CanvasSpec;
|
|
10207
10207
|
}>;
|
|
10208
10208
|
deleteDashboard(slug: string, opts?: InvokeOpts): Promise<{
|
|
@@ -10212,9 +10212,9 @@ export interface NemphiClient {
|
|
|
10212
10212
|
listMembers(opts?: {
|
|
10213
10213
|
q?: string;
|
|
10214
10214
|
limit?: number;
|
|
10215
|
-
}): Promise<TenantMember
|
|
10215
|
+
}): Promise<Array<TenantMember>>;
|
|
10216
10216
|
/** Who a dashboard is shared with. Requires edit rights on it. */
|
|
10217
|
-
listDashboardShares(slug: string): Promise<DashboardShare
|
|
10217
|
+
listDashboardShares(slug: string): Promise<Array<DashboardShare>>;
|
|
10218
10218
|
/** Grants a member view-only access to a dashboard you can edit. */
|
|
10219
10219
|
shareDashboard(slug: string, userId: string): Promise<void>;
|
|
10220
10220
|
/** Removes a member's view access to a dashboard you can edit. */
|
|
@@ -10228,7 +10228,7 @@ export interface NemphiClient {
|
|
|
10228
10228
|
to: string;
|
|
10229
10229
|
}): Promise<DashboardSnapshot>;
|
|
10230
10230
|
/** Active public links for a dashboard you can edit. */
|
|
10231
|
-
listDashboardSnapshots(slug: string): Promise<DashboardSnapshot
|
|
10231
|
+
listDashboardSnapshots(slug: string): Promise<Array<DashboardSnapshot>>;
|
|
10232
10232
|
/** Kills a public link; the frozen copy stops being served immediately. */
|
|
10233
10233
|
revokeDashboardSnapshot(slug: string, snapshotId: string): Promise<void>;
|
|
10234
10234
|
/** Fetches a published snapshot by token. Unauthenticated. */
|
|
@@ -10248,17 +10248,17 @@ export interface NemphiClient {
|
|
|
10248
10248
|
title?: string;
|
|
10249
10249
|
duration_minutes?: number;
|
|
10250
10250
|
time_zone?: string;
|
|
10251
|
-
user_ids?: string
|
|
10251
|
+
user_ids?: Array<string>;
|
|
10252
10252
|
/** People outside the workspace, emailed the call's guest link. */
|
|
10253
|
-
emails?: string
|
|
10253
|
+
emails?: Array<string>;
|
|
10254
10254
|
auto_tasks?: boolean;
|
|
10255
10255
|
}, opts?: InvokeOpts): Promise<{
|
|
10256
10256
|
call: Call;
|
|
10257
|
-
invited: {
|
|
10257
|
+
invited: Array<{
|
|
10258
10258
|
user_id: string;
|
|
10259
10259
|
name: string;
|
|
10260
|
-
}
|
|
10261
|
-
emailed: string
|
|
10260
|
+
}>;
|
|
10261
|
+
emailed: Array<string>;
|
|
10262
10262
|
}>;
|
|
10263
10263
|
/** Renames a call (creator or owner/admin); an empty title names it after its people again. */
|
|
10264
10264
|
renameCall(input: {
|
|
@@ -10270,11 +10270,11 @@ export interface NemphiClient {
|
|
|
10270
10270
|
/** Recent standalone calls, newest first, without join links. */
|
|
10271
10271
|
storageUsage(): Promise<WorkspaceStorageUsage>;
|
|
10272
10272
|
listCallRecordings(callId: string): Promise<{
|
|
10273
|
-
recordings: CallRecording
|
|
10273
|
+
recordings: Array<CallRecording>;
|
|
10274
10274
|
complete: boolean;
|
|
10275
10275
|
}>;
|
|
10276
10276
|
downloadCallRecording(recordingId: string, range?: string): Promise<Response>;
|
|
10277
|
-
listCalls(): Promise<Call
|
|
10277
|
+
listCalls(): Promise<Array<Call>>;
|
|
10278
10278
|
/** One standalone call, including its join link and the caller's media token when ready. */
|
|
10279
10279
|
getCall(callId: string): Promise<Call>;
|
|
10280
10280
|
/** Readies the caller's media token for a call they were invited to. */
|
|
@@ -10282,30 +10282,30 @@ export interface NemphiClient {
|
|
|
10282
10282
|
call: Call;
|
|
10283
10283
|
}>;
|
|
10284
10284
|
/** Everyone on a call and everyone invited to it, oldest seat first. */
|
|
10285
|
-
listCallParticipants(callId: string): Promise<CallParticipantSeat
|
|
10285
|
+
listCallParticipants(callId: string): Promise<Array<CallParticipantSeat>>;
|
|
10286
10286
|
/**
|
|
10287
10287
|
* Invites people to a running or scheduled call: members are notified with a link to the room,
|
|
10288
10288
|
* and each address in `emails` is emailed the call's guest link.
|
|
10289
10289
|
*/
|
|
10290
10290
|
inviteToCall(input: {
|
|
10291
10291
|
call_id: string;
|
|
10292
|
-
user_ids?: string
|
|
10293
|
-
emails?: string
|
|
10292
|
+
user_ids?: Array<string>;
|
|
10293
|
+
emails?: Array<string>;
|
|
10294
10294
|
}, opts?: InvokeOpts): Promise<{
|
|
10295
10295
|
call: Call;
|
|
10296
|
-
invited: {
|
|
10296
|
+
invited: Array<{
|
|
10297
10297
|
user_id: string;
|
|
10298
10298
|
name: string;
|
|
10299
|
-
}
|
|
10300
|
-
emailed: string
|
|
10299
|
+
}>;
|
|
10300
|
+
emailed: Array<string>;
|
|
10301
10301
|
}>;
|
|
10302
10302
|
/** Decides who may share their screen on a call (creator or owner/admin). */
|
|
10303
10303
|
setCallPresenters(input: {
|
|
10304
10304
|
call_id: string;
|
|
10305
10305
|
policy: CallPresentPolicy;
|
|
10306
|
-
roles?: string
|
|
10307
|
-
role_ids?: string
|
|
10308
|
-
user_ids?: string
|
|
10306
|
+
roles?: Array<string>;
|
|
10307
|
+
role_ids?: Array<string>;
|
|
10308
|
+
user_ids?: Array<string>;
|
|
10309
10309
|
}, opts?: InvokeOpts): Promise<{
|
|
10310
10310
|
call: Call;
|
|
10311
10311
|
}>;
|
|
@@ -10320,7 +10320,7 @@ export interface NemphiClient {
|
|
|
10320
10320
|
/** Files the call's suggested action items as project tasks; every suggested one without `items`. */
|
|
10321
10321
|
createCallTasks(input: {
|
|
10322
10322
|
call_id: string;
|
|
10323
|
-
items?: CallTaskPick
|
|
10323
|
+
items?: Array<CallTaskPick>;
|
|
10324
10324
|
project_id?: string;
|
|
10325
10325
|
project?: string;
|
|
10326
10326
|
}, opts?: InvokeOpts): Promise<CallTasksCreated>;
|
|
@@ -10334,14 +10334,14 @@ export interface NemphiClient {
|
|
|
10334
10334
|
listBookingTypes(input?: {
|
|
10335
10335
|
status?: "active" | "paused";
|
|
10336
10336
|
}): Promise<{
|
|
10337
|
-
booking_types: BookingType
|
|
10337
|
+
booking_types: Array<BookingType>;
|
|
10338
10338
|
}>;
|
|
10339
10339
|
createBookingType(input: {
|
|
10340
10340
|
name: string;
|
|
10341
10341
|
duration_minutes: number;
|
|
10342
10342
|
host_user_id?: string;
|
|
10343
10343
|
slug?: string;
|
|
10344
|
-
days?: BookingWeekday
|
|
10344
|
+
days?: Array<BookingWeekday>;
|
|
10345
10345
|
start_time?: string;
|
|
10346
10346
|
end_time?: string;
|
|
10347
10347
|
description?: string;
|
|
@@ -10379,7 +10379,7 @@ export interface NemphiClient {
|
|
|
10379
10379
|
/** Set one weekly window across the days it covers; `replace` false adds it to days that already have one. */
|
|
10380
10380
|
setBookingRanges(input: {
|
|
10381
10381
|
booking_type_id: string;
|
|
10382
|
-
days: BookingWeekday
|
|
10382
|
+
days: Array<BookingWeekday>;
|
|
10383
10383
|
start_time: string;
|
|
10384
10384
|
end_time: string;
|
|
10385
10385
|
replace?: boolean;
|
|
@@ -10388,7 +10388,7 @@ export interface NemphiClient {
|
|
|
10388
10388
|
}>;
|
|
10389
10389
|
clearBookingRanges(input: {
|
|
10390
10390
|
booking_type_id: string;
|
|
10391
|
-
days?: BookingWeekday
|
|
10391
|
+
days?: Array<BookingWeekday>;
|
|
10392
10392
|
}, opts?: InvokeOpts): Promise<{
|
|
10393
10393
|
booking_type: BookingType;
|
|
10394
10394
|
removed: number;
|
|
@@ -10424,7 +10424,7 @@ export interface NemphiClient {
|
|
|
10424
10424
|
}): Promise<{
|
|
10425
10425
|
from: string;
|
|
10426
10426
|
to: string;
|
|
10427
|
-
bookings: Booking
|
|
10427
|
+
bookings: Array<Booking>;
|
|
10428
10428
|
}>;
|
|
10429
10429
|
cancelBooking(input: {
|
|
10430
10430
|
booking_id: string;
|
|
@@ -10489,27 +10489,27 @@ export interface NemphiClient {
|
|
|
10489
10489
|
postCallMessage(input: {
|
|
10490
10490
|
call_id: string;
|
|
10491
10491
|
body: string;
|
|
10492
|
-
document_ids?: string
|
|
10492
|
+
document_ids?: Array<string>;
|
|
10493
10493
|
}, opts?: InvokeOpts): Promise<{
|
|
10494
10494
|
message: CallMessage;
|
|
10495
10495
|
}>;
|
|
10496
10496
|
/** The call's chat room, oldest first; `after` reads only what arrived since that instant. */
|
|
10497
|
-
listCallMessages(callId: string, after?: string): Promise<CallMessage
|
|
10497
|
+
listCallMessages(callId: string, after?: string): Promise<Array<CallMessage>>;
|
|
10498
10498
|
/** Store the calling member's own final utterances, as the provider transcribed them. */
|
|
10499
10499
|
recordCallTranscript(input: {
|
|
10500
10500
|
call_id: string;
|
|
10501
|
-
segments: CallTranscriptSegmentInput
|
|
10501
|
+
segments: Array<CallTranscriptSegmentInput>;
|
|
10502
10502
|
}, opts?: InvokeOpts): Promise<{
|
|
10503
10503
|
recorded: number;
|
|
10504
10504
|
}>;
|
|
10505
10505
|
/** The call's transcript in speaking order; `after` reads only what was said since that instant. */
|
|
10506
|
-
listCallTranscript(callId: string, after?: string): Promise<CallTranscriptSegment
|
|
10507
|
-
listPublicCallMessages(token: string, participantId: string, secret: string, after?: string): Promise<CallMessage
|
|
10506
|
+
listCallTranscript(callId: string, after?: string): Promise<Array<CallTranscriptSegment>>;
|
|
10507
|
+
listPublicCallMessages(token: string, participantId: string, secret: string, after?: string): Promise<Array<CallMessage>>;
|
|
10508
10508
|
postPublicCallMessage(token: string, participantId: string, secret: string, body: string): Promise<{
|
|
10509
10509
|
message: CallMessage;
|
|
10510
10510
|
}>;
|
|
10511
|
-
listPublicCallTranscript(token: string, participantId: string, secret: string, after?: string): Promise<CallTranscriptSegment
|
|
10512
|
-
recordPublicCallTranscript(token: string, participantId: string, secret: string, segments: CallTranscriptSegmentInput
|
|
10511
|
+
listPublicCallTranscript(token: string, participantId: string, secret: string, after?: string): Promise<Array<CallTranscriptSegment>>;
|
|
10512
|
+
recordPublicCallTranscript(token: string, participantId: string, secret: string, segments: Array<CallTranscriptSegmentInput>): Promise<{
|
|
10513
10513
|
recorded: number;
|
|
10514
10514
|
}>;
|
|
10515
10515
|
queryMetric(input: MetricQuery): Promise<MetricResult>;
|
|
@@ -10524,7 +10524,7 @@ export interface NemphiClient {
|
|
|
10524
10524
|
* when one filter change moves many blocks. A query that failed comes
|
|
10525
10525
|
* back as an error in its own slot rather than failing the batch.
|
|
10526
10526
|
*/
|
|
10527
|
-
queryMetricsBatch(queries: MetricQuery
|
|
10527
|
+
queryMetricsBatch(queries: Array<MetricQuery>): Promise<{
|
|
10528
10528
|
results: Array<{
|
|
10529
10529
|
result?: MetricResult;
|
|
10530
10530
|
error?: string;
|
|
@@ -10578,7 +10578,7 @@ export interface NemphiClient {
|
|
|
10578
10578
|
}, opts?: InvokeOpts): Promise<{
|
|
10579
10579
|
connection: Connection;
|
|
10580
10580
|
}>;
|
|
10581
|
-
listConnections(): Promise<Connection
|
|
10581
|
+
listConnections(): Promise<Array<Connection>>;
|
|
10582
10582
|
deleteConnection(connectionId: string, opts?: InvokeOpts): Promise<{
|
|
10583
10583
|
deleted: boolean;
|
|
10584
10584
|
}>;
|
|
@@ -10628,7 +10628,7 @@ export interface NemphiClient {
|
|
|
10628
10628
|
status?: QuoteStatus;
|
|
10629
10629
|
party_id?: string;
|
|
10630
10630
|
limit?: number;
|
|
10631
|
-
}): Promise<SalesDocument
|
|
10631
|
+
}): Promise<Array<SalesDocument>>;
|
|
10632
10632
|
getQuote(quoteId: string): Promise<SalesDocumentDetail>;
|
|
10633
10633
|
createQuote(input: SalesDocumentInput, opts?: InvokeOpts): Promise<SalesDocument>;
|
|
10634
10634
|
updateQuote(input: {
|
|
@@ -10667,7 +10667,7 @@ export interface NemphiClient {
|
|
|
10667
10667
|
status?: SalesOrderStatus;
|
|
10668
10668
|
party_id?: string;
|
|
10669
10669
|
limit?: number;
|
|
10670
|
-
}): Promise<SalesDocument
|
|
10670
|
+
}): Promise<Array<SalesDocument>>;
|
|
10671
10671
|
getSalesOrder(salesOrderId: string): Promise<SalesDocumentDetail>;
|
|
10672
10672
|
createSalesOrder(input: SalesDocumentInput, opts?: InvokeOpts): Promise<SalesDocument>;
|
|
10673
10673
|
updateSalesOrder(input: {
|
|
@@ -10678,7 +10678,7 @@ export interface NemphiClient {
|
|
|
10678
10678
|
/** Draft invoice for all outstanding quantities, or the given subset. */
|
|
10679
10679
|
invoiceSalesOrder(input: {
|
|
10680
10680
|
sales_order_id: string;
|
|
10681
|
-
lines?: QuantitySelection
|
|
10681
|
+
lines?: Array<QuantitySelection>;
|
|
10682
10682
|
issue_date?: string;
|
|
10683
10683
|
due_date?: string;
|
|
10684
10684
|
}, opts?: InvokeOpts): Promise<{
|
|
@@ -10689,7 +10689,7 @@ export interface NemphiClient {
|
|
|
10689
10689
|
status?: PurchaseOrderStatus;
|
|
10690
10690
|
party_id?: string;
|
|
10691
10691
|
limit?: number;
|
|
10692
|
-
}): Promise<PurchaseOrder
|
|
10692
|
+
}): Promise<Array<PurchaseOrder>>;
|
|
10693
10693
|
getPurchaseOrder(purchaseOrderId: string): Promise<PurchaseOrderDetail>;
|
|
10694
10694
|
createPurchaseOrder(input: PurchaseOrderInput, opts?: InvokeOpts): Promise<PurchaseOrder>;
|
|
10695
10695
|
updatePurchaseOrder(input: {
|
|
@@ -10708,15 +10708,15 @@ export interface NemphiClient {
|
|
|
10708
10708
|
received_at?: string;
|
|
10709
10709
|
reference?: string;
|
|
10710
10710
|
notes?: string;
|
|
10711
|
-
lines?: QuantitySelection
|
|
10711
|
+
lines?: Array<QuantitySelection>;
|
|
10712
10712
|
}, opts?: InvokeOpts): Promise<{
|
|
10713
10713
|
receipt: PurchaseReceipt;
|
|
10714
|
-
receipt_lines: PurchaseReceiptLine
|
|
10714
|
+
receipt_lines: Array<PurchaseReceiptLine>;
|
|
10715
10715
|
purchase_order: PurchaseOrder;
|
|
10716
10716
|
}>;
|
|
10717
10717
|
billPurchaseOrder(input: {
|
|
10718
10718
|
purchase_order_id: string;
|
|
10719
|
-
lines?: QuantitySelection
|
|
10719
|
+
lines?: Array<QuantitySelection>;
|
|
10720
10720
|
from?: "received" | "ordered";
|
|
10721
10721
|
invoice_number?: string;
|
|
10722
10722
|
issue_date?: string;
|
|
@@ -10739,11 +10739,11 @@ export type WhatsAppCallMedia = {
|
|
|
10739
10739
|
error: string;
|
|
10740
10740
|
} | {
|
|
10741
10741
|
status: "ready";
|
|
10742
|
-
ice_servers: {
|
|
10743
|
-
urls: string
|
|
10742
|
+
ice_servers: Array<{
|
|
10743
|
+
urls: Array<string>;
|
|
10744
10744
|
username?: string;
|
|
10745
10745
|
credential?: string;
|
|
10746
|
-
}
|
|
10746
|
+
}>;
|
|
10747
10747
|
expires_at: string;
|
|
10748
10748
|
};
|
|
10749
10749
|
/**
|
|
@@ -10763,7 +10763,7 @@ export interface CustomApp {
|
|
|
10763
10763
|
slug: string;
|
|
10764
10764
|
name: string;
|
|
10765
10765
|
description: string;
|
|
10766
|
-
grants: string
|
|
10766
|
+
grants: Array<string>;
|
|
10767
10767
|
agent_access: CustomAppAgentAccess;
|
|
10768
10768
|
version?: number;
|
|
10769
10769
|
live_version?: number;
|
|
@@ -10793,13 +10793,13 @@ export interface CustomAppDetail extends CustomApp {
|
|
|
10793
10793
|
/** Whether the files or grants hold changes no version has saved yet. */
|
|
10794
10794
|
draft_changed: boolean;
|
|
10795
10795
|
created_at: string;
|
|
10796
|
-
files: CustomAppFile
|
|
10797
|
-
collections: {
|
|
10796
|
+
files: Array<CustomAppFile>;
|
|
10797
|
+
collections: Array<{
|
|
10798
10798
|
collection: string;
|
|
10799
10799
|
records: number;
|
|
10800
|
-
}
|
|
10800
|
+
}>;
|
|
10801
10801
|
/** The collections kept in sync with a live spreadsheet (`apps.link_sheet`). */
|
|
10802
|
-
sheets?: CustomAppSheet
|
|
10802
|
+
sheets?: Array<CustomAppSheet>;
|
|
10803
10803
|
}
|
|
10804
10804
|
/**
|
|
10805
10805
|
* A collection kept in sync with a live spreadsheet, both ways
|
|
@@ -10840,18 +10840,18 @@ export interface CustomAppFileContent {
|
|
|
10840
10840
|
*/
|
|
10841
10841
|
export interface CustomAppExportPage {
|
|
10842
10842
|
app: CustomApp;
|
|
10843
|
-
files: {
|
|
10843
|
+
files: Array<{
|
|
10844
10844
|
path: string;
|
|
10845
10845
|
content: string;
|
|
10846
10846
|
updated_at: string;
|
|
10847
|
-
}
|
|
10848
|
-
records: {
|
|
10847
|
+
}>;
|
|
10848
|
+
records: Array<{
|
|
10849
10849
|
collection: string;
|
|
10850
10850
|
id: string;
|
|
10851
10851
|
data: unknown;
|
|
10852
10852
|
created_at: string;
|
|
10853
10853
|
updated_at: string;
|
|
10854
|
-
}
|
|
10854
|
+
}>;
|
|
10855
10855
|
next_cursor?: string;
|
|
10856
10856
|
}
|
|
10857
10857
|
/** One saved version of an app. */
|
|
@@ -10859,7 +10859,7 @@ export interface CustomAppVersion {
|
|
|
10859
10859
|
version: number;
|
|
10860
10860
|
message: string;
|
|
10861
10861
|
files: number;
|
|
10862
|
-
grants: string
|
|
10862
|
+
grants: Array<string>;
|
|
10863
10863
|
author_type: string | null;
|
|
10864
10864
|
author_id: string | null;
|
|
10865
10865
|
live: boolean;
|
|
@@ -10871,21 +10871,21 @@ export interface CustomAppHistory {
|
|
|
10871
10871
|
version: number | null;
|
|
10872
10872
|
live_version: number | null;
|
|
10873
10873
|
draft_changed: boolean;
|
|
10874
|
-
versions: CustomAppVersion
|
|
10874
|
+
versions: Array<CustomAppVersion>;
|
|
10875
10875
|
}
|
|
10876
10876
|
/** What changed between two versions, or since the latest (`apps.diff`). */
|
|
10877
10877
|
export interface CustomAppDiff {
|
|
10878
10878
|
app: string;
|
|
10879
10879
|
from: number | null;
|
|
10880
10880
|
to: number | null;
|
|
10881
|
-
files: {
|
|
10881
|
+
files: Array<{
|
|
10882
10882
|
path: string;
|
|
10883
10883
|
/** "added", "modified" or "deleted", or a value this SDK does not know yet. */
|
|
10884
10884
|
change: string;
|
|
10885
10885
|
patch: string;
|
|
10886
|
-
}
|
|
10887
|
-
grants_added: string
|
|
10888
|
-
grants_removed: string
|
|
10886
|
+
}>;
|
|
10887
|
+
grants_added: Array<string>;
|
|
10888
|
+
grants_removed: Array<string>;
|
|
10889
10889
|
truncated: boolean;
|
|
10890
10890
|
}
|
|
10891
10891
|
/**
|
|
@@ -10907,7 +10907,7 @@ export interface CustomAppRun {
|
|
|
10907
10907
|
ok: boolean;
|
|
10908
10908
|
result?: Json;
|
|
10909
10909
|
error?: string;
|
|
10910
|
-
logs: string
|
|
10910
|
+
logs: Array<string>;
|
|
10911
10911
|
calls: number;
|
|
10912
10912
|
truncated?: boolean;
|
|
10913
10913
|
}
|
|
@@ -10928,7 +10928,7 @@ export interface CustomAppRecord {
|
|
|
10928
10928
|
/** A page of one collection's records, newest first (`apps.records_query`). */
|
|
10929
10929
|
export interface CustomAppRecords {
|
|
10930
10930
|
collection: string;
|
|
10931
|
-
records: CustomAppRecord
|
|
10931
|
+
records: Array<CustomAppRecord>;
|
|
10932
10932
|
}
|
|
10933
10933
|
/**
|
|
10934
10934
|
* One row of a member's main sidebar (`sidebar.get`): a place by its key,
|
|
@@ -10942,7 +10942,7 @@ export interface SidebarEntry {
|
|
|
10942
10942
|
}
|
|
10943
10943
|
/** The member's whole main sidebar, in order; `customized` is false until they change it. */
|
|
10944
10944
|
export interface SidebarLayout {
|
|
10945
|
-
entries: SidebarEntry
|
|
10945
|
+
entries: Array<SidebarEntry>;
|
|
10946
10946
|
customized: boolean;
|
|
10947
10947
|
}
|
|
10948
10948
|
//# sourceMappingURL=index.d.ts.map
|