sim 2.2.24-preview.275.1 → 2.2.24-preview.276.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,6 +4495,18 @@ 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
+ };
4498
4510
  /** `GET /api/v2/knowledge/[knowledgeBaseId]` */
4499
4511
  export type GetKnowledgeBaseParams = {
4500
4512
  knowledgeBaseId: string;
@@ -9262,6 +9274,29 @@ type RenameProjectFileResponseRef0 = {
9262
9274
  export type RenameProjectFileResponse = {
9263
9275
  data: RenameProjectFileResponseRef0;
9264
9276
  };
9277
+ /** `PUT /api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions` */
9278
+ export type ReplaceGitLabSearchPermissionsParams = {
9279
+ organizationId: string;
9280
+ sourceId: string;
9281
+ };
9282
+ export type ReplaceGitLabSearchPermissionsQuery = Record<string, unknown>;
9283
+ export type ReplaceGitLabSearchPermissionsBody = {
9284
+ expectedRevision: number;
9285
+ userMapping: {
9286
+ filename: string;
9287
+ content: string;
9288
+ };
9289
+ projectPermissions: {
9290
+ filename: string;
9291
+ content: string;
9292
+ };
9293
+ };
9294
+ type ReplaceGitLabSearchPermissionsResponseRef0 = {
9295
+ revision: number;
9296
+ };
9297
+ export type ReplaceGitLabSearchPermissionsResponse = {
9298
+ data: ReplaceGitLabSearchPermissionsResponseRef0;
9299
+ };
9265
9300
  /** `PUT /api/v2/workflows/[workflowId]/deployments/chat` */
9266
9301
  export type ReplaceWorkflowChatDeploymentParams = {
9267
9302
  workflowId: string;
@@ -14895,6 +14930,18 @@ export declare const V2_OPERATIONS: {
14895
14930
  };
14896
14931
  };
14897
14932
  };
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
+ };
14898
14945
  readonly getKnowledgeBase: {
14899
14946
  readonly method: 'GET';
14900
14947
  readonly path: '/api/v2/knowledge/[knowledgeBaseId]';
@@ -18895,6 +18942,35 @@ export declare const V2_OPERATIONS: {
18895
18942
  };
18896
18943
  };
18897
18944
  };
18945
+ readonly replaceGitLabSearchPermissions: {
18946
+ readonly method: 'PUT';
18947
+ readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions';
18948
+ readonly pathParams: readonly ['organizationId', 'sourceId'];
18949
+ readonly pathParamDocs: {
18950
+ readonly organizationId: 'Organization identifier.';
18951
+ readonly sourceId: 'Identifier of the configured GitLab Search source.';
18952
+ };
18953
+ readonly responseMode: 'json';
18954
+ readonly summary: 'Replace GitLab Search permission CSVs';
18955
+ readonly workspaceKeyUnsupported: true;
18956
+ readonly body: {
18957
+ readonly expectedRevision: {
18958
+ readonly kind: 'integer';
18959
+ 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.';
18966
+ };
18967
+ readonly projectPermissions: {
18968
+ readonly kind: 'object';
18969
+ readonly required: true;
18970
+ readonly describe: 'GitLab project paths and the IDs of users granted access.';
18971
+ };
18972
+ };
18973
+ };
18898
18974
  readonly replaceWorkflowChatDeployment: {
18899
18975
  readonly method: 'PUT';
18900
18976
  readonly path: '/api/v2/workflows/[workflowId]/deployments/chat';
package/dist/index.js CHANGED
@@ -12220,6 +12220,18 @@ 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
+ },
12223
12235
  getKnowledgeBase: {
12224
12236
  method: "GET",
12225
12237
  path: "/api/v2/knowledge/[knowledgeBaseId]",
@@ -16243,6 +16255,35 @@ var V2_OPERATIONS = {
16243
16255
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16244
16256
  }
16245
16257
  },
16258
+ replaceGitLabSearchPermissions: {
16259
+ method: "PUT",
16260
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
16261
+ pathParams: ["organizationId", "sourceId"],
16262
+ pathParamDocs: {
16263
+ organizationId: "Organization identifier.",
16264
+ sourceId: "Identifier of the configured GitLab Search source."
16265
+ },
16266
+ responseMode: "json",
16267
+ summary: "Replace GitLab Search permission CSVs",
16268
+ workspaceKeyUnsupported: true,
16269
+ body: {
16270
+ expectedRevision: {
16271
+ kind: "integer",
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."
16279
+ },
16280
+ projectPermissions: {
16281
+ kind: "object",
16282
+ required: true,
16283
+ describe: "GitLab project paths and the IDs of users granted access."
16284
+ }
16285
+ }
16286
+ },
16246
16287
  replaceWorkflowChatDeployment: {
16247
16288
  method: "PUT",
16248
16289
  path: "/api/v2/workflows/[workflowId]/deployments/chat",
@@ -19975,6 +20016,15 @@ var CLI_CONTRACT = {
19975
20016
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
19976
20017
  },
19977
20018
  getOrganization: { command: "organizations get" },
20019
+ getGitLabSearchPermissions: {
20020
+ command: "organizations gitlab-permissions get",
20021
+ pathFlags: ORGANIZATION_FLAG
20022
+ },
20023
+ replaceGitLabSearchPermissions: {
20024
+ command: "organizations gitlab-permissions replace",
20025
+ pathFlags: ORGANIZATION_FLAG,
20026
+ confirm: "This replaces both GitLab permission files. Readers omitted from the new grants lose access."
20027
+ },
19978
20028
  listSsoProviders: {
19979
20029
  command: "organizations sso providers list",
19980
20030
  pathFlags: ORGANIZATION_FLAG,
package/dist/runtime.js CHANGED
@@ -12269,6 +12269,18 @@ 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
+ },
12272
12284
  getKnowledgeBase: {
12273
12285
  method: "GET",
12274
12286
  path: "/api/v2/knowledge/[knowledgeBaseId]",
@@ -16292,6 +16304,35 @@ var V2_OPERATIONS = {
16292
16304
  name: { kind: "string", required: true, describe: "New file name, including its extension." }
16293
16305
  }
16294
16306
  },
16307
+ replaceGitLabSearchPermissions: {
16308
+ method: "PUT",
16309
+ path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/gitlab-permissions",
16310
+ pathParams: ["organizationId", "sourceId"],
16311
+ pathParamDocs: {
16312
+ organizationId: "Organization identifier.",
16313
+ sourceId: "Identifier of the configured GitLab Search source."
16314
+ },
16315
+ responseMode: "json",
16316
+ summary: "Replace GitLab Search permission CSVs",
16317
+ workspaceKeyUnsupported: true,
16318
+ body: {
16319
+ expectedRevision: {
16320
+ kind: "integer",
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."
16328
+ },
16329
+ projectPermissions: {
16330
+ kind: "object",
16331
+ required: true,
16332
+ describe: "GitLab project paths and the IDs of users granted access."
16333
+ }
16334
+ }
16335
+ },
16295
16336
  replaceWorkflowChatDeployment: {
16296
16337
  method: "PUT",
16297
16338
  path: "/api/v2/workflows/[workflowId]/deployments/chat",
@@ -20024,6 +20065,15 @@ var CLI_CONTRACT = {
20024
20065
  columns: [{ header: "id" }, { header: "name" }, { header: "role" }]
20025
20066
  },
20026
20067
  getOrganization: { command: "organizations get" },
20068
+ getGitLabSearchPermissions: {
20069
+ command: "organizations gitlab-permissions get",
20070
+ pathFlags: ORGANIZATION_FLAG
20071
+ },
20072
+ replaceGitLabSearchPermissions: {
20073
+ command: "organizations gitlab-permissions replace",
20074
+ pathFlags: ORGANIZATION_FLAG,
20075
+ confirm: "This replaces both GitLab permission files. Readers omitted from the new grants lose access."
20076
+ },
20027
20077
  listSsoProviders: {
20028
20078
  command: "organizations sso providers list",
20029
20079
  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.276.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {