@arbidocs/sdk 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-DY8mQOdF.d.cts → browser-Z_VbLm5h.d.cts} +12 -0
- package/dist/{browser-DY8mQOdF.d.ts → browser-Z_VbLm5h.d.ts} +12 -0
- package/dist/browser.cjs +4 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +4 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2215,6 +2215,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
|
|
|
2215
2215
|
is_sso: boolean;
|
|
2216
2216
|
};
|
|
2217
2217
|
workspace_ext_id?: string | null | undefined;
|
|
2218
|
+
dm_context_only: boolean;
|
|
2218
2219
|
content?: string | null | undefined;
|
|
2219
2220
|
conversation_ext_id?: string | null | undefined;
|
|
2220
2221
|
message_ext_id?: string | null | undefined;
|
|
@@ -2231,6 +2232,7 @@ declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Pr
|
|
|
2231
2232
|
sender: components["schemas"]["UserResponse"];
|
|
2232
2233
|
recipient: components["schemas"]["UserResponse"];
|
|
2233
2234
|
workspace_ext_id?: string | null;
|
|
2235
|
+
dm_context_only: boolean;
|
|
2234
2236
|
content?: string | null;
|
|
2235
2237
|
conversation_ext_id?: string | null;
|
|
2236
2238
|
message_ext_id?: string | null;
|
|
@@ -2273,6 +2275,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
|
|
|
2273
2275
|
is_sso: boolean;
|
|
2274
2276
|
};
|
|
2275
2277
|
workspace_ext_id?: string | null | undefined;
|
|
2278
|
+
dm_context_only: boolean;
|
|
2276
2279
|
content?: string | null | undefined;
|
|
2277
2280
|
conversation_ext_id?: string | null | undefined;
|
|
2278
2281
|
message_ext_id?: string | null | undefined;
|
|
@@ -2354,6 +2357,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2354
2357
|
is_sso: boolean;
|
|
2355
2358
|
};
|
|
2356
2359
|
workspace_ext_id?: string | null | undefined;
|
|
2360
|
+
dm_context_only: boolean;
|
|
2357
2361
|
content?: string | null | undefined;
|
|
2358
2362
|
conversation_ext_id?: string | null | undefined;
|
|
2359
2363
|
message_ext_id?: string | null | undefined;
|
|
@@ -2392,6 +2396,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
|
2392
2396
|
is_sso: boolean;
|
|
2393
2397
|
};
|
|
2394
2398
|
workspace_ext_id?: string | null | undefined;
|
|
2399
|
+
dm_context_only: boolean;
|
|
2395
2400
|
content?: string | null | undefined;
|
|
2396
2401
|
conversation_ext_id?: string | null | undefined;
|
|
2397
2402
|
message_ext_id?: string | null | undefined;
|
|
@@ -2423,6 +2428,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
|
2423
2428
|
is_sso: boolean;
|
|
2424
2429
|
};
|
|
2425
2430
|
workspace_ext_id?: string | null | undefined;
|
|
2431
|
+
dm_context_only: boolean;
|
|
2426
2432
|
content?: string | null | undefined;
|
|
2427
2433
|
conversation_ext_id?: string | null | undefined;
|
|
2428
2434
|
message_ext_id?: string | null | undefined;
|
|
@@ -3317,6 +3323,7 @@ declare class Arbi {
|
|
|
3317
3323
|
is_sso: boolean;
|
|
3318
3324
|
};
|
|
3319
3325
|
workspace_ext_id?: string | null | undefined;
|
|
3326
|
+
dm_context_only: boolean;
|
|
3320
3327
|
content?: string | null | undefined;
|
|
3321
3328
|
conversation_ext_id?: string | null | undefined;
|
|
3322
3329
|
message_ext_id?: string | null | undefined;
|
|
@@ -4635,6 +4642,7 @@ declare class Arbi {
|
|
|
4635
4642
|
sender: components["schemas"]["UserResponse"];
|
|
4636
4643
|
recipient: components["schemas"]["UserResponse"];
|
|
4637
4644
|
workspace_ext_id?: string | null;
|
|
4645
|
+
dm_context_only: boolean;
|
|
4638
4646
|
content?: string | null;
|
|
4639
4647
|
conversation_ext_id?: string | null;
|
|
4640
4648
|
message_ext_id?: string | null;
|
|
@@ -4653,6 +4661,7 @@ declare class Arbi {
|
|
|
4653
4661
|
sender: components["schemas"]["UserResponse"];
|
|
4654
4662
|
recipient: components["schemas"]["UserResponse"];
|
|
4655
4663
|
workspace_ext_id?: string | null;
|
|
4664
|
+
dm_context_only: boolean;
|
|
4656
4665
|
content?: string | null;
|
|
4657
4666
|
conversation_ext_id?: string | null;
|
|
4658
4667
|
message_ext_id?: string | null;
|
|
@@ -4670,6 +4679,7 @@ declare class Arbi {
|
|
|
4670
4679
|
sender: components["schemas"]["UserResponse"];
|
|
4671
4680
|
recipient: components["schemas"]["UserResponse"];
|
|
4672
4681
|
workspace_ext_id?: string | null;
|
|
4682
|
+
dm_context_only: boolean;
|
|
4673
4683
|
content?: string | null;
|
|
4674
4684
|
conversation_ext_id?: string | null;
|
|
4675
4685
|
message_ext_id?: string | null;
|
|
@@ -4703,6 +4713,7 @@ declare class Arbi {
|
|
|
4703
4713
|
is_sso: boolean;
|
|
4704
4714
|
};
|
|
4705
4715
|
workspace_ext_id?: string | null | undefined;
|
|
4716
|
+
dm_context_only: boolean;
|
|
4706
4717
|
content?: string | null | undefined;
|
|
4707
4718
|
conversation_ext_id?: string | null | undefined;
|
|
4708
4719
|
message_ext_id?: string | null | undefined;
|
|
@@ -4739,6 +4750,7 @@ declare class Arbi {
|
|
|
4739
4750
|
is_sso: boolean;
|
|
4740
4751
|
};
|
|
4741
4752
|
workspace_ext_id?: string | null | undefined;
|
|
4753
|
+
dm_context_only: boolean;
|
|
4742
4754
|
content?: string | null | undefined;
|
|
4743
4755
|
conversation_ext_id?: string | null | undefined;
|
|
4744
4756
|
message_ext_id?: string | null | undefined;
|
|
@@ -2215,6 +2215,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
|
|
|
2215
2215
|
is_sso: boolean;
|
|
2216
2216
|
};
|
|
2217
2217
|
workspace_ext_id?: string | null | undefined;
|
|
2218
|
+
dm_context_only: boolean;
|
|
2218
2219
|
content?: string | null | undefined;
|
|
2219
2220
|
conversation_ext_id?: string | null | undefined;
|
|
2220
2221
|
message_ext_id?: string | null | undefined;
|
|
@@ -2231,6 +2232,7 @@ declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Pr
|
|
|
2231
2232
|
sender: components["schemas"]["UserResponse"];
|
|
2232
2233
|
recipient: components["schemas"]["UserResponse"];
|
|
2233
2234
|
workspace_ext_id?: string | null;
|
|
2235
|
+
dm_context_only: boolean;
|
|
2234
2236
|
content?: string | null;
|
|
2235
2237
|
conversation_ext_id?: string | null;
|
|
2236
2238
|
message_ext_id?: string | null;
|
|
@@ -2273,6 +2275,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
|
|
|
2273
2275
|
is_sso: boolean;
|
|
2274
2276
|
};
|
|
2275
2277
|
workspace_ext_id?: string | null | undefined;
|
|
2278
|
+
dm_context_only: boolean;
|
|
2276
2279
|
content?: string | null | undefined;
|
|
2277
2280
|
conversation_ext_id?: string | null | undefined;
|
|
2278
2281
|
message_ext_id?: string | null | undefined;
|
|
@@ -2354,6 +2357,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2354
2357
|
is_sso: boolean;
|
|
2355
2358
|
};
|
|
2356
2359
|
workspace_ext_id?: string | null | undefined;
|
|
2360
|
+
dm_context_only: boolean;
|
|
2357
2361
|
content?: string | null | undefined;
|
|
2358
2362
|
conversation_ext_id?: string | null | undefined;
|
|
2359
2363
|
message_ext_id?: string | null | undefined;
|
|
@@ -2392,6 +2396,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
|
2392
2396
|
is_sso: boolean;
|
|
2393
2397
|
};
|
|
2394
2398
|
workspace_ext_id?: string | null | undefined;
|
|
2399
|
+
dm_context_only: boolean;
|
|
2395
2400
|
content?: string | null | undefined;
|
|
2396
2401
|
conversation_ext_id?: string | null | undefined;
|
|
2397
2402
|
message_ext_id?: string | null | undefined;
|
|
@@ -2423,6 +2428,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
|
2423
2428
|
is_sso: boolean;
|
|
2424
2429
|
};
|
|
2425
2430
|
workspace_ext_id?: string | null | undefined;
|
|
2431
|
+
dm_context_only: boolean;
|
|
2426
2432
|
content?: string | null | undefined;
|
|
2427
2433
|
conversation_ext_id?: string | null | undefined;
|
|
2428
2434
|
message_ext_id?: string | null | undefined;
|
|
@@ -3317,6 +3323,7 @@ declare class Arbi {
|
|
|
3317
3323
|
is_sso: boolean;
|
|
3318
3324
|
};
|
|
3319
3325
|
workspace_ext_id?: string | null | undefined;
|
|
3326
|
+
dm_context_only: boolean;
|
|
3320
3327
|
content?: string | null | undefined;
|
|
3321
3328
|
conversation_ext_id?: string | null | undefined;
|
|
3322
3329
|
message_ext_id?: string | null | undefined;
|
|
@@ -4635,6 +4642,7 @@ declare class Arbi {
|
|
|
4635
4642
|
sender: components["schemas"]["UserResponse"];
|
|
4636
4643
|
recipient: components["schemas"]["UserResponse"];
|
|
4637
4644
|
workspace_ext_id?: string | null;
|
|
4645
|
+
dm_context_only: boolean;
|
|
4638
4646
|
content?: string | null;
|
|
4639
4647
|
conversation_ext_id?: string | null;
|
|
4640
4648
|
message_ext_id?: string | null;
|
|
@@ -4653,6 +4661,7 @@ declare class Arbi {
|
|
|
4653
4661
|
sender: components["schemas"]["UserResponse"];
|
|
4654
4662
|
recipient: components["schemas"]["UserResponse"];
|
|
4655
4663
|
workspace_ext_id?: string | null;
|
|
4664
|
+
dm_context_only: boolean;
|
|
4656
4665
|
content?: string | null;
|
|
4657
4666
|
conversation_ext_id?: string | null;
|
|
4658
4667
|
message_ext_id?: string | null;
|
|
@@ -4670,6 +4679,7 @@ declare class Arbi {
|
|
|
4670
4679
|
sender: components["schemas"]["UserResponse"];
|
|
4671
4680
|
recipient: components["schemas"]["UserResponse"];
|
|
4672
4681
|
workspace_ext_id?: string | null;
|
|
4682
|
+
dm_context_only: boolean;
|
|
4673
4683
|
content?: string | null;
|
|
4674
4684
|
conversation_ext_id?: string | null;
|
|
4675
4685
|
message_ext_id?: string | null;
|
|
@@ -4703,6 +4713,7 @@ declare class Arbi {
|
|
|
4703
4713
|
is_sso: boolean;
|
|
4704
4714
|
};
|
|
4705
4715
|
workspace_ext_id?: string | null | undefined;
|
|
4716
|
+
dm_context_only: boolean;
|
|
4706
4717
|
content?: string | null | undefined;
|
|
4707
4718
|
conversation_ext_id?: string | null | undefined;
|
|
4708
4719
|
message_ext_id?: string | null | undefined;
|
|
@@ -4739,6 +4750,7 @@ declare class Arbi {
|
|
|
4739
4750
|
is_sso: boolean;
|
|
4740
4751
|
};
|
|
4741
4752
|
workspace_ext_id?: string | null | undefined;
|
|
4753
|
+
dm_context_only: boolean;
|
|
4742
4754
|
content?: string | null | undefined;
|
|
4743
4755
|
conversation_ext_id?: string | null | undefined;
|
|
4744
4756
|
message_ext_id?: string | null | undefined;
|
package/dist/browser.cjs
CHANGED
|
@@ -5312,7 +5312,9 @@ async function sendEncryptedDM(arbi, messages, crypto) {
|
|
|
5312
5312
|
}))
|
|
5313
5313
|
);
|
|
5314
5314
|
const created = requireData(
|
|
5315
|
-
await arbi.fetch.POST("/v1/notifications/", {
|
|
5315
|
+
await arbi.fetch.POST("/v1/notifications/", {
|
|
5316
|
+
body: { messages: encrypted, context_only: false }
|
|
5317
|
+
}),
|
|
5316
5318
|
"Failed to send message"
|
|
5317
5319
|
);
|
|
5318
5320
|
return created.map((n2) => ({
|
|
@@ -5345,7 +5347,7 @@ async function requestWorkspaceAccess(arbi, params, crypto) {
|
|
|
5345
5347
|
async function sendDM(arbi, messages) {
|
|
5346
5348
|
return requireData(
|
|
5347
5349
|
await arbi.fetch.POST("/v1/notifications/", {
|
|
5348
|
-
body: { messages }
|
|
5350
|
+
body: { messages, context_only: false }
|
|
5349
5351
|
}),
|
|
5350
5352
|
"Failed to send message"
|
|
5351
5353
|
);
|