@deepraxis/sdk 0.1.1-dev.3aab976 → 0.1.1-dev.3b48b63
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/METHODS.md +30 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +57 -4
- package/dist/generated/sdk.gen.js +128 -3
- package/dist/generated/types.gen.d.ts +780 -14
- package/dist/operations.generated.js +227 -5
- package/dist/resources.generated.d.ts +38 -0
- package/dist/resources.generated.js +20 -0
- package/package.json +1 -1
|
@@ -2382,6 +2382,91 @@ export type AgentSseEvent = ({
|
|
|
2382
2382
|
task_id: string | null;
|
|
2383
2383
|
}>;
|
|
2384
2384
|
};
|
|
2385
|
+
} | {
|
|
2386
|
+
/**
|
|
2387
|
+
* Always `system.notification_suppressed`. SSE event name of this frame; its data is a system.notification_suppressed payload. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
2388
|
+
*/
|
|
2389
|
+
event?: 'system.notification_suppressed';
|
|
2390
|
+
/**
|
|
2391
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
2392
|
+
*/
|
|
2393
|
+
data?: {
|
|
2394
|
+
/**
|
|
2395
|
+
* Text of the block.
|
|
2396
|
+
*/
|
|
2397
|
+
id: string;
|
|
2398
|
+
/**
|
|
2399
|
+
* Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
2400
|
+
*/
|
|
2401
|
+
type: 'system.notification_suppressed';
|
|
2402
|
+
/**
|
|
2403
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
2404
|
+
*/
|
|
2405
|
+
processed_at: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Text of the block.
|
|
2408
|
+
*/
|
|
2409
|
+
session_thread_id?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* The wake quota that held the batch.
|
|
2412
|
+
*/
|
|
2413
|
+
reason: 'hourly' | 'daily' | 'loop';
|
|
2414
|
+
/**
|
|
2415
|
+
* The pending system inputs that were dropped without a run.
|
|
2416
|
+
*/
|
|
2417
|
+
system_input_ids: Array<string>;
|
|
2418
|
+
/**
|
|
2419
|
+
* The distinct source kinds of those inputs, such as background_task or monitor.
|
|
2420
|
+
*/
|
|
2421
|
+
source_kinds: Array<string>;
|
|
2422
|
+
/**
|
|
2423
|
+
* A platform sentence that explains the pause; never the notification text.
|
|
2424
|
+
*/
|
|
2425
|
+
content: Array<{
|
|
2426
|
+
/**
|
|
2427
|
+
* Always `text`. A text block.
|
|
2428
|
+
*/
|
|
2429
|
+
type: 'text';
|
|
2430
|
+
/**
|
|
2431
|
+
* Text of the block.
|
|
2432
|
+
*/
|
|
2433
|
+
text: string;
|
|
2434
|
+
}>;
|
|
2435
|
+
};
|
|
2436
|
+
} | {
|
|
2437
|
+
/**
|
|
2438
|
+
* Always `system.notification_recorded`. SSE event name of this frame; its data is a system.notification_recorded payload. Pending background notifications were recorded without a run because the agent has no model.
|
|
2439
|
+
*/
|
|
2440
|
+
event?: 'system.notification_recorded';
|
|
2441
|
+
/**
|
|
2442
|
+
* Decoded JSON payload of this frame; its shape is selected by the event name.
|
|
2443
|
+
*/
|
|
2444
|
+
data?: {
|
|
2445
|
+
/**
|
|
2446
|
+
* Text of the block.
|
|
2447
|
+
*/
|
|
2448
|
+
id: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
|
|
2451
|
+
*/
|
|
2452
|
+
type: 'system.notification_recorded';
|
|
2453
|
+
/**
|
|
2454
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
2455
|
+
*/
|
|
2456
|
+
processed_at: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* Text of the block.
|
|
2459
|
+
*/
|
|
2460
|
+
session_thread_id?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* The pending system inputs that were recorded without a run.
|
|
2463
|
+
*/
|
|
2464
|
+
system_input_ids: Array<string>;
|
|
2465
|
+
/**
|
|
2466
|
+
* The distinct source kinds of those inputs.
|
|
2467
|
+
*/
|
|
2468
|
+
source_kinds: Array<string>;
|
|
2469
|
+
};
|
|
2385
2470
|
} | {
|
|
2386
2471
|
/**
|
|
2387
2472
|
* Always `session.forked`. SSE event name of this frame; its data is a session.forked payload. The session was created by forking another session.
|
|
@@ -2733,7 +2818,7 @@ export type AgentSseEvent = ({
|
|
|
2733
2818
|
/**
|
|
2734
2819
|
* Server-Sent Events event name of this frame.
|
|
2735
2820
|
*/
|
|
2736
|
-
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2821
|
+
event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
|
|
2737
2822
|
data: AgentSseData;
|
|
2738
2823
|
};
|
|
2739
2824
|
/**
|
|
@@ -18990,6 +19075,10 @@ export type MediaJob = {
|
|
|
18990
19075
|
* Generation jobs only: the elements the job’s request expanded, each with the version read when the job was created; absent when none were. Same records as the outputs’ provenance.elements. A request that named no element answers no elements key.
|
|
18991
19076
|
*/
|
|
18992
19077
|
elements?: Array<MediaElementUse>;
|
|
19078
|
+
/**
|
|
19079
|
+
* Present on a completed align job: how the two recordings line up, with offset_seconds and confidence. Absent on every job that produced assets instead of a fact.
|
|
19080
|
+
*/
|
|
19081
|
+
result?: MediaAlignResult;
|
|
18993
19082
|
};
|
|
18994
19083
|
/**
|
|
18995
19084
|
* Operation applied independently to each selected asset; item failures do not undo successful items.
|
|
@@ -19112,7 +19201,7 @@ export type MediaAssetReference = {
|
|
|
19112
19201
|
strength?: number;
|
|
19113
19202
|
};
|
|
19114
19203
|
/**
|
|
19115
|
-
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED.
|
|
19204
|
+
* One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
|
|
19116
19205
|
*/
|
|
19117
19206
|
export type MediaEditOperation = {
|
|
19118
19207
|
/**
|
|
@@ -19137,17 +19226,13 @@ export type MediaEditOperation = {
|
|
|
19137
19226
|
*/
|
|
19138
19227
|
type: 'upscale';
|
|
19139
19228
|
/**
|
|
19140
|
-
*
|
|
19229
|
+
* Target height in pixels: 720, 1080, 1440 or 2160; omit it to use 1080. The source’s aspect ratio is kept, and a picture stays a picture while a video stays a video.
|
|
19141
19230
|
*/
|
|
19142
|
-
|
|
19231
|
+
height?: 720 | 1080 | 1440 | 2160;
|
|
19143
19232
|
/**
|
|
19144
|
-
*
|
|
19233
|
+
* Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
19145
19234
|
*/
|
|
19146
|
-
|
|
19147
|
-
/**
|
|
19148
|
-
* Target resolution: 1080p or 4k.
|
|
19149
|
-
*/
|
|
19150
|
-
resolution?: '1080p' | '4k';
|
|
19235
|
+
model?: string;
|
|
19151
19236
|
} | {
|
|
19152
19237
|
/**
|
|
19153
19238
|
* Edit operation discriminator; outpaint selects the outpaint branch of this union.
|
|
@@ -19362,6 +19447,41 @@ export type MediaEditOperation = {
|
|
|
19362
19447
|
* Edit operation discriminator; to_gif selects the to_gif branch of this union.
|
|
19363
19448
|
*/
|
|
19364
19449
|
type: 'to_gif';
|
|
19450
|
+
} | {
|
|
19451
|
+
/**
|
|
19452
|
+
* Edit operation discriminator; enhance_voice selects the enhance_voice branch of this union.
|
|
19453
|
+
*/
|
|
19454
|
+
type: 'enhance_voice';
|
|
19455
|
+
/**
|
|
19456
|
+
* Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
19457
|
+
*/
|
|
19458
|
+
model?: string;
|
|
19459
|
+
} | {
|
|
19460
|
+
/**
|
|
19461
|
+
* Edit operation discriminator; reframe selects the reframe branch of this union.
|
|
19462
|
+
*/
|
|
19463
|
+
type: 'reframe';
|
|
19464
|
+
/**
|
|
19465
|
+
* Target aspect ratio: 9:16, 1:1 or 16:9.
|
|
19466
|
+
*/
|
|
19467
|
+
aspect: '9:16' | '1:1' | '16:9';
|
|
19468
|
+
/**
|
|
19469
|
+
* Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
19470
|
+
*/
|
|
19471
|
+
model?: string;
|
|
19472
|
+
} | {
|
|
19473
|
+
/**
|
|
19474
|
+
* Edit operation discriminator; redact selects the redact branch of this union.
|
|
19475
|
+
*/
|
|
19476
|
+
type: 'redact';
|
|
19477
|
+
/**
|
|
19478
|
+
* What to cover: face, qr or text, one or more, in the order given; an empty, unknown or repeated target is refused with INVALID_PARAMS.
|
|
19479
|
+
*/
|
|
19480
|
+
targets: Array<'face' | 'qr' | 'text'>;
|
|
19481
|
+
/**
|
|
19482
|
+
* Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
|
|
19483
|
+
*/
|
|
19484
|
+
model?: string;
|
|
19365
19485
|
} | {
|
|
19366
19486
|
/**
|
|
19367
19487
|
* Edit operation discriminator; voice_change selects the voice_change branch of this union.
|
|
@@ -20614,6 +20734,84 @@ export type SearchValidationError = {
|
|
|
20614
20734
|
};
|
|
20615
20735
|
}>;
|
|
20616
20736
|
};
|
|
20737
|
+
/**
|
|
20738
|
+
* What to share and the limits of its link.
|
|
20739
|
+
*/
|
|
20740
|
+
export type ShareCreateShareInput = {
|
|
20741
|
+
resource: ShareShareResource;
|
|
20742
|
+
/**
|
|
20743
|
+
* ISO 8601 instant after which the link answers 410; omit or null for a link that never expires, and it must be in the future.
|
|
20744
|
+
*/
|
|
20745
|
+
expire_time?: string | null;
|
|
20746
|
+
/**
|
|
20747
|
+
* Ask viewers to open the content without a download prompt; a limit, not a guarantee, because anyone who can read it can save it. Defaults to false.
|
|
20748
|
+
*/
|
|
20749
|
+
prevents_download?: boolean;
|
|
20750
|
+
};
|
|
20751
|
+
/**
|
|
20752
|
+
* One share, which is one revocable link to one object.
|
|
20753
|
+
*/
|
|
20754
|
+
export type ShareSharePermission = {
|
|
20755
|
+
/**
|
|
20756
|
+
* Share id, shr_ followed by 32 lowercase letters or digits; use it to retrieve or delete the share.
|
|
20757
|
+
*/
|
|
20758
|
+
id: string;
|
|
20759
|
+
/**
|
|
20760
|
+
* Object type tag; always share.permission.
|
|
20761
|
+
*/
|
|
20762
|
+
object: 'share.permission';
|
|
20763
|
+
/**
|
|
20764
|
+
* The organization that owns the share, taken from the credential that created it.
|
|
20765
|
+
*/
|
|
20766
|
+
organization_id: string;
|
|
20767
|
+
resource: ShareShareResource;
|
|
20768
|
+
/**
|
|
20769
|
+
* What the link grants; read only.
|
|
20770
|
+
*/
|
|
20771
|
+
roles: Array<'read'>;
|
|
20772
|
+
link: ShareSharePermissionLink;
|
|
20773
|
+
/**
|
|
20774
|
+
* ISO 8601 instant after which the link answers 410, or null when it never expires.
|
|
20775
|
+
*/
|
|
20776
|
+
expire_time: string | null;
|
|
20777
|
+
/**
|
|
20778
|
+
* Current state of the link; expired is derived from expire_time and revoked comes from delete.
|
|
20779
|
+
*/
|
|
20780
|
+
status: 'active' | 'expired' | 'revoked';
|
|
20781
|
+
/**
|
|
20782
|
+
* Who created the share, in the form user:{id}; the user behind the API key or session that made the call.
|
|
20783
|
+
*/
|
|
20784
|
+
created_by: string;
|
|
20785
|
+
/**
|
|
20786
|
+
* When the share was created, ISO 8601.
|
|
20787
|
+
*/
|
|
20788
|
+
create_time: string;
|
|
20789
|
+
/**
|
|
20790
|
+
* When the share was deleted, ISO 8601, or null while it has not been.
|
|
20791
|
+
*/
|
|
20792
|
+
revoke_time: string | null;
|
|
20793
|
+
/**
|
|
20794
|
+
* How many times the link was opened.
|
|
20795
|
+
*/
|
|
20796
|
+
open_count: number;
|
|
20797
|
+
/**
|
|
20798
|
+
* When the link was last opened, ISO 8601, or null if it never was.
|
|
20799
|
+
*/
|
|
20800
|
+
last_open_time: string | null;
|
|
20801
|
+
};
|
|
20802
|
+
/**
|
|
20803
|
+
* One page of shares, newest first.
|
|
20804
|
+
*/
|
|
20805
|
+
export type ShareSharePermissionPage = {
|
|
20806
|
+
/**
|
|
20807
|
+
* Shares in this page; continue with next_page_token when it is not null.
|
|
20808
|
+
*/
|
|
20809
|
+
data: Array<ShareSharePermission>;
|
|
20810
|
+
/**
|
|
20811
|
+
* Opaque token for page_token on the next request; null when no more shares remain.
|
|
20812
|
+
*/
|
|
20813
|
+
next_page_token: string | null;
|
|
20814
|
+
};
|
|
20617
20815
|
/**
|
|
20618
20816
|
* The genre catalog as this caller may use it today.
|
|
20619
20817
|
*/
|
|
@@ -20679,7 +20877,7 @@ export type StudioPlatform = {
|
|
|
20679
20877
|
*/
|
|
20680
20878
|
available_from?: 's3' | 's5' | 's7';
|
|
20681
20879
|
/**
|
|
20682
|
-
* Limit names still unconfirmed against the platform documentation; treat the listed values as provisional.
|
|
20880
|
+
* Limit names still unconfirmed against the platform documentation; treat the listed values as provisional. A name here is spelled as the matching `limits` key is, so it can be looked up there.
|
|
20683
20881
|
*/
|
|
20684
20882
|
unverified?: Array<string>;
|
|
20685
20883
|
};
|
|
@@ -25070,6 +25268,73 @@ export type AgentSseData = {
|
|
|
25070
25268
|
*/
|
|
25071
25269
|
task_id: string | null;
|
|
25072
25270
|
}>;
|
|
25271
|
+
} | {
|
|
25272
|
+
/**
|
|
25273
|
+
* Text of the block.
|
|
25274
|
+
*/
|
|
25275
|
+
id: string;
|
|
25276
|
+
/**
|
|
25277
|
+
* Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
|
|
25278
|
+
*/
|
|
25279
|
+
type: 'system.notification_suppressed';
|
|
25280
|
+
/**
|
|
25281
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
25282
|
+
*/
|
|
25283
|
+
processed_at: string;
|
|
25284
|
+
/**
|
|
25285
|
+
* Text of the block.
|
|
25286
|
+
*/
|
|
25287
|
+
session_thread_id?: string;
|
|
25288
|
+
/**
|
|
25289
|
+
* The wake quota that held the batch.
|
|
25290
|
+
*/
|
|
25291
|
+
reason: 'hourly' | 'daily' | 'loop';
|
|
25292
|
+
/**
|
|
25293
|
+
* The pending system inputs that were dropped without a run.
|
|
25294
|
+
*/
|
|
25295
|
+
system_input_ids: Array<string>;
|
|
25296
|
+
/**
|
|
25297
|
+
* The distinct source kinds of those inputs, such as background_task or monitor.
|
|
25298
|
+
*/
|
|
25299
|
+
source_kinds: Array<string>;
|
|
25300
|
+
/**
|
|
25301
|
+
* A platform sentence that explains the pause; never the notification text.
|
|
25302
|
+
*/
|
|
25303
|
+
content: Array<{
|
|
25304
|
+
/**
|
|
25305
|
+
* Always `text`. A text block.
|
|
25306
|
+
*/
|
|
25307
|
+
type: 'text';
|
|
25308
|
+
/**
|
|
25309
|
+
* Text of the block.
|
|
25310
|
+
*/
|
|
25311
|
+
text: string;
|
|
25312
|
+
}>;
|
|
25313
|
+
} | {
|
|
25314
|
+
/**
|
|
25315
|
+
* Text of the block.
|
|
25316
|
+
*/
|
|
25317
|
+
id: string;
|
|
25318
|
+
/**
|
|
25319
|
+
* Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
|
|
25320
|
+
*/
|
|
25321
|
+
type: 'system.notification_recorded';
|
|
25322
|
+
/**
|
|
25323
|
+
* RFC 3339 time at which the server processed the event; null while a queued input has not started running.
|
|
25324
|
+
*/
|
|
25325
|
+
processed_at: string;
|
|
25326
|
+
/**
|
|
25327
|
+
* Text of the block.
|
|
25328
|
+
*/
|
|
25329
|
+
session_thread_id?: string;
|
|
25330
|
+
/**
|
|
25331
|
+
* The pending system inputs that were recorded without a run.
|
|
25332
|
+
*/
|
|
25333
|
+
system_input_ids: Array<string>;
|
|
25334
|
+
/**
|
|
25335
|
+
* The distinct source kinds of those inputs.
|
|
25336
|
+
*/
|
|
25337
|
+
source_kinds: Array<string>;
|
|
25073
25338
|
} | {
|
|
25074
25339
|
/**
|
|
25075
25340
|
* Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
|
|
@@ -35490,6 +35755,19 @@ export type MediaElementUse = {
|
|
|
35490
35755
|
*/
|
|
35491
35756
|
material_type: MediaElementType;
|
|
35492
35757
|
};
|
|
35758
|
+
/**
|
|
35759
|
+
* How two recordings line up, answered by a completed align job’s result.
|
|
35760
|
+
*/
|
|
35761
|
+
export type MediaAlignResult = {
|
|
35762
|
+
/**
|
|
35763
|
+
* How many seconds later the reference asset starts, relative to the source asset the route named; positive means the reference comes later, so a caller holding both recordings knows which one to slide. It is the negation of the model’s own lag, decided once in the domain.
|
|
35764
|
+
*/
|
|
35765
|
+
offset_seconds: number;
|
|
35766
|
+
/**
|
|
35767
|
+
* How sure the alignment is, from 0 to 1; a low value means the two recordings share little to correlate.
|
|
35768
|
+
*/
|
|
35769
|
+
confidence: number;
|
|
35770
|
+
};
|
|
35493
35771
|
/**
|
|
35494
35772
|
* A recorded library event with a monotonically increasing sequence within that library.
|
|
35495
35773
|
*/
|
|
@@ -36005,6 +36283,62 @@ export type SandboxTemplateBuild = {
|
|
|
36005
36283
|
diskSizeMB?: SandboxDiskSizeMb;
|
|
36006
36284
|
envdVersion?: SandboxEnvdVersion;
|
|
36007
36285
|
};
|
|
36286
|
+
/**
|
|
36287
|
+
* The object a share exposes, named by a type and an id.
|
|
36288
|
+
*/
|
|
36289
|
+
export type ShareShareResource = {
|
|
36290
|
+
/**
|
|
36291
|
+
* What kind of object is shared; file is the only type that creates today.
|
|
36292
|
+
*/
|
|
36293
|
+
type: 'file' | 'artifact';
|
|
36294
|
+
/**
|
|
36295
|
+
* Id of the object within its type, for a file the id from the File API.
|
|
36296
|
+
*/
|
|
36297
|
+
id: string;
|
|
36298
|
+
};
|
|
36299
|
+
/**
|
|
36300
|
+
* The link a share hands out.
|
|
36301
|
+
*/
|
|
36302
|
+
export type ShareSharePermissionLink = {
|
|
36303
|
+
/**
|
|
36304
|
+
* What the link allows; view, which is read-only, is the only type.
|
|
36305
|
+
*/
|
|
36306
|
+
type: 'view';
|
|
36307
|
+
/**
|
|
36308
|
+
* Who can open the link; anonymous, meaning anyone holding it, is the only scope.
|
|
36309
|
+
*/
|
|
36310
|
+
scope: 'anonymous';
|
|
36311
|
+
/**
|
|
36312
|
+
* Whether the link asks viewers not to download; a limit, not a guarantee.
|
|
36313
|
+
*/
|
|
36314
|
+
prevents_download: boolean;
|
|
36315
|
+
/**
|
|
36316
|
+
* The link address to give to people; present only in the creation response, since the service stores a hash of it and cannot show it again.
|
|
36317
|
+
*/
|
|
36318
|
+
web_url?: string;
|
|
36319
|
+
};
|
|
36320
|
+
/**
|
|
36321
|
+
* The error envelope of every non-2xx response on this face.
|
|
36322
|
+
*/
|
|
36323
|
+
export type ShareShareError = {
|
|
36324
|
+
/**
|
|
36325
|
+
* Failure details; choose a recovery action from the operation's status and code descriptions.
|
|
36326
|
+
*/
|
|
36327
|
+
error: {
|
|
36328
|
+
/**
|
|
36329
|
+
* Machine-readable failure category such as INVALID_PARAMS or PERMISSION_NOT_FOUND; see the operation's error responses for what triggers each.
|
|
36330
|
+
*/
|
|
36331
|
+
code: string;
|
|
36332
|
+
/**
|
|
36333
|
+
* Human-readable reason; it names the offending field or condition and the action to take.
|
|
36334
|
+
*/
|
|
36335
|
+
message: string;
|
|
36336
|
+
/**
|
|
36337
|
+
* The request field or query parameter that caused the failure, or null when the failure concerns the request as a whole.
|
|
36338
|
+
*/
|
|
36339
|
+
param?: string | null;
|
|
36340
|
+
};
|
|
36341
|
+
};
|
|
36008
36342
|
/**
|
|
36009
36343
|
* One genre as configuration: the names the seven layers take for this kind of writing, the properties a draft carries, and the checks the software can decide.
|
|
36010
36344
|
*/
|
|
@@ -45647,6 +45981,10 @@ export type SandboxTemplateId = string;
|
|
|
45647
45981
|
* Build identifier returned by templates.create. It must belong to the selected template in your organization.
|
|
45648
45982
|
*/
|
|
45649
45983
|
export type SandboxBuildId = string;
|
|
45984
|
+
/**
|
|
45985
|
+
* Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
|
|
45986
|
+
*/
|
|
45987
|
+
export type ShareShareId = string;
|
|
45650
45988
|
/**
|
|
45651
45989
|
* Genre key from the genre list, such as novel_long or xiaohongshu_note; pass the key exactly, never the display name.
|
|
45652
45990
|
*/
|
|
@@ -46965,6 +47303,86 @@ export type GetAgentConsolidationResponses = {
|
|
|
46965
47303
|
};
|
|
46966
47304
|
};
|
|
46967
47305
|
export type GetAgentConsolidationResponse = GetAgentConsolidationResponses[keyof GetAgentConsolidationResponses];
|
|
47306
|
+
export type ListAgentLettersData = {
|
|
47307
|
+
body?: never;
|
|
47308
|
+
path: {
|
|
47309
|
+
/**
|
|
47310
|
+
* The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
|
|
47311
|
+
*/
|
|
47312
|
+
agent_id: string;
|
|
47313
|
+
};
|
|
47314
|
+
query?: {
|
|
47315
|
+
/**
|
|
47316
|
+
* Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else.
|
|
47317
|
+
*/
|
|
47318
|
+
unread?: true;
|
|
47319
|
+
/**
|
|
47320
|
+
* How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter.
|
|
47321
|
+
*/
|
|
47322
|
+
limit?: number;
|
|
47323
|
+
};
|
|
47324
|
+
url: '/agent/v1/agents/{agent_id}/letters';
|
|
47325
|
+
};
|
|
47326
|
+
export type ListAgentLettersErrors = {
|
|
47327
|
+
/**
|
|
47328
|
+
* INVALID_PARAMS: limit is outside 1 to 50 or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not an assume agent, which is woken for mail by itself.
|
|
47329
|
+
*/
|
|
47330
|
+
400: unknown;
|
|
47331
|
+
/**
|
|
47332
|
+
* Authenticate with your organization API key or a console session.
|
|
47333
|
+
*/
|
|
47334
|
+
401: unknown;
|
|
47335
|
+
/**
|
|
47336
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
47337
|
+
*/
|
|
47338
|
+
403: AgentError;
|
|
47339
|
+
/**
|
|
47340
|
+
* AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
|
|
47341
|
+
*/
|
|
47342
|
+
404: unknown;
|
|
47343
|
+
/**
|
|
47344
|
+
* UPSTREAM_UNAVAILABLE: the letters could not be read right now; retry later.
|
|
47345
|
+
*/
|
|
47346
|
+
502: unknown;
|
|
47347
|
+
};
|
|
47348
|
+
export type ListAgentLettersError = ListAgentLettersErrors[keyof ListAgentLettersErrors];
|
|
47349
|
+
export type ListAgentLettersResponses = {
|
|
47350
|
+
/**
|
|
47351
|
+
* The waiting mail: the full unread count and the newest unread letters. Nothing was marked read.
|
|
47352
|
+
*/
|
|
47353
|
+
200: {
|
|
47354
|
+
/**
|
|
47355
|
+
* How many delivered letters the agent has not read yet; can exceed the number of letters returned.
|
|
47356
|
+
*/
|
|
47357
|
+
unread: number;
|
|
47358
|
+
/**
|
|
47359
|
+
* The newest unread letters, at most limit, newest first; empty when nothing waits.
|
|
47360
|
+
*/
|
|
47361
|
+
letters: Array<{
|
|
47362
|
+
/**
|
|
47363
|
+
* Letter id (ltr_…); the same id the agent's inbox tool shows when it reads the letter, so a notice can name exactly which letters it announced.
|
|
47364
|
+
*/
|
|
47365
|
+
id: string;
|
|
47366
|
+
/**
|
|
47367
|
+
* Sender address: human:<user id> for a person or agent:agent_<x> for an agent; a ticket mention carries the address of whoever mentioned the agent.
|
|
47368
|
+
*/
|
|
47369
|
+
sender: string;
|
|
47370
|
+
/**
|
|
47371
|
+
* The sender's one-line summary of the letter; the body is not returned here and is read with the agent's inbox tool.
|
|
47372
|
+
*/
|
|
47373
|
+
summary: string;
|
|
47374
|
+
/**
|
|
47375
|
+
* Thread the letter belongs to, such as ticket:<repository>:<number> for a ticket mention; null when the sender named none.
|
|
47376
|
+
*/
|
|
47377
|
+
thread: string | null;
|
|
47378
|
+
/**
|
|
47379
|
+
* When the letter was written, RFC 3339; letters are ordered newest first.
|
|
47380
|
+
*/
|
|
47381
|
+
create_time: string;
|
|
47382
|
+
}>;
|
|
47383
|
+
};
|
|
47384
|
+
};
|
|
47385
|
+
export type ListAgentLettersResponse = ListAgentLettersResponses[keyof ListAgentLettersResponses];
|
|
46968
47386
|
export type ApplyAgentVersionData = {
|
|
46969
47387
|
body?: never;
|
|
46970
47388
|
path: {
|
|
@@ -55715,6 +56133,89 @@ export type CreateSessionArtifactContentUrlResponses = {
|
|
|
55715
56133
|
};
|
|
55716
56134
|
};
|
|
55717
56135
|
export type CreateSessionArtifactContentUrlResponse = CreateSessionArtifactContentUrlResponses[keyof CreateSessionArtifactContentUrlResponses];
|
|
56136
|
+
export type ListSessionRequestsData = {
|
|
56137
|
+
body?: never;
|
|
56138
|
+
path: {
|
|
56139
|
+
/**
|
|
56140
|
+
* Session id from session creation or listing.
|
|
56141
|
+
*/
|
|
56142
|
+
session_id: string;
|
|
56143
|
+
};
|
|
56144
|
+
query?: never;
|
|
56145
|
+
url: '/agent/v1/sessions/{session_id}/requests';
|
|
56146
|
+
};
|
|
56147
|
+
export type ListSessionRequestsErrors = {
|
|
56148
|
+
/**
|
|
56149
|
+
* Unsupported query parameter.
|
|
56150
|
+
*/
|
|
56151
|
+
400: unknown;
|
|
56152
|
+
/**
|
|
56153
|
+
* Authenticate with an organization credential or a customer access token.
|
|
56154
|
+
*/
|
|
56155
|
+
401: unknown;
|
|
56156
|
+
/**
|
|
56157
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
56158
|
+
*/
|
|
56159
|
+
403: AgentError;
|
|
56160
|
+
/**
|
|
56161
|
+
* Session not found or not readable by this caller.
|
|
56162
|
+
*/
|
|
56163
|
+
404: unknown;
|
|
56164
|
+
/**
|
|
56165
|
+
* Agent service failed
|
|
56166
|
+
*/
|
|
56167
|
+
502: unknown;
|
|
56168
|
+
/**
|
|
56169
|
+
* Agent service unavailable
|
|
56170
|
+
*/
|
|
56171
|
+
503: unknown;
|
|
56172
|
+
};
|
|
56173
|
+
export type ListSessionRequestsError = ListSessionRequestsErrors[keyof ListSessionRequestsErrors];
|
|
56174
|
+
export type ListSessionRequestsResponses = {
|
|
56175
|
+
/**
|
|
56176
|
+
* The requests this session waits on
|
|
56177
|
+
*/
|
|
56178
|
+
200: {
|
|
56179
|
+
/**
|
|
56180
|
+
* The requests the session waits on, oldest first; empty when it waits on nothing.
|
|
56181
|
+
*/
|
|
56182
|
+
data: Array<{
|
|
56183
|
+
/**
|
|
56184
|
+
* The pending tool call's id (the tool_use id on the agent.tool_use event); answer it with a user.tool_confirmation event carrying this id as tool_use_id.
|
|
56185
|
+
*/
|
|
56186
|
+
id: string;
|
|
56187
|
+
/**
|
|
56188
|
+
* Object type, always request.
|
|
56189
|
+
*/
|
|
56190
|
+
object: 'request';
|
|
56191
|
+
/**
|
|
56192
|
+
* question when the agent asked through the ask_user_question tool and waits for an answer; approval when any other tool waits for permission.
|
|
56193
|
+
*/
|
|
56194
|
+
kind: 'question' | 'approval';
|
|
56195
|
+
/**
|
|
56196
|
+
* Always pending: answered, expired and superseded requests are not listed.
|
|
56197
|
+
*/
|
|
56198
|
+
status: 'pending';
|
|
56199
|
+
/**
|
|
56200
|
+
* The tool the agent called, such as ask_user_question or bash.
|
|
56201
|
+
*/
|
|
56202
|
+
tool_name: string;
|
|
56203
|
+
/**
|
|
56204
|
+
* The tool call's input exactly as the agent.tool_use event shows it: for a question the questions and their options, for an approval the tool's arguments.
|
|
56205
|
+
*/
|
|
56206
|
+
input: unknown;
|
|
56207
|
+
/**
|
|
56208
|
+
* When the call became pending, RFC 3339; the time of its agent.tool_use event.
|
|
56209
|
+
*/
|
|
56210
|
+
create_time: string;
|
|
56211
|
+
/**
|
|
56212
|
+
* When the request expires and counts as declined, RFC 3339; null when it does not expire, which is every session that runs a collaboration mode and every session while the requests-v1 release is off.
|
|
56213
|
+
*/
|
|
56214
|
+
expire_time: string | null;
|
|
56215
|
+
}>;
|
|
56216
|
+
};
|
|
56217
|
+
};
|
|
56218
|
+
export type ListSessionRequestsResponse = ListSessionRequestsResponses[keyof ListSessionRequestsResponses];
|
|
55718
56219
|
export type ListSessionBackgroundTasksData = {
|
|
55719
56220
|
body?: never;
|
|
55720
56221
|
path: {
|
|
@@ -58928,7 +59429,7 @@ export type ListModelsData = {
|
|
|
58928
59429
|
/**
|
|
58929
59430
|
* Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values.
|
|
58930
59431
|
*/
|
|
58931
|
-
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
|
|
59432
|
+
supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.media.process' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
|
|
58932
59433
|
/**
|
|
58933
59434
|
* Filter by one or more model types (comma-separated).
|
|
58934
59435
|
*/
|
|
@@ -92154,7 +92655,7 @@ export type DevopsUnitsPushErrors = {
|
|
|
92154
92655
|
*/
|
|
92155
92656
|
404: DevopsDevOpsError;
|
|
92156
92657
|
/**
|
|
92157
|
-
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
92658
|
+
* HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
|
|
92158
92659
|
*/
|
|
92159
92660
|
409: DevopsDevOpsError;
|
|
92160
92661
|
/**
|
|
@@ -96661,7 +97162,7 @@ export type MediaEditAssetData = {
|
|
|
96661
97162
|
};
|
|
96662
97163
|
export type MediaEditAssetErrors = {
|
|
96663
97164
|
/**
|
|
96664
|
-
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and a video
|
|
97165
|
+
* OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe and redact run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe and redact on a video). An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
|
|
96665
97166
|
*/
|
|
96666
97167
|
400: MediaMediaError;
|
|
96667
97168
|
/**
|
|
@@ -97449,6 +97950,101 @@ export type MediaGetGenerationCapabilitiesResponses = {
|
|
|
97449
97950
|
200: MediaGenerationCapabilities;
|
|
97450
97951
|
};
|
|
97451
97952
|
export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
|
|
97953
|
+
export type MediaAlignAssetData = {
|
|
97954
|
+
/**
|
|
97955
|
+
* Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
|
|
97956
|
+
*/
|
|
97957
|
+
body: {
|
|
97958
|
+
/**
|
|
97959
|
+
* Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
|
|
97960
|
+
*/
|
|
97961
|
+
reference_asset_id: string;
|
|
97962
|
+
/**
|
|
97963
|
+
* Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
|
|
97964
|
+
*/
|
|
97965
|
+
max_offset_seconds?: number;
|
|
97966
|
+
/**
|
|
97967
|
+
* Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
|
|
97968
|
+
*/
|
|
97969
|
+
idempotency_key?: string;
|
|
97970
|
+
};
|
|
97971
|
+
headers?: {
|
|
97972
|
+
/**
|
|
97973
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
97974
|
+
*/
|
|
97975
|
+
'Idempotency-Key'?: string;
|
|
97976
|
+
};
|
|
97977
|
+
path: {
|
|
97978
|
+
/**
|
|
97979
|
+
* Library ID returned by creation.
|
|
97980
|
+
*/
|
|
97981
|
+
library_id: string;
|
|
97982
|
+
/**
|
|
97983
|
+
* 32-character asset ID.
|
|
97984
|
+
*/
|
|
97985
|
+
asset_id: string;
|
|
97986
|
+
};
|
|
97987
|
+
query?: never;
|
|
97988
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
|
|
97989
|
+
};
|
|
97990
|
+
export type MediaAlignAssetErrors = {
|
|
97991
|
+
/**
|
|
97992
|
+
* REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
|
|
97993
|
+
*/
|
|
97994
|
+
400: MediaMediaError;
|
|
97995
|
+
/**
|
|
97996
|
+
* INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
|
|
97997
|
+
*/
|
|
97998
|
+
402: MediaMediaError;
|
|
97999
|
+
/**
|
|
98000
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
98001
|
+
*/
|
|
98002
|
+
403: MediaMediaError;
|
|
98003
|
+
/**
|
|
98004
|
+
* ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
|
|
98005
|
+
*/
|
|
98006
|
+
404: MediaMediaError;
|
|
98007
|
+
/**
|
|
98008
|
+
* MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
|
|
98009
|
+
*/
|
|
98010
|
+
409: MediaMediaError;
|
|
98011
|
+
/**
|
|
98012
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
98013
|
+
*/
|
|
98014
|
+
413: MediaMediaError;
|
|
98015
|
+
/**
|
|
98016
|
+
* This media format is unsupported; provide a supported format.
|
|
98017
|
+
*/
|
|
98018
|
+
415: MediaMediaError;
|
|
98019
|
+
/**
|
|
98020
|
+
* CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
|
|
98021
|
+
*/
|
|
98022
|
+
422: MediaMediaError;
|
|
98023
|
+
/**
|
|
98024
|
+
* RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
|
|
98025
|
+
*/
|
|
98026
|
+
429: MediaMediaError;
|
|
98027
|
+
/**
|
|
98028
|
+
* The requested operation is unsupported; choose a supported method.
|
|
98029
|
+
*/
|
|
98030
|
+
501: MediaMediaError;
|
|
98031
|
+
/**
|
|
98032
|
+
* Request failed; see the error code reference.
|
|
98033
|
+
*/
|
|
98034
|
+
502: MediaMediaError;
|
|
98035
|
+
/**
|
|
98036
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
98037
|
+
*/
|
|
98038
|
+
503: MediaMediaError;
|
|
98039
|
+
};
|
|
98040
|
+
export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
|
|
98041
|
+
export type MediaAlignAssetResponses = {
|
|
98042
|
+
/**
|
|
98043
|
+
* The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
|
|
98044
|
+
*/
|
|
98045
|
+
202: MediaJob;
|
|
98046
|
+
};
|
|
98047
|
+
export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
|
|
97452
98048
|
export type OntologyListTypesData = {
|
|
97453
98049
|
body?: never;
|
|
97454
98050
|
path?: never;
|
|
@@ -100125,6 +100721,176 @@ export type SearchMapResponses = {
|
|
|
100125
100721
|
};
|
|
100126
100722
|
};
|
|
100127
100723
|
export type SearchMapResponse = SearchMapResponses[keyof SearchMapResponses];
|
|
100724
|
+
export type ShareListPermissionsData = {
|
|
100725
|
+
body?: never;
|
|
100726
|
+
path?: never;
|
|
100727
|
+
query?: {
|
|
100728
|
+
/**
|
|
100729
|
+
* Only shares of this object type; file is the only type that creates today.
|
|
100730
|
+
*/
|
|
100731
|
+
resource_type?: 'file' | 'artifact';
|
|
100732
|
+
/**
|
|
100733
|
+
* Only shares of the object with this id, for example a file id from the File API; combine with resource_type.
|
|
100734
|
+
*/
|
|
100735
|
+
resource_id?: string;
|
|
100736
|
+
/**
|
|
100737
|
+
* Only shares in this state; omit to list every state.
|
|
100738
|
+
*/
|
|
100739
|
+
status?: 'active' | 'expired' | 'revoked';
|
|
100740
|
+
/**
|
|
100741
|
+
* Maximum shares in one page, from 1 to 100; defaults to 50.
|
|
100742
|
+
*/
|
|
100743
|
+
page_size?: number;
|
|
100744
|
+
/**
|
|
100745
|
+
* Opaque next_page_token from the preceding page with the same filters; omit on the first request.
|
|
100746
|
+
*/
|
|
100747
|
+
page_token?: string;
|
|
100748
|
+
};
|
|
100749
|
+
url: '/share/v1/permissions';
|
|
100750
|
+
};
|
|
100751
|
+
export type ShareListPermissionsErrors = {
|
|
100752
|
+
/**
|
|
100753
|
+
* INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
|
|
100754
|
+
*/
|
|
100755
|
+
400: ShareShareError;
|
|
100756
|
+
/**
|
|
100757
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
100758
|
+
*/
|
|
100759
|
+
401: ShareShareError;
|
|
100760
|
+
/**
|
|
100761
|
+
* PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
|
|
100762
|
+
*/
|
|
100763
|
+
403: ShareShareError;
|
|
100764
|
+
/**
|
|
100765
|
+
* RESOURCE_NOT_FOUND means the object to share does not exist in this organization, or the credential is not bound to it; read the file id from the File API and retry.
|
|
100766
|
+
*/
|
|
100767
|
+
404: ShareShareError;
|
|
100768
|
+
/**
|
|
100769
|
+
* INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
|
|
100770
|
+
*/
|
|
100771
|
+
500: ShareShareError;
|
|
100772
|
+
};
|
|
100773
|
+
export type ShareListPermissionsError = ShareListPermissionsErrors[keyof ShareListPermissionsErrors];
|
|
100774
|
+
export type ShareListPermissionsResponses = {
|
|
100775
|
+
/**
|
|
100776
|
+
* One page of shares, newest first.
|
|
100777
|
+
*/
|
|
100778
|
+
200: ShareSharePermissionPage;
|
|
100779
|
+
};
|
|
100780
|
+
export type ShareListPermissionsResponse = ShareListPermissionsResponses[keyof ShareListPermissionsResponses];
|
|
100781
|
+
export type ShareCreatePermissionData = {
|
|
100782
|
+
/**
|
|
100783
|
+
* The object to share and the limits of the link.
|
|
100784
|
+
*/
|
|
100785
|
+
body: ShareCreateShareInput;
|
|
100786
|
+
path?: never;
|
|
100787
|
+
query?: never;
|
|
100788
|
+
url: '/share/v1/permissions';
|
|
100789
|
+
};
|
|
100790
|
+
export type ShareCreatePermissionErrors = {
|
|
100791
|
+
/**
|
|
100792
|
+
* INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
|
|
100793
|
+
*/
|
|
100794
|
+
400: ShareShareError;
|
|
100795
|
+
/**
|
|
100796
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
100797
|
+
*/
|
|
100798
|
+
401: ShareShareError;
|
|
100799
|
+
/**
|
|
100800
|
+
* PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
|
|
100801
|
+
*/
|
|
100802
|
+
403: ShareShareError;
|
|
100803
|
+
/**
|
|
100804
|
+
* RESOURCE_NOT_FOUND means the object to share does not exist in this organization, or the credential is not bound to it; read the file id from the File API and retry.
|
|
100805
|
+
*/
|
|
100806
|
+
404: ShareShareError;
|
|
100807
|
+
/**
|
|
100808
|
+
* INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
|
|
100809
|
+
*/
|
|
100810
|
+
500: ShareShareError;
|
|
100811
|
+
};
|
|
100812
|
+
export type ShareCreatePermissionError = ShareCreatePermissionErrors[keyof ShareCreatePermissionErrors];
|
|
100813
|
+
export type ShareCreatePermissionResponses = {
|
|
100814
|
+
/**
|
|
100815
|
+
* The new share, including link.web_url, which is returned only in this response.
|
|
100816
|
+
*/
|
|
100817
|
+
201: ShareSharePermission;
|
|
100818
|
+
};
|
|
100819
|
+
export type ShareCreatePermissionResponse = ShareCreatePermissionResponses[keyof ShareCreatePermissionResponses];
|
|
100820
|
+
export type ShareDeletePermissionData = {
|
|
100821
|
+
body?: never;
|
|
100822
|
+
path: {
|
|
100823
|
+
/**
|
|
100824
|
+
* Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
|
|
100825
|
+
*/
|
|
100826
|
+
id: string;
|
|
100827
|
+
};
|
|
100828
|
+
query?: never;
|
|
100829
|
+
url: '/share/v1/permissions/{id}';
|
|
100830
|
+
};
|
|
100831
|
+
export type ShareDeletePermissionErrors = {
|
|
100832
|
+
/**
|
|
100833
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
100834
|
+
*/
|
|
100835
|
+
401: ShareShareError;
|
|
100836
|
+
/**
|
|
100837
|
+
* PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
|
|
100838
|
+
*/
|
|
100839
|
+
403: ShareShareError;
|
|
100840
|
+
/**
|
|
100841
|
+
* PERMISSION_NOT_FOUND means the share does not exist in this organization, or the credential is not bound to its file; list shares to find an id you can reach.
|
|
100842
|
+
*/
|
|
100843
|
+
404: ShareShareError;
|
|
100844
|
+
/**
|
|
100845
|
+
* INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
|
|
100846
|
+
*/
|
|
100847
|
+
500: ShareShareError;
|
|
100848
|
+
};
|
|
100849
|
+
export type ShareDeletePermissionError = ShareDeletePermissionErrors[keyof ShareDeletePermissionErrors];
|
|
100850
|
+
export type ShareDeletePermissionResponses = {
|
|
100851
|
+
/**
|
|
100852
|
+
* The share is revoked; there is no body.
|
|
100853
|
+
*/
|
|
100854
|
+
204: void;
|
|
100855
|
+
};
|
|
100856
|
+
export type ShareDeletePermissionResponse = ShareDeletePermissionResponses[keyof ShareDeletePermissionResponses];
|
|
100857
|
+
export type ShareRetrievePermissionData = {
|
|
100858
|
+
body?: never;
|
|
100859
|
+
path: {
|
|
100860
|
+
/**
|
|
100861
|
+
* Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
|
|
100862
|
+
*/
|
|
100863
|
+
id: string;
|
|
100864
|
+
};
|
|
100865
|
+
query?: never;
|
|
100866
|
+
url: '/share/v1/permissions/{id}';
|
|
100867
|
+
};
|
|
100868
|
+
export type ShareRetrievePermissionErrors = {
|
|
100869
|
+
/**
|
|
100870
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
100871
|
+
*/
|
|
100872
|
+
401: ShareShareError;
|
|
100873
|
+
/**
|
|
100874
|
+
* PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
|
|
100875
|
+
*/
|
|
100876
|
+
403: ShareShareError;
|
|
100877
|
+
/**
|
|
100878
|
+
* PERMISSION_NOT_FOUND means the share does not exist in this organization, or the credential is not bound to its file; list shares to find an id you can reach.
|
|
100879
|
+
*/
|
|
100880
|
+
404: ShareShareError;
|
|
100881
|
+
/**
|
|
100882
|
+
* INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
|
|
100883
|
+
*/
|
|
100884
|
+
500: ShareShareError;
|
|
100885
|
+
};
|
|
100886
|
+
export type ShareRetrievePermissionError = ShareRetrievePermissionErrors[keyof ShareRetrievePermissionErrors];
|
|
100887
|
+
export type ShareRetrievePermissionResponses = {
|
|
100888
|
+
/**
|
|
100889
|
+
* The share, without link.web_url.
|
|
100890
|
+
*/
|
|
100891
|
+
200: ShareSharePermission;
|
|
100892
|
+
};
|
|
100893
|
+
export type ShareRetrievePermissionResponse = ShareRetrievePermissionResponses[keyof ShareRetrievePermissionResponses];
|
|
100128
100894
|
export type StudioGenresListData = {
|
|
100129
100895
|
body?: never;
|
|
100130
100896
|
path?: never;
|