sim 2.2.24-preview.276.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.
@@ -4495,18 +4495,6 @@ type GetFileVersionResponseRef0 = {
4495
4495
  export type GetFileVersionResponse = {
4496
4496
  data: GetFileVersionResponseRef0;
4497
4497
  };
4498
- /** `GET /api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions` */
4499
- export type GetGitLabSearchPermissionsParams = {
4500
- organizationId: string;
4501
- sourceId: string;
4502
- };
4503
- export type GetGitLabSearchPermissionsQuery = Record<string, unknown>;
4504
- type GetGitLabSearchPermissionsResponseRef0 = {
4505
- revision: number;
4506
- };
4507
- export type GetGitLabSearchPermissionsResponse = {
4508
- data: GetGitLabSearchPermissionsResponseRef0;
4509
- };
4510
4498
  /** `GET /api/v2/knowledge/[knowledgeBaseId]` */
4511
4499
  export type GetKnowledgeBaseParams = {
4512
4500
  knowledgeBaseId: string;
@@ -5287,6 +5275,18 @@ type GetSandboxResponseRef0 = {
5287
5275
  export type GetSandboxResponse = {
5288
5276
  data: GetSandboxResponseRef0;
5289
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
+ };
5290
5290
  /** `POST /api/v2/selectors/get` */
5291
5291
  export type GetSelectorQuery = Record<string, unknown>;
5292
5292
  export type GetSelectorBody = {
@@ -9274,28 +9274,31 @@ type RenameProjectFileResponseRef0 = {
9274
9274
  export type RenameProjectFileResponse = {
9275
9275
  data: RenameProjectFileResponseRef0;
9276
9276
  };
9277
- /** `PUT /api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions` */
9278
- export type ReplaceGitLabSearchPermissionsParams = {
9277
+ /** `PUT /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions` */
9278
+ export type ReplaceSearchSourcePermissionsParams = {
9279
9279
  organizationId: string;
9280
9280
  sourceId: string;
9281
9281
  };
9282
- export type ReplaceGitLabSearchPermissionsQuery = Record<string, unknown>;
9283
- export type ReplaceGitLabSearchPermissionsBody = {
9282
+ export type ReplaceSearchSourcePermissionsQuery = Record<string, unknown>;
9283
+ export type ReplaceSearchSourcePermissionsBody = {
9284
9284
  expectedRevision: number;
9285
- userMapping: {
9286
- filename: string;
9287
- content: string;
9288
- };
9289
- projectPermissions: {
9290
- filename: string;
9291
- content: string;
9285
+ permissions: {
9286
+ provider: 'gitlab';
9287
+ userMapping: {
9288
+ filename: string;
9289
+ content: string;
9290
+ };
9291
+ projectPermissions: {
9292
+ filename: string;
9293
+ content: string;
9294
+ };
9292
9295
  };
9293
9296
  };
9294
- type ReplaceGitLabSearchPermissionsResponseRef0 = {
9297
+ type ReplaceSearchSourcePermissionsResponseRef0 = {
9295
9298
  revision: number;
9296
9299
  };
9297
- export type ReplaceGitLabSearchPermissionsResponse = {
9298
- data: ReplaceGitLabSearchPermissionsResponseRef0;
9300
+ export type ReplaceSearchSourcePermissionsResponse = {
9301
+ data: ReplaceSearchSourcePermissionsResponseRef0;
9299
9302
  };
9300
9303
  /** `PUT /api/v2/workflows/[workflowId]/deployments/chat` */
9301
9304
  export type ReplaceWorkflowChatDeploymentParams = {
@@ -14930,18 +14933,6 @@ export declare const V2_OPERATIONS: {
14930
14933
  };
14931
14934
  };
14932
14935
  };
14933
- readonly getGitLabSearchPermissions: {
14934
- readonly method: 'GET';
14935
- readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions';
14936
- readonly pathParams: readonly ['organizationId', 'sourceId'];
14937
- readonly pathParamDocs: {
14938
- readonly organizationId: 'Organization identifier.';
14939
- readonly sourceId: 'Identifier of the configured GitLab Search source.';
14940
- };
14941
- readonly responseMode: 'json';
14942
- readonly summary: 'Get GitLab Search permission revision';
14943
- readonly workspaceKeyUnsupported: true;
14944
- };
14945
14936
  readonly getKnowledgeBase: {
14946
14937
  readonly method: 'GET';
14947
14938
  readonly path: '/api/v2/knowledge/[knowledgeBaseId]';
@@ -15416,6 +15407,18 @@ export declare const V2_OPERATIONS: {
15416
15407
  };
15417
15408
  };
15418
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
+ };
15419
15422
  readonly getSelector: {
15420
15423
  readonly method: 'POST';
15421
15424
  readonly path: '/api/v2/selectors/get';
@@ -18942,32 +18945,27 @@ export declare const V2_OPERATIONS: {
18942
18945
  };
18943
18946
  };
18944
18947
  };
18945
- readonly replaceGitLabSearchPermissions: {
18948
+ readonly replaceSearchSourcePermissions: {
18946
18949
  readonly method: 'PUT';
18947
- readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions';
18950
+ readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions';
18948
18951
  readonly pathParams: readonly ['organizationId', 'sourceId'];
18949
18952
  readonly pathParamDocs: {
18950
18953
  readonly organizationId: 'Organization identifier.';
18951
- readonly sourceId: 'Identifier of the configured GitLab Search source.';
18954
+ readonly sourceId: 'Identifier of the configured Search source.';
18952
18955
  };
18953
18956
  readonly responseMode: 'json';
18954
- readonly summary: 'Replace GitLab Search permission CSVs';
18957
+ readonly summary: 'Replace Search source permissions';
18955
18958
  readonly workspaceKeyUnsupported: true;
18956
18959
  readonly body: {
18957
18960
  readonly expectedRevision: {
18958
18961
  readonly kind: 'integer';
18959
18962
  readonly required: true;
18960
- readonly describe: 'Current permission revision obtained before generating this snapshot.';
18961
- };
18962
- readonly userMapping: {
18963
- readonly kind: 'object';
18964
- readonly required: true;
18965
- readonly describe: 'GitLab user IDs and their verified Sim email addresses.';
18963
+ readonly describe: 'Permission revision read before exporting the grants.';
18966
18964
  };
18967
- readonly projectPermissions: {
18965
+ readonly permissions: {
18968
18966
  readonly kind: 'object';
18969
18967
  readonly required: true;
18970
- readonly describe: 'GitLab project paths and the IDs of users granted access.';
18968
+ readonly describe: 'Complete permission grants in the source provider’s format.';
18971
18969
  };
18972
18970
  };
18973
18971
  };
package/dist/index.js CHANGED
@@ -12220,18 +12220,6 @@ var V2_OPERATIONS = {
12220
12220
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." }
12221
12221
  }
12222
12222
  },
12223
- getGitLabSearchPermissions: {
12224
- method: "GET",
12225
- path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
12226
- pathParams: ["organizationId", "sourceId"],
12227
- pathParamDocs: {
12228
- organizationId: "Organization identifier.",
12229
- sourceId: "Identifier of the configured GitLab Search source."
12230
- },
12231
- responseMode: "json",
12232
- summary: "Get GitLab Search permission revision",
12233
- workspaceKeyUnsupported: true
12234
- },
12235
12223
  getKnowledgeBase: {
12236
12224
  method: "GET",
12237
12225
  path: "/api/v2/knowledge/[knowledgeBaseId]",
@@ -12687,6 +12675,18 @@ var V2_OPERATIONS = {
12687
12675
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the sandbox." }
12688
12676
  }
12689
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
+ },
12690
12690
  getSelector: {
12691
12691
  method: "POST",
12692
12692
  path: "/api/v2/selectors/get",
@@ -16255,32 +16255,27 @@ var V2_OPERATIONS = {
16255
16255
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16256
16256
  }
16257
16257
  },
16258
- replaceGitLabSearchPermissions: {
16258
+ replaceSearchSourcePermissions: {
16259
16259
  method: "PUT",
16260
- path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
16260
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
16261
16261
  pathParams: ["organizationId", "sourceId"],
16262
16262
  pathParamDocs: {
16263
16263
  organizationId: "Organization identifier.",
16264
- sourceId: "Identifier of the configured GitLab Search source."
16264
+ sourceId: "Identifier of the configured Search source."
16265
16265
  },
16266
16266
  responseMode: "json",
16267
- summary: "Replace GitLab Search permission CSVs",
16267
+ summary: "Replace Search source permissions",
16268
16268
  workspaceKeyUnsupported: true,
16269
16269
  body: {
16270
16270
  expectedRevision: {
16271
16271
  kind: "integer",
16272
16272
  required: true,
16273
- describe: "Current permission revision obtained before generating this snapshot."
16274
- },
16275
- userMapping: {
16276
- kind: "object",
16277
- required: true,
16278
- describe: "GitLab user IDs and their verified Sim email addresses."
16273
+ describe: "Permission revision read before exporting the grants."
16279
16274
  },
16280
- projectPermissions: {
16275
+ permissions: {
16281
16276
  kind: "object",
16282
16277
  required: true,
16283
- describe: "GitLab project paths and the IDs of users granted access."
16278
+ describe: "Complete permission grants in the source provider’s format."
16284
16279
  }
16285
16280
  }
16286
16281
  },
@@ -20016,14 +20011,14 @@ var CLI_CONTRACT = {
20016
20011
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
20017
20012
  },
20018
20013
  getOrganization: { command: "organizations get" },
20019
- getGitLabSearchPermissions: {
20020
- command: "organizations gitlab-permissions get",
20014
+ getSearchSourcePermissions: {
20015
+ command: "organizations search sources permissions get",
20021
20016
  pathFlags: ORGANIZATION_FLAG
20022
20017
  },
20023
- replaceGitLabSearchPermissions: {
20024
- command: "organizations gitlab-permissions replace",
20018
+ replaceSearchSourcePermissions: {
20019
+ command: "organizations search sources permissions replace",
20025
20020
  pathFlags: ORGANIZATION_FLAG,
20026
- confirm: "This replaces both GitLab permission files. Readers omitted from the new grants lose access."
20021
+ confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
20027
20022
  },
20028
20023
  listSsoProviders: {
20029
20024
  command: "organizations sso providers list",
package/dist/runtime.js CHANGED
@@ -12269,18 +12269,6 @@ var V2_OPERATIONS = {
12269
12269
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." }
12270
12270
  }
12271
12271
  },
12272
- getGitLabSearchPermissions: {
12273
- method: "GET",
12274
- path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
12275
- pathParams: ["organizationId", "sourceId"],
12276
- pathParamDocs: {
12277
- organizationId: "Organization identifier.",
12278
- sourceId: "Identifier of the configured GitLab Search source."
12279
- },
12280
- responseMode: "json",
12281
- summary: "Get GitLab Search permission revision",
12282
- workspaceKeyUnsupported: true
12283
- },
12284
12272
  getKnowledgeBase: {
12285
12273
  method: "GET",
12286
12274
  path: "/api/v2/knowledge/[knowledgeBaseId]",
@@ -12736,6 +12724,18 @@ var V2_OPERATIONS = {
12736
12724
  workspaceId: { kind: "string", required: true, describe: "Workspace that owns the sandbox." }
12737
12725
  }
12738
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
+ },
12739
12739
  getSelector: {
12740
12740
  method: "POST",
12741
12741
  path: "/api/v2/selectors/get",
@@ -16304,32 +16304,27 @@ var V2_OPERATIONS = {
16304
16304
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16305
16305
  }
16306
16306
  },
16307
- replaceGitLabSearchPermissions: {
16307
+ replaceSearchSourcePermissions: {
16308
16308
  method: "PUT",
16309
- path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
16309
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions",
16310
16310
  pathParams: ["organizationId", "sourceId"],
16311
16311
  pathParamDocs: {
16312
16312
  organizationId: "Organization identifier.",
16313
- sourceId: "Identifier of the configured GitLab Search source."
16313
+ sourceId: "Identifier of the configured Search source."
16314
16314
  },
16315
16315
  responseMode: "json",
16316
- summary: "Replace GitLab Search permission CSVs",
16316
+ summary: "Replace Search source permissions",
16317
16317
  workspaceKeyUnsupported: true,
16318
16318
  body: {
16319
16319
  expectedRevision: {
16320
16320
  kind: "integer",
16321
16321
  required: true,
16322
- describe: "Current permission revision obtained before generating this snapshot."
16323
- },
16324
- userMapping: {
16325
- kind: "object",
16326
- required: true,
16327
- describe: "GitLab user IDs and their verified Sim email addresses."
16322
+ describe: "Permission revision read before exporting the grants."
16328
16323
  },
16329
- projectPermissions: {
16324
+ permissions: {
16330
16325
  kind: "object",
16331
16326
  required: true,
16332
- describe: "GitLab project paths and the IDs of users granted access."
16327
+ describe: "Complete permission grants in the source provider’s format."
16333
16328
  }
16334
16329
  }
16335
16330
  },
@@ -20065,14 +20060,14 @@ var CLI_CONTRACT = {
20065
20060
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
20066
20061
  },
20067
20062
  getOrganization: { command: "organizations get" },
20068
- getGitLabSearchPermissions: {
20069
- command: "organizations gitlab-permissions get",
20063
+ getSearchSourcePermissions: {
20064
+ command: "organizations search sources permissions get",
20070
20065
  pathFlags: ORGANIZATION_FLAG
20071
20066
  },
20072
- replaceGitLabSearchPermissions: {
20073
- command: "organizations gitlab-permissions replace",
20067
+ replaceSearchSourcePermissions: {
20068
+ command: "organizations search sources permissions replace",
20074
20069
  pathFlags: ORGANIZATION_FLAG,
20075
- confirm: "This replaces both GitLab permission files. Readers omitted from the new grants lose access."
20070
+ confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
20076
20071
  },
20077
20072
  listSsoProviders: {
20078
20073
  command: "organizations sso providers list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.24-preview.276.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": {