@deepraxis/sdk 0.2.0-dev.837a8c3 → 0.2.0-dev.855f099

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.
@@ -5380,7 +5380,7 @@ export const operations = [
5380
5380
  "trigger"
5381
5381
  ],
5382
5382
  "required": false,
5383
- "description": "Root initiator type: user, api_key, agent or trigger, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
5383
+ "description": "Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
5384
5384
  },
5385
5385
  {
5386
5386
  "name": "initiator",
@@ -7831,7 +7831,7 @@ export const operations = [
7831
7831
  "resource": "browser.connect",
7832
7832
  "method": "retrieve",
7833
7833
  "summary": "连接云端浏览器",
7834
- "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7834
+ "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl(两者都是该会话在 Console 的会话页)。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7835
7835
  "http": "GET",
7836
7836
  "path": "/browser/v1/connect",
7837
7837
  "streaming": "no",
@@ -8047,7 +8047,7 @@ export const operations = [
8047
8047
  "resource": "browser.live",
8048
8048
  "method": "retrieve",
8049
8049
  "summary": "打开实时浏览器画面",
8050
- "description": "使用 debug 返回的完整实时观看地址打开浏览器画面,成功后跳转到对应会话或标签页。必须保留地址中的 t 凭证,无需额外 API Key;链接失效时重新调用 debug 获取地址。",
8050
+ "description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
8051
8051
  "http": "GET",
8052
8052
  "path": "/browser/v1/live/{sessionId}/{pageId}",
8053
8053
  "streaming": "no",
@@ -8145,7 +8145,7 @@ export const operations = [
8145
8145
  "resource": "browser.sessions",
8146
8146
  "method": "create",
8147
8147
  "summary": "创建浏览器会话",
8148
- "description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8148
+ "description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。请求体里不认识的字段返回 400 INVALID_PARAMS 并写明字段名,不会被静默忽略;登录态写在 browserSettings.context({ id, persist }),写在顶层会被拒绝。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8149
8149
  "http": "POST",
8150
8150
  "path": "/browser/v1/sessions",
8151
8151
  "streaming": "no",
@@ -8295,7 +8295,7 @@ export const operations = [
8295
8295
  "resource": "browser.sessions.actions",
8296
8296
  "method": "create",
8297
8297
  "summary": "执行页面动作",
8298
- "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8298
+ "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;网络层用 route、unroute、routes 拦截请求(对标 Playwright 的 context.route 与 CDP Fetch 域):规则挂在会话上,open、reload、新开标签页之后仍然有效,会话结束时清除,多条规则都匹配时后注册的优先;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8299
8299
  "http": "POST",
8300
8300
  "path": "/browser/v1/sessions/{sessionId}/actions",
8301
8301
  "streaming": "no",
@@ -21180,6 +21180,42 @@ export const operations = [
21180
21180
  ],
21181
21181
  "query": []
21182
21182
  },
21183
+ {
21184
+ "resource": "media.libraries.assets.works",
21185
+ "method": "list",
21186
+ "summary": "List works using an asset",
21187
+ "description": "List the works whose body names one asset, as work summaries, most recently changed first. Check it before deleting an asset: the delete is never blocked, and those works would then show the asset as missing.",
21188
+ "http": "GET",
21189
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
21190
+ "streaming": "no",
21191
+ "pagination": true,
21192
+ "pathParams": [
21193
+ {
21194
+ "name": "library_id",
21195
+ "sdkName": "library_id",
21196
+ "description": "Library ID returned by creation."
21197
+ },
21198
+ {
21199
+ "name": "asset_id",
21200
+ "sdkName": "asset_id",
21201
+ "description": "32-character asset ID."
21202
+ }
21203
+ ],
21204
+ "query": [
21205
+ {
21206
+ "name": "limit",
21207
+ "type": "integer",
21208
+ "required": false,
21209
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
21210
+ },
21211
+ {
21212
+ "name": "cursor",
21213
+ "type": "string",
21214
+ "required": false,
21215
+ "description": "Cursor from the previous next_cursor."
21216
+ }
21217
+ ]
21218
+ },
21183
21219
  {
21184
21220
  "resource": "media.libraries.assets",
21185
21221
  "method": "batch",
@@ -22449,6 +22485,215 @@ export const operations = [
22449
22485
  ]
22450
22486
  }
22451
22487
  },
22488
+ {
22489
+ "resource": "media.libraries.works",
22490
+ "method": "list",
22491
+ "summary": "List works",
22492
+ "description": "List the works of a library as summaries, most recently changed first: id, kind, title, series, cover_url, item_count, missing_count and updated_at. Filter with kind and series (for example all platform versions of one story), match the title with q, and continue with next_cursor.",
22493
+ "http": "GET",
22494
+ "path": "/media/v1/libraries/{library_id}/works",
22495
+ "streaming": "no",
22496
+ "pagination": true,
22497
+ "pathParams": [
22498
+ {
22499
+ "name": "library_id",
22500
+ "sdkName": "library_id",
22501
+ "description": "Library ID returned by creation."
22502
+ }
22503
+ ],
22504
+ "query": [
22505
+ {
22506
+ "name": "kind",
22507
+ "type": "string",
22508
+ "enum": [
22509
+ "gallery",
22510
+ "article",
22511
+ "product_listing",
22512
+ "blocks"
22513
+ ],
22514
+ "required": false,
22515
+ "description": "Only works of this kind: gallery, article, product_listing or blocks."
22516
+ },
22517
+ {
22518
+ "name": "series",
22519
+ "type": "string",
22520
+ "required": false,
22521
+ "description": "Only works of this series."
22522
+ },
22523
+ {
22524
+ "name": "q",
22525
+ "type": "string",
22526
+ "required": false,
22527
+ "description": "Only works whose title contains this text, at most 100 characters."
22528
+ },
22529
+ {
22530
+ "name": "limit",
22531
+ "type": "integer",
22532
+ "required": false,
22533
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
22534
+ },
22535
+ {
22536
+ "name": "cursor",
22537
+ "type": "string",
22538
+ "required": false,
22539
+ "description": "Cursor from the previous next_cursor."
22540
+ }
22541
+ ]
22542
+ },
22543
+ {
22544
+ "resource": "media.libraries.works",
22545
+ "method": "create",
22546
+ "summary": "Create work",
22547
+ "description": "Create a work in a library: a gallery (图文), an article (长文), a product listing (商品图组) or a general work (blocks, 通用作品, Editor.js saved data whose image blocks name library assets in data.asset_id) that orders references to assets of this same library and adds a title and text. Upload or generate the pictures first, then send kind and body. In an article an inline image is written ![alt](asset:<asset_id>) where it should appear. Every asset the body names must be a live image or sticker of this library (a gallery item may also be a video), or the request is refused naming every bad reference and nothing is saved. Price, stock and other unknown fields are refused. Several platform versions of one story are several works with the same series. A work copies no file and changes no asset; creating one is free. Answers 201 with the work. Example: POST /media/v1/libraries/default/works with {\"kind\":\"gallery\",\"series\":\"ai-diary-01\",\"body\":{\"title\":\"AI 创业第一天就踩坑\",\"items\":[{\"asset_id\":\"<asset id>\"}]}}.",
22548
+ "http": "POST",
22549
+ "path": "/media/v1/libraries/{library_id}/works",
22550
+ "streaming": "no",
22551
+ "pagination": false,
22552
+ "pathParams": [
22553
+ {
22554
+ "name": "library_id",
22555
+ "sdkName": "library_id",
22556
+ "description": "Library ID returned by creation."
22557
+ }
22558
+ ],
22559
+ "query": [],
22560
+ "body": {
22561
+ "required": true,
22562
+ "fields": [
22563
+ {
22564
+ "name": "kind",
22565
+ "type": "string",
22566
+ "enum": [
22567
+ "gallery",
22568
+ "article",
22569
+ "product_listing",
22570
+ "blocks"
22571
+ ],
22572
+ "required": true,
22573
+ "description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
22574
+ },
22575
+ {
22576
+ "name": "body",
22577
+ "type": "object",
22578
+ "required": true
22579
+ },
22580
+ {
22581
+ "name": "series",
22582
+ "type": "string",
22583
+ "required": false,
22584
+ "description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
22585
+ },
22586
+ {
22587
+ "name": "custom",
22588
+ "type": "object",
22589
+ "required": false
22590
+ }
22591
+ ]
22592
+ }
22593
+ },
22594
+ {
22595
+ "resource": "media.libraries.works",
22596
+ "method": "delete",
22597
+ "summary": "Delete work",
22598
+ "description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
22599
+ "http": "DELETE",
22600
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22601
+ "streaming": "no",
22602
+ "pagination": false,
22603
+ "pathParams": [
22604
+ {
22605
+ "name": "library_id",
22606
+ "sdkName": "library_id",
22607
+ "description": "Library ID returned by creation."
22608
+ },
22609
+ {
22610
+ "name": "work_id",
22611
+ "sdkName": "work_id",
22612
+ "description": "Work id (wrk_…) returned by creation or listing."
22613
+ }
22614
+ ],
22615
+ "query": []
22616
+ },
22617
+ {
22618
+ "resource": "media.libraries.works",
22619
+ "method": "retrieve",
22620
+ "summary": "Get work",
22621
+ "description": "Read one work with its body, custom fields, revision and missing (asset ids deleted since; the body keeps them in place). Add expand=assets to receive every referenced asset’s type, short-lived url, thumbnail_url and size in the same answer, which is what a publish script needs to send the work out. Use work_id from creation or listing.",
22622
+ "http": "GET",
22623
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22624
+ "streaming": "no",
22625
+ "pagination": false,
22626
+ "pathParams": [
22627
+ {
22628
+ "name": "library_id",
22629
+ "sdkName": "library_id",
22630
+ "description": "Library ID returned by creation."
22631
+ },
22632
+ {
22633
+ "name": "work_id",
22634
+ "sdkName": "work_id",
22635
+ "description": "Work id (wrk_…) returned by creation or listing."
22636
+ }
22637
+ ],
22638
+ "query": [
22639
+ {
22640
+ "name": "expand",
22641
+ "type": "string",
22642
+ "required": false,
22643
+ "description": "assets returns every referenced asset with its URLs and size."
22644
+ }
22645
+ ]
22646
+ },
22647
+ {
22648
+ "resource": "media.libraries.works",
22649
+ "method": "update",
22650
+ "summary": "Update work",
22651
+ "description": "Change a work. body replaces the whole body and is checked like a new one; series replaces the series and null clears it; custom is a JSON Merge Patch (RFC 7396), so a script writing back its published link and numbers sends only its own keys and never erases keys another script wrote, and null removes a key. Send if_revision with the revision you read to apply the change only if nobody changed the work since; otherwise the answer is 409 REVISION_CONFLICT. Example: PATCH /media/v1/libraries/default/works/<work id> with {\"custom\":{\"published_url\":\"https://…\",\"stats\":{\"likes\":120}}}.",
22652
+ "http": "PATCH",
22653
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22654
+ "streaming": "no",
22655
+ "pagination": false,
22656
+ "pathParams": [
22657
+ {
22658
+ "name": "library_id",
22659
+ "sdkName": "library_id",
22660
+ "description": "Library ID returned by creation."
22661
+ },
22662
+ {
22663
+ "name": "work_id",
22664
+ "sdkName": "work_id",
22665
+ "description": "Work id (wrk_…) returned by creation or listing."
22666
+ }
22667
+ ],
22668
+ "query": [],
22669
+ "body": {
22670
+ "required": true,
22671
+ "fields": [
22672
+ {
22673
+ "name": "body",
22674
+ "type": "object",
22675
+ "required": false
22676
+ },
22677
+ {
22678
+ "name": "series",
22679
+ "type": "string",
22680
+ "required": false,
22681
+ "description": "A new series, or null to clear it."
22682
+ },
22683
+ {
22684
+ "name": "custom",
22685
+ "type": "object",
22686
+ "required": false
22687
+ },
22688
+ {
22689
+ "name": "if_revision",
22690
+ "type": "number",
22691
+ "required": false,
22692
+ "description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
22693
+ }
22694
+ ]
22695
+ }
22696
+ },
22452
22697
  {
22453
22698
  "resource": "media.pipelines",
22454
22699
  "method": "list",
@@ -26483,29 +26728,46 @@ export const operations = [
26483
26728
  {
26484
26729
  "resource": "organization.notifications.letters",
26485
26730
  "method": "list",
26486
- "summary": "List the letters addressed to you",
26487
- "description": "The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
26731
+ "summary": "List the letters addressed to you, or the ones you sent",
26732
+ "description": "The letters this person received (or, with direction=sent, wrote) in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
26488
26733
  "http": "GET",
26489
26734
  "path": "/organization/v1/notifications/letters",
26490
26735
  "streaming": "no",
26491
26736
  "pagination": false,
26492
26737
  "pathParams": [],
26493
26738
  "query": [
26739
+ {
26740
+ "name": "direction",
26741
+ "type": "string",
26742
+ "enum": [
26743
+ "received",
26744
+ "sent"
26745
+ ],
26746
+ "required": false,
26747
+ "description": "received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for."
26748
+ },
26494
26749
  {
26495
26750
  "name": "status",
26496
26751
  "type": "string",
26497
26752
  "enum": [
26498
26753
  "unread",
26499
- "read"
26754
+ "read",
26755
+ "scheduled"
26500
26756
  ],
26501
26757
  "required": false,
26502
- "description": "Only unread letters, or only read ones; omit for both."
26758
+ "description": "Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state."
26759
+ },
26760
+ {
26761
+ "name": "thread",
26762
+ "type": "string",
26763
+ "required": false,
26764
+ "description": "Only letters of this conversation, for received and sent alike; omit for all."
26503
26765
  },
26504
26766
  {
26505
26767
  "name": "archived",
26506
26768
  "type": "boolean",
26507
26769
  "required": false,
26508
- "description": "false (the default) hides archived letters; true lists only the archived ones."
26770
+ "description": "false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent."
26509
26771
  },
26510
26772
  {
26511
26773
  "name": "limit",
@@ -26521,6 +26783,64 @@ export const operations = [
26521
26783
  }
26522
26784
  ]
26523
26785
  },
26786
+ {
26787
+ "resource": "organization.notifications.letters",
26788
+ "method": "create",
26789
+ "summary": "Send a letter to a person or an agent",
26790
+ "description": "Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.",
26791
+ "http": "POST",
26792
+ "path": "/organization/v1/notifications/letters",
26793
+ "streaming": "no",
26794
+ "pagination": false,
26795
+ "pathParams": [],
26796
+ "query": [],
26797
+ "body": {
26798
+ "required": true,
26799
+ "fields": [
26800
+ {
26801
+ "name": "to",
26802
+ "type": "string",
26803
+ "required": true,
26804
+ "description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
26805
+ },
26806
+ {
26807
+ "name": "body",
26808
+ "type": "string",
26809
+ "required": true,
26810
+ "description": "The whole letter, 1 to 16000 characters."
26811
+ },
26812
+ {
26813
+ "name": "summary",
26814
+ "type": "string",
26815
+ "required": false,
26816
+ "description": "One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer."
26817
+ },
26818
+ {
26819
+ "name": "kind",
26820
+ "type": "string",
26821
+ "enum": [
26822
+ "notice",
26823
+ "mention",
26824
+ "decision"
26825
+ ],
26826
+ "required": false,
26827
+ "description": "The letter's kind; it decides the channels. Defaults to mention."
26828
+ },
26829
+ {
26830
+ "name": "thread",
26831
+ "type": "string",
26832
+ "required": false,
26833
+ "description": "The conversation the letter belongs to, free text; omit for none."
26834
+ },
26835
+ {
26836
+ "name": "deliver_at",
26837
+ "type": "string",
26838
+ "required": false,
26839
+ "description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
26840
+ }
26841
+ ]
26842
+ }
26843
+ },
26524
26844
  {
26525
26845
  "resource": "organization.notifications.letters",
26526
26846
  "method": "retrieve",
@@ -26603,6 +26923,124 @@ export const operations = [
26603
26923
  ]
26604
26924
  }
26605
26925
  },
26926
+ {
26927
+ "resource": "organization.notifications.messages",
26928
+ "method": "list",
26929
+ "summary": "List your bell messages",
26930
+ "description": "The calling person's bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential's own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.",
26931
+ "http": "GET",
26932
+ "path": "/organization/v1/notifications/messages",
26933
+ "streaming": "no",
26934
+ "pagination": false,
26935
+ "pathParams": [],
26936
+ "query": [
26937
+ {
26938
+ "name": "archived",
26939
+ "type": "string",
26940
+ "enum": [
26941
+ "0",
26942
+ "1"
26943
+ ],
26944
+ "required": false,
26945
+ "description": "0 (the default) lists the inbox tab, 1 lists archived messages."
26946
+ },
26947
+ {
26948
+ "name": "limit",
26949
+ "type": "integer",
26950
+ "required": false,
26951
+ "description": "Messages per page, 1 to 100; defaults to 20."
26952
+ },
26953
+ {
26954
+ "name": "page",
26955
+ "type": "string",
26956
+ "required": false,
26957
+ "description": "Opaque nextPageToken from the previous response; omit for the first page."
26958
+ }
26959
+ ]
26960
+ },
26961
+ {
26962
+ "resource": "organization.notifications.messages",
26963
+ "method": "delete",
26964
+ "summary": "Delete one of your bell messages",
26965
+ "description": "Delete one of the calling person's own bell messages for good. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.",
26966
+ "http": "DELETE",
26967
+ "path": "/organization/v1/notifications/messages/{name}",
26968
+ "streaming": "no",
26969
+ "pagination": false,
26970
+ "pathParams": [
26971
+ {
26972
+ "name": "name",
26973
+ "sdkName": "name",
26974
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
26975
+ }
26976
+ ],
26977
+ "query": []
26978
+ },
26979
+ {
26980
+ "resource": "organization.notifications.messages",
26981
+ "method": "retrieve",
26982
+ "summary": "Open one of your bell messages",
26983
+ "description": "One bell message of the calling person by its name. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, without saying which. Read-only; no usage charge.",
26984
+ "http": "GET",
26985
+ "path": "/organization/v1/notifications/messages/{name}",
26986
+ "streaming": "no",
26987
+ "pagination": false,
26988
+ "pathParams": [
26989
+ {
26990
+ "name": "name",
26991
+ "sdkName": "name",
26992
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
26993
+ }
26994
+ ],
26995
+ "query": []
26996
+ },
26997
+ {
26998
+ "resource": "organization.notifications.messages",
26999
+ "method": "update",
27000
+ "summary": "Mark one of your bell messages read or archived",
27001
+ "description": "Change the read or archived flag of one of the calling person's own bell messages and return it. Name at least one flag. Reading a message also tells the notification still waiting on it, so it is not emailed later as unread. A message that is not theirs answers 404 like one that does not exist. No usage charge.",
27002
+ "http": "POST",
27003
+ "path": "/organization/v1/notifications/messages/{name}",
27004
+ "streaming": "no",
27005
+ "pagination": false,
27006
+ "pathParams": [
27007
+ {
27008
+ "name": "name",
27009
+ "sdkName": "name",
27010
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27011
+ }
27012
+ ],
27013
+ "query": [],
27014
+ "body": {
27015
+ "required": true,
27016
+ "fields": [
27017
+ {
27018
+ "name": "read",
27019
+ "type": "boolean",
27020
+ "required": false,
27021
+ "description": "Mark the message read (true) or unread (false); omit to leave it."
27022
+ },
27023
+ {
27024
+ "name": "archived",
27025
+ "type": "boolean",
27026
+ "required": false,
27027
+ "description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
27028
+ }
27029
+ ]
27030
+ }
27031
+ },
27032
+ {
27033
+ "resource": "organization.notifications.messages",
27034
+ "method": "readAll",
27035
+ "summary": "Mark all your unread bell messages read",
27036
+ "description": "Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else's is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.",
27037
+ "http": "POST",
27038
+ "path": "/organization/v1/notifications/messages:readAll",
27039
+ "streaming": "no",
27040
+ "pagination": false,
27041
+ "pathParams": [],
27042
+ "query": []
27043
+ },
26606
27044
  {
26607
27045
  "resource": "organization.notifications",
26608
27046
  "method": "retrieveOrganizationDefault",