@roarkanalytics/sdk 8.0.1 → 9.0.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +7 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -4
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +0 -88
  12. package/resources/agent-connection.d.mts.map +1 -1
  13. package/resources/agent-connection.d.ts +0 -88
  14. package/resources/agent-connection.d.ts.map +1 -1
  15. package/resources/agent.d.mts +2 -200
  16. package/resources/agent.d.mts.map +1 -1
  17. package/resources/agent.d.ts +2 -200
  18. package/resources/agent.d.ts.map +1 -1
  19. package/resources/conversation.d.mts +6 -95
  20. package/resources/conversation.d.mts.map +1 -1
  21. package/resources/conversation.d.ts +6 -95
  22. package/resources/conversation.d.ts.map +1 -1
  23. package/resources/conversation.js +5 -17
  24. package/resources/conversation.js.map +1 -1
  25. package/resources/conversation.mjs +5 -17
  26. package/resources/conversation.mjs.map +1 -1
  27. package/resources/customer-flow-folder.d.mts +157 -0
  28. package/resources/customer-flow-folder.d.mts.map +1 -0
  29. package/resources/customer-flow-folder.d.ts +157 -0
  30. package/resources/customer-flow-folder.d.ts.map +1 -0
  31. package/resources/customer-flow-folder.js +54 -0
  32. package/resources/customer-flow-folder.js.map +1 -0
  33. package/resources/customer-flow-folder.mjs +50 -0
  34. package/resources/customer-flow-folder.mjs.map +1 -0
  35. package/resources/customer-flow.d.mts +558 -2
  36. package/resources/customer-flow.d.mts.map +1 -1
  37. package/resources/customer-flow.d.ts +558 -2
  38. package/resources/customer-flow.d.ts.map +1 -1
  39. package/resources/customer-flow.js +2 -2
  40. package/resources/customer-flow.mjs +2 -2
  41. package/resources/dashboard.d.mts +3 -3
  42. package/resources/dashboard.d.ts +3 -3
  43. package/resources/dashboard.js +3 -3
  44. package/resources/dashboard.mjs +3 -3
  45. package/resources/index.d.mts +3 -3
  46. package/resources/index.d.mts.map +1 -1
  47. package/resources/index.d.ts +3 -3
  48. package/resources/index.d.ts.map +1 -1
  49. package/resources/index.js +3 -3
  50. package/resources/index.js.map +1 -1
  51. package/resources/index.mjs +2 -2
  52. package/resources/index.mjs.map +1 -1
  53. package/resources/live-report.d.mts +10 -10
  54. package/resources/live-report.d.ts +10 -10
  55. package/resources/me.d.mts +20 -19
  56. package/resources/me.d.mts.map +1 -1
  57. package/resources/me.d.ts +20 -19
  58. package/resources/me.d.ts.map +1 -1
  59. package/resources/me.js +14 -13
  60. package/resources/me.js.map +1 -1
  61. package/resources/me.mjs +14 -13
  62. package/resources/me.mjs.map +1 -1
  63. package/resources/metric.d.mts +60 -60
  64. package/resources/metric.d.ts +60 -60
  65. package/resources/simulation-group.d.mts +13 -13
  66. package/resources/simulation-group.d.ts +13 -13
  67. package/resources/simulation-group.js +5 -5
  68. package/resources/simulation-group.mjs +5 -5
  69. package/resources/simulation-run-group.d.mts +2 -2
  70. package/resources/simulation-run-group.d.ts +2 -2
  71. package/resources/simulation-run-group.js +2 -2
  72. package/resources/simulation-run-group.mjs +2 -2
  73. package/resources/simulation.d.mts +1086 -4
  74. package/resources/simulation.d.mts.map +1 -1
  75. package/resources/simulation.d.ts +1086 -4
  76. package/resources/simulation.d.ts.map +1 -1
  77. package/resources/simulation.js +106 -0
  78. package/resources/simulation.js.map +1 -1
  79. package/resources/simulation.mjs +106 -0
  80. package/resources/simulation.mjs.map +1 -1
  81. package/src/client.ts +39 -43
  82. package/src/resources/agent-connection.ts +0 -103
  83. package/src/resources/agent.ts +2 -317
  84. package/src/resources/conversation.ts +6 -126
  85. package/src/resources/customer-flow-folder.ts +235 -0
  86. package/src/resources/customer-flow.ts +862 -2
  87. package/src/resources/dashboard.ts +3 -3
  88. package/src/resources/index.ts +18 -20
  89. package/src/resources/live-report.ts +10 -10
  90. package/src/resources/me.ts +20 -19
  91. package/src/resources/metric.ts +60 -60
  92. package/src/resources/simulation-group.ts +13 -13
  93. package/src/resources/simulation-run-group.ts +2 -2
  94. package/src/resources/simulation.ts +1759 -52
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
  100. package/resources/agent-setup.d.mts +0 -1057
  101. package/resources/agent-setup.d.mts.map +0 -1
  102. package/resources/agent-setup.d.ts +0 -1057
  103. package/resources/agent-setup.d.ts.map +0 -1
  104. package/resources/agent-setup.js +0 -113
  105. package/resources/agent-setup.js.map +0 -1
  106. package/resources/agent-setup.mjs +0 -109
  107. package/resources/agent-setup.mjs.map +0 -1
  108. package/src/resources/agent-setup.ts +0 -1685
@@ -0,0 +1,157 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class CustomerFlowFolder extends APIResource {
5
+ /**
6
+ * Creates a folder to group customer flows. File a flow into it by sending its
7
+ * `folderId` when you create or update the flow. Names are unique within a
8
+ * project, ignoring case. Customer flows were previously called scenarios.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const customerFlowFolder =
13
+ * await client.customerFlowFolder.create({ name: 'x' });
14
+ * ```
15
+ */
16
+ create(body: CustomerFlowFolderCreateParams, options?: RequestOptions): APIPromise<CustomerFlowFolderCreateResponse>;
17
+ /**
18
+ * Returns every folder the project groups its customer flows into, with how many
19
+ * flows each holds, in the order the app shows them. Filter the flow list to one
20
+ * folder with `GET /v1/customer-flow?folderId=`. Customer flows were previously
21
+ * called scenarios.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const customerFlowFolders =
26
+ * await client.customerFlowFolder.list();
27
+ * ```
28
+ */
29
+ list(options?: RequestOptions): APIPromise<CustomerFlowFolderListResponse>;
30
+ /**
31
+ * Deletes a folder. The flows in it are kept and no longer sit in any folder.
32
+ * Built-in folders cannot be deleted.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const customerFlowFolder =
37
+ * await client.customerFlowFolder.delete(
38
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
39
+ * );
40
+ * ```
41
+ */
42
+ delete(folderID: string, options?: RequestOptions): APIPromise<CustomerFlowFolderDeleteResponse>;
43
+ }
44
+ export interface CustomerFlowFolderCreateResponse {
45
+ /**
46
+ * A folder that groups customer flows. A flow sits in at most one folder.
47
+ */
48
+ data: CustomerFlowFolderCreateResponse.Data;
49
+ }
50
+ export declare namespace CustomerFlowFolderCreateResponse {
51
+ /**
52
+ * A folder that groups customer flows. A flow sits in at most one folder.
53
+ */
54
+ interface Data {
55
+ id: string;
56
+ /**
57
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
58
+ * your flows filed in them.
59
+ */
60
+ builtIn: boolean;
61
+ /**
62
+ * The color the folder is shown with in the app. Folders share the palette labels
63
+ * use.
64
+ */
65
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
66
+ /**
67
+ * Creation timestamp in ISO 8601 format
68
+ */
69
+ createdAt: string;
70
+ /**
71
+ * What belongs in this folder.
72
+ */
73
+ description: string | null;
74
+ /**
75
+ * The folder name, unique within the project.
76
+ */
77
+ name: string;
78
+ /**
79
+ * Last update timestamp in ISO 8601 format
80
+ */
81
+ updatedAt: string;
82
+ }
83
+ }
84
+ /**
85
+ * The project's customer flow folders, in the order the app shows them.
86
+ */
87
+ export interface CustomerFlowFolderListResponse {
88
+ data: Array<CustomerFlowFolderListResponse.Data>;
89
+ }
90
+ export declare namespace CustomerFlowFolderListResponse {
91
+ /**
92
+ * A folder that groups customer flows. A flow sits in at most one folder.
93
+ */
94
+ interface Data {
95
+ id: string;
96
+ /**
97
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
98
+ * your flows filed in them.
99
+ */
100
+ builtIn: boolean;
101
+ /**
102
+ * The color the folder is shown with in the app. Folders share the palette labels
103
+ * use.
104
+ */
105
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
106
+ /**
107
+ * Creation timestamp in ISO 8601 format
108
+ */
109
+ createdAt: string;
110
+ /**
111
+ * What belongs in this folder.
112
+ */
113
+ description: string | null;
114
+ /**
115
+ * How many flows are in this folder.
116
+ */
117
+ flowCount: number;
118
+ /**
119
+ * The folder name, unique within the project.
120
+ */
121
+ name: string;
122
+ /**
123
+ * Last update timestamp in ISO 8601 format
124
+ */
125
+ updatedAt: string;
126
+ }
127
+ }
128
+ export interface CustomerFlowFolderDeleteResponse {
129
+ data: CustomerFlowFolderDeleteResponse.Data;
130
+ }
131
+ export declare namespace CustomerFlowFolderDeleteResponse {
132
+ interface Data {
133
+ /**
134
+ * Whether the folder was deleted
135
+ */
136
+ deleted: boolean;
137
+ }
138
+ }
139
+ export interface CustomerFlowFolderCreateParams {
140
+ /**
141
+ * The folder name. Must be unique in the project.
142
+ */
143
+ name: string;
144
+ /**
145
+ * The color the folder is shown with in the app. Folders share the palette labels
146
+ * use. Defaults to GREY.
147
+ */
148
+ color?: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
149
+ /**
150
+ * What belongs in this folder.
151
+ */
152
+ description?: string | null;
153
+ }
154
+ export declare namespace CustomerFlowFolder {
155
+ export { type CustomerFlowFolderCreateResponse as CustomerFlowFolderCreateResponse, type CustomerFlowFolderListResponse as CustomerFlowFolderListResponse, type CustomerFlowFolderDeleteResponse as CustomerFlowFolderDeleteResponse, type CustomerFlowFolderCreateParams as CustomerFlowFolderCreateParams, };
156
+ }
157
+ //# sourceMappingURL=customer-flow-folder.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-flow-folder.d.mts","sourceRoot":"","sources":["../src/resources/customer-flow-folder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;IAI/C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAI1E;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGjG;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,IAAI,EAAE,gCAAgC,CAAC,IAAI,CAAC;CAC7C;AAED,yBAAiB,gCAAgC,CAAC;IAChD;;OAEG;IACH,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;;WAGG;QACH,KAAK,EACD,OAAO,GACP,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AA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B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,157 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class CustomerFlowFolder extends APIResource {
5
+ /**
6
+ * Creates a folder to group customer flows. File a flow into it by sending its
7
+ * `folderId` when you create or update the flow. Names are unique within a
8
+ * project, ignoring case. Customer flows were previously called scenarios.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const customerFlowFolder =
13
+ * await client.customerFlowFolder.create({ name: 'x' });
14
+ * ```
15
+ */
16
+ create(body: CustomerFlowFolderCreateParams, options?: RequestOptions): APIPromise<CustomerFlowFolderCreateResponse>;
17
+ /**
18
+ * Returns every folder the project groups its customer flows into, with how many
19
+ * flows each holds, in the order the app shows them. Filter the flow list to one
20
+ * folder with `GET /v1/customer-flow?folderId=`. Customer flows were previously
21
+ * called scenarios.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const customerFlowFolders =
26
+ * await client.customerFlowFolder.list();
27
+ * ```
28
+ */
29
+ list(options?: RequestOptions): APIPromise<CustomerFlowFolderListResponse>;
30
+ /**
31
+ * Deletes a folder. The flows in it are kept and no longer sit in any folder.
32
+ * Built-in folders cannot be deleted.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const customerFlowFolder =
37
+ * await client.customerFlowFolder.delete(
38
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
39
+ * );
40
+ * ```
41
+ */
42
+ delete(folderID: string, options?: RequestOptions): APIPromise<CustomerFlowFolderDeleteResponse>;
43
+ }
44
+ export interface CustomerFlowFolderCreateResponse {
45
+ /**
46
+ * A folder that groups customer flows. A flow sits in at most one folder.
47
+ */
48
+ data: CustomerFlowFolderCreateResponse.Data;
49
+ }
50
+ export declare namespace CustomerFlowFolderCreateResponse {
51
+ /**
52
+ * A folder that groups customer flows. A flow sits in at most one folder.
53
+ */
54
+ interface Data {
55
+ id: string;
56
+ /**
57
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
58
+ * your flows filed in them.
59
+ */
60
+ builtIn: boolean;
61
+ /**
62
+ * The color the folder is shown with in the app. Folders share the palette labels
63
+ * use.
64
+ */
65
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
66
+ /**
67
+ * Creation timestamp in ISO 8601 format
68
+ */
69
+ createdAt: string;
70
+ /**
71
+ * What belongs in this folder.
72
+ */
73
+ description: string | null;
74
+ /**
75
+ * The folder name, unique within the project.
76
+ */
77
+ name: string;
78
+ /**
79
+ * Last update timestamp in ISO 8601 format
80
+ */
81
+ updatedAt: string;
82
+ }
83
+ }
84
+ /**
85
+ * The project's customer flow folders, in the order the app shows them.
86
+ */
87
+ export interface CustomerFlowFolderListResponse {
88
+ data: Array<CustomerFlowFolderListResponse.Data>;
89
+ }
90
+ export declare namespace CustomerFlowFolderListResponse {
91
+ /**
92
+ * A folder that groups customer flows. A flow sits in at most one folder.
93
+ */
94
+ interface Data {
95
+ id: string;
96
+ /**
97
+ * Whether Roark curates this folder. Built-in folders cannot be deleted or have
98
+ * your flows filed in them.
99
+ */
100
+ builtIn: boolean;
101
+ /**
102
+ * The color the folder is shown with in the app. Folders share the palette labels
103
+ * use.
104
+ */
105
+ color: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
106
+ /**
107
+ * Creation timestamp in ISO 8601 format
108
+ */
109
+ createdAt: string;
110
+ /**
111
+ * What belongs in this folder.
112
+ */
113
+ description: string | null;
114
+ /**
115
+ * How many flows are in this folder.
116
+ */
117
+ flowCount: number;
118
+ /**
119
+ * The folder name, unique within the project.
120
+ */
121
+ name: string;
122
+ /**
123
+ * Last update timestamp in ISO 8601 format
124
+ */
125
+ updatedAt: string;
126
+ }
127
+ }
128
+ export interface CustomerFlowFolderDeleteResponse {
129
+ data: CustomerFlowFolderDeleteResponse.Data;
130
+ }
131
+ export declare namespace CustomerFlowFolderDeleteResponse {
132
+ interface Data {
133
+ /**
134
+ * Whether the folder was deleted
135
+ */
136
+ deleted: boolean;
137
+ }
138
+ }
139
+ export interface CustomerFlowFolderCreateParams {
140
+ /**
141
+ * The folder name. Must be unique in the project.
142
+ */
143
+ name: string;
144
+ /**
145
+ * The color the folder is shown with in the app. Folders share the palette labels
146
+ * use. Defaults to GREY.
147
+ */
148
+ color?: 'GREEN' | 'RED' | 'ORANGE' | 'PURPLE' | 'GREY' | 'BLUE' | 'PEACH' | 'TEAL' | 'INDIGO' | 'AMBER' | 'ROSE' | 'CYAN';
149
+ /**
150
+ * What belongs in this folder.
151
+ */
152
+ description?: string | null;
153
+ }
154
+ export declare namespace CustomerFlowFolder {
155
+ export { type CustomerFlowFolderCreateResponse as CustomerFlowFolderCreateResponse, type CustomerFlowFolderListResponse as CustomerFlowFolderListResponse, type CustomerFlowFolderDeleteResponse as CustomerFlowFolderDeleteResponse, type CustomerFlowFolderCreateParams as CustomerFlowFolderCreateParams, };
156
+ }
157
+ //# sourceMappingURL=customer-flow-folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-flow-folder.d.ts","sourceRoot":"","sources":["../src/resources/customer-flow-folder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;I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H,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,gCAAgC,CAAC,IAAI,CAAC;CAC7C;AAED,yBAAiB,gCAAgC,CAAC;IAChD,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,CAAC,EACF,OAAO,GACP,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CustomerFlowFolder = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class CustomerFlowFolder extends resource_1.APIResource {
8
+ /**
9
+ * Creates a folder to group customer flows. File a flow into it by sending its
10
+ * `folderId` when you create or update the flow. Names are unique within a
11
+ * project, ignoring case. Customer flows were previously called scenarios.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const customerFlowFolder =
16
+ * await client.customerFlowFolder.create({ name: 'x' });
17
+ * ```
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/v1/customer-flow/folder', { body, ...options });
21
+ }
22
+ /**
23
+ * Returns every folder the project groups its customer flows into, with how many
24
+ * flows each holds, in the order the app shows them. Filter the flow list to one
25
+ * folder with `GET /v1/customer-flow?folderId=`. Customer flows were previously
26
+ * called scenarios.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const customerFlowFolders =
31
+ * await client.customerFlowFolder.list();
32
+ * ```
33
+ */
34
+ list(options) {
35
+ return this._client.get('/v1/customer-flow/folder', options);
36
+ }
37
+ /**
38
+ * Deletes a folder. The flows in it are kept and no longer sit in any folder.
39
+ * Built-in folders cannot be deleted.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const customerFlowFolder =
44
+ * await client.customerFlowFolder.delete(
45
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
46
+ * );
47
+ * ```
48
+ */
49
+ delete(folderID, options) {
50
+ return this._client.delete((0, path_1.path) `/v1/customer-flow/folder/${folderID}`, options);
51
+ }
52
+ }
53
+ exports.CustomerFlowFolder = CustomerFlowFolder;
54
+ //# sourceMappingURL=customer-flow-folder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-flow-folder.js","sourceRoot":"","sources":["../src/resources/customer-flow-folder.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,4BAA4B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAlDD,gDAkDC"}
@@ -0,0 +1,50 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { path } from "../internal/utils/path.mjs";
4
+ export class CustomerFlowFolder extends APIResource {
5
+ /**
6
+ * Creates a folder to group customer flows. File a flow into it by sending its
7
+ * `folderId` when you create or update the flow. Names are unique within a
8
+ * project, ignoring case. Customer flows were previously called scenarios.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const customerFlowFolder =
13
+ * await client.customerFlowFolder.create({ name: 'x' });
14
+ * ```
15
+ */
16
+ create(body, options) {
17
+ return this._client.post('/v1/customer-flow/folder', { body, ...options });
18
+ }
19
+ /**
20
+ * Returns every folder the project groups its customer flows into, with how many
21
+ * flows each holds, in the order the app shows them. Filter the flow list to one
22
+ * folder with `GET /v1/customer-flow?folderId=`. Customer flows were previously
23
+ * called scenarios.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const customerFlowFolders =
28
+ * await client.customerFlowFolder.list();
29
+ * ```
30
+ */
31
+ list(options) {
32
+ return this._client.get('/v1/customer-flow/folder', options);
33
+ }
34
+ /**
35
+ * Deletes a folder. The flows in it are kept and no longer sit in any folder.
36
+ * Built-in folders cannot be deleted.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const customerFlowFolder =
41
+ * await client.customerFlowFolder.delete(
42
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
43
+ * );
44
+ * ```
45
+ */
46
+ delete(folderID, options) {
47
+ return this._client.delete(path `/v1/customer-flow/folder/${folderID}`, options);
48
+ }
49
+ }
50
+ //# sourceMappingURL=customer-flow-folder.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-flow-folder.mjs","sourceRoot":"","sources":["../src/resources/customer-flow-folder.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,4BAA4B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF"}