@deepraxis/sdk 0.2.0-dev.af2cf98 → 0.2.0-dev.ed8a023
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 +2 -1
- package/dist/core/retry.js +2 -0
- package/dist/core/transport.js +15 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +10 -4
- package/dist/generated/sdk.gen.js +21 -3
- package/dist/generated/types.gen.d.ts +286 -34
- package/dist/operations.generated.js +21 -3
- package/dist/resources.generated.d.ts +47 -0
- package/dist/resources.generated.js +1 -0
- package/package.json +1 -1
|
@@ -18886,7 +18886,7 @@ export const operations = [
|
|
|
18886
18886
|
"resource": "file.uploads",
|
|
18887
18887
|
"method": "createSigned",
|
|
18888
18888
|
"summary": "Create a one-time upload URL",
|
|
18889
|
-
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns
|
|
18889
|
+
"description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
|
|
18890
18890
|
"http": "POST",
|
|
18891
18891
|
"path": "/file/v1/uploads/signed",
|
|
18892
18892
|
"streaming": "no",
|
|
@@ -22558,7 +22558,7 @@ export const operations = [
|
|
|
22558
22558
|
"resource": "media.streams.outputs",
|
|
22559
22559
|
"method": "list",
|
|
22560
22560
|
"summary": "List a stream's re-broadcast targets",
|
|
22561
|
-
"description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the
|
|
22561
|
+
"description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the reason of one that is errored or trying again. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
|
|
22562
22562
|
"http": "GET",
|
|
22563
22563
|
"path": "/media/v1/streams/{stream_id}/outputs",
|
|
22564
22564
|
"streaming": "no",
|
|
@@ -22634,7 +22634,7 @@ export const operations = [
|
|
|
22634
22634
|
"resource": "media.streams.outputs",
|
|
22635
22635
|
"method": "retrieve",
|
|
22636
22636
|
"summary": "Read one re-broadcast target",
|
|
22637
|
-
"description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
|
|
22637
|
+
"description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored or trying again, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
|
|
22638
22638
|
"http": "GET",
|
|
22639
22639
|
"path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
|
|
22640
22640
|
"streaming": "no",
|
|
@@ -26220,6 +26220,24 @@ export const operations = [
|
|
|
26220
26220
|
}
|
|
26221
26221
|
]
|
|
26222
26222
|
},
|
|
26223
|
+
{
|
|
26224
|
+
"resource": "organization.notifications.letters",
|
|
26225
|
+
"method": "retrieve",
|
|
26226
|
+
"summary": "Open one of your letters by its id",
|
|
26227
|
+
"description": "One letter from your own mailbox in this organization, by id, as the notification center lists it: the same row the letters list gives, the same fields, the same copy written for you — and the organization the letter belongs to beside them. A link that arrives carrying an org can therefore check the letter's own organization instead of trusting the link. The mailbox is the credential's own, and the request names only the letter. A letter that is not in your mailbox in this organization, is still scheduled, or does not exist answers 404 the same way, without saying which. Nothing is marked read; use the :read action for that. Read-only; no usage charge.",
|
|
26228
|
+
"http": "GET",
|
|
26229
|
+
"path": "/organization/v1/notifications/letters/{id}",
|
|
26230
|
+
"streaming": "no",
|
|
26231
|
+
"pagination": false,
|
|
26232
|
+
"pathParams": [
|
|
26233
|
+
{
|
|
26234
|
+
"name": "id",
|
|
26235
|
+
"sdkName": "id",
|
|
26236
|
+
"description": "The letter's id, from the letters list."
|
|
26237
|
+
}
|
|
26238
|
+
],
|
|
26239
|
+
"query": []
|
|
26240
|
+
},
|
|
26223
26241
|
{
|
|
26224
26242
|
"resource": "organization.notifications.letters",
|
|
26225
26243
|
"method": "archive",
|
|
@@ -833,6 +833,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
833
833
|
reason?: "project_removed";
|
|
834
834
|
message_id?: string;
|
|
835
835
|
session_thread_id?: string | null;
|
|
836
|
+
} | {
|
|
837
|
+
id: string;
|
|
838
|
+
type: "session.status_preparing";
|
|
839
|
+
processed_at: string;
|
|
840
|
+
stage: "launching" | "loading" | "ready";
|
|
841
|
+
message_id?: string;
|
|
842
|
+
session_thread_id?: string | null;
|
|
836
843
|
}>;
|
|
837
844
|
next_page: string | null;
|
|
838
845
|
}>;
|
|
@@ -4080,6 +4087,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
4080
4087
|
reason?: "project_removed";
|
|
4081
4088
|
message_id?: string;
|
|
4082
4089
|
session_thread_id?: string | null;
|
|
4090
|
+
} | {
|
|
4091
|
+
id: string;
|
|
4092
|
+
type: "session.status_preparing";
|
|
4093
|
+
processed_at: string;
|
|
4094
|
+
stage: "launching" | "loading" | "ready";
|
|
4095
|
+
message_id?: string;
|
|
4096
|
+
session_thread_id?: string | null;
|
|
4083
4097
|
}>;
|
|
4084
4098
|
next_page: string | null;
|
|
4085
4099
|
}>;
|
|
@@ -5810,6 +5824,13 @@ export declare function createAgent(transport: Transport): {
|
|
|
5810
5824
|
reason?: "project_removed";
|
|
5811
5825
|
message_id?: string;
|
|
5812
5826
|
session_thread_id?: string | null;
|
|
5827
|
+
} | {
|
|
5828
|
+
id: string;
|
|
5829
|
+
type: "session.status_preparing";
|
|
5830
|
+
processed_at: string;
|
|
5831
|
+
stage: "launching" | "loading" | "ready";
|
|
5832
|
+
message_id?: string;
|
|
5833
|
+
session_thread_id?: string | null;
|
|
5813
5834
|
}>;
|
|
5814
5835
|
next_page: string | null;
|
|
5815
5836
|
}>;
|
|
@@ -7986,6 +8007,11 @@ export declare function createOrganization(transport: Transport): {
|
|
|
7986
8007
|
createTime: string;
|
|
7987
8008
|
reason: string;
|
|
7988
8009
|
archived: boolean;
|
|
8010
|
+
organization: {
|
|
8011
|
+
id: string;
|
|
8012
|
+
slug: string;
|
|
8013
|
+
name: string;
|
|
8014
|
+
};
|
|
7989
8015
|
}>;
|
|
7990
8016
|
nextCursor: string;
|
|
7991
8017
|
unread: number;
|
|
@@ -7996,6 +8022,27 @@ export declare function createOrganization(transport: Transport): {
|
|
|
7996
8022
|
readAll: (options?: import("./core/transport.js").CallOptions<Types.ReadAllOrganizationNotificationLettersData> | undefined) => Promise<{
|
|
7997
8023
|
unread: number;
|
|
7998
8024
|
}>;
|
|
8025
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationNotificationLetterData>) => Promise<{
|
|
8026
|
+
id: string;
|
|
8027
|
+
sender: string;
|
|
8028
|
+
summary: string;
|
|
8029
|
+
body: string;
|
|
8030
|
+
thread: string;
|
|
8031
|
+
kind: "notice" | "mention" | "decision";
|
|
8032
|
+
source: {
|
|
8033
|
+
[key: string]: unknown;
|
|
8034
|
+
};
|
|
8035
|
+
read: boolean;
|
|
8036
|
+
deliveredAt: string;
|
|
8037
|
+
createTime: string;
|
|
8038
|
+
reason: string;
|
|
8039
|
+
archived: boolean;
|
|
8040
|
+
organization: {
|
|
8041
|
+
id: string;
|
|
8042
|
+
slug: string;
|
|
8043
|
+
name: string;
|
|
8044
|
+
};
|
|
8045
|
+
}>;
|
|
7999
8046
|
};
|
|
8000
8047
|
organizationDefault: {
|
|
8001
8048
|
create: (options: import("./core/transport.js").CallOptions<Types.UpdateOrganizationNotificationDefaultsData>) => Promise<{
|
|
@@ -1468,6 +1468,7 @@ export function createOrganization(transport) {
|
|
|
1468
1468
|
list: bind(transport, sdk.listOrganizationNotificationLetters),
|
|
1469
1469
|
read: bind(transport, sdk.readOrganizationNotificationLetter),
|
|
1470
1470
|
readAll: bind(transport, sdk.readAllOrganizationNotificationLetters),
|
|
1471
|
+
retrieve: bind(transport, sdk.getOrganizationNotificationLetter),
|
|
1471
1472
|
},
|
|
1472
1473
|
organizationDefault: {
|
|
1473
1474
|
create: bind(transport, sdk.updateOrganizationNotificationDefaults),
|