sim 2.2.24-preview.275.1 → 2.2.24-preview.277.1

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.
@@ -5275,6 +5275,18 @@ type GetSandboxResponseRef0 = {
5275
5275
  export type GetSandboxResponse = {
5276
5276
  data: GetSandboxResponseRef0;
5277
5277
  };
5278
+ /** `GET /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions` */
5279
+ export type GetSearchSourcePermissionsParams = {
5280
+ organizationId: string;
5281
+ sourceId: string;
5282
+ };
5283
+ export type GetSearchSourcePermissionsQuery = Record<string, unknown>;
5284
+ type GetSearchSourcePermissionsResponseRef0 = {
5285
+ revision: number;
5286
+ };
5287
+ export type GetSearchSourcePermissionsResponse = {
5288
+ data: GetSearchSourcePermissionsResponseRef0;
5289
+ };
5278
5290
  /** `POST /api/v2/selectors/get` */
5279
5291
  export type GetSelectorQuery = Record<string, unknown>;
5280
5292
  export type GetSelectorBody = {
@@ -9262,6 +9274,32 @@ type RenameProjectFileResponseRef0 = {
9262
9274
  export type RenameProjectFileResponse = {
9263
9275
  data: RenameProjectFileResponseRef0;
9264
9276
  };
9277
+ /** `PUT /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions` */
9278
+ export type ReplaceSearchSourcePermissionsParams = {
9279
+ organizationId: string;
9280
+ sourceId: string;
9281
+ };
9282
+ export type ReplaceSearchSourcePermissionsQuery = Record<string, unknown>;
9283
+ export type ReplaceSearchSourcePermissionsBody = {
9284
+ expectedRevision: number;
9285
+ permissions: {
9286
+ provider: 'gitlab';
9287
+ userMapping: {
9288
+ filename: string;
9289
+ content: string;
9290
+ };
9291
+ projectPermissions: {
9292
+ filename: string;
9293
+ content: string;
9294
+ };
9295
+ };
9296
+ };
9297
+ type ReplaceSearchSourcePermissionsResponseRef0 = {
9298
+ revision: number;
9299
+ };
9300
+ export type ReplaceSearchSourcePermissionsResponse = {
9301
+ data: ReplaceSearchSourcePermissionsResponseRef0;
9302
+ };
9265
9303
  /** `PUT /api/v2/workflows/[workflowId]/deployments/chat` */
9266
9304
  export type ReplaceWorkflowChatDeploymentParams = {
9267
9305
  workflowId: string;
@@ -15369,6 +15407,18 @@ export declare const V2_OPERATIONS: {
15369
15407
  };
15370
15408
  };
15371
15409
  };
15410
+ readonly getSearchSourcePermissions: {
15411
+ readonly method: 'GET';
15412
+ readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions';
15413
+ readonly pathParams: readonly ['organizationId', 'sourceId'];
15414
+ readonly pathParamDocs: {
15415
+ readonly organizationId: 'Organization identifier.';
15416
+ readonly sourceId: 'Identifier of the configured Search source.';
15417
+ };
15418
+ readonly responseMode: 'json';
15419
+ readonly summary: 'Get Search source permission revision';
15420
+ readonly workspaceKeyUnsupported: true;
15421
+ };
15372
15422
  readonly getSelector: {
15373
15423
  readonly method: 'POST';
15374
15424
  readonly path: '/api/v2/selectors/get';
@@ -18895,6 +18945,30 @@ export declare const V2_OPERATIONS: {
18895
18945
  };
18896
18946
  };
18897
18947
  };
18948
+ readonly replaceSearchSourcePermissions: {
18949
+ readonly method: 'PUT';
18950
+ readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions';
18951
+ readonly pathParams: readonly ['organizationId', 'sourceId'];
18952
+ readonly pathParamDocs: {
18953
+ readonly organizationId: 'Organization identifier.';
18954
+ readonly sourceId: 'Identifier of the configured Search source.';
18955
+ };
18956
+ readonly responseMode: 'json';
18957
+ readonly summary: 'Replace Search source permissions';
18958
+ readonly workspaceKeyUnsupported: true;
18959
+ readonly body: {
18960
+ readonly expectedRevision: {
18961
+ readonly kind: 'integer';
18962
+ readonly required: true;
18963
+ readonly describe: 'Permission revision read before exporting the grants.';
18964
+ };
18965
+ readonly permissions: {
18966
+ readonly kind: 'object';
18967
+ readonly required: true;
18968
+ readonly describe: 'Complete permission grants in the source provider’s format.';
18969
+ };
18970
+ };
18971
+ };
18898
18972
  readonly replaceWorkflowChatDeployment: {
18899
18973
  readonly method: 'PUT';
18900
18974
  readonly path: '/api/v2/workflows/[workflowId]/deployments/chat';
package/dist/index.js CHANGED
@@ -12675,6 +12675,18 @@ var V2_OPERATIONS = {
12675
12675
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the sandbox." }
12676
12676
  }
12677
12677
  },
12678
+ getSearchSourcePermissions: {
12679
+ method: "GET",
12680
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
12681
+ pathParams: ["organizationId", "sourceId"],
12682
+ pathParamDocs: {
12683
+ organizationId: "Organization identifier.",
12684
+ sourceId: "Identifier of the configured Search source."
12685
+ },
12686
+ responseMode: "json",
12687
+ summary: "Get Search source permission revision",
12688
+ workspaceKeyUnsupported: true
12689
+ },
12678
12690
  getSelector: {
12679
12691
  method: "POST",
12680
12692
  path: "/api/v2/selectors/get",
@@ -16243,6 +16255,30 @@ var V2_OPERATIONS = {
16243
16255
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16244
16256
  }
16245
16257
  },
16258
+ replaceSearchSourcePermissions: {
16259
+ method: "PUT",
16260
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
16261
+ pathParams: ["organizationId", "sourceId"],
16262
+ pathParamDocs: {
16263
+ organizationId: "Organization identifier.",
16264
+ sourceId: "Identifier of the configured Search source."
16265
+ },
16266
+ responseMode: "json",
16267
+ summary: "Replace Search source permissions",
16268
+ workspaceKeyUnsupported: true,
16269
+ body: {
16270
+ expectedRevision: {
16271
+ kind: "integer",
16272
+ required: true,
16273
+ describe: "Permission revision read before exporting the grants."
16274
+ },
16275
+ permissions: {
16276
+ kind: "object",
16277
+ required: true,
16278
+ describe: "Complete permission grants in the source provider’s format."
16279
+ }
16280
+ }
16281
+ },
16246
16282
  replaceWorkflowChatDeployment: {
16247
16283
  method: "PUT",
16248
16284
  path: "/api/v2/workflows/[workflowId]/deployments/chat",
@@ -19975,6 +20011,15 @@ var CLI_CONTRACT = {
19975
20011
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
19976
20012
  },
19977
20013
  getOrganization: { command: "organizations get" },
20014
+ getSearchSourcePermissions: {
20015
+ command: "organizations search sources permissions get",
20016
+ pathFlags: ORGANIZATION_FLAG
20017
+ },
20018
+ replaceSearchSourcePermissions: {
20019
+ command: "organizations search sources permissions replace",
20020
+ pathFlags: ORGANIZATION_FLAG,
20021
+ confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
20022
+ },
19978
20023
  listSsoProviders: {
19979
20024
  command: "organizations sso providers list",
19980
20025
  pathFlags: ORGANIZATION_FLAG,
package/dist/runtime.js CHANGED
@@ -12724,6 +12724,18 @@ var V2_OPERATIONS = {
12724
12724
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the sandbox." }
12725
12725
  }
12726
12726
  },
12727
+ getSearchSourcePermissions: {
12728
+ method: "GET",
12729
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
12730
+ pathParams: ["organizationId", "sourceId"],
12731
+ pathParamDocs: {
12732
+ organizationId: "Organization identifier.",
12733
+ sourceId: "Identifier of the configured Search source."
12734
+ },
12735
+ responseMode: "json",
12736
+ summary: "Get Search source permission revision",
12737
+ workspaceKeyUnsupported: true
12738
+ },
12727
12739
  getSelector: {
12728
12740
  method: "POST",
12729
12741
  path: "/api/v2/selectors/get",
@@ -16292,6 +16304,30 @@ var V2_OPERATIONS = {
16292
16304
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16293
16305
  }
16294
16306
  },
16307
+ replaceSearchSourcePermissions: {
16308
+ method: "PUT",
16309
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
16310
+ pathParams: ["organizationId", "sourceId"],
16311
+ pathParamDocs: {
16312
+ organizationId: "Organization identifier.",
16313
+ sourceId: "Identifier of the configured Search source."
16314
+ },
16315
+ responseMode: "json",
16316
+ summary: "Replace Search source permissions",
16317
+ workspaceKeyUnsupported: true,
16318
+ body: {
16319
+ expectedRevision: {
16320
+ kind: "integer",
16321
+ required: true,
16322
+ describe: "Permission revision read before exporting the grants."
16323
+ },
16324
+ permissions: {
16325
+ kind: "object",
16326
+ required: true,
16327
+ describe: "Complete permission grants in the source provider’s format."
16328
+ }
16329
+ }
16330
+ },
16295
16331
  replaceWorkflowChatDeployment: {
16296
16332
  method: "PUT",
16297
16333
  path: "/api/v2/workflows/[workflowId]/deployments/chat",
@@ -20024,6 +20060,15 @@ var CLI_CONTRACT = {
20024
20060
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
20025
20061
  },
20026
20062
  getOrganization: { command: "organizations get" },
20063
+ getSearchSourcePermissions: {
20064
+ command: "organizations search sources permissions get",
20065
+ pathFlags: ORGANIZATION_FLAG
20066
+ },
20067
+ replaceSearchSourcePermissions: {
20068
+ command: "organizations search sources permissions replace",
20069
+ pathFlags: ORGANIZATION_FLAG,
20070
+ confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
20071
+ },
20027
20072
  listSsoProviders: {
20028
20073
  command: "organizations sso providers list",
20029
20074
  pathFlags: ORGANIZATION_FLAG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.24-preview.275.1",
3
+ "version": "2.2.24-preview.277.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {