@deepraxis/sdk 0.2.0-dev.af2cf98 → 0.2.0-dev.bc5a12b

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.
@@ -78076,6 +78076,23 @@ export type ListOrganizationNotificationLettersResponses = {
78076
78076
  * Whether this person archived it. Archived letters are hidden unless archived=true is asked for.
78077
78077
  */
78078
78078
  archived: boolean;
78079
+ /**
78080
+ * The organization the letter belongs to: its own. It is always an object with all three fields — `id`, `slug` and `name` — or `null`; a half-filled object never appears. `null` means the organization directory did not answer this time, so the display name could not be read: it does not mean the letter has no organization, and the letter's own organization is still the one behind the credential. Read it again and the value is normally there. The Console compares `id` with the organization it is showing, carries `slug` on a link, and shows `name` to a person.
78081
+ */
78082
+ organization: {
78083
+ /**
78084
+ * The organization's id, from the directory.
78085
+ */
78086
+ id: string;
78087
+ /**
78088
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
78089
+ */
78090
+ slug: string;
78091
+ /**
78092
+ * The organization's display name, as a person reads it.
78093
+ */
78094
+ name: string;
78095
+ };
78079
78096
  }>;
78080
78097
  /**
78081
78098
  * Pass unchanged as cursor for the next page; null at the end.
@@ -78088,6 +78105,106 @@ export type ListOrganizationNotificationLettersResponses = {
78088
78105
  };
78089
78106
  };
78090
78107
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
78108
+ export type GetOrganizationNotificationLetterData = {
78109
+ body?: never;
78110
+ path: {
78111
+ /**
78112
+ * The letter's id, from the letters list.
78113
+ */
78114
+ id: string;
78115
+ };
78116
+ query?: never;
78117
+ url: '/organization/v1/notifications/letters/{id}';
78118
+ };
78119
+ export type GetOrganizationNotificationLetterErrors = {
78120
+ /**
78121
+ * The id is not a letter id (RFC 9457 problem).
78122
+ */
78123
+ 400: unknown;
78124
+ /**
78125
+ * Missing or invalid credential (RFC 9457 problem).
78126
+ */
78127
+ 401: unknown;
78128
+ /**
78129
+ * No such letter in your mailbox (RFC 9457 problem).
78130
+ */
78131
+ 404: unknown;
78132
+ };
78133
+ export type GetOrganizationNotificationLetterResponses = {
78134
+ /**
78135
+ * The letter, as the list would show it.
78136
+ */
78137
+ 200: {
78138
+ /**
78139
+ * The letter's id.
78140
+ */
78141
+ id: string;
78142
+ /**
78143
+ * The sender's display name. Never an address or an internal id; an address the directory does not know reads 「未知成员」.
78144
+ */
78145
+ sender: string;
78146
+ /**
78147
+ * One line saying what the letter asks or tells, written for this reader.
78148
+ */
78149
+ summary: string;
78150
+ /**
78151
+ * The whole letter, for the detail view, written for this reader.
78152
+ */
78153
+ body: string;
78154
+ /**
78155
+ * The conversation the letter belongs to; a ticket letter uses ticket:<repository>:<number>. Null when the sender named none.
78156
+ */
78157
+ thread: string;
78158
+ /**
78159
+ * The letter's kind (ADR-193 §2, #4107).
78160
+ */
78161
+ kind: 'notice' | 'mention' | 'decision';
78162
+ /**
78163
+ * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
78164
+ */
78165
+ source: {
78166
+ [key: string]: unknown;
78167
+ };
78168
+ /**
78169
+ * Whether this person has read it.
78170
+ */
78171
+ read: boolean;
78172
+ /**
78173
+ * When it arrived; null while still scheduled.
78174
+ */
78175
+ deliveredAt: string;
78176
+ /**
78177
+ * When it was written.
78178
+ */
78179
+ createTime: string;
78180
+ /**
78181
+ * Why it reached this person, in their words — 「在工单 #4109 的评论里 @ 了你」.
78182
+ */
78183
+ reason: string;
78184
+ /**
78185
+ * Whether this person archived it.
78186
+ */
78187
+ archived: boolean;
78188
+ /**
78189
+ * The organization the letter belongs to: its own. It is always an object with all three fields — `id`, `slug` and `name` — or `null`; a half-filled object never appears. `null` means the organization directory did not answer this time, so the display name could not be read: it does not mean the letter has no organization. Read it again and the value is normally there.
78190
+ */
78191
+ organization: {
78192
+ /**
78193
+ * The organization's id, from the directory.
78194
+ */
78195
+ id: string;
78196
+ /**
78197
+ * The organization's readable slug (ADR-101), the one a Console link carries as org=.
78198
+ */
78199
+ slug: string;
78200
+ /**
78201
+ * The organization's display name, as a person reads it.
78202
+ */
78203
+ name: string;
78204
+ };
78205
+ };
78206
+ };
78207
+ export type GetOrganizationNotificationLetterResponse = GetOrganizationNotificationLetterResponses[keyof GetOrganizationNotificationLetterResponses];
78091
78208
  export type ReadOrganizationNotificationLetterData = {
78092
78209
  body?: never;
78093
78210
  path: {
@@ -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",
@@ -7986,6 +7986,11 @@ export declare function createOrganization(transport: Transport): {
7986
7986
  createTime: string;
7987
7987
  reason: string;
7988
7988
  archived: boolean;
7989
+ organization: {
7990
+ id: string;
7991
+ slug: string;
7992
+ name: string;
7993
+ };
7989
7994
  }>;
7990
7995
  nextCursor: string;
7991
7996
  unread: number;
@@ -7996,6 +8001,27 @@ export declare function createOrganization(transport: Transport): {
7996
8001
  readAll: (options?: import("./core/transport.js").CallOptions<Types.ReadAllOrganizationNotificationLettersData> | undefined) => Promise<{
7997
8002
  unread: number;
7998
8003
  }>;
8004
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationNotificationLetterData>) => Promise<{
8005
+ id: string;
8006
+ sender: string;
8007
+ summary: string;
8008
+ body: string;
8009
+ thread: string;
8010
+ kind: "notice" | "mention" | "decision";
8011
+ source: {
8012
+ [key: string]: unknown;
8013
+ };
8014
+ read: boolean;
8015
+ deliveredAt: string;
8016
+ createTime: string;
8017
+ reason: string;
8018
+ archived: boolean;
8019
+ organization: {
8020
+ id: string;
8021
+ slug: string;
8022
+ name: string;
8023
+ };
8024
+ }>;
7999
8025
  };
8000
8026
  organizationDefault: {
8001
8027
  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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.af2cf98",
3
+ "version": "0.2.0-dev.bc5a12b",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {