@gitbook/api 0.7.0 → 0.8.0

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/client.d.ts CHANGED
@@ -782,6 +782,7 @@ export interface Recording {
782
782
  events: {
783
783
  'terminal.command'?: number;
784
784
  speech?: number;
785
+ 'thread.message'?: number;
785
786
  };
786
787
  contributors: (Integration | User)[];
787
788
  /** Output document for the recording. Is not set when recording is not finished, the user has not access to the space, or content has been deleted. */
@@ -804,8 +805,8 @@ export interface RecordingOutput {
804
805
  space: Space;
805
806
  page: RevisionPageDocument;
806
807
  }
807
- export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
808
- export declare type RecordingContext = 'meeting' | 'conversation' | 'walkthrough';
808
+ export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent | RecordingThreadMessageEvent | RecordingFileAddedEvent | RecordingFileChangedEvent | RecordingFileRemovedEvent;
809
+ export declare type RecordingContext = 'meeting' | 'thread' | 'walkthrough';
809
810
  export interface BaseRecordingEvent {
810
811
  /** The type of event */
811
812
  type: string;
@@ -833,6 +834,26 @@ export declare type RecordingTerminalCommandEvent = BaseRecordingEvent & {
833
834
  command: string;
834
835
  stdout: string;
835
836
  };
837
+ export declare type RecordingThreadMessageEvent = BaseRecordingEvent & {
838
+ type: 'thread.message';
839
+ isFirst?: boolean;
840
+ text: string;
841
+ };
842
+ export declare type RecordingFileAddedEvent = BaseRecordingEvent & {
843
+ type: 'file.added';
844
+ filename: string;
845
+ fileSnapshot: string;
846
+ };
847
+ export declare type RecordingFileChangedEvent = BaseRecordingEvent & {
848
+ type: 'file.changed';
849
+ filename: string;
850
+ fileDiff: string;
851
+ };
852
+ export declare type RecordingFileRemovedEvent = BaseRecordingEvent & {
853
+ type: 'file.removed';
854
+ filename: string;
855
+ fileSnapshot: string;
856
+ };
836
857
  export interface ChangeRequest {
837
858
  /** Type of Object, always equals to "change-request" */
838
859
  object: 'change-request';
@@ -1238,6 +1259,7 @@ export declare enum IntegrationCategory {
1238
1259
  Collaboration = "collaboration",
1239
1260
  Marketing = "marketing",
1240
1261
  Content = "content",
1262
+ Gitsync = "gitsync",
1241
1263
  Other = "other"
1242
1264
  }
1243
1265
  export interface IntegrationConfigurations {
@@ -1342,6 +1364,8 @@ export interface IntegrationEnvironment {
1342
1364
  spaceInstallation?: IntegrationSpaceInstallation;
1343
1365
  /** Secrets stored on the integration and passed at runtime. */
1344
1366
  secrets: IntegrationSecrets;
1367
+ /** Secret that can be used to verify the authenticity of incoming HTTP requests to the integration. */
1368
+ signingSecret?: string;
1345
1369
  /** URL of the HTTP API */
1346
1370
  apiEndpoint: string;
1347
1371
  apiTokens: {
@@ -1487,7 +1511,7 @@ export declare type EntityPropertySchema = {
1487
1511
  /**
1488
1512
  * Any event that can be received from GitBook.
1489
1513
  */
1490
- export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
1514
+ export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SpaceViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | UIRenderEvent;
1491
1515
  /**
1492
1516
  * Common properties for all events.
1493
1517
  */
@@ -1531,6 +1555,15 @@ export declare type SpaceInstallationSetupEvent = SpaceEvent & {
1531
1555
  configuration?: object;
1532
1556
  };
1533
1557
  };
1558
+ /**
1559
+ * Event received when integration has been uninstalled from a space.
1560
+ */
1561
+ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
1562
+ type: 'space_installation_deleted';
1563
+ previous: {
1564
+ configuration?: object;
1565
+ };
1566
+ };
1534
1567
  /**
1535
1568
  * Event received when a page has been visited.
1536
1569
  */
@@ -2016,7 +2049,8 @@ export declare enum ContentKitIcon {
2016
2049
  Warning = "warning",
2017
2050
  Link = "link",
2018
2051
  LinkExternal = "link-external",
2019
- Eye = "eye"
2052
+ Eye = "eye",
2053
+ Lock = "lock"
2020
2054
  }
2021
2055
  /**
2022
2056
  * Overlay modal.
@@ -2368,6 +2402,8 @@ export interface CustomField {
2368
2402
  title: CustomFieldTitle;
2369
2403
  description: CustomFieldDescription;
2370
2404
  type: CustomFieldType;
2405
+ placeholder: CustomFieldPlaceholder;
2406
+ options?: CustomFieldOptions;
2371
2407
  createdAt: Date;
2372
2408
  updatedAt: Date;
2373
2409
  /** URLs associated with the object */
@@ -2376,7 +2412,7 @@ export interface CustomField {
2376
2412
  };
2377
2413
  }
2378
2414
  /**
2379
- * @pattern ^[a-zA-Z_\-0-9]+$
2415
+ * @pattern ^[a-z_\-0-9]+$
2380
2416
  */
2381
2417
  export declare type CustomFieldName = string;
2382
2418
  export declare type CustomFieldTitle = string;
@@ -2385,7 +2421,9 @@ export declare enum CustomFieldType {
2385
2421
  Text = "text",
2386
2422
  Number = "number",
2387
2423
  Boolean = "boolean",
2388
- Tags = "tags"
2424
+ Tags = "tags",
2425
+ SelectMulti = "select:multi",
2426
+ SelectSingle = "select:single"
2389
2427
  }
2390
2428
  export declare type CustomFieldValue = string | number | boolean | string[];
2391
2429
  export declare type CustomFieldValues = {
@@ -2397,6 +2435,8 @@ export interface UpdateCustomFieldValues {
2397
2435
  value: CustomFieldValue;
2398
2436
  }>;
2399
2437
  }
2438
+ export declare type CustomFieldOptions = string[];
2439
+ export declare type CustomFieldPlaceholder = string;
2400
2440
  /**
2401
2441
  * An environment
2402
2442
  */
@@ -3749,6 +3789,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3749
3789
  * @secure
3750
3790
  */
3751
3791
  renderIntegrationUiWithPost: (integrationName: string, data: RequestRenderIntegrationUI, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
3792
+ /**
3793
+ * No description
3794
+ *
3795
+ * @tags integrations
3796
+ * @name QueueIntegrationTask
3797
+ * @summary Queue a task for an integration to be executed later
3798
+ * @request POST:/integrations/{integrationName}/tasks
3799
+ * @secure
3800
+ */
3801
+ queueIntegrationTask: (integrationName: string, data: {
3802
+ task: object;
3803
+ schedule?: number;
3804
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
3805
+ error: {
3806
+ code: 404;
3807
+ message: string;
3808
+ };
3809
+ }>>;
3752
3810
  /**
3753
3811
  * No description
3754
3812
  *
@@ -4327,6 +4385,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4327
4385
  type: CustomFieldType;
4328
4386
  title?: CustomFieldTitle;
4329
4387
  description?: CustomFieldDescription;
4388
+ placeholder?: CustomFieldPlaceholder;
4389
+ options?: CustomFieldOptions;
4330
4390
  }, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
4331
4391
  /**
4332
4392
  * No description
@@ -4355,6 +4415,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4355
4415
  updateOrganizationCustomField: (organizationId: string, fieldName: string, data: {
4356
4416
  title?: CustomFieldTitle;
4357
4417
  description?: CustomFieldDescription;
4418
+ placeholder?: CustomFieldPlaceholder;
4419
+ options?: CustomFieldOptions;
4358
4420
  }, params?: RequestParams) => Promise<HttpResponse<CustomField, Error>>;
4359
4421
  /**
4360
4422
  * No description
@@ -4513,7 +4575,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4513
4575
  */
4514
4576
  upsertSchemaEntities: (organizationId: string, entityType: EntityType, data: {
4515
4577
  delete?: boolean | EntityId[];
4516
- entities: UpsertEntity[];
4578
+ entities?: UpsertEntity[];
4517
4579
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4518
4580
  /**
4519
4581
  * No description
package/dist/index.cjs CHANGED
@@ -184,6 +184,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
184
184
  IntegrationCategory2["Collaboration"] = "collaboration";
185
185
  IntegrationCategory2["Marketing"] = "marketing";
186
186
  IntegrationCategory2["Content"] = "content";
187
+ IntegrationCategory2["Gitsync"] = "gitsync";
187
188
  IntegrationCategory2["Other"] = "other";
188
189
  return IntegrationCategory2;
189
190
  })(IntegrationCategory || {});
@@ -267,6 +268,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
267
268
  ContentKitIcon2["Link"] = "link";
268
269
  ContentKitIcon2["LinkExternal"] = "link-external";
269
270
  ContentKitIcon2["Eye"] = "eye";
271
+ ContentKitIcon2["Lock"] = "lock";
270
272
  return ContentKitIcon2;
271
273
  })(ContentKitIcon || {});
272
274
  var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
@@ -274,6 +276,8 @@ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
274
276
  CustomFieldType2["Number"] = "number";
275
277
  CustomFieldType2["Boolean"] = "boolean";
276
278
  CustomFieldType2["Tags"] = "tags";
279
+ CustomFieldType2["SelectMulti"] = "select:multi";
280
+ CustomFieldType2["SelectSingle"] = "select:single";
277
281
  return CustomFieldType2;
278
282
  })(CustomFieldType || {});
279
283
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
@@ -1203,6 +1207,14 @@ var Api = class extends HttpClient {
1203
1207
  format: "json",
1204
1208
  ...params
1205
1209
  }),
1210
+ queueIntegrationTask: (integrationName, data, params = {}) => this.request({
1211
+ path: `/integrations/${integrationName}/tasks`,
1212
+ method: "POST",
1213
+ body: data,
1214
+ secure: true,
1215
+ type: "application/json" /* Json */,
1216
+ ...params
1217
+ }),
1206
1218
  getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
1207
1219
  path: `/integrations/${integrationName}/installations/${installationId}`,
1208
1220
  method: "GET",
package/dist/index.js CHANGED
@@ -127,6 +127,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
127
127
  IntegrationCategory2["Collaboration"] = "collaboration";
128
128
  IntegrationCategory2["Marketing"] = "marketing";
129
129
  IntegrationCategory2["Content"] = "content";
130
+ IntegrationCategory2["Gitsync"] = "gitsync";
130
131
  IntegrationCategory2["Other"] = "other";
131
132
  return IntegrationCategory2;
132
133
  })(IntegrationCategory || {});
@@ -210,6 +211,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
210
211
  ContentKitIcon2["Link"] = "link";
211
212
  ContentKitIcon2["LinkExternal"] = "link-external";
212
213
  ContentKitIcon2["Eye"] = "eye";
214
+ ContentKitIcon2["Lock"] = "lock";
213
215
  return ContentKitIcon2;
214
216
  })(ContentKitIcon || {});
215
217
  var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
@@ -217,6 +219,8 @@ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
217
219
  CustomFieldType2["Number"] = "number";
218
220
  CustomFieldType2["Boolean"] = "boolean";
219
221
  CustomFieldType2["Tags"] = "tags";
222
+ CustomFieldType2["SelectMulti"] = "select:multi";
223
+ CustomFieldType2["SelectSingle"] = "select:single";
220
224
  return CustomFieldType2;
221
225
  })(CustomFieldType || {});
222
226
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
@@ -1146,6 +1150,14 @@ var Api = class extends HttpClient {
1146
1150
  format: "json",
1147
1151
  ...params
1148
1152
  }),
1153
+ queueIntegrationTask: (integrationName, data, params = {}) => this.request({
1154
+ path: `/integrations/${integrationName}/tasks`,
1155
+ method: "POST",
1156
+ body: data,
1157
+ secure: true,
1158
+ type: "application/json" /* Json */,
1159
+ ...params
1160
+ }),
1149
1161
  getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
1150
1162
  path: `/integrations/${integrationName}/installations/${installationId}`,
1151
1163
  method: "GET",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.7.0",
7
+ "version": "0.8.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "spec/**",
package/spec/openapi.json CHANGED
@@ -2409,6 +2409,9 @@
2409
2409
  },
2410
2410
  "speech": {
2411
2411
  "type": "integer"
2412
+ },
2413
+ "thread.message": {
2414
+ "type": "integer"
2412
2415
  }
2413
2416
  }
2414
2417
  },
@@ -2489,6 +2492,18 @@
2489
2492
  },
2490
2493
  {
2491
2494
  "$ref": "#/components/schemas/RecordingSpeechEvent"
2495
+ },
2496
+ {
2497
+ "$ref": "#/components/schemas/RecordingThreadMessageEvent"
2498
+ },
2499
+ {
2500
+ "$ref": "#/components/schemas/RecordingFileAddedEvent"
2501
+ },
2502
+ {
2503
+ "$ref": "#/components/schemas/RecordingFileChangedEvent"
2504
+ },
2505
+ {
2506
+ "$ref": "#/components/schemas/RecordingFileRemovedEvent"
2492
2507
  }
2493
2508
  ]
2494
2509
  },
@@ -2498,7 +2513,7 @@
2498
2513
  "type": "string",
2499
2514
  "enum": [
2500
2515
  "meeting",
2501
- "conversation",
2516
+ "thread",
2502
2517
  "walkthrough"
2503
2518
  ]
2504
2519
  }
@@ -2617,6 +2632,121 @@
2617
2632
  }
2618
2633
  ]
2619
2634
  },
2635
+ "RecordingThreadMessageEvent": {
2636
+ "allOf": [
2637
+ {
2638
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2639
+ },
2640
+ {
2641
+ "type": "object",
2642
+ "properties": {
2643
+ "type": {
2644
+ "type": "string",
2645
+ "enum": [
2646
+ "thread.message"
2647
+ ]
2648
+ },
2649
+ "isFirst": {
2650
+ "type": "boolean"
2651
+ },
2652
+ "text": {
2653
+ "type": "string"
2654
+ }
2655
+ },
2656
+ "required": [
2657
+ "type",
2658
+ "text"
2659
+ ]
2660
+ }
2661
+ ]
2662
+ },
2663
+ "RecordingFileAddedEvent": {
2664
+ "allOf": [
2665
+ {
2666
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2667
+ },
2668
+ {
2669
+ "type": "object",
2670
+ "properties": {
2671
+ "type": {
2672
+ "type": "string",
2673
+ "enum": [
2674
+ "file.added"
2675
+ ]
2676
+ },
2677
+ "filename": {
2678
+ "type": "string"
2679
+ },
2680
+ "fileSnapshot": {
2681
+ "type": "string"
2682
+ }
2683
+ },
2684
+ "required": [
2685
+ "type",
2686
+ "filename",
2687
+ "fileSnapshot"
2688
+ ]
2689
+ }
2690
+ ]
2691
+ },
2692
+ "RecordingFileChangedEvent": {
2693
+ "allOf": [
2694
+ {
2695
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2696
+ },
2697
+ {
2698
+ "type": "object",
2699
+ "properties": {
2700
+ "type": {
2701
+ "type": "string",
2702
+ "enum": [
2703
+ "file.changed"
2704
+ ]
2705
+ },
2706
+ "filename": {
2707
+ "type": "string"
2708
+ },
2709
+ "fileDiff": {
2710
+ "type": "string"
2711
+ }
2712
+ },
2713
+ "required": [
2714
+ "type",
2715
+ "filename",
2716
+ "fileDiff"
2717
+ ]
2718
+ }
2719
+ ]
2720
+ },
2721
+ "RecordingFileRemovedEvent": {
2722
+ "allOf": [
2723
+ {
2724
+ "$ref": "#/components/schemas/BaseRecordingEvent"
2725
+ },
2726
+ {
2727
+ "type": "object",
2728
+ "properties": {
2729
+ "type": {
2730
+ "type": "string",
2731
+ "enum": [
2732
+ "file.removed"
2733
+ ]
2734
+ },
2735
+ "filename": {
2736
+ "type": "string"
2737
+ },
2738
+ "fileSnapshot": {
2739
+ "type": "string"
2740
+ }
2741
+ },
2742
+ "required": [
2743
+ "type",
2744
+ "filename",
2745
+ "fileSnapshot"
2746
+ ]
2747
+ }
2748
+ ]
2749
+ },
2620
2750
  "ChangeRequest": {
2621
2751
  "type": "object",
2622
2752
  "properties": {
@@ -3667,6 +3797,7 @@
3667
3797
  "collaboration",
3668
3798
  "marketing",
3669
3799
  "content",
3800
+ "gitsync",
3670
3801
  "other"
3671
3802
  ]
3672
3803
  },
@@ -3968,6 +4099,10 @@
3968
4099
  "secrets": {
3969
4100
  "$ref": "#/components/schemas/IntegrationSecrets"
3970
4101
  },
4102
+ "signingSecret": {
4103
+ "type": "string",
4104
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the integration."
4105
+ },
3971
4106
  "apiEndpoint": {
3972
4107
  "type": "string",
3973
4108
  "description": "URL of the HTTP API"
@@ -4537,6 +4672,9 @@
4537
4672
  {
4538
4673
  "$ref": "#/components/schemas/SpaceInstallationSetupEvent"
4539
4674
  },
4675
+ {
4676
+ "$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
4677
+ },
4540
4678
  {
4541
4679
  "$ref": "#/components/schemas/SpaceViewEvent"
4542
4680
  },
@@ -4708,6 +4846,39 @@
4708
4846
  }
4709
4847
  ]
4710
4848
  },
4849
+ "SpaceInstallationDeletedEvent": {
4850
+ "allOf": [
4851
+ {
4852
+ "$ref": "#/components/schemas/SpaceEvent"
4853
+ },
4854
+ {
4855
+ "type": "object",
4856
+ "description": "Event received when integration has been uninstalled from a space.",
4857
+ "properties": {
4858
+ "type": {
4859
+ "type": "string",
4860
+ "enum": [
4861
+ "space_installation_deleted"
4862
+ ]
4863
+ },
4864
+ "previous": {
4865
+ "type": "object",
4866
+ "description": "The state of the Space installation before it was deleted.",
4867
+ "properties": {
4868
+ "configuration": {
4869
+ "type": "object",
4870
+ "description": "The previous configuration of the Space installation."
4871
+ }
4872
+ }
4873
+ }
4874
+ },
4875
+ "required": [
4876
+ "type",
4877
+ "previous"
4878
+ ]
4879
+ }
4880
+ ]
4881
+ },
4711
4882
  "SpaceViewEvent": {
4712
4883
  "allOf": [
4713
4884
  {
@@ -6211,7 +6382,8 @@
6211
6382
  "warning",
6212
6383
  "link",
6213
6384
  "link-external",
6214
- "eye"
6385
+ "eye",
6386
+ "lock"
6215
6387
  ]
6216
6388
  },
6217
6389
  "ContentKitModal": {
@@ -7625,6 +7797,12 @@
7625
7797
  "type": {
7626
7798
  "$ref": "#/components/schemas/CustomFieldType"
7627
7799
  },
7800
+ "placeholder": {
7801
+ "$ref": "#/components/schemas/CustomFieldPlaceholder"
7802
+ },
7803
+ "options": {
7804
+ "$ref": "#/components/schemas/CustomFieldOptions"
7805
+ },
7628
7806
  "createdAt": {
7629
7807
  "$ref": "#/components/schemas/Date"
7630
7808
  },
@@ -7651,6 +7829,7 @@
7651
7829
  "name",
7652
7830
  "title",
7653
7831
  "description",
7832
+ "placeholder",
7654
7833
  "type",
7655
7834
  "createdAt",
7656
7835
  "updatedAt",
@@ -7659,7 +7838,7 @@
7659
7838
  },
7660
7839
  "CustomFieldName": {
7661
7840
  "type": "string",
7662
- "pattern": "^[a-zA-Z_\\-0-9]+$",
7841
+ "pattern": "^[a-z_\\-0-9]+$",
7663
7842
  "minLength": 1,
7664
7843
  "maxLength": 50
7665
7844
  },
@@ -7677,7 +7856,9 @@
7677
7856
  "text",
7678
7857
  "number",
7679
7858
  "boolean",
7680
- "tags"
7859
+ "tags",
7860
+ "select:multi",
7861
+ "select:single"
7681
7862
  ]
7682
7863
  },
7683
7864
  "CustomFieldValue": {
@@ -7742,6 +7923,20 @@
7742
7923
  "values"
7743
7924
  ]
7744
7925
  },
7926
+ "CustomFieldOptions": {
7927
+ "type": "array",
7928
+ "minItems": 1,
7929
+ "maxItems": 50,
7930
+ "items": {
7931
+ "type": "string",
7932
+ "minLength": 1,
7933
+ "maxLength": 40
7934
+ }
7935
+ },
7936
+ "CustomFieldPlaceholder": {
7937
+ "type": "string",
7938
+ "maxLength": 100
7939
+ },
7745
7940
  "Environment": {
7746
7941
  "type": "object",
7747
7942
  "description": "An environment",
@@ -12412,6 +12607,61 @@
12412
12607
  }
12413
12608
  }
12414
12609
  },
12610
+ "/integrations/{integrationName}/tasks": {
12611
+ "post": {
12612
+ "operationId": "queueIntegrationTask",
12613
+ "summary": "Queue a task for an integration to be executed later",
12614
+ "tags": [
12615
+ "integrations"
12616
+ ],
12617
+ "security": [
12618
+ {
12619
+ "integration": []
12620
+ }
12621
+ ],
12622
+ "parameters": [
12623
+ {
12624
+ "$ref": "#/components/parameters/integrationName"
12625
+ }
12626
+ ],
12627
+ "requestBody": {
12628
+ "required": true,
12629
+ "content": {
12630
+ "application/json": {
12631
+ "schema": {
12632
+ "type": "object",
12633
+ "properties": {
12634
+ "task": {
12635
+ "type": "object",
12636
+ "description": "Payload for the integration task"
12637
+ },
12638
+ "schedule": {
12639
+ "type": "number",
12640
+ "description": "Number of seconds to wait before executing the task, defaults to 0",
12641
+ "minimum": 0,
12642
+ "maximum": 86400
12643
+ }
12644
+ },
12645
+ "required": [
12646
+ "task"
12647
+ ]
12648
+ }
12649
+ }
12650
+ }
12651
+ },
12652
+ "responses": {
12653
+ "204": {
12654
+ "description": "Integration task created successfully"
12655
+ },
12656
+ "404": {
12657
+ "$ref": "#/components/responses/NotFoundError"
12658
+ },
12659
+ "default": {
12660
+ "$ref": "#/components/responses/UnexpectedError"
12661
+ }
12662
+ }
12663
+ }
12664
+ },
12415
12665
  "/integrations/{integrationName}/installations/{installationId}": {
12416
12666
  "get": {
12417
12667
  "operationId": "getIntegrationInstallationById",
@@ -14624,6 +14874,12 @@
14624
14874
  },
14625
14875
  "description": {
14626
14876
  "$ref": "#/components/schemas/CustomFieldDescription"
14877
+ },
14878
+ "placeholder": {
14879
+ "$ref": "#/components/schemas/CustomFieldPlaceholder"
14880
+ },
14881
+ "options": {
14882
+ "$ref": "#/components/schemas/CustomFieldOptions"
14627
14883
  }
14628
14884
  },
14629
14885
  "required": [
@@ -14742,6 +14998,12 @@
14742
14998
  },
14743
14999
  "description": {
14744
15000
  "$ref": "#/components/schemas/CustomFieldDescription"
15001
+ },
15002
+ "placeholder": {
15003
+ "$ref": "#/components/schemas/CustomFieldPlaceholder"
15004
+ },
15005
+ "options": {
15006
+ "$ref": "#/components/schemas/CustomFieldOptions"
14745
15007
  }
14746
15008
  }
14747
15009
  }
@@ -15327,9 +15589,6 @@
15327
15589
  "application/json": {
15328
15590
  "schema": {
15329
15591
  "type": "object",
15330
- "required": [
15331
- "entities"
15332
- ],
15333
15592
  "properties": {
15334
15593
  "delete": {
15335
15594
  "oneOf": [
package/spec/openapi.yaml CHANGED
@@ -1695,6 +1695,8 @@ components:
1695
1695
  type: integer
1696
1696
  speech:
1697
1697
  type: integer
1698
+ thread.message:
1699
+ type: integer
1698
1700
  contributors:
1699
1701
  type: array
1700
1702
  minItems: 1
@@ -1747,12 +1749,16 @@ components:
1747
1749
  oneOf:
1748
1750
  - $ref: "#/components/schemas/RecordingTerminalCommandEvent"
1749
1751
  - $ref: "#/components/schemas/RecordingSpeechEvent"
1752
+ - $ref: "#/components/schemas/RecordingThreadMessageEvent"
1753
+ - $ref: "#/components/schemas/RecordingFileAddedEvent"
1754
+ - $ref: "#/components/schemas/RecordingFileChangedEvent"
1755
+ - $ref: "#/components/schemas/RecordingFileRemovedEvent"
1750
1756
  RecordingContext:
1751
1757
  oneOf:
1752
1758
  - type: string
1753
1759
  enum:
1754
1760
  - meeting
1755
- - conversation
1761
+ - thread
1756
1762
  - walkthrough
1757
1763
  BaseRecordingEvent:
1758
1764
  type: object
@@ -1822,6 +1828,73 @@ components:
1822
1828
  - type
1823
1829
  - command
1824
1830
  - stdout
1831
+ RecordingThreadMessageEvent:
1832
+ allOf:
1833
+ - $ref: "#/components/schemas/BaseRecordingEvent"
1834
+ - type: object
1835
+ properties:
1836
+ type:
1837
+ type: string
1838
+ enum:
1839
+ - thread.message
1840
+ isFirst:
1841
+ type: boolean
1842
+ text:
1843
+ type: string
1844
+ required:
1845
+ - type
1846
+ - text
1847
+ RecordingFileAddedEvent:
1848
+ allOf:
1849
+ - $ref: "#/components/schemas/BaseRecordingEvent"
1850
+ - type: object
1851
+ properties:
1852
+ type:
1853
+ type: string
1854
+ enum:
1855
+ - file.added
1856
+ filename:
1857
+ type: string
1858
+ fileSnapshot:
1859
+ type: string
1860
+ required:
1861
+ - type
1862
+ - filename
1863
+ - fileSnapshot
1864
+ RecordingFileChangedEvent:
1865
+ allOf:
1866
+ - $ref: "#/components/schemas/BaseRecordingEvent"
1867
+ - type: object
1868
+ properties:
1869
+ type:
1870
+ type: string
1871
+ enum:
1872
+ - file.changed
1873
+ filename:
1874
+ type: string
1875
+ fileDiff:
1876
+ type: string
1877
+ required:
1878
+ - type
1879
+ - filename
1880
+ - fileDiff
1881
+ RecordingFileRemovedEvent:
1882
+ allOf:
1883
+ - $ref: "#/components/schemas/BaseRecordingEvent"
1884
+ - type: object
1885
+ properties:
1886
+ type:
1887
+ type: string
1888
+ enum:
1889
+ - file.removed
1890
+ filename:
1891
+ type: string
1892
+ fileSnapshot:
1893
+ type: string
1894
+ required:
1895
+ - type
1896
+ - filename
1897
+ - fileSnapshot
1825
1898
  ChangeRequest:
1826
1899
  type: object
1827
1900
  properties:
@@ -2574,6 +2647,7 @@ components:
2574
2647
  - collaboration
2575
2648
  - marketing
2576
2649
  - content
2650
+ - gitsync
2577
2651
  - other
2578
2652
  IntegrationConfigurations:
2579
2653
  type: object
@@ -2776,6 +2850,9 @@ components:
2776
2850
  $ref: "#/components/schemas/IntegrationSpaceInstallation"
2777
2851
  secrets:
2778
2852
  $ref: "#/components/schemas/IntegrationSecrets"
2853
+ signingSecret:
2854
+ type: string
2855
+ description: Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
2779
2856
  apiEndpoint:
2780
2857
  type: string
2781
2858
  description: URL of the HTTP API
@@ -3137,6 +3214,7 @@ components:
3137
3214
  oneOf:
3138
3215
  - $ref: "#/components/schemas/InstallationSetupEvent"
3139
3216
  - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
3217
+ - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
3140
3218
  - $ref: "#/components/schemas/SpaceViewEvent"
3141
3219
  - $ref: "#/components/schemas/SpaceContentUpdatedEvent"
3142
3220
  - $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
@@ -3234,6 +3312,26 @@ components:
3234
3312
  required:
3235
3313
  - type
3236
3314
  - status
3315
+ SpaceInstallationDeletedEvent:
3316
+ allOf:
3317
+ - $ref: "#/components/schemas/SpaceEvent"
3318
+ - type: object
3319
+ description: Event received when integration has been uninstalled from a space.
3320
+ properties:
3321
+ type:
3322
+ type: string
3323
+ enum:
3324
+ - space_installation_deleted
3325
+ previous:
3326
+ type: object
3327
+ description: The state of the Space installation before it was deleted.
3328
+ properties:
3329
+ configuration:
3330
+ type: object
3331
+ description: The previous configuration of the Space installation.
3332
+ required:
3333
+ - type
3334
+ - previous
3237
3335
  SpaceViewEvent:
3238
3336
  allOf:
3239
3337
  - $ref: "#/components/schemas/SpaceEvent"
@@ -4232,6 +4330,7 @@ components:
4232
4330
  - link
4233
4331
  - link-external
4234
4332
  - eye
4333
+ - lock
4235
4334
  ContentKitModal:
4236
4335
  type: object
4237
4336
  description: Overlay modal.
@@ -5096,6 +5195,10 @@ components:
5096
5195
  $ref: "#/components/schemas/CustomFieldDescription"
5097
5196
  type:
5098
5197
  $ref: "#/components/schemas/CustomFieldType"
5198
+ placeholder:
5199
+ $ref: "#/components/schemas/CustomFieldPlaceholder"
5200
+ options:
5201
+ $ref: "#/components/schemas/CustomFieldOptions"
5099
5202
  createdAt:
5100
5203
  $ref: "#/components/schemas/Date"
5101
5204
  updatedAt:
@@ -5115,13 +5218,14 @@ components:
5115
5218
  - name
5116
5219
  - title
5117
5220
  - description
5221
+ - placeholder
5118
5222
  - type
5119
5223
  - createdAt
5120
5224
  - updatedAt
5121
5225
  - urls
5122
5226
  CustomFieldName:
5123
5227
  type: string
5124
- pattern: ^[a-zA-Z_\-0-9]+$
5228
+ pattern: ^[a-z_\-0-9]+$
5125
5229
  minLength: 1
5126
5230
  maxLength: 50
5127
5231
  CustomFieldTitle:
@@ -5137,6 +5241,8 @@ components:
5137
5241
  - number
5138
5242
  - boolean
5139
5243
  - tags
5244
+ - select:multi
5245
+ - select:single
5140
5246
  CustomFieldValue:
5141
5247
  oneOf:
5142
5248
  - type: string
@@ -5174,6 +5280,17 @@ components:
5174
5280
  - value
5175
5281
  required:
5176
5282
  - values
5283
+ CustomFieldOptions:
5284
+ type: array
5285
+ minItems: 1
5286
+ maxItems: 50
5287
+ items:
5288
+ type: string
5289
+ minLength: 1
5290
+ maxLength: 40
5291
+ CustomFieldPlaceholder:
5292
+ type: string
5293
+ maxLength: 100
5177
5294
  Environment:
5178
5295
  type: object
5179
5296
  description: An environment
@@ -7769,6 +7886,40 @@ paths:
7769
7886
  application/json:
7770
7887
  schema:
7771
7888
  $ref: "#/components/schemas/RequestRenderIntegrationUI"
7889
+ "/integrations/{integrationName}/tasks":
7890
+ post:
7891
+ operationId: queueIntegrationTask
7892
+ summary: Queue a task for an integration to be executed later
7893
+ tags:
7894
+ - integrations
7895
+ security:
7896
+ - integration: []
7897
+ parameters:
7898
+ - $ref: "#/components/parameters/integrationName"
7899
+ requestBody:
7900
+ required: true
7901
+ content:
7902
+ application/json:
7903
+ schema:
7904
+ type: object
7905
+ properties:
7906
+ task:
7907
+ type: object
7908
+ description: Payload for the integration task
7909
+ schedule:
7910
+ type: number
7911
+ description: Number of seconds to wait before executing the task, defaults to 0
7912
+ minimum: 0
7913
+ maximum: 86400
7914
+ required:
7915
+ - task
7916
+ responses:
7917
+ "204":
7918
+ description: Integration task created successfully
7919
+ "404":
7920
+ $ref: "#/components/responses/NotFoundError"
7921
+ default:
7922
+ $ref: "#/components/responses/UnexpectedError"
7772
7923
  "/integrations/{integrationName}/installations/{installationId}":
7773
7924
  get:
7774
7925
  operationId: getIntegrationInstallationById
@@ -9050,6 +9201,10 @@ paths:
9050
9201
  $ref: "#/components/schemas/CustomFieldTitle"
9051
9202
  description:
9052
9203
  $ref: "#/components/schemas/CustomFieldDescription"
9204
+ placeholder:
9205
+ $ref: "#/components/schemas/CustomFieldPlaceholder"
9206
+ options:
9207
+ $ref: "#/components/schemas/CustomFieldOptions"
9053
9208
  required:
9054
9209
  - name
9055
9210
  - type
@@ -9121,6 +9276,10 @@ paths:
9121
9276
  $ref: "#/components/schemas/CustomFieldTitle"
9122
9277
  description:
9123
9278
  $ref: "#/components/schemas/CustomFieldDescription"
9279
+ placeholder:
9280
+ $ref: "#/components/schemas/CustomFieldPlaceholder"
9281
+ options:
9282
+ $ref: "#/components/schemas/CustomFieldOptions"
9124
9283
  responses:
9125
9284
  "200":
9126
9285
  description: OK
@@ -9439,8 +9598,6 @@ paths:
9439
9598
  application/json:
9440
9599
  schema:
9441
9600
  type: object
9442
- required:
9443
- - entities
9444
9601
  properties:
9445
9602
  delete:
9446
9603
  oneOf: